on 08-02-2013 3:32 PM
Hi,
I have a requirement for calling the VA01 screen and populate the Order Type/Customer numbers from the URL parameters.
Any help is appreciated.
Thanks,
Sudheer
Hi Naveen,
Prefilling and skipping the start screen of a transaction is something that is already supported by the SAP GUI for HTML aka WebGUI. To do this in the WebGUI you just use your WebGUI url and add the url parameter ~transaction with the transaction code and the values that are to be prefilled.
Example: If your WebGUI runs at http://host.pal.sap.corp:8074/sap/bc/gui/sap/its/webgui?sap-client=800 and you want to open VA01 and prefill the order type field (VBAK-AUART) with AA and then press enter (okcode /00) you need to add to the url ~transaction=*VA01 VBAK-AUART=AA;DYNP_OKCODE=/00
Like the SAP GUI for HTML, Personas utilizes the ITS to interact with the backend, therefore, Personas can utilize the same nice feature. The only difference is that you need to url encode the value (for the following example I used http://meyerweb.com/eric/tools/dencoder/).
So, assuming now that Personas runs at http://host.pal.sap.corp:8074/sap/bc/bsp/persos/mainapp/index.html and that you have more than one system configured then you need to at the url parameter system=<GUID of the system>&~transaction=VA01%20VBAK-AUART%3DAA%3BDYNP_OKCODE%3D%2F00.
In my case the final url is:
http://host.pal.sap.corp:8074/sap/bc/bsp/persos/mainapp/index.html?system=005056841B2A1ED2BDA9284DF1...
Cheers,
Tobias.
PS: If you want to learn more about at the prefilling of fields, I would recommend to have a look at https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=22375
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tobias,
I am working on similar kind of issue. But it is prompting me for username and password.
When I tried giving the same in the url, appending more parameters(sap-username and sap-password) it is still asking for them.
Is there some other way to skip it or can it be achieved using short link?
Thanks
Hi Tobias,
Please, do you know if it's possible to trigger a scrip button instead of the dympro ok code when passing transaction and field parameter?
This is because in my flavor I have a script button that deals with a popup after pushing the ok code and when I pass the transaction and field values in the URL the system goes directly into the /00 okcode even if I don't use it on the url.
Thank you!
Best regards,
Douglas
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.