Skip to Content
avatar image
Former Member

SAP Sales Contact (VA41) : Splitting one line item of quantity N to N line items of quantity 1

Hi

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 02 at 07:50 PM

    Why do you create a contract with reference to an order? It's a bit odd document flow...

    In general, there is no such functionality in SAP, to my knowledge. Similar questions have been asked before, make sure to search in Google for "order line split site:sap.com". You'll find some additional questions and possible alternatives there.

    Add comment
    10|10000 characters needed characters exceeded

    • OK. No, sorry, there is really no such functionality in SAP. The best "out of the box" idea I can come up with is to have a custom report that will take the initial order # and create a contract with multiple lines as you're describing using a BAPI. I'm not 100% sure the document flow will look right but there is no harm in trying.