Skip to Content
0
Former Member
Aug 15, 2006 at 07:47 PM

EXIT_SAPLRSAP_001 vs EXIT_SAPLEINS_001

299 Views

Hi,

Somebody can explain to me, the difference between EXIT_SAPLEINS_001(LEINS001) and EXIT_SAPLRSAP_001 specifically for LIS?.

We have to fill ZZ fields with ABAP code for 2LIS_02_ITM and 2LIS_02_HDM.

In EXIT_SAPLEINS_001 we wrote this code:

LOOP AT XMCEKKO.

select single FRGKE RLWRT

INTO (ZFRGKE, ZRLWRT)

from EKKO

where EBELN eq XMCEKKO-EBELN.

move:

ZFRGKE to XMCEKKO-ZZFRGKE,

ZRLWRT to XMCEKKO-ZZRLWRT.

MODIFY XMCEKKO.

ENDLOOP.

But when those fields change their values, the values in the extractor are the old. I think that this user exit have the data before save it.

Where you recommend me to write the code, in EXIT_SAPLEINS_001 or EXIT_SAPLRSAP_001?

I understand that the EXIT_SAPLEINS_001 is best for the delta, but I don’t understand well how I can make the abap code.

I appreciate so much your help.

Regards

Victoria