Passing values from one application to another application
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,
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.
Edited by: Satrajit_1982 on Apr 12, 2010 11:12 AM