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
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.