Skip to Content
avatar image
Former Member

Pass a parameter to URL for WebGUI transaction

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>
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Dec 02, 2017 at 09:32 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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