Application Development and Automation 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: 
Read only

BAPI_GOODSMVT_CREATE - Problem

Adi_Bathineni
Participant
0 Likes
897

Hi Guru's,

I'm using the BAPI ( BAPI_GOODSMVT_CREATE), to transfer the stocks between Purchase Orders.

For one Particular PO (standard) , i'm able to do the 101 and 102 movement types from the MIGO.

But when i've tried with the BAPI for 102 movement , the BAPI is giving the following error message.

M7 -021 "Deficit of PU GR quantity 1 LB : 23397301 0103 YARD".

I'm using the following parameters

Header Table

Posting Date

Document Table

Goods Movement Code - 01

Item Table

Plant

Storage Location

Movement Type

Quantity in unit of entry

Unit of Measurement

Purchase Order

Purchase Order Item

Movement Indicator.

Is there any parameter i'm missing??

if pass the parameter "XSTOB- Use Reversal Movement Type Indicator", then it is doing 101 movement type.

what could be the wrong with the BAPI parameters???

Thanks in Advance.

Thanks,

Adi.

3 REPLIES 3
Read only

Former Member
0 Likes
656

Don't you need the stock in place (101 movement) before the 102 movement? Do a 101 using your BAPI and then a 102. Also, what movement indicator are you using on the item? Are you testing this through SE37 by any chance? If so, do a test sequence with this BAPI and also BAPI_TRANSACTION_COMMIT in the test sequence.

Read only

0 Likes
656

Hi Srinivas,

We already did 101 movement for this po

The movement indicator is 'B'.

Thanks,

Adi

Read only

Adi_Bathineni
Participant
0 Likes
656

scenario is not related