cancel
Showing results for 
Search instead for 
Did you mean: 

How to passa parameter to a T-code iView from Web Dnpro app

Former Member
0 Kudos

Hi frndz..

As per my requirment i need to call an T-code from the Web Dynpro application by clicking an Action Button, and here i need to pass a parameter to that T-code iView ..like

Suppose in my WDP view i ahev a Input Field and one Action Button , so user can enter any value(parameter) in input field n clicks on button, so this button should call the T-Code iView(SE37) n also the value (Funtion Modlue) entered in input field aslo come into T-code iView.

Regards

Rajesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Use this code

StringBuffer transactionURL = "http://server:port/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.Transaction?System=SAP_R3&TCode=SE37&GuiType=WinGui&OkCode=/00&ApplicationParameter=<Screen field name>="+<function module name>;

IWDWindow newwindow = wdComponentAPI.getWindowManager().createExternalWindow(transactionURL.toString(), "", false);

newwindow.open();

Remove 'OkCode' parameter if you dont want function module to be executed automatically.

Regards,

Apurva

Former Member
0 Kudos

Hi Apurva..

Thanks for ur Prompt reply ,i gone through ur code but am not getting result as i required am not able execute the T-code iView implicitly n whatever the parameter am passing is also not setting defaultly to T-code Input Filed.

Am Very clear about ur code till

"http://server:port/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.Transaction?System=SAP_R3&TCode=SE37&GuiType=WinGui&"

after this

OkCode=/00&ApplicationParameter=<Screen field name>="+<function module name>;

kiindlt xpplain this OkCode n Application Parameter.. if this can i execute , i can finish my requirment

Thnaks in Advance

Regards

Rajesh

Former Member
0 Kudos

Hi,

OkCode=/00 - Specifies you need to execute transaction automatically. You can remove this if you dont want transaction to be executed automatically.

"http://server:port/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.Transaction?System=SAP_R3&TCode=SE37&GuiType=WinGui&ApplicationParameter=<Screen field name>="+<function module name>;

In application parameter you need to set screen field, if needed.For example, to pass function module name ZTEST from Web Dynpro to R/3 Screen use code,

"http://server:port/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.Transaction?System=SAP_R3&TCode=SE37&GuiType=WinGui&ApplicationParameter=RS38L-NAME="+ZTEST;

Hope this helps.

Regards,

Apurva

Former Member
0 Kudos

Hi Apurva..

Thanks a lot yaar,now itz working very fine.Thanks again for ur prompt replies.

Regards

Rajesh

Answers (2)

Answers (2)

Former Member
0 Kudos
former_member192434
Active Contributor
0 Kudos

use this link