07-14-2008 7:14 AM
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
07-14-2008 9:37 AM
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
07-14-2008 9:46 AM
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.
07-17-2008 6:59 AM