Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC ,Memory Id,problem

Former Member
0 Kudos

Hi,

I have an idoc configured for sales order. This is executed from user exit of sales order. There is a z program for that. This Z program is called through an event using function module bp_event_raise and it runs in background at that time.

This event bp_event_raise is called in an update function module.

Now to capture deleted record i am using function exit EXIT_SAPLVEDC_004 which is there in function module idoc_output_ordrsp.

I am trying to capture the deleted records in user exit and trying to pass it to the function exit throgh memory id. But it is not working. Any clue???

Shweta

3 REPLIES 3

Former Member
0 Kudos

Hi,

looks like both programmes use different process id (different external modi). EXPROT / IMPORT TO MEMORY does only work in the same process id ( external modus). Press F1 at EXPORT an follow the links for more details.

You may use EXPORT TO DATABASE or EXPORT TO SHARED BUFFER instead.

Kind regards,

HP

former_member188685
Active Contributor
0 Kudos

You can try with this Shared memory concept , it will help you.

export the parameter or index

Export program...

REPORT  ZP1.
 
data: werks type werks_d.
DATA: wa TYPE indx.
 
werks = '1000'.
 
EXPORT werks FROM werks
  TO SHARED MEMORY indx(xy)
  FROM wa
  CLIENT sy-mandt
  ID 'MID'.

retrieve the same in another include using the import.

Import program....

REPORT  ZP2.
 
data: werks type werks_d.
DATA: wa TYPE indx.
 
IMPORT werks TO werks
  FROM SHARED MEMORY indx(xy)
  TO wa
  CLIENT sy-mandt
  ID 'MID'.
 
  write werks.

Former Member
0 Kudos

Thanks i used the same approach.