My client new requirement is to split one line item of quantity N to N line items of quantity 1, while creating Contract in VA41 With reference to the Sales Order.
Sales Order xxxxx has Item 0010 of 4 Units
When they create Contract in VA41 with reference to SO xxxxx - they want to split the Line items as
0010 1 Unit
0020 1 Unit
0030 1 Unit
0040 1 Unit
I tried to look into MV45AfZZ and USEREXIT_MOVE_FIELD_TO_VBAP and changed the Internal table XVBAP but doesn't gives expected result.
Also tried USEREXIT_MOVE_FIELD_TO_VBAK changing CVBAP by splitting lines, It gives output of 4 lines each of individual 4 Units which is not correct and these exits are iterated multiple times - enhancing here the splitting logic is not correct i think.
Kindly answer me if you have come across similar requirement and solution if you have resolved, Thanks.