Goods issue using bapi  BAPI_GOODSMVT_CREATE getting error E M7

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.

Problem solved.

Similar Messages

  • Good Issue Using BAPI WS_DELIVERY_UPDATE  but didn't create accounting doc

    Hi Gurus,
    i have some problem using BAPI WS_DELIVERY_UPDATE.
    in our company. once finance unblock delivery block at sales order then that sales order should be automatic DO/GI.
    to accomodate this request i use BAPI BAPI_OUTB_DELIVERY_CREATE_SLS to create DO and BAPI WS_DELIVERY_UPDATE to create GI from DO in one function module. this method was succesfull. +but the problem is when i am only execute  BAPI WSDELIVERY_UPDATE to create GI (GI creation failed because : stock deficit,material already lock by another process). the GI document did not create accounting document.+
    can any one help me.
    thanks in advance
    Best Regard,
    Akbar.

    Dear Mr Akbar,
    Could we kindly verify for a possible update termination?
    The terminated transaction may be re-executed to complete the transaction!!
    Regards,
    K Gopidas.

  • Unable to transfer post the document using BAPI "BAPI_GOODSMVT_CREATE"

    Hi Experts,
    I am unable to post the document using BAPI "BAPI_GOODSMVT_CREATE", getting error "_Sales order stock --- does not exist_"
    details are stated below:
    GM_CODE : 04, it is working fine for the scenario with same saleorder number and line item, but when i give same sale order number and different line item, then i am getting the above error.
    Example : Posting from Saleorder A with line item 100 to saleorder A with lineitem 100 its working fine, but when we are posting
                    from Saleorder A with lineitem 100 to saleorder A with line item 200 it is not working.
    Also When I trying to do with the transaction MB1B manually, it is working fine. kindly suggest me.
    Needed Urgently....
    Appreciate for you early response.
    Regards,
    Sathya.
    Edited by: Sathyanarayana Raghavendra on May 6, 2010 1:00 PM

    Hi,
    Hi Did you call Function BAPI_TRANSACTION_COMMIT' after calling the BAPI.    ?
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = c_x.
    Regards,
    Jovito.

  • Error while using BAPI BAPI_GOODSMVT_CREATE for Momvent type 321

    Hi Guys,
    We trying to transfer material from Inspection to Un.Stock by using momvent type 321...In SAP we do QVM1 and do stock postion.
    We are using BAPI BAPI_GOODSMVT_CREATE getting this error " E QA 495 Change the inspection stock of material 11036125 in QM only".
    Any one have any idea how to overcome this issue.
    Atul

    Hi Sachin,
    Pass the Item Number of Reservation to GOODSMVT_ITEM-RES_ITEM .
    Regards
    DKS

  • Goods Issue using BAPI_GOODSMVT_CREATE movement type 541

    Hi
        According to my requirement I need to do Post goods issue using BAPI_GOODSMVT_CREATE. But I am unable to do PGI . how to consume BOM details if batches are changed. please let me know what values I need to pass to BAPI . give with an example.
    Its an urgent requirement.

    are you passing batch number to the BAPI?
    if not try pass the batch number the rest of the things bapi will take care of.
    bi

  • Error during Goods Issue using movement type U61

    Dear All,
    There is this error with respect to goods movement type U61. It states u201C Difference in Object List header data: U61 previously /321 Newu201D
    I get this error when I am doing the Goods issue using the transaction EM10 or MB1A
    Any guidance or help is welcome
    Regards
    Balaji.J

    Hi,
    The goods issue movement type is 501, the previous movement type was also 501 only. The status of the device is in ESTO. By doing goods issue using movemenn type U61, I need to make them in to AVLB status.
    Regards
    Balaji.J

  • Post Goods issue using bapi_goodsmvt_create

    hi,
    Iam trying to do post goods issue using bapi_goodsmvt_create. please let me know what are the mandatory fields to be passed?

    hi,
    *& Report  ZRPT_SUB_KO01GOODSMOVEMENT
    REPORT  ZRPT_SUB_KO01GOODSMOVEMENT.
    PARAMETERS : P_BAG(17)  TYPE C,
                 P_ZZORG LIKE zaUFK-ZZORG,
                 P_MATNR LIKE MARA-MATNR,
                 P_WERKS LIKE AUFK-WERKS,
                 P_WERK LIKE AFPO-PWERK,
                 P_DATE LIKE MKPF-BUDAT,
                 P_LGORT LIKE GOITEM-LGOBE.
    DATA : BDC_DATA TYPE STANDARD TABLE OF BDCDATA. "internla table for bdc data
      DATA : WA_BDC_DATA TYPE BDCDATA .                "work area for bdc data
      DATA : T_XMSEG TYPE   MSEG.
      DATA : T_XMKPF TYPE MKPF.
      DATA : V_BAGS1(17) TYPE C.
    DATA : BEGIN OF WA_MB1B,
           ZZGCODE TYPE ZMIGO-ZZGCODE,
           ZZGBAGS TYPE ZMIGO-ZZGBAGS,
           WERKS TYPE AUFK-WERKS,
           LGORT TYPE VBRP-LGORT,
           ZZORG TYPE zAUFK-ZZORG,
           END OF WA_MB1B.
    DATA : V_MATERIAL TYPE BAPI2017_GM_HEAD_RET-MAT_DOC.
    data : v_date(10) type c.
    DATA : T_GOODSMVT_HEADER TYPE BAPI2017_GM_HEAD_01,
           T_GOODSMVT_CODE TYPE BAPI2017_GM_CODE,
           T_GOODSMVT_ITEM TYPE STANDARD TABLE OF BAPI2017_GM_ITEM_CREATE,
           T_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    DATA : WA_GOODSMVT_ITEM TYPE BAPI2017_GM_ITEM_CREATE.
    DATA : BEGIN OF S_MARA,
           MEINS LIKE MARA-MEINS,
           END OF S_MARA.
    DATA : MATERIALDOCUMENT TYPE BAPI2017_GM_HEAD_RET-MAT_DOC.
    *FORM GOODSMOVEMENT TABLES T_RETURN
                             USING WA_MB1B LIKE WA_MB1B.
    SELECT SINGLE  MEINS
                   FROM MARA
                   INTO S_MARA
                   WHERE MATNR = P_MATNR.
       CONCATENATE p_date6(2) p_date4(2) p_date+0(4) INTO V_DATE SEPARATED BY '.'.
        T_GOODSMVT_HEADER-PSTNG_DATE = P_DATE.
        T_GOODSMVT_HEADER-DOC_DATE = P_DATE.
        T_GOODSMVT_CODE-GM_CODE = '04'.
        WA_GOODSMVT_ITEM-MATERIAL =      P_MATNR.                    "'000000000000001556'.
        WA_GOODSMVT_ITEM-PLANT  =        P_WERK.                     " '1000'.
        WA_GOODSMVT_ITEM-STGE_LOC =      P_LGORT.                    " '0001'.
        WA_GOODSMVT_ITEM-MOVE_TYPE =     'Z42'.
        WA_GOODSMVT_ITEM-VENDOR =         P_ZZORG.                   "'0000100224'.
        WA_GOODSMVT_ITEM-ENTRY_QNT =      P_BAG.                   " '1'.
        WA_GOODSMVT_ITEM-ENTRY_UOM =     S_MARA-MEINS.
        WA_GOODSMVT_ITEM-ENTRY_UOM_ISO = S_MARA-MEINS.
        WA_GOODSMVT_ITEM-MOVE_PLANT = P_WERKS.
        APPEND WA_GOODSMVT_ITEM TO T_GOODSMVT_ITEM.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
    EXPORTING
          GOODSMVT_HEADER          = T_GOODSMVT_HEADER
          GOODSMVT_CODE            = T_GOODSMVT_CODE
    IMPORTING
        MATERIALDOCUMENT           = V_MATERIAL
    TABLES
          GOODSMVT_ITEM            = T_GOODSMVT_ITEM
    RETURN                        = T_RETURN.
    BREAK shailajaa.
               EXPORT t_return  to MEMORY ID '123'.
               EXPORT V_MATERIAL TO MEMORY ID 'MAT'.
                CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
           WAIT          = ' '.
    *ENDFORM.

  • Create goods receipt using bapi fm

    hi friends,
                  i am geetha, i having a problem like while creating the goods receipt .
       create a goods receipt without purchase order using the tcode MB1C , I NEED EXACT  BAPI function module  to create agoods receipt.
    my fields are :
                         posting date
                          goods receipt issue slip number
                          movement type
                          matnr
                          quantity
                          units of measure
                           plant
                          storage location
    can you please suggest me the bapi  fm and describe the fm
    regards
    geetha.

    follow these links
    [link1|http://abap.wikiprog.com/wiki/BAPI_GOODSMVT_CREATE]
    [link2|Re: How to use bapi 'BAPI_GOODSMVT_CREATE'  in program?;
    Regards,
    SAPient

  • Creation of GR from Contract using bapi BAPI_GOODSMVT_CREATE

    Hi,
    As per requirement I need to create a GR for Contract line item. I tried to create using BAPI  BAPI_GOODSMVT_CREATE but It returns the error message. I tried with GM_CODE  '05', so could you please let me know which are the parameters I need to pass to create GR?
    Thanks,
    Nishad Shah

    Hi,
    Populate header, code, item and return table
    In header populate  PSTNG_DATE ,DOC_DATE ,PR_UNAME(if u have additional information then pass those also)
    In Item table MOVE_TYPE ,MVT_IND ,PO_NUMBER ,MATERIAL,PLANT ,STGE_LOC ,PO_ITEM = POITEM-PO_ITEM,ENTRY_QNT .
    MVT_IND filed u can leave it as blank as GM_CODE is 05.
    Regards,
    Sajith

  • Update field LSMNG in MIGO transaction using bapi bapi_goodsmvt_create

    Hi ,
       I am using bapi bapi_goodsmvt_create  for creating goods receipt against purchase order in which I have to update field LSMNG i.e. Del. Note Qty. But this field is not there in BAPI input parameters/table fields.
    How i can update this field using the same bapi
    Thanks and regards
    Deepak Sharma

    Hi,
       Can I update this field using BAPI bapi_goodsmvt_create.
    thanks
    Deepak

  • Cancel Goods Issue using VL09

    Hi,
    My Client have created a Delivery Order along with the Transfer order, the Goods Issue has been posted. When he tried to reverse the Goods Issue using VL09, it promoted the error: GI for Delivery XXX cannot be canceled for the following reason, Document (Material Movement Document: GI) does not contain any selectable items. Can anybody please help me?
    Thanks.

    Hi,
    Make sure  your User has created the Delivery only or Invoice also for that particular order if there is invoice also exist to that particular order he has to check first the Document Flow Status and he has to cancel the invoice by using tocode vf11, he has to cancel the shipment cost if there is vi02, he has to cancel the shipment vt02n then he can do goods reversal vl09 and Delivery.
    This may help you Inshallah
    Regards,
    Mh

  • Disable print output when using bapi BAPI_GOODSMVT_CREATE

    Hello,
    I am using BAPI BAPI_GOODSMVT_CREATE to post material documents in our programs.
    I wish to prevent the print output of the documents created by the BAPI.
    Meaning - when the user post good movement using MIGO, there will be a printout of the movement, but if the movement is created using BAPI_GOODSMVT_CREATE, no output will be printed.
    I have tried sending blank values in fields VER_GR_GI_SLIP & VER_GR_GI_SLIPX in GOODSMVT_HEADER structure, but to no avail.
    Is there a way to disable printing ONLY when using the BAPI?
    Thank you very much.

    Hi,
    We cant restrict the print preview or print out of the material document. Once the condition record has maintianed for the material document, it ll applicable for all the material doc . It would be manual Gr or BAPI GR.
    In your case Print is coming automatically or user is taking the print !!
    Regards,
    Dhanush.

  • While user is posting the goods delivery. He was getting error "Field selec

    Hello
    SAP Experts
    i am getting an  error
    While user is posting the goods delivery. He was getting error "Field selection for movement type 981/account 1830200817(stock transfer account) differs for customer goods movement(015)" - Message no M7093.
    Thanks & Regards
    Narendra G

    Hi Narendra,
    Go to SE38 and run report RM07CUFA .This report gives you details as it compares FI and MM customizing ( mvmt type / acct G/L accnt no)
    Either you have to change the setting of the GL or the movement type..as per business requirement.
    This report will exactly give you which field has the conflict.
    Probable some field is required in FI and suppressed in MM or vice versa.. check it out.
    Regards,
    SAPFICO

  • Cancel goods issue using idoc DELVRY03

    Hi,
    IS it possible to cancel goods issue using inbound idoc DELVRY03.
    The field 'qualf' of the segment E1EDL43 says it's possible to do It. But when I try to do IT I have a message saying that the GI has already been performed and that I can't do anything on the delivery.
    Do someone know if It's possible or not using DELVRY03.
    And if not what is the idoc allaowing this.
    Thanks in advance

    Hi omar,
    i have your same trouble.
    Have you found anything?
    thanks in advance

  • Post Goods Issue with BAPI with reference to BOM

    Hi All,
    I want to post Goods Issue with BAPI / FM with reference to BOM.
    The requirement is like to replicate what we can do with MB1A with reference to BOM with BAPI / FM.
    Please give ur suggestions.
    Thanks in advance.
    Chintan.

    https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_forums_rm&query=kanban&adv=false&sortby=cm_rnd_rankvalue&sortmode=true&searchmode=similar&similardocsuri=/forumsrm/1_category/42_category/50_forum/34196_thread/322837_message

Maybe you are looking for

  • Hiding buttons in the standard web template based on roles

    Hi, In the standard web template, the requirement is to hide few buttons based on the authorization. Can this be achieved by assigning the roles? If not what is the work around? Regards Narayana

  • How to build Project Budget report with "IF-then" formula?

    HI I have user requirement to create this report: Controlling Area Currency CAC Object Currency (OC) Amount to be returned calculation Amount to be used for Budget Return Budget (CAC) Actual (CAC) Remaining Budget (CAC) Budget (OC) Actual (OC) Remain

  • Need Mapping Help: Generate index if value comes

    Hi Experts, I need mapping help to generate index if value comes form source. we have 4 fields in item level of source and target side we have to pass the these filed values and sequence number. below given the structures: Source:              Target

  • N200 hangs during trans

    I'm having problems with my N200 hanging during transfer. It appears as if it's doing a cache write. I've updated to the lastest drivers but when I display properties it seems to be using a Microsoft driver. I've switched USB ports at least once with

  • Question regarding PO approve

    Hi Guru: Does anybody know which transaction to check how much amount(maximum) the approver can approve the purchase organization?