cancel
Showing results for 
Search instead for 
Did you mean: 

Passing values from one application to another application

former_member574468
Participant
0 Kudos
107

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.....

View Entire Topic
Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

You can refer to the WIKI.

[http://wiki.sdn.sap.com/wiki/display/WDABAP/ExampleforpassingvaluesfromoneApplicationtoanotherApplicationinWebDynproABAP.]

Regards,

Priya

ChrisPaine
Active Contributor
0 Kudos

> 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

satrajit_chatterjee
Participant
0 Kudos

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

former_member574468
Participant
0 Kudos

Where we have to write this?