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

SWN_CREATE_SHORTCUT entering OKCODE

former_member386290
Participant
0 Likes
896

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

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

1 REPLY 1
Read only

Kiran_Valluru
Active Contributor
0 Likes
588

Hi.,

I tried ., It is not working as per your requirement., but one more option is ..,

copy below commands to notepad and save with .sap extension

[System]
Name=EHP
Description=IDES  " change description here
Client=800
[User]
Name=E00593  " change user id here
Language=EN
[Function]
Title=SAP Easy Access
Command=OPEN
Type=SystemCommand
[Configuration]
WorkDir=C:\Documents and Settings\kiran\SapWorkDir
[Options]
Reuse=1

Once you opened the shortcut for transaction CJ20N., drag and drop the above created short cut on the opened CJ20N transaction.

but following the path is better than this ...

hope this helps u.,

Thanks & Regards,

Kiran