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)
where EBELN eq XMCEKKO-EBELN.
ZFRGKE to XMCEKKO-ZZFRGKE,
ZRLWRT to XMCEKKO-ZZRLWRT.
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 dont understand well how I can make the abap code.
I appreciate so much your help.