Application Development and Automation 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: 
Read only

Goods movement (FM/Bapi/Method)

Former Member
0 Likes
1,223

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.ItemParent IDMovementBatchQuantity
500000000111261Batch16.00
500000000121101Batch1A5.75
500000000131531Batch1AS0.25
500000000144261Batch14.00
500000000154101Batch1B3.85
500000000164531Batch1BS0.15
500000000177261Batch15.00
500000000187101Batch1C4.80
500000000197531Batch1CS0.20

any expert have any idea about it.

Thanks.

4 REPLIES 4
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
815

What is the issue with BAPI_GOODSMVT_CREATE you can use ITEM table with different movement type?

Read only

0 Likes
815

Hi nabheet,

Thanks for reply,

BAPI_GOODSMVT_CREATE not considering the field parent_id. every item has item id as parent id.

Thanks,

Read only

Former Member
0 Likes
815

dear experts,

pl. reply.

Read only

0 Likes
815

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