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...