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 using BAPI_GOODSMVT_CREATE

Former Member
13,616

Hai,

Requirement:

I have to isuue goods to a subcontractor with movement type '541' with refercence to purchase order.

Problem:

So i used Goods movement code '01' and i mentioned only purchase order & item & movement indicator 'B'and quantity.I am getting the following error

"Goods movement not possible with mvmt type 541"

How to solve this.

Thanks for your replies in advance,

Regards,

Umasankar

1 ACCEPTED SOLUTION

Former Member
0 Kudos
2,231

Hi !

I think I got your problem now...

The button "To purchse order" is only a selection "help" that makes the selection of the items of the PO easier.

That won't work in the BAPI.

You'll have to select the items per program from the EKKO-EKPO tables and fill the material-data of the items you'd like to post in the bapi into the "ITEMS" tables of the BAPI.

Besides move-type 101 ther's no selection-feature by giving it a PO number...

Hope that helps you now...

10 REPLIES 10

Former Member
0 Kudos
2,231

Hi !

Try the GM-Code 06 ... It's assigned to the MB11 and should work.

Regards

Rainer

Some points would be nice if that helped...

Former Member
0 Kudos
2,231

Hai Rainer,

Thanks for your immediate reply.

If i use Goods movement code 06, Its giving the following error "No goods receipt possible for purchase order".

i HAVE TO ISUUE TO GOODS IMILAR TO TRANSACTION 'mb1b'.

REGARDS,

UMASANKAR

Former Member
0 Kudos
2,231

check Richs code in this link

Former Member
2,231

1.first try to place manual entry then check thru BAPI.

2.Check the Gm_code which are taking

1. GM_Code 01: Goods receipt for purchase order
2. GM_Code 02: Goods receipt for production order
3. GM_Code 03: Goods issue
4. GM_Code 04: Transfer posting
5. GM_Code 05: Other goods receipts
6. GM_Code 06: Reversal of goods movements
7. GM_Code 07: Subsequent adjustment to a subcontract order

Regards

Prabhu

Former Member
0 Kudos
2,231

Hi !

The code 06 is the right one - im pretty sure...

MB1B and MB11 are functually similar but the MB11 can handle ALL movement-types >= 201.

541 does usually not have a reference to purchase orders.

So in standard the fields may be not allowd.

So you can do two things:

Check the 541 in dialog MB11.

If the fields are missing there you should go to the customizng of the movement-typs and "open" the field for purchase-order there.

Then try MB11 again...

If it's working there then the BAPI will work to...

Regards

Rainer

Former Member
0 Kudos
2,231

Hai,

I tried to create manually in bothe the transaction 'MB1B' & 'MB11' its succesfully creationg the document.

But in BAPI i am not able to create.

Regards,

Umasankar

0 Kudos
2,231

Hi !

Can you descirbe the steps and fields you're filling in the MB11 ?!?

Besides that... I've just had a closer look to your error-message...

Are you shure that GRs are allowed in your purchase order ?!?

If the error-message is correct - the purchase order does not allow GRs...

Regards

Rainer

Former Member
0 Kudos
2,231

Ha,

1. Movement type = 541

2. To purchase order : order number & item number

3. I saved it asked for storage location

4. I gave storage location & saved it.

5. Document is created.

The above are the steps i used 'MB11'.

I am not able to understand why the same thing is not working with BAPI.

Regards,

Umasankar

Former Member
0 Kudos
2,231

Hai,

It is allowed for the purchase order i am using because I used the same purchase order while creating manually.

It created successfully.

Regards,

Umasankar

Former Member
0 Kudos
2,232

Hi !

I think I got your problem now...

The button "To purchse order" is only a selection "help" that makes the selection of the items of the PO easier.

That won't work in the BAPI.

You'll have to select the items per program from the EKKO-EKPO tables and fill the material-data of the items you'd like to post in the bapi into the "ITEMS" tables of the BAPI.

Besides move-type 101 ther's no selection-feature by giving it a PO number...

Hope that helps you now...