cancel
Showing results for 
Search instead for 
Did you mean: 

Table like application parameters in a webdynrpo

AntonPierhagen
Active Participant
0 Kudos

Hi all

I have the following requirement.

I must create a webdynpro which retrieves a table from another webdynpro.

Herefore we would like to use the application parameters of the webdynpro.

But when i try to use a 'table like type' as type for the application parameter the program ends with a dump.

In the dump the following error is given: 'The URL parameter has a wrong type'.

Does anybody know what the solution is for my problem?

Accepted Solutions (1)

Accepted Solutions (1)

AntonPierhagen
Active Participant
0 Kudos

I have found the answer!

I can use the method HANDLEDEFAULT of the window of the webdynpro which is called.

In this method i can retrieve a table as parameters via the following solution:

for example; i have the url:

http://www.website.nl/?parameter1=1?parameter1=2?parameter1=3?parameter1=4?parameter1=5?parameter2=2

parameter1 is the table which i want to send to the particular webdynpro.

In the method i call the method:

wd->get_data( exporting name = if_wd_application=>all_url_parameters

importing value = parameters ).

I retrieve a table (parameters) with all above parameters in my url.

so they are:

name               value

parameter1          1

parameter1          2

parameter1          3

parameter1          4

parameter1          5

parameter2          2

With this table i have my table content which i needed in the webdynpro

Answers (5)

Answers (5)

AntonPierhagen
Active Participant
0 Kudos

Everyone; thanks for replying!

former_member184958
Active Participant
0 Kudos

Hi,

Here you can achieve this using component usage before that make the node as interface node then only you can get the data form one component to another component.

Regards,

John.

former_member184958
Active Participant
0 Kudos

Hi,

Here you can achieve this using component usage before that make the node as interface node then only you can get the data form one component to another component.

Regards,

John.

former_member184578
Active Contributor
0 Kudos

Hi,

You cannot pass bulk data like structure or internal table through URL parameters. Why don't you use the other component in your component via Component usage.

Check the Component Usage Tutorial here: http://scn.sap.com/docs/DOC-8863

If you don't want to use the Component usage, pass the data using shared memory objects. Check my document here: http://scn.sap.com/docs/DOC-27396

The above mentioned Import/Export memory won't work in Web Dynpro context.

Hope this helps u.,

Regards,

Kiran

Former Member
0 Kudos

Hi Anton,

You can achieve the same by using memory ID.

Export to memory ID for use in component.

EXPORT l_values FROM lt_export TO MEMORY ID 'VALUE'.

Import the table in second componet.

IMPORT l_values TO lt_import FROM MEMORY ID 'VALUE'.

Regards,

Sanjeev Kotwal.