on 04-12-2010 6:06 AM
Hi All,
I m having two WDY applications. Ive combined into one. But the issue is i am unable to capture the values from the 1st application. I want to get the values from 1st Applications and pass into the 2nd Application.
can Anyone help me to come out from this issue.....
Thanks in advance,
Vimal.....
Hi,
You can refer to the WIKI.
[http://wiki.sdn.sap.com/wiki/display/WDABAP/ExampleforpassingvaluesfromoneApplicationtoanotherApplicationinWebDynproABAP.]
Regards,
Priya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> You can refer to the WIKI.
>
> [http://wiki.sdn.sap.com/wiki/display/WDABAP/ExampleforpassingvaluesfromoneApplicationtoanotherApplicationinWebDynproABAP.]
It's worthwhile noting that this Wiki only concerns using URL parameter to pass values between two applications. -Which may be fine for your situation.
But do look for the other examples that pass values using shared memory objects as well. As Manas noted - there are many threads that have dealt with this topic.
Cheers,
Chris
HIi,
Please check , how to implement Share memory class. But some times its make problem, if the multiple instance of the server exists.
Upload to Share memory.
DATA : lv_handle TYPE REF TO zcl_sourcing_area, " For writing to shared memory area
lv_data TYPE REF TO cl_xyz,
lt_pr_set TYPE znit_t_pr_items,
ls_pr_set LIKE LINE OF lt_pr_set.
data ls_rfq_set type XYZ.
TRY.
lv_handle = zcl_sourcing_area=>attach_for_write( ).
CREATE OBJECT lv_data AREA HANDLE lv_handle.
lv_handle->set_root( lv_data ).
lv_data->mt_pr_items_crt_po = lt_pr_set.
lv_data->MT_RFQ_SET = ls_rfq_set.
lv_handle->detach_commit( ).
Read from the Share memory
DATA : my_handle TYPE REF TO zcl_sourcing_area, " For writing to shared memory area
lv_data TYPE REF TO cl_xyz,
lt_pr_set TYPE znit_t_pr_items,
ls_pr_set LIKE LINE OF lt_pr_set.
DATA ls_rfq_set TYPE xyz_sty.
TRY.
my_handle = zcl_sourcing_area=>attach_for_read( ).
lt_pr_set = my_handle->root->mt_pr_items_crt_po.
ls_rfq_set = my_handle->root->mt_rfq_set.
my_handle->detach( ).
CALL METHOD zcl_sourcing_area=>invalidate_instance( ).
CATCH cx_shm_attach_error.
ENDTRY.
Regards
Satrajit
Edited by: Satrajit_1982 on Apr 12, 2010 11:12 AM
u can use your first webdynpro application as an component , like we will do with ALV or SELECT OPTION.
go to your webdynpro component and in tab Used Component add your webdynpro component. by this you can have access to all context node of your application , the only thing you have to map them with your view context
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If the values are just like Order Number etc ( few variables ) then you can use application parameters to pass value .
If data passed between app is large then you can store the data in some class attributes and can access them in other application.
Other way could be to use Shared Memory Objects or Storing the data in Tables.
There are plenty of threads for the same in Forum, make a search, you would get clues as how to implement them.
Regards
Manas Dua
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.