Hello Experts,
I am trying to get the incompletion log details for each item of a sales order. I can get the data from xvbuv[] and xvbup[].
However I am stuck in a strange issue as explained below.
I am working in the exit move_fields_to_vbak . For a given order say O1 there are two items ( I1 and I2 ).
Now for the two items I1 and I2 the exit is getting 3 times.
Call 1 : vbap-posnr is I1, xvbuv[] and xvbup[] is null.
Call 2 : vbap-posnr is I2, xvbuv[] and xvbup[] contains the data for item I1
Call 3 : vbap-posnr is I2, xvbuv[] and xvbup[] contains the data for item I1 and I2.
The problem here is that vbap and (xvbuv[] , xvbup[] ) are not in sync. I want to process the items one by one in each pass ( Call 1 and Call 2 ) but I am not able to get the correct data. Is this normal behaviour and any idea how to deal with it ?
Please let me know if any clarification required.
Regards,
Sayantan