on 01-08-2008 5:47 PM
I have to pass 4 parameters to a TCode which i am calling in my web dynpro application. I have done 1 value before and it worked fine but when im trying to pass more than one it is only passing the last value.
Any suggestions will be highly appreciated ad points will be rewarded.
Thanks
Sridhar and UMA,
Thanks for your reply. I am passing multiple parameters right now with this code and they are showing up fine, my parameters are static now how do i pass the vales from context or pass variable,one more thing can i pass local variables instead wdContext.Current.... .
Below is the code
-Ashwani
WDPortalNavigation.navigateAbsolute(
"ROLES://portal_content/com.disney.disco.disco/com.disney.bom.BOM/com.disney.bom.iViews/com.disney.bom.MM01",
WDPortalNavigationMode.SHOW_EXTERNAL,
(String) null,
(String) null,
WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
(String) null,
(String) null,
"RMMG1_REF-MATNR=Ashwani&RMMG1-MBRSH=M&RMMG1-MTART=ABF&RMMG1-MATNR=materialNumber");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes. You can pass dynamic parameters to the Transaction iView (wdContext.currentCon.....).
Let us assume you want to pass Material Number dynamically
String materailNo = wdContext().currentXXX().getMaterialNo();
WDPortalNavigation.navigateAbsolute(
"ROLES://portal_content/com.disney.disco.disco/com.disney.bom.BOM/com.disney.bom.iViews/com.disney.bom.MM01";,
WDPortalNavigationMode.SHOW_EXTERNAL,
(String) null,
(String) null,
WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
(String) null,
(String) null,
"RMMG1_REF-MATNR="materailNo"&RMMG1-MBRSH=M&RMMG1-MTART=ABF&RMMG1-MATNR=materialNumber");
//in the same you can pass all dynamic variable like this.
"RMMG1_REF-MATNR="materailNo"&RMMG1-MBRSH="<dynamic val>"&RMMG1-MTART="<dynamic val>"&RMMG1-MATNR="+<dynamic var>
Regards,
Sridhar
Thanks Guys,
It solved my problem and i have awarded points to all the helpful answers
-Ashwani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashwani,
I am not sure if you have solved the problem. Incase you havent probably this might help.
To Pass dynamic values to the Transasctions from the webdynpro side rather than static values,
WDPortalNavigation.navigateAbsolute("ROLES:portal_content/.../MM01",WDPortalNavigationMode.SHOW_INPLACE,"","",WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,"","","","no="+wdcontext.currentContextElement().getNo(),false,false);
where no is the just a string and its value is obtained from the current context element at runtime.
Now in the transaction iview inside the portal, you have a property called application parameter.at this place you need to mention the field name as
RM07M-BWARTWE=<Request.no>
where is RM07M-BWARTWE is the screen field name to which you want to pass the value and no is the string from the webdynpro side.
hope that helped!
Regards
Uma.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you calling Tcode using ITS URL?
If so refer the below blog:
[Pass multiple Parameter via URL |https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/855] [original link is broken] [original link is broken] [original link is broken];
Raja T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply.
I am trying to call tcode this food but i am only getting two parameters passed first and the last and i also need to know how to pass the variables instead of static values. Below is the code for your reference.
WDPortalNavigation.navigateAbsolute(
"ROLES://portal_content/com.ney.bom.iViews/com.bom.MM01",
WDPortalNavigationMode.SHOW_EXTERNAL,
(String)
null,
(String)
null,
WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
(String)
null,
(String)
null,
"RMMG1_REF-MATNR= refCode&RMMG1-MBRSH= BakKey&RMMG1-MTART= accountNo&RMMG1-MATNR= materialNumber");
Passing Parameters to a Transaction iview is simple.
WDPortalNavigation.navigateAbsolute(PageURL, WDPortalNavigationMode.SHOW_INPLACE, WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
queryString);
PageURL - pcd location , ex :- String PageURL
"Name=" + wdContext.currentContextElement().getName();
Regards,
Sridhar
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.