cancel
Showing results for 
Search instead for 
Did you mean: 

Post a 501 movement type using BAPI_GOODSMVT_CREATE

chris_mowl
Active Participant
0 Kudos
1,077

Hello all,

I am trying to post a 501 movement type using BAPI_GOODSMVT_CREATE and I am getting the error
"No stock posting possible for this material".  I have tried updating the settings in OMS2, and that doesn't seem to work.  The screenshot shows where the message is issued.  KZBEW in MSEG is Movement Indicator and has values in the table below.  Since blank is a valid value, I don't understand why this checks if the field is initial.  

The error message is in Include LMBMVF0B, Form mengenstring_finden , which is the only form in that include. 

chris_mowl_0-1737754214982.png

chris_mowl_1-1737755506026.png

These are the values I'm sending to the BAPI:

 gs_header-pstng_date p_date.       " Posting date
  gs_header-doc_date   p_date.       " Document Date
  gs_header-header_txt p_text.

  gs_code-gm_code '05'.              "MB1C

  gs_item-plant           p_werks.
  gs_item-move_type  '501'.
  gs_item-move_mat   matnr.   "Receiving/Issuing Material
  gs_item-move_plant p_werks.
  gs_item-move_stloc p_lgortn.       "Receiving/Issuing Storage Location
  gs_item-entry_qnt  = a quantity .
  gs_item-move_reas  = 0016.       

Any help is appreciated.  

***Update:  I mapped the material, plant, and storage location to the other fields in the item table instead of the Receiving fields and now it works.  Thank you for your response!

View Entire Topic
Harsh14
Newcomer

Hi, Can you check and confirm if the ML check box for the material master is active in Accounting 1 view of the material master?

chris_mowl
Active Participant
0 Kudos
It is not checked.
chris_mowl
Active Participant
0 Kudos
Thank you @Harsh14 for your response.