Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically add line-items to sales orders

Former Member
0 Kudos

Hello,

Our client needs us to add line items to sales orders. The requirement is such that, when the users enter a material on a line item, they wish to see few more materials automatically added as new line items -- item category to be maintained as "Free" items. This appears similar to automatically getting BOM-sub-items for materials which have BOMs maintained. The client is not willing to maintain BOMs for materials in question. They instead have asked us to maintain sub-item materials in a Z-table and then fetch those to populate the subsequent line-items on the sales order.

So far, we have tried to fiddle around with the XVBAK and XVBAP internal tables in sales exit (MV45AFZZ) and also tried to use BAPI within the same exit. Both methods do not work.

Could you please guide us ? Thank you.

Regards,

1 REPLY 1

Former Member
0 Kudos

Ist method:

Maintain one Ztable with the fields of Material and sub materials.

write BDC to create order,before entering the material number check if material is existed in Ztable or not.

If it exist take that material and added as a another line item.

if not exist create like normal line item.

2 nd method:

Ask your MM functional consultant to maintain supression of materials concept.