Skip to Content
0
Former Member
Aug 27, 2009 at 07:18 AM

User Exit / BADI to Copy Line Item in VA21/22 at run time

111 Views

Hi,

I have a requirement i which i want to copy a line item (itu2019s a configurable material line item) in create/change Quotation depending upon some condition.

In my scenario when ever user enters a configurable material, first the requirement type will be Make To Stock in which the system will first determine the batch in which similar configurable material is ready available. If itu2019s so then it goes to APO system to check the Quantity available.

If the confirmed qty is less then ordered quantity then ordered quantity should be make equal to confirmed quantity for that line item.Then the same line item should be copied to next line item with the ordered quantity = previous line ordered qty - previous line confirmed qty.

Since there is a limitation in SAP that it will determine only one batch for a given configurable material in Quotation/sales order even if we have other batch with same configurable characteristics or substitute characteristics. This is the other requirement where we need to make the system to search for other batch other then the one which it has already searched for first line time.

If no new batch is found then we need to change the requirement type of that line item to Make to Order for the Ordered qty in that line item.

I would like to know is there any user exit or badi in which i can do these changes.

Any suggestions on how to proceed in this scenario.

Regards,