on 08-15-2006 8:47 PM
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 dont understand well how I can make the abap code.
I appreciate so much your help.
Regards
Victoria
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.