Dear SAP B1 forumers,
I want to implement the following issue. Automatically let the parent quantity equals the child quantity in the field Qty in AR invoice for a production BOM.
Parent items A (10) B (5)
Childs items A1 (10) B1 (5)
A2 (10) B2 (5)
A3 (10) B3 (5)
In parenthesis, the quantity of each item. I want those quantities to be displayed automatically in the qty field in the AR invoice form when the user inserts a parent item.
I tried the following:
SELECT $[$38.11.Number]
FROM INV1
WHERE LineNum=0
SELECT $[$U_QTE_ASUP.0.Number]
FROM OINV
The problem is that the method works perfectly if the invoice has one parent tem (1 BOM) but failed to insert the values of several BOM (it repeats the line0 qty).
Hope my explanations are understandable. Please how can I achieve this issue? Any help would be highly appreciated. Thanks in advance.