on 06-01-2006 1:52 PM
Hi,
I want to create a web based application where in the user logs in and he has the option to select to run a report or run a transaction(through radio button).
Can anybody help me on how to proceed.
Regards,
Vijith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Juan ,
Thanks for that let me be more specific on the requirement...
Once the user logs in he has a option to select a report or a transaction(PEPM).This selection is done using radio button.
1. Which development model should i go for??
2. The login parameters should be passed to the first page of transaction.
Hope u can help me..
Thanks & Regards,
Vijith
Hi Durai,
Thanks for that ... U meant to say that my requirement can be achieved using BSP .......
Can you provide me some documents on how to get transactions and reports running using BSP.
Are you sure that reports can be run using Integrated ITS? As i said earlier i want a custom screen with two radio buttons that allows a user to run a transaction or report? Is this achieved using ITS(Stand alone or Integrated)? Van you provide me with some documents for the same if it is possible....
Thanks & Regards,
Vijith
you can create the start page (where you want to have the report names and radiobutton) using BSP and for reports and transaction you can use ITS
<i>Are you sure that reports can be run using Integrated ITS?</i>
yes
i dont have documents but
for BSP you can use this online tutorial
http://help.sap.com/saphelp_nw04/helpdata/en/c8/101c3a1cf1c54be10000000a114084/frameset.htm
and for calling transactions are reports, its just calling a url from the bsp page and for the url pattern you can check the following weblog.
/people/durairaj.athavanraja/blog/2004/09/23/pass-parameter-to-its-url-upadated-21st-june-2008
Regards
Raja
Hi Durai,
I have decided to use standalone ITS 6.20.
There are three screens one for a transaction, one for a report and one for initial selection.
I want to pass the login field from to each screen where the control is also i want to disable an input field in the standard transaction can we do that.
Expecting ur help.
Thanks & Regards,
Vijith
Hi Vijith,
If your ABAP system is on WAS6.40 , for your case , i would strongly suggest you to go for Integrated ITS.
<i>I want to pass the login field from to each screen where the control is</i>
can be done , is it a custom transaction or standard one? if its a standard transaction, let me know the transaction, i will come up with the url pattern for the same.
<i>also i want to disable an input field in the standard transaction can we do that.</i>
check out transaction SHD0 - Transaction variant, this is for disabling, hiding , certain fields in the standard transactions.
Regards
Raja
Hi,
Thanks for the reply.
Iam using transaction PEPM.
The complete flow of the scenario is as follows :
Page 1 : The user has to login to SAP system.
Page 2 : The user can select whether to run a transaction(PEPM) or Report. This selection is done using radio button.
Page 3 : PEPM Transaction with the user field filled in with the log in name. This field should also be disabled so that the user can run profile match up for his own id.
or it can be a report.
I am using flow logic for the complete process. Is that sufficient?
Thanks & Regards,
Vijith
1. you dont have to create a login screen, if anybody tries to access the internet service, the system would request him for authentication details for loging on to sap system
i am giving a sample program which you can implement using WEBGUI try this and let me know.
1. create report program (se38) and copy paste the following code.
2. attach it to a transaction.
3. from browser call the following url to see the results.
http://<itsserver>.domain.com:ports/scripts/wgate/webgui/!?~transaction=<tcode attached to the program created>
this url would take you to ITS login screen first and after successfully validating user credentials you enter your report will be shown.
report program code.
REPORT y_sample_its
NO STANDARD PAGE HEADING.
TABLES sscrfields.
DATA: program TYPE sy-repid .
DATA: c_true VALUE 'X' .
DATA: BEGIN OF bt_data OCCURS 100.
INCLUDE STRUCTURE bdcdata.
DATA: END OF bt_data.
data: messages like BDCMSGCOLL occurs 0 with header line.
PARAMETERS: r1 RADIOBUTTON GROUP rg1 USER-COMMAND abc, " call transaction PEPM
r2 RADIOBUTTON GROUP rg1 . " call report
AT SELECTION-SCREEN .
program = 'SAPLRHPP' .
IF sscrfields-ucomm EQ 'ABC' .
IF r1 = 'X' .
PERFORM bt_create_ta_se38 USING program.
CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
EXPORTING
tcode = 'PEPM'
skip_screen = ' '
mode_val = 'E'
* UPDATE_VAL = 'A'
* IMPORTING
* SUBRC = SUBRC
TABLES
using_tab = bt_data
* SPAGPA_TAB = SPAGPA_TAB
MESS_TAB = MESSages
EXCEPTIONS
call_transaction_denied = 1
tcode_invalid = 2
OTHERS = 3
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ELSEIF r2 = 'X' .
* SUBMIT <the report program> VIA SELECTION-SCREEN AND RETURN .
ENDIF .
ENDIF .
*sscrfields-ucomm
*&---------------------------------------------------------------------*
*& Form bt_create_ta_se38
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* -->P_PROGRAM text
*----------------------------------------------------------------------*
FORM bt_create_ta_se38 USING progname.
data: curr_date(10) .
CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
EXPORTING
DATE_INTERNAL = SY-DATUM
IMPORTING
DATE_EXTERNAL = curr_date
EXCEPTIONS
DATE_INTERNAL_IS_INVALID = 1
OTHERS = 2
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
REFRESH bt_data.
PERFORM bdc_dynpro USING 'SAPLRHPP' '0020'.
PERFORM bdc_field USING 'BDC_CURSOR'
'DYNP_RHPP-SEARK1'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=SHOW'.
PERFORM bdc_field USING 'DYNP_RHPP-OTYPE1'
'US'.
PERFORM bdc_field USING 'DYNP_RHPP-SEARK1'
sy-uname.
PERFORM bdc_field USING 'DYNP_RHPP-OTYPE2'
'S'.
PERFORM bdc_field USING 'DYNP_RHPP-STTAG'
curr_date.
ENDFORM. " bt_create_ta_se38
*&---------------------------------------------------------------------*
*& Form bdc_dynpro
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* -->P_0083 text
* -->P_0084 text
*----------------------------------------------------------------------*
FORM bdc_dynpro USING value(p_program)
value(p_dynpro).
CLEAR bt_data.
bt_data-program = p_program.
bt_data-dynpro = p_dynpro.
bt_data-dynbegin = c_true.
APPEND bt_data.
ENDFORM. "bdc_dynpro
*&---------------------------------------------------------------------*
*& Form bdc_field
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* -->P_0092 text
* -->P_0093 text
*----------------------------------------------------------------------*
FORM bdc_field USING value(p_fieldname)
value(p_value).
CLEAR bt_data.
bt_data-fnam = p_fieldname.
bt_data-fval = p_value.
APPEND bt_data.
ENDFORM. "bdc_field
Regards
Raja
Message was edited by: Durairaj Athavan Raja
Hi,
Thanks a lot for that. I ran the program and it is running fine.
But the problem is if i select the first radio button the result of profile matchup is coming up <i>whereas</i> what I want is just the transaction to start with the user id populated in the input field(DYNP_RHPP-SEARK1).The user should be able to see this and then run the transaction.
Can you help me in this regard.
Thanks & Regards,
Vijith
Which version of SAP you are using?
Regards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.