Skip to Content
Author's profile photo Former Member

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

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


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

  FM WDY.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


Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.