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: 

Reg: BAPI_GOODSMVT_CREATE not able to post properly

Former Member
0 Kudos

Dear experts,

I am trying to create a transfer posting document with movement type 301 using the function module BAPI_GOODSMVT_CREATE

every thing works fine except the WBSE, system is considering only one WBSE that is entered in field VAL_WBS_ELEM.

Please correct me if i am wrong.I did enough search in SDN couldn't find any link matching to my issue.

Test Code:.......that i am trying to do....

LV_HEAD-PSTNG_DATE = '20110627'.

LV_HEAD-DOC_DATE = '20110627'.

WA_ITEM-MATERIAL = '000000000100000247'.

WA_ITEM-PLANT = '4210'.

WA_ITEM-STGE_LOC = '1001'.

WA_ITEM-MOVE_TYPE = '301'.

WA_ITEM-SPEC_STOCK = 'Q'.

WA_ITEM-VAL_TYPE = 'NEW-IND'.

WA_ITEM-ENTRY_QNT = 1.

WA_ITEM-ENTRY_UOM = 'EA'.

WA_ITEM-ITEM_TEXT = 'test-cow'.

WA_ITEM-MVT_IND = ' '.

WA_ITEM-MOVE_MAT = '000000000100000247'.

WA_ITEM-MOVE_PLANT = '1000'.

WA_ITEM-MOVE_STLOC = '1003'.

WA_ITEM-MOVE_VAL_TYPE = 'NEW-IND'.

WA_ITEM-MOVE_BATCH = 'NEW-IND'.

WA_ITEM-WBS_ELEM = 'TS11.00505.01.01.01'.

WA_ITEM-VAL_WBS_ELEM = 'TS12.00221.01.01.01'.

APPEND WA_ITEM TO IT_ITEM.

CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

EXPORTING

GOODSMVT_HEADER = LV_HEAD

GOODSMVT_CODE = '04'

  • TESTRUN = ' '

  • GOODSMVT_REF_EWM =

IMPORTING

GOODSMVT_HEADRET = IMP_HEAD

MATERIALDOCUMENT = LV_DOC

MATDOCUMENTYEAR = LV_YEAR

TABLES

GOODSMVT_ITEM = IT_ITEM

  • GOODSMVT_SERIALNUMBER =

RETURN = IT_RET

  • GOODSMVT_SERV_PART_DATA =

  • EXTENSIONIN =

.

COMMIT WORK.

System posts the material document but from and to wbse is taken as 'TS12.00221.01.01.01' insted of from should be TS12.00221.01.01.01' and TO should be TS11.00505.01.01.01'.

Regards,

Deepak.

1 REPLY 1

Former Member
0 Kudos

How was this issue resolved?

I am facing the same error.

Please guide.