cancel
Showing results for 
Search instead for 
Did you mean: 

How to call t-code from web dynpro ABAP application

Former Member
0 Kudos

Dear Gurus,

I am new to ABAP web dynpros. I have to add a button and have to call a SAP standard t-code if user clicks on this button? How to accomplish this task? Any help or example would be appreciated.

Thanks,

GSM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Appreciate all your help.

Thanks,

GSM

Former Member
0 Kudos

Hi Thomas,

Thanks for your reply to my question. I have to run my application from SRM portal. In this case I have to call the iView for standard t-code from my WDA. Would you please provide me more details and any example would be great. Appreciate all your help.

Sincerely,

GSM

uday_gubbala2
Active Contributor
0 Kudos

Hi GSM,

You have to create a SAP transaction iView in your Portal, then obtain its URL in your webdynpro and call WDPortalNavigation.absolute() method.

Below are the same steps in more detail:

1) Create a SAP Transaction iView or an Internet Application Component iView (whichever you find convenient). While creating you can select whether you want to use SAP GUI for windows or SAP GUI for HTML. For the latter(GUI for HTML) ensure that your ITS is working fine and configured while creating the system in EP.

2) Open the properties of the SAP transaction iView created. In the OK code field you can give the ok code value just as you give in SAP R/3 in case you want to navigate to the second screen of SAP R/3 when you pass values from WebDynpro.

Example for the above would be say Transaction "VA03" for displaying Sales order. Suppose from Webdynpro i want to pass a parameter called "Order number" and when i click a button it should pass the order number to R/3 and skip the first screen required for inputting the sales order numbe.

It should directly go to the main display of sales order for that ordernumber.

3) Create your WebDynpro component and deploy it on the server. In your WebDynpro use the WDPortalNavigation.absolute() method and give the url of the SAP Transaction iView created as a parameter and also the required parameters that you would like to pass from WebDynpro.

4) Create a SAP WebDynpro iView in the Portal.

5) Now run the Component. It should open up your SAP Transaction iview.

Regards,

Uday

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Standard Tcodes are generally implemented in Classic Dynpro (SAPGUI) technology - which is completely different than Web Dynpro. Are you running your application in the NetWeaver Portal/Business Client? If so you can use portal eventing to navigate to a different iView setup for the standard TCode?

Or is your application running standalone in the browser. Then consider using the Integrated ITS and the SAPGUI for HTML to run the Tcode you want to navigate to. Using the SAPGUI for HTML, any standard Tcode can be accessed via URL and ran in a browser - making it very easy to navigate to from Web Dynpro.