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 Receipt by Inbound Delivery - BAPI_GOODS_MVT

Former Member
0 Kudos

Hi All,

I try to use BAPI_GOODS_MVT bapi to move goods by inbound delivery number. According to MIGO transaction, I send all necessary fields to bapi. But somehow I get error. However I know it is possible to make goods movement manually with MIGO transaction with following parameters, but when it comes to terms using bapi, i get error:

pstng_date

gm " 01

plant

move_type " 101

entry_qnt

po_number

po_item

mvt_ind " B

deliv_numb

deliv_item

Error :

Delivery quantity exceeded by XX PC : XXXXX 0001 0001

Am I missing something?

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

Check the stock in MARD

i think there is no stock in storage location

XXXXX 0001 0001 __Storage location
|      |___Plant
|____Material

Check MARD-LABST value, you can post less than or equal to the qty what ever there. you can't post more than that.

check it once.

5 REPLIES 5

Former Member
0 Kudos

This is not coding error,

Check inboud delivery qty (e.g. Inbound D/o qty 5 and MIGO qty 8).

I think MIGO qty is exceeding than the inbound delivery qty.

Or there is mismatch in Plant / storage location.

Thanks

Ganesh

former_member188685
Active Contributor
0 Kudos

Check the stock in MARD

i think there is no stock in storage location

XXXXX 0001 0001 __Storage location
|      |___Plant
|____Material

Check MARD-LABST value, you can post less than or equal to the qty what ever there. you can't post more than that.

check it once.

0 Kudos

Actually I have enough stock in storage location. That's why I'm confused. I think I'm missing something, some parameter maybe.

0 Kudos

Finally I found out the solution.

For those who try to move goods over Inbound Delivery number, you have to use these fields:


gmcode-gm_code  = '01'. 

itab-mvt_ind              = 'B'.  
itab-entry_qnt            = AMOUNT.
itab-move_type            = '101'.
itab-stck_type            = temp_insmk.
itab-DELIV_NUMB_TO_SEARCH = deliv_numb.
itab-DELIV_ITEM_TO_SEARCH = deliv_item.

There's also fields named DELIV_NUMB and DELIV_ITEM. They don't work. I don't know why are they standing there.

0 Kudos

Hi,

I want to craete a Goods movement Inbound delivery by Function module with delivery type as "DIG".

my warehouse is centralised. When I am using MB1B Tcode for de centralised warehouse i am getting Inbound delivery document. How to craete a Goods move ment delivery doc by using FM for centralised ware house.

Thanks in advance.

sharma