cancel
Showing results for 
Search instead for 
Did you mean: 

Passing values from one application to another application

former_member574468
Participant
0 Kudos
110

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

Accepted Solutions (1)

Accepted Solutions (1)

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?

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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