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

BAP BAPI_GOODSMVT_CREATE returning material

Former Member
0 Likes
1,651

Hi all,

I am using BAPI_GOODSMVT_CREATE to return material to vendor with movement type 122 with reference to an existing Material document (REF_DOC) and item (REF_DOC_IT). The function seems to work fine and I do get the new material document created for movement type 122 but the BAPI also returns to vendor the components of the material too whereas I only want to return the material I give in the input table GOODSMVT_ITEM. The materials I return have BOM. I do not want to return all the components of the material. Any thoughts on just returning the material and not the associated components?

1 ACCEPTED SOLUTION
Read only

JL23
Active Contributor
0 Likes
1,193
2 REPLIES 2
Read only

JL23
Active Contributor
0 Likes
1,194
Read only

Former Member
1,193

I resolved this myself.

Here is what I did.

In table GOODSMVT_ITEM of the BAPI, I entered a line for the returning material with the returning quantity and a line for each of the component material.

The following fields of the GOODSMVT_ITEM were field for each of the component material which will not be returned.

  • identification of the document line (LINE_ID)
  • identification of the document line of the Parent material (PARENT_ID)
  • Material number
  • Plant
  • Storage location
  • Quantity in unit of entry(This was 0 for the components, since they are not getting returned)

I hope this helps.