on 08-28-2013 10:48 AM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Everyone; thanks for replying!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.