cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate URL from standard ECC transaction and use with parameters?

SAPjedi
Contributor
0 Kudos

I like to understand the high level steps to convert these standard ECC transactions to a URL to be used in a browser.

View, Edit Sales Quote

View, Edit Sales Order

I understand there's a way to convert these transactions to a webdynpro URL and even allow parameters to pass.

For example, the URL could accept the Sales Order ID, and it would display or edit the Sales Order.

My goal is to use the URL in the SAP Cloud App as a mashup (like a normal HTML link) and it would pass the parameter of the customer or sales order ID.

Also an estimate of the effort would be nice (since I may get a more experienced developer, if need be).

Thanks ahead for your help !

Tim.

Accepted Solutions (0)

Answers (3)

Answers (3)

ramakrishnappa
Active Contributor
0 Kudos

Hi Tim,

You can generate the url for t-code VA02/VA03 and pass the parameters as per your requirement.


DATA: lv_url TYPE string,

        lv_host type string,

        lv_port type string.

*Call below method to get host and port

  cl_http_server=>if_http_server~get_location(

     IMPORTING host = lv_host

            port = lv_port ).

*create URL

  CONCATENATE 'http'

  '://' lv_host ':' lv_port

  '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'VA03'

   INTO lv_url.

" concatenate the url parameters

CONCATENATE lv_url

                         '&VBAK-VBELN=80000001'

                         '&~OKCODE=SHOW'

INTO LV_URL.

Now you can use the generated URL as you require.

Make sure that you access this URL within your network.

Hope this helps you.

Regards,

Rama

Harsh_Bansal
Contributor
0 Kudos

Hi Tim,

Execute the FM - TH_GET_VIRT_HOST_DATA

It will return the Hostname and Port. Concatenate 'http://' hostname ':' port  '/sap/bc/gui/sap/its/webgui?~transaction=VA03

This will give you the Webdynpro URL for VA03 tcode.

Former Member
0 Kudos

There is no automatic way of converting a classic dynpro to a Web Dynpro. Unless SAP provides the functionality as Web Dynpro, you can always call the classic dynpros by using the SAP GUI for HTML (webgui). You might also want to see what Fiori offers in this regard.