Skip to Content
avatar image
Former Member

How to pass parameters and skip first screen for webgui service restricted to one transaction

Hello,

  I have a business requirement to display SAP data (e.g. transaction VA05) via webgui.  I have created a service zwebgui by copying service webgui and added parameters ~singletransaction = 1 and ~transaction = VA05.  This launches transaction VA05 and users navigation is restricted within that transaction.  I need to pass value to screen field sold-to party VBCOM-KUNDE as URL parameter and skip first screen.

  I have tried passing parameters to service webgui

http://server-name:8000/sap/bc/gui/sap/its/webgui/!?~transaction=*va05 VBCOM_KUNDE=100000 and it works. However I have read that passing OKCODE value  DYNP_OKCODE = XXXX is obsolete.   What is the alternative?

When we create a new service to restrict access to single transaction? How to pass parameters to that service?

http://server-name:8000/sap/bc/gui/sap/its/test/zwebgui/!?~transaction=*va05 VBCOM_KUNDE=100000  does not pass the customer value.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jan 06, 2015 at 11:02 PM

    i am using &~OKCODE=ENTE and this works fine

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 21, 2015 at 11:38 AM

    Hi,

    We are facing the same issue.

    I tried the URL,

    http://xxx.xx:8000/sap/bc/gui/sap/its/webgui?~transaction=*va05 VBCOM_KUNDE=xxxxxx;DYNP_OKCODE=ENTE

    but the customer ID is not getting passed into the feild, Also, the field is VBAK-KUNNR in Va05, how is this VBCOM_KUNDE? Can somebody help in this matter?

    Regards

    SHiva

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Shiva, field name is VBCOM-KUNDE with a hyphen not an underscore.  You get the field name by pressing F1 in Sold-to Party, then click technical information icon.  Field name is at bottom in Screen Field.

      Regards,

      Mark

  • avatar image
    Former Member
    Jan 23, 2015 at 11:35 AM

    Hi Mark,

    Thank you. I just copied VBCOM-KUNDE from the above posts and was wondering as i dint see it in my ERP. As i have a higher version, the screen feild in VA05 in our system is SPARTNER-LOW which i am using, i am able to pass the customer ID into the 'Partner felid'.

    I am stuck at executing the transaction, the transaction doesnt get executed unless i select manually. Is there anycode where i can execute the transaction using the code directly after passing the partner number in VA05?

    Regards

    Shiva

    Add comment
    10|10000 characters needed characters exceeded

    • The Selection Screen of VA05 depends on some customizing Setting and EHP Release. on the old screen

      the field names have been Different.

      as you are now on the new selection, the OKCODE =ONLI should work for you! (or also /08 for F8 Execute)