Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Skip selection screen

Former Member
0 Likes
3,089

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

9 REPLIES 9
Read only

Former Member
0 Likes
2,056

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.

Read only

Lakshmant1
Active Contributor
0 Likes
2,056

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

Read only

former_member404244
Active Contributor
0 Likes
2,056

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

Read only

Former Member
0 Likes
2,056

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

Read only

Former Member
0 Likes
2,056

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

Read only

0 Likes
2,056

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

Read only

0 Likes
2,056

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

Read only

0 Likes
2,056

I'm not sure about your requirement.....but you can assign userID like this..

PERNR = SY-UNAME.

Read only

Former Member
0 Likes
2,056

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