on 11-07-2008 11:21 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
Hi Rajesh,
Kindly go through:
Regards,
Anagha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.