on 2019 Sep 26 8:32 AM
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...
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
15 | |
9 | |
7 | |
5 | |
4 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.