12-22-2008 11:05 AM
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,
12-22-2008 11:42 AM
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.