cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to opn SAP Transaction IView from Webdynpro

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hey Deepak,

can you please tell me the procedure how did u manage to get a transactional iview from webdynpro application ..

Its urgent

Thanks and regards,

Sameer

Former Member
0 Kudos

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&param2=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

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

Try integrating this webdynpro application to portal i.e create a webdynpro view n test your application.

Thanks,

Sunitha Hari.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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????