cancel
Showing results for 
Search instead for 
Did you mean: 

User Exit for VA02 to trigger Output type but after VBEP is updated

aayushaggarwal
Participant
0 Kudos
829

Hi Experts,

We have a requirement where, we need to trigger the output type whenever there is a change in the schedule line.

But the output type should not trigger if the confirmed quantity is zero.

We used ZL_EI_SALES_ORDER: Enhancement for ORDRSP and it is working fine, expect one scenario.

Scenario: When the confirmed quantity is (say) 2 and the user changed it to zero. Now the output type should not be triggered but it is still triggering, because we are reading the table XVBEP, which actually contains 2 line items, one with confirmed quantity 2 and second line item with confirmed quantity as zero because VBEP was not updated till the execution of this enhancement.

Even if we ignore the second line item, still the output type is triggered.

Is there any way to handle this? Or is there any enhancement point that triggers after VBEP is updated with the latest data?

Thanks for your support in advance...

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member1716
Active Contributor
0 Kudos

I think You can handle this with the existing enhancement itself, You told there are two line items in XVBEP with both 2 and 0 quantity. Check the fields of the internal table, there must be field which indicates the active line item that is about to update the back end table. with that you can satisfy the requirement.

Or

You can also read the Internal table for Zero quantity with the same key fields, if this succeeds then it should be fine for you to write logic.