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

Goods issue using bapi BAPI_GOODSMVT_CREATE getting error E M7

Former Member
0 Likes
1,538

HI consultants,

While posting goods issue using bapi BAPI_GOODSMVT_CREATE . Running the batch job(zprogram) to post the goods issue . The goods issue is been posted by passing goods receipt data's.

while processing 3 goods receipt , 2 works fine one goods receipt getting E M 7 300 NO ITEMS ARE TRANSFERED error.

when i processing one by one all the 3 goods receipt is working fine and process sucessfully. While processing in bulk ,i am getting this issue.

If anybody faces this same problem or knows the solution .Please post the answer.

The way i am passing the parameter to bapi given bellow.

WA_GOODSMVT_CODE-GM_CODE = C_03.

*--populate header data

WA_GOODSMVT_HEADER-DOC_DATE = WA_MKPF-BLDAT.

WA_GOODSMVT_HEADER-PSTNG_DATE = WA_MKPF-BUDAT.

*--populate item data

*-- call the bapi for posting goods issue

IT_GOODSMVT_ITEM-NETWORK = WA_RESBP-AUFNR.

IT_GOODSMVT_ITEM-RESERV_NO = WA_RESBP-RSNUM.

IT_GOODSMVT_ITEM-RES_ITEM = WA_RESBP-RSPOS.

IT_GOODSMVT_ITEM-ACTIVITY = WA_RESBP-VORNR.

IT_GOODSMVT_ITEM-MOVE_TYPE = C_281.

IT_GOODSMVT_ITEM-ENTRY_QNT = WA_RESBP-NET.

*--get the item details

IT_GOODSMVT_ITEM-MATERIAL = WA_MSEG-MATNR.

IT_GOODSMVT_ITEM-PLANT = WA_MSEG-WERKS.

IT_GOODSMVT_ITEM-STGE_LOC = WA_MSEG-LGORT.

IT_GOODSMVT_ITEM-ENTRY_UOM = WA_MSEG-ERFME.

CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT'

EXPORTING

INPUT = WA_MSEG-PS_PSP_PNR

IMPORTING

OUTPUT = WA_PSPHI_TEMP.

IT_GOODSMVT_ITEM-WBS_ELEM = WA_PSPHI_TEMP.

APPEND IT_GOODSMVT_ITEM.

CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

EXPORTING

GOODSMVT_HEADER = WA_GOODSMVT_HEADER

GOODSMVT_CODE = WA_GOODSMVT_CODE

IMPORTING

MATERIALDOCUMENT = WA_MATERIALDOCUMENT

TABLES

GOODSMVT_ITEM = IT_GOODSMVT_ITEM

RETURN = IT_RETURN.

With Regards,

Ambrose Mohandoss.

1 REPLY 1
Read only

Former Member
0 Likes
559

Problem solved.