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

Error in BAPI_GOODSMVT_CREATE

Former Member
0 Likes
2,181

Hi everyone

I'm using bapi BAPI_GOODSMVT_CREATE to make the movements 332 & 321 (Unrestricted to QI & QI to Unrestricted), and now i need to use the movements 551 & 553, but when i test bapi in SE37, the test show me in the return table this: "Goods movement not possible with mvmt type 551" or "Goods movement not possible with mvmt type 553". I put the same field that i have in MB1A. Can anyone help how can i use the bapi with this movements.

Thanks & Regards

David

1 ACCEPTED SOLUTION
Read only

venkata_ramisetti
Active Contributor
0 Likes
1,482

Hi David,

What GM_CODE you passed to the function module BAPI_GOODSMVT_CREATE?

Movement types 551 & 553 refers to GI Scrapping.

So I think you have to pass GM_CODE = '03'.

L_GOODSMVT_CODE-GM_CODE = '03'.

CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

EXPORTING

GOODSMVT_HEADER = xxxx

GOODSMVT_CODE = L_GOODSMVT_CODE

IMPORTING

GOODSMVT_HEADRET = xxxx

TABLES

GOODSMVT_ITEM = xxx

RETURN = xxx.

Thanks,

ramakrishna

5 REPLIES 5
Read only

venkata_ramisetti
Active Contributor
0 Likes
1,483

Hi David,

What GM_CODE you passed to the function module BAPI_GOODSMVT_CREATE?

Movement types 551 & 553 refers to GI Scrapping.

So I think you have to pass GM_CODE = '03'.

L_GOODSMVT_CODE-GM_CODE = '03'.

CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

EXPORTING

GOODSMVT_HEADER = xxxx

GOODSMVT_CODE = L_GOODSMVT_CODE

IMPORTING

GOODSMVT_HEADRET = xxxx

TABLES

GOODSMVT_ITEM = xxx

RETURN = xxx.

Thanks,

ramakrishna

Read only

0 Likes
1,482

If that doesn't work try 06

GM_CODE = '06'.

Regards,

Rich Heilman

Read only

0 Likes
1,482

Thanks ramakrishna & Rich the GM_CODE = '03'.

Where can i find every GM_CODE and its description?

Thanks & Regards

David

Read only

0 Likes
1,482
* <b>GMCODE Table T158G</b> - 01 - MB01 - Goods Receipts for Purchase Order
*                      02 - MB31 - Goods Receipts for Prod Order
*                      03 - MB1A - Goods Issue
*                      04 - MB1B - Transfer Posting
*                      05 - MB1C - Enter Other Goods Receipt
*                      06 - MB11

Regards,

Rich Heilman

Read only

0 Likes
1,482

Thanks Rich

Regards

David