Quantcast
Channel: ABAP Development
Viewing all articles
Browse latest Browse all 948

WDA: Call WebDynpro application from ABAP code with parameter table type

$
0
0

In the main window of WD component define importing parameter (for example SYSTEM_ROLES with type IHTTPVAL (predefined type - string)

Handle method.jpg

Add the parameter to the WD application

application.jpg

In the ABAP code (the place where the WD application is called) define table – type TIHTTPNVP, line type IHTTPNVP.

app parameter.jpg

In this example information which is needed to run the WD application form ABAP is in the table IT_SYSTEM_ROLES – type ZSYSTEM_ROLES_TT, line type ZSYSTEM_ROLES


roles table.jpg

 

Use the following code to move the content of table ZSYSTEM_ROLES_TT to TIHTTPNVP.

table to string.jpg

Note: Use different separators to divide the values of the fields in one row and the content of the rows in the table. In this example for fields is used space and for rows is used comma.



Now call the application using FM WDY_EXECUTE_IN_PLACE

call FM.jpg


In the WD component, either in WDDOINIT method of the VIEW or in WDDOINIT method of the COMPONENTCONTROLLER, you can get the application parameters using the following code:

get parameters.jpg

And in the end, move back the parameters to the table ZSYSTEM_ROLES_TT

split.jpg


Viewing all articles
Browse latest Browse all 948

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>