Application Development 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: 

No goods receipt possible for purchase order

Former Member
0 Kudos
671

When I use BAPI_GOODSMVT_CREATE to do goods movement, it says'No goods receipt possible for purchase order xxxxxx xxxx', but I can do it in MB01 with the same data, can anyone tell me the reason?

1 ACCEPTED SOLUTION

Former Member
128

to create Goods movement using this BAPI, u need to pass the below info to the BAPI.

pstng_date

goodsmvt_code

plant

move_type

entry_qnt

po_number

po_item

mvt_ind

Check whether u are passing all this info to BAPI.

9 REPLIES 9

Former Member
129

to create Goods movement using this BAPI, u need to pass the below info to the BAPI.

pstng_date

goodsmvt_code

plant

move_type

entry_qnt

po_number

po_item

mvt_ind

Check whether u are passing all this info to BAPI.

0 Kudos
128

yes, i passed the parameters

0 Kudos
128

Can u send me the full description of the error message.

0 Kudos
128

Hello

Check goodsmvt_code. It must be '01' for purchase order.

0 Kudos
128

When I use the FM BAPI_GOODSMVT_CREATE to do goods movement using movement type 122, it says 'Deficit of PU GR quantity 1,000 PCE : QT-R02 PSD1', but it's OK in TCODE mb01.

The codding:

xheader-pstng_date = sy-datum.

xheader-doc_date = sy-datum.

xheader-header_txt = '111111'.

xheader-pr_uname = sy-uname.

append xheader.

*MOVEMENT CODE

xgm_code-gm_code = '01'. "FOR GOODS RECEIPT

append xgm_code.

xitem-plant = 'PSD1'.

xitem-stge_loc = '0010'.

xitem-po_item = '00010'.

xitem-material = 'QT-R02'.

xitem-move_type = '122'.

xitem-spec_stock = space.

xitem-stck_type = space.

xitem-move_reas = '0001'.

xitem-po_number = 'MULT-PN-01'.

xitem-entry_qnt = 1000.

xitem-entry_uom = 'PCE'.

xitem-mvt_ind = 'B'. "GOODS RECEIPT FOR PO

append xitem.

call function 'BAPI_GOODSMVT_CREATE'

exporting

goodsmvt_header = xheader

goodsmvt_code = xgm_code

importing

goodsmvt_headret = xheadexp

tables

goodsmvt_item = xitem

return = return.

call function 'BAPI_TRANSACTION_COMMIT'

exporting

wait = 'X'

importing

return = return.

0 Kudos
128

Use Movement type '101'.

wa_goodsitem-move_type = '101'.

wa_goodsitem-mvt_ind = 'B'.

0 Kudos
128

Hi, sorry, i encourter new problem, i want to use movement type 122

0 Kudos
128

I believe it is your PO's problems, I also encounter this issue, please don't have your GR-IR based indicator checked on the item's Invoice tab.

0 Kudos
128

Hi,could u tell me how to resolve the problem?