cancel
Showing results for 
Search instead for 
Did you mean: 

Pass PO Num parameter to SAP transaction iview

Former Member
0 Kudos

Hi,

I have a table column in my WDJ application that contain PO number.

I have created an SAP Transaction Iview for TCode me23n (display po).

When user clicks on the PO number in the table column, it should dynamically pass the PO number to the transaction iview and display ME23N for that particular PO. How can I pass the PO to this SAP transaction Iview?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You cannot do it with ME23N because the PO number field is not editable for this transaction. You have to navigate via the top-level menu to enter a new PO number. But you can do it for ME23, the older version of PO display.

You will need to know the screen field name as well as the ok code that's fired when the user hits enter on the entry screen for ME23. Assuming you have the string for the PO number already from the table, you could use this code:


WDPortalNavigation.navigateAbsolute(
"ROLES://<pcd path of the SAP transaction iview>",
WDPortalNavigationMode.SHOW_INPLACE,
"",
"",
WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
"",
"",
"",
"RM06E-BSTNR=<PO string here>&OkCode=AB"
true,
true);

Regards,

Satyajit

Answers (2)

Answers (2)

Former Member
0 Kudos

used existing tcode MMPURPAMEPO

Parameters Forwarded to Transaction: P_EBELN

OK Code Field: AB

Former Member
0 Kudos

any idea of how we might make it work for ME23N?

yanick_matte
Explorer
0 Kudos

You can create a new transaction that will set the parameter id BES equal to your po number and then call transaction me23n from your new program.