cancel
Showing results for 
Search instead for 
Did you mean: 

Identify last data packet in data source exit

Former Member
0 Kudos

Hello,

I have requirement to process some logic at the end of last data packet so that last image overwrites the any of earlier image.

Thinking about to write some code in data source cusotmer exit abap.

Is there any way to find last data packet..? i know how to find first i cont use it.

Thanks in advance.

SP

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Swetha

A load is (normally) split into several parallel processes so in general it dosnt make any sense to talk about "the last". A way to handle this would be to have a temporary target where you write in everything with the longest possible key (so that you are able to identify the last here), then load from that temporary target and in the update rule you'll have to make reads back into the temporary DSO to test if your line is "the last". Another possibility is to make an extractor using a function module on top of the temporary DSO and the function module should then have the nessecary logic build in.

With Kind Regards

Kristian Appel

Former Member
0 Kudos

Hello Appel,

This logic is needed in R3 but we would like to have code written in R3 source rather than building intermediate DSO.

Thanks

SP