Pass PO Num parameter to SAP transaction iview
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?
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);