cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro ABAP url-parameters

Former Member
0 Kudos

Hi,

I have a WD appl with 2 views.

View1 has 2 inputfields, view2 displays the 2 inputfields of view1 and also reads&shows some data bassed on the 2 inputfields of view1.

Via contextmapping to the componentcontroller the 2 inputfield on each view are linked.

Now I would like to pass the values of my inputfields via url-parameters from another application so it is possible to directly show the resultlist without having to input manually the values of the inputfiels.

I want to use something like the auto flag of page attributes on BSP's.

Is this possible via WD? Do I have to change the contextmapping?

Thanks,

Vincent.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

The Below steps will surely clear u

1. Create needed parameters in inbound plug handler method of the Window. (Only of type STRING)

2. You can specify default values for the parameters in Application editor. (This is optional but supplying values to the parameters is mandatory. URL values will override the default values)

3. Create Component Controller usage in the corresponding window properties. (This step is to map the parameter values to component context attributes otherwise component controller context is not shown in the window context for mapping)

4. Go to Window context and map the node from component context to window context so that the parameter values will be transferred to component and in turn to views)

5. Set the above mapped node attributes with parameter values in the Window Inbound plug handler method.

6. Activate the above changes and Test the application. (If the default values exist those will be showed in the URL automatically and you can also change the values in the URL)

Still u are having any doubts send me ur mail id i will mail u with documentation

Dont forget to reward points

Thanks & regards

Usha

Former Member
0 Kudos

Hi Usha,

Could you please mail me WD Java Documentation or a sample code for passing url-parameters from one view to other.

Really appreciate for your kind help,

Solvant

websolvant@gmail.com

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

Hi Vincent,

Unfortunatelly I don`t have access to WD for ABAP now and can`t check this but you can try to use approach similar to WD for Java: define parameter with simple type for default inbound plug in your interface view. Than you can access it in inbound plug handler and pass it to controller.

Best regards, Maksim Rashchynski.

athavanraja
Active Contributor
0 Kudos

check out this online help

<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/2f/e7574174c58547e10000000a1550b0/frameset.htm">Calling a Web Dynpro Application Using Parameters</a>

<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/7b/fb57412df8091de10000000a155106/frameset.htm">URL Parameters</a>

Regards

Raja