cancel
Showing results for 
Search instead for 
Did you mean: 

Passing paramters to a SAP Transaction iView...

Former Member
0 Kudos

HI SDN ,

i have a requirement wherein i have to pass the value of Purchase Order number from a WebDynpro java application to a Transaction iView which runs the TCode ME23N.

I used the WDPortalNavigation Api and passed the value to the screen Field.

param1 = "MEPO_SELECT-EBELN"+number;

WDPortalNavigation.navigateAbsolute(

"pcd:portal_content/com.telekom.tpc/com.tpc.iviews/com.telekom.tpc.misc/com.tpc.E01_PO_Belegsuche",

WDPortalNavigationMode.SHOW_EXTERNAL,

(String) null,

"TargetWindow",

WDPortalNavigationHistoryMode.NO_DUPLICATIONS,

(String) null,

(String) null,

param1);

Problem is there is no direct input for Purchase Order number in the Transaction ME23N. On pressing Shift+F5 a Subscreen is called which inturn has the Input Field For the Purchase Order. Since there is no Direct input field for the purchase order number in the Transaction Screen , the WDPortalNavigation Api doesnt seem working.

So , How can i pass the value of Purchase Order number to this subscreen ?

Can anybody Help me in this regard.?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Doesn't look like you can do this. The best you can do is probably pass the ok code as "<i>okcode=MECHOB</i>" to open the subscreen by default.

Can't you use ME23 instead of ME23N? In the case of ME23, you can pass two parameters like:

String txnParam = "RM06E-BSTNR=<PO number>&okcode=KOPF";

Then you can pass <i>txnParam</i> to the navigateAbsolute method.

Regards,

Satyajit.

Answers (3)

Answers (3)

Former Member
0 Kudos

hi satyajit,

for me23 i used okcode '/00' . this is working. but am still held up with ME23N

okcode mechob doesn't seem working.

Former Member
0 Kudos

hi satyajit,

i tried giving the parameter "&okcode=KOPF" in WDPortalNavigation but its not working out.

i also tried "&OK-CODE=KOPF".. but this is also not working.

so how to use the okcode parameter in portalnavigation api...

Former Member
0 Kudos

Hi,

Can you try <i>"~okcode=KOPF"</i> instead of <i>"okcode=KOPF"</i> ?

Regards,

Satyajit.

arun_srinivasan
Contributor
0 Kudos

Hi

Check this out

/people/prakash.singh4/blog/2005/10/07/how-to-launch-sap-transaction-pass-parameters-via-url

Thanks and Regards,

Arun