Skip to Content
0

Pass a parameter to URL for WebGUI transaction

Nov 27, 2017 at 10:52 PM

764

avatar image
Former Member

Hello,

I'm trying to call transaction ME52N from a custom app that I built in SAPUI5. When you click the button, it will take you to a personas WebGUI version of ME52N so you can make edits to the PR. I can't figure out how to pass in a parameter for the PR number. I want it to take you to the right PR based on what you had in the custom app.

Here's what I've tried and none of these have worked.

https://<server>/sap/bc/gui/sap/its/webgui/?sap-client=<client>~TRANSACTION=*ME52N%20MEREQ_TOPLINE-BANFN_EXT=<PRNumber>;DYNP_OKCODE=SHOW
https://<server>/sap/bc/gui/sap/its/webgui/?sap-client=<client>&~transaction=ME52N%20MEPO_SELECT-BANFN=<PRNumber>
https://<server>/sap/bc/gui/sap/its/webgui/?sap-client=555&sap-language=en&sap-personas-theme=<ThemeID>&~transaction=ME52N%20MEPO_SELECT-BANFN=<PRNumber>
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Oisin ONidh
Dec 02, 2017 at 09:32 PM
0

Hello Andrew,

have you seen the following WIKI

How to prefill fields and skip first screen with webgui?

can you try the following notation

http://WAS_HOST:WAS_PORT/sap/bc/gui/sap/its/webgui?~transaction=*ME52N MEPO_SELECT-BANFN=<PRNumber>;DYNP_OKCODE=SHOW

if this works then try

http://WAS_HOST:WAS_PORT/sap/bc/gui/sap/its/webgui?sap-client=555&sap-language=en&sap-personas-theme=<ThemeID>&~transaction=*ME52N MEPO_SELECT-BANFN=<PRNumber>;DYNP_OKCODE=SHOW

Regards,

Oisin

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Oisin,

Thank you for your response. I tried the first notation and regardless of what I put as a PRNumber, it still takes me to my last viewed PR.

0

Hi Andrew,

what is your SAP_BASIS and Kernel patch that you are using here?

If you call

....sap/bc/gui/sap/its/webgui?~transaction=*ME52N

does it always return one to the last viewed PR as well?

Regards,

Oisin

0