Skip to Content
0
Jun 02, 2011 at 12:23 PM

SWN_CREATE_SHORTCUT entering OKCODE

308 Views

Hello Experts,

I am using function module SWN_CREATE_SHORTCUT to call a transaction CJ20N (Project Builder). However this transaction does not have any input field on its first screen, so I have to follow a menu path (Project -> Open) on the first screen to dispaly a project. OKCODE (which is defined as G_FCODE in the screen painter) for this menu path on the first screen is 'OPEN'.

Does anybody know how to enter both transaction code (= CJ20N) and OKCODE ( = OPEN) simultaneously when calling function module SWN_CREATE_SHORTCUT ?

I am aware that I can create a wrapper BDC, give it a new Z transaction code and then call this new transaction with the above function module and it will work. But the problem is BDC is not acceptable to the client.

Any solution please?

Thanks

ABAPer