‎2013 Dec 10 11:59 AM
Hi experts,
Is any FM/BAPI/Method available in sap with below logic.
I have checked BAPI_GOODSMVT_CREATE and BAPI_PROCORDCONF_CREATE_TT but not getting the mentioned table result.
Logic is:
I have Batch1 for consume(261) with quantity 15 MT.
I input this batch at a work center and get output in three parts.
Batch1A
Batch1B
Batch1C
Now I want to create goods movement in below manner.
| Material Doc. | Item | Parent ID | Movement | Batch | Quantity |
|---|---|---|---|---|---|
| 5000000001 | 1 | 1 | 261 | Batch1 | 6.00 |
| 5000000001 | 2 | 1 | 101 | Batch1A | 5.75 |
| 5000000001 | 3 | 1 | 531 | Batch1AS | 0.25 |
| 5000000001 | 4 | 4 | 261 | Batch1 | 4.00 |
| 5000000001 | 5 | 4 | 101 | Batch1B | 3.85 |
| 5000000001 | 6 | 4 | 531 | Batch1BS | 0.15 |
| 5000000001 | 7 | 7 | 261 | Batch1 | 5.00 |
| 5000000001 | 8 | 7 | 101 | Batch1C | 4.80 |
| 5000000001 | 9 | 7 | 531 | Batch1CS | 0.20 |
any expert have any idea about it.
Thanks.
‎2013 Dec 10 12:04 PM
What is the issue with BAPI_GOODSMVT_CREATE you can use ITEM table with different movement type?
‎2013 Dec 10 12:10 PM
Hi nabheet,
Thanks for reply,
BAPI_GOODSMVT_CREATE not considering the field parent_id. every item has item id as parent id.
Thanks,
‎2013 Dec 16 9:08 AM
‎2013 Dec 16 9:19 AM
Please put a break point at function module MAP2I_B2017_GM_ITEM_TO_IMSEG which is called inside this BAPI and on subroutine PERFORM mb_create_goods_movement. and check what data is passed to call of MB_CREATE_GOODS_MOVEMENT inside this subroutine in debugging. The
MB_CREATE_GOODS_MOVEMENT function module is overwritng this data based on conditions please debug and check on what basis it is updated.
Nabheet