2007 Dec 17 7:22 AM
Hi Guys,
Quick one here. i've created a program which calls another transaction using the " CALL TRANSACTION 'XXX' AND SKIP FIRST SCREEN ". This way, i've managed to bypass the first selection screen. However, there is a field in the selection screen that i need to populate first. How can i do that? Thanks
Regards
Hi All,
I Got it to work using the SUBMIT function in my program. i've hardcoded the 'pernr' screen field value in my program. Now, how can i make the 'pernr' value field more dynamic? basically, i would like to get the logon userID and from there get the 'pernr' and feed this value to the field in my program. Any ideas? Thanks
2007 Dec 17 7:28 AM
Hi,
You can use set and get parameters to pass the data to selection screen.
OR
Instead of call transaction, you can use SUBMIT with selection and return.
Thanks,
Sriram Ponna.
2007 Dec 17 7:29 AM
Hi Nahoj,
You have to use SET/GET PARAMETER or SET/GET CURSOR for passing selection screen parameter.
Have a look at DEMO_PROGRAM_CALL_TRANSACTION
Hope this helps.
Thanks
Lakshman
2007 Dec 17 7:31 AM
Hi,
U have to use SET PARAMETER ID FOR THAT FIELD
SET PARAMETER ID <idname> FIELD FIELDNAME..
CALL TRANSACTION TCODE AND SKIP FIRST SCREEN.
u can get the parameter id ,by pressing f1 help on the field and go to the technical information of that field and u will get the id..
check the below sample code
Set parameter ID for transaction screen field
SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.
Sxecute transaction ME23N, and skip initial data entry screen
CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
Reagrds,
Nagaraj
2007 Dec 17 7:33 AM
Hi Nahoj,
First check the Parameter Id for that field.
Use that Id in following syntax for passing value.
SET PARAMETER ID <PARAMETERID> FIELD <VALUE>.
for example to call transaction FB03 following is the code
set parameter id 'BLN' field <value>.
set parameter id 'BUK' field <value>.
set parameter id 'GJR' field <value>.
call transaction 'FB03' and skip first screen.
Regards,
Srinivas
2007 Dec 17 8:44 AM
Thanks all for the quick reply. HOwever, the field in the selection screen does not have any 'parameter ID'. Is there anyway that i could add the 'parameter ID' ? Sorry guys, relatively new to ABAP :). basically i would like to test my program by passing a constant PERNR value to the selection screen. Thnaks
2007 Dec 17 2:58 PM
Hi All,
I Got it to work using the SUBMIT function in my program. i've hardcoded the 'pernr' screen field value in my program. Now, how can i make the 'pernr' value field more dynamic? basically, i would like to get the logon userID and from there get the 'pernr' and feed this value to the field in my program. Any ideas? Thanks
2007 Dec 17 3:02 PM
In your main program you can deriva the value of the PERNR from the USER ID or you can create a PARAMETER on screen where user can put the value. Then pass this value to the SUBMIT statement.
Like:
PARAMETERS: P_PERNR TYPE PERNR.
...
SUMBIT 'ZZZZZ'
WITH PERNR WITH P_PERNR.
Regards,
Naimesh Patel
2007 Dec 17 3:04 PM
I'm not sure about your requirement.....but you can assign userID like this..
PERNR = SY-UNAME.
2007 Dec 17 5:56 PM
Hello Nahoj,
U can use SET PARAMETER ID before the CALL TRANSACTION.
But prior to that u have to do a small job. We have some pre-defined parameter ID's in the system like,
AUN - order number
IFN for inquiry number.
then after, u can use the following stmt, for example
SET PARAMETER ID : 'AUN' field <field name>
CALL TRANSCATION..........................
even u can create ur own pid's but they should not be created in foriegn namespaces.(check the ID's in F1 or F4 help)
Try it out.
bye.
Edited by: subbu sravan on Dec 17, 2007 6:58 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |