on 03-17-2008 6:44 AM
Hi Friends,
I need to open a SAP Trancation Iview from Webdynpro (on click of some button) and pass some values to the screen fields,
I am using the code below(which I found in many threads):
WDPortalNavigation.navigateAbsolute("ROLES://<Iview ID excluding pcd>",
WDPortalNavigationMode.SHOW_INPLACE,
(String)null,
(String)null,
WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
(String)null,
(String)null,
(String)null);
The problem is nothin happened on account of execution of this code,
I mean not even a blank screen gets opened.
I am not even getting any error/exception.
Please advice what could be the possible cause.
Regards
Deepak
Edited by: Deepak Gupta on Mar 17, 2008 12:15 PM
Hi Deepak
Use the following code
WDPortalNavigation.navigateAbsolute(
"ROLES://portal_content/<pcd location of the iview/page>",
WDPortalNavigationMode.SHOW_INPLACE,
"",
"",
WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
"",
"",
null,
"TCode=" + <transaction code value>, //the TCode parameter is the key
true,
true);
For more information see this [Thread|]
Best Regards
Chaitanya.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Chaitanya,
Thanks for the reply,
but I am able to open the transaction iview, my problem is how do I pass parameter,
I want some screen fields of the transaction getting filled from webdynpro.
I tried the way suggested in some threads, as written above.
but no fruitful result.
can you suggest how can I do that?
Deepak
Hi
I am using the following code..which is wrking properly.
WDPortalNavigation.navigateAbsolute(
"ROLES://<pcd path of the SAP transaction iview excluding pcd:>",
WDPortalNavigationMode.SHOW_INPLACE,
"",
"",
WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
"",
"",
"",
"param1=value1¶m2=value2"
true,
true);
where param1 & param2 are some variables you need to pass to the Transaction.
You can retrieve these in SAP Transaction Iview, under property 'Application Parameters' like below:
screen_name-field_name1=<Request.param1>&screen_name-field_name2=<Request.param2>
Regards
Deepak
Hi ,
Try integrating this webdynpro application to portal i.e create a webdynpro view n test your application.
Thanks,
Sunitha Hari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Sunitha,
it really worked from Portal, when I created an Iview for my webdynpro application.
But can you tell me why is it so? why I was not able to call transaction from independent WD application.
Also please tell me how can I pass some parameters from my webdynro app.
I want to fill some screen fields of the transaction.
Deepak
Hi ,
Go through the link - to pass parametrs to transcation in WD application
http://help.sap.com/saphelp_nw70/helpdata/EN/ae/36d93f130f9115e10000000a155106/frameset.htm
Thanks,
Sunitha Hari.
I wrote the code like below:
WDPortalNavigation.navigateAbsolute("ROLES://<IViewPath>", WDPortalNavigationMode.SHOW_EXTERNAL,
(String)null,
(String)null,
WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
(String)null,
(String)null,
"number=123456");
In IView application property, I wrote:
CRMT_SEARCH_LOC-CARD_NO=<Request.number>
(L.H.S is the screen field name)
then I got following exception at portal:
An exception occurred while processing a request for :
iView : pcd:portal_content/<Iview path>
Component Name : com.sap.portal.appintegrator.sap.Transaction
Exception in SAP Application Integrator occured: Unable to process template 'CRMT_SEARCH_LOC-CARD_NO=<Request.number>', because 'number' is an invalid terminal property of context 'Request.'..
what went wrong????
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.