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: 

Goods movement not possible with mvmt type 991

Former Member
0 Kudos

Hi,

As per requirement I need to create a GR for Purchase order wise. I tried to create using BAPI BAPI_GOODSMVT_CREATE but It returns the error message.

error: Goods movement not possible with mvmt type 991

LOOP AT gt_outtab1.

gt_outtab1-gr_wght = gt_outtab1-gr_wght.

MOVE: gt_outtab1-matnr TO gt_item-material,

gt_zseed_po_qty-werks TO gt_item-plant,

gt_zseed_po_qty-lgort TO gt_item-stge_loc,

'901' TO gt_item-move_type,

gt_outtab1-gr_wght TO gt_item-entry_qnt,

'B' TO gt_item-mvt_ind,

'1' TO gt_item-stck_type,

v_lifnr TO gt_item-vendor,

gt_outtab1-ebeln TO gt_item-po_number,

gt_outtab1-ebelp TO gt_item-po_item.

APPEND gt_item.

ENDLOOP.

CLEAR gt_item.

LOOP AT gt_outtab3 WHERE bqty IS NOT INITIAL.

MOVE: gt_outtab3-bmatnr TO gt_item-material,

gt_zseed_po_qty-werks TO gt_item-plant,

gt_zseed_po_qty-lgort TO gt_item-stge_loc,

'991' TO gt_item-move_type,

gt_outtab3-bqty TO gt_item-entry_qnt,

'' TO gt_item-mvt_ind,

'1' TO gt_item-stck_type,

v_lifnr TO gt_item-vendor.

APPEND gt_item.

ENDLOOP.

CLEAR gt_item.

LOOP AT gt_outtab3 WHERE pqty IS NOT INITIAL.

MOVE: gt_outtab3-bmatnr TO gt_item-material,

gt_zseed_po_qty-werks TO gt_item-plant,

gt_zseed_po_qty-lgort TO gt_item-stge_loc,

'942' TO gt_item-move_type,

gt_outtab3-pqty TO gt_item-entry_qnt,

'' TO gt_item-mvt_ind,

'1' TO gt_item-stck_type,

v_lifnr TO gt_item-vendor.

APPEND gt_item.

ENDLOOP.

***********Call goods movement BAPI

CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

EXPORTING

goodsmvt_header = gs_header

goodsmvt_code = gs_code

IMPORTING

goodsmvt_headret = gs_headret

materialdocument = gs_retmtd

matdocumentyear = gs_year

TABLES

goodsmvt_item = gt_item

return = gt_return.

so could you please let me know which are the parameters I need to pass to create GR?

regards,

tarun

2 REPLIES 2

Former Member
0 Kudos

Hi Tarun ,

Check your GM Code and Movement indicator , read tye documentation again .

regards

Nilesh

Former Member
0 Kudos

Hi,

Go to T.code OMJJ . Give your your movement type 991. Check the allowed transaction and all the details in your left hand side and the settings done.

Thanks

Arbind