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: 

BAPI FOR GOODS MOVEMENT MB1B

Former Member
0 Kudos

HI,

WILL ANY BODY HELP ME FOR BAPI MB1B FOR GOODS MOVEMENT 411

DEASSINGE.

I'M USING THIS BAPI FOR THE SAME

AND PASSING THIS DATA.

wa-MATERIAL = it_data-matnr.

wa-PLANT = 'SBST'.

wa-stge_loc = IT_DATA-LGORT .

wa-BATCH = it_data-charg.

wa-MOVE_TYPE = '411'.

WA-move_reas = '0003'.

WA-STCK_TYPE = 'F'.

wa-SPEC_STOCK = 'E'.

wa-val_sales_ord = it_data-vbeln.

wa-val_s_ord_item = it_data-posnr.

wa-quantity = it_data-qty .

wa-entry_qnt = it_data-qty .

WA-base_uom = 'MTS'.

WA-MOVE_MAT = it_data-matnr.

WA-MOVE_PLANT = 'SBST'.

WA-move_stloc = IT_DATA-LGORT .

WA-MOVE_BATCH = it_data-charg.

MOVE 'SBST' TO wa-tr_part_ba.

MOVE 'SBST' TO wa-move_plant.

MOVE 'X' TO wa-no_more_gr.

MOVE 'TNE' TO wa-entry_uom_iso.

MOVE 'TNE' TO wa-st_un_qtyy_2_iso.

append wa to l_it_item .

CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

EXPORTING

goodsmvt_header = l_wa_header

goodsmvt_code = l_f_code

IMPORTING

goodsmvt_headret = l_wa_headret

TABLES

goodsmvt_item = l_it_item

return = lit_bapiret2.

  • Headling error message

IF lit_bapiret2[] IS INITIAL.

BUT IT GAVE ERROR

Reason for Mvmt 0003 not supported (check your entry)

WILL HELP

MUKESH

1 REPLY 1

Former Member
0 Kudos

thanks