Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

2LIS extractor exit check if Delta or Full load

SvenS
Participant
0 Kudos

Hello experts

I'm currently working on enhancing a 2LIS extractor everything is working except for 1 thing. In the user exit that is triggered when loading in the data to BW I would like to have some code that checks if the infopackage that is triggering the load is a delta or a full load.

So something along the lines of:

IF LV_MODE = 'F'.<br>DO SOMETHING.<br>ENDIF.


This is probably a question that is answered many times before and I apologize but I've been googling for so long for things along the lines of 'SAP ABAP 2LIS exit check if delta or full is triggered' and then you just get 1000 searches on how to perform a delta or full in RSA3 or just how to find user exits in general....

Kind regards
Sven Swennen

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

For LIS extractors, I don't use the classic customer-exits of enhancement RSAP0001. Did you look for enhancement available in LIS itself and then map the data in LBWE.

(e.g. MCS10001 -> EXIT_SAPLMCS1_001 fill MCVBAKUSR)

Also what kind of rule could require this information: Delta or Full (also building setup table for initialization) I would have expected before or after image (full is always after)

4 REPLIES 4

raymond_giuseppi
Active Contributor
0 Kudos

For LIS extractors, I don't use the classic customer-exits of enhancement RSAP0001. Did you look for enhancement available in LIS itself and then map the data in LBWE.

(e.g. MCS10001 -> EXIT_SAPLMCS1_001 fill MCVBAKUSR)

Also what kind of rule could require this information: Delta or Full (also building setup table for initialization) I would have expected before or after image (full is always after)

0 Kudos

Okay to be a bit more specific as to why I need this. It is for the extractor of purchasing. we have added a Z field into the header data which was not triggered upon a delta. we made all the changes added the field into the table added it into LBWE etc. and lastly we used the leins001 enhancement to update the Z field with the correct data (because it is data from another table and we have to use this enhancement because we need to use the before and after image to fill up the field and trigger the delta). So now the field is updated whenever the header data is changed, saved or deleted. But on BW the data at the moment is incorrect and we need to do a full load. when I tested a full load in quality I noticed that the new field did not get filled in. So what I did was in RSAP0001 write code in the header exit that fills up the data and this works for the full. However now upon a change we first fill up the field with the LEINS001 enhancement and this one makes it so a delta is triggered and then in the RSAP001 the code of the header again fills this field which is double code. So I would like to have this code to check if it triggers a full load so I can set it so the RSAP001 code is only executed on a full load and not a delta. and no we can't just use the RSAP001 for full and delta because without the LEINS001 with the before and after image the delta is never triggered of the new Z field when only the Z field is adjusted.

As you didn't rebuild the setup table, clear the target Info providers and execute a new init load, you did something I could always avoid...

Did you try to debug a FM such as RSAP_DATA_TRANSFER to find such information (Look for available global data in function group RSAP or in some common include such as LRSAPD00 (TABLES statements) included in the generated extractor programs?

Thank you for the tip. I didn't think of looking into the global data of RSAP. Here I found the field UPMODE which holds the data of which load is being used.