cancel
Showing results for 
Search instead for 
Did you mean: 

EXIT_SAPLRSAP_001 vs EXIT_SAPLEINS_001

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Follow the code example in <a href="/people/sanyam.kapur/blog/2005/04/30/custom-fields-and-bw-extractors-making-a-mixed-marriage-work-part-ii weblog</a>.

The two exits are different, and you might lose delta in the second if the changes are done only to the custom field.

Former Member
0 Kudos

Hi,

i have a doubt about the abap code,

WHEN 'MA'. "When creating a purchase order

this applies when the field changes?

why "MA - When creating a purchase order" ?, and when changing a purchase order? in this case I see more the Old Value and the new Value.

when I write a loop on xmcekko, in this table exists the record for my purchase order?, when the only value in the ekko changed is my ZZ (the enhance field)?

regards,

victoria

Former Member
0 Kudos

I am not sure about 'MA', You can ignore it I would think (not code this IF). [The weblog does say that 'MA' is triggered both for create and change].

Since you have added this field to your communication structure (which I assume you have), it will come to this exit if there is change only to this (ZZ) field (ie XMCEKKO should have such records).

The weblog has example for EKPO field, but you can adapt it for EKKO.

Former Member
0 Kudos

Hello all,

can we use the table CDHDR field UDATE while coding LEINS001?

If yes, will we be able to capture delta for UDATE field?

Regards,

Surekha