‎2006 Oct 26 6:31 PM
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
‎2006 Oct 26 6:40 PM
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
‎2006 Oct 26 6:40 PM
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
‎2006 Oct 26 6:48 PM
‎2006 Oct 26 7:41 PM
Thanks ramakrishna & Rich the GM_CODE = '03'.
Where can i find every GM_CODE and its description?
Thanks & Regards
David
‎2006 Oct 26 7:45 PM
‎2006 Oct 26 7:47 PM