Deficit of Stck w.vend.unr.prev : Goods issue using BAPI_GOODSMVT_CREATE' subcontracting PO

Hi Experts,
I am facing one issue while doing Goods Issue for sub contracting PO . In my case, inbound idoc will trigger the BAPI 'BAPI_GOODSMVT_CREATE' with movement code '07'  and movement type as 543.
But it throws the error Deficit of Stck w.vend.unr.prev 438.793 THD : U329557 0113 VARIOUS O. U329557 is the child material of finished material 0003121XAZ. When i checked in MMBE, for the given material/storageloc/batch it has sufficient quantity.
I debugged the whole scenerio and found that from one table T156F in FM 'MB_MODIFY_STOCK_ENQUEUE_ENTRY', the value <m> is ASSIGNED from (t156f-felds) with value 1126.190. Later it subtract the value, provided in structure GOODS_ITEMS of BAPI BAPI_GOODSMVT_CREATE with quantity 1564.983 which is to be Goods issued from vendor. 
1564.983 - 1126.190 = 438.793 .
Please help me why i am getting this Deficit error even when quantity is present for child material.
Thanks
Shahab

Hi Experts,
Please help me in this issue.

Similar Messages

  • 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

  • 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.

  • Backdate Posting of Goods Issue using standard BADI

    Hi Experts!
    The standard BADI we are using creates an STO then a Delivery and Goods Issue via a userexit. We have a requirement to backdate the posting dates and have a concern of deficit stock levels at the point of Goods Issue. How do we control this?

    Hi,
    Instead of updating entire data of deliveries and PGI once, you can manually update the stock for a specific period and then update the Deliveries and PGI in the system.
    Or update entire stock at once till date and only then update the Deliveries and PGI in the system.
    Hope this helps.
    Regards,
    Sharan

  • 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

  • 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

  • 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.

  • 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

  • Problem in Goods Issue using BAPI_PRODORDCONF_CREATE_TT

    Hi All,
    This is regarding goods issue in a production order.We are trying to do this using BAPI_PRODORDCONF_CREATE_TT.
    We have a finished good say FK_PROD_ORD_CONV(with BOM -FKTESTOUT2).we need to do a Goods Issue for this which implies that at reporting point 0001,we need to issue x quantities of BOM  FKTESTOUT2 from a particular plant and storage location, and of a particular batch. Therefore, we need to pass the following:
    Production order number
    Plant
    Material (BOM) = FKTESTOUT2
    Movement indicator (which is u2018Fu2019 for goods movement) = u2018Fu2019.
    Movement type = 261(for Goods Issue)
    Storage location of BOM
    Batch
    Operation (Routing point) = 0001
    Entry quantity
    Entry Unit of measure = PC.
    In addition, we need to maintain entries in Link_conf_goodsmov-INDEX_CONFIRM and link_conf_goodsmov-INDEX_GOODSMOV. The value for both would be u20181u2019.
    In the Test program, although I am passing all these values, Goods Issue is not happening. I am not getting any error.The message just says that the production order has been confirmed but when i check for goods Issue,no corresponding data is there.
    Please let me know if I have missed something.

    Hello.
    Are you calling FM BAPI_TRANSACTION_COMMIT afterwards? If yes, check the content of structure RETURN.
    Regards.
    Valter Oliveira.

  • How to change the g/l a/c being used while doing goods issue using migo

    when I pass a migo entry whilie purchasing material
         , the entry goes through stock
         stock (230000 a/c no)    150        dr
          GR/IR (150000 a/c)      150        cr
    when I issue material after reservation for which again migo is done
        entry is
          repairs to plant and mach (4800569 a/c)   175
                    stock (230000 a/c no)           175
    The stock a/c is debited and credited due to t.code obyc where for inventory posting I have assigned a/c 2300000 for valuation class assigned to material.
    now I want to have a/c no  4800689 in place of 4800569. how can i change that.
    that is when I issue material from stock this should be debited to 4800689 instead of 4800569. please provide t.code to change the gl from 4800689 from 4800569
    full points will be awarded

    continuing my issue is it possible to that we donot have to change the gbb and vbr and still we can have the desired results.
    that is we are able to use different gl for debit while doing goods issue from a single stocked material
    or we want to have this result
    1.          repairs to p&m    1000    dr
                         stock of cement  a/c           1000    cr
    2.          repairs  to building    2000   dr
                          stock of cement  a/c            2000   cr.
    3.             construction     3500     dr
                                 stock  of cement     3500     cr
    we donot want to change the GBB and VBR every time    or change the GL a/c while doing reservation.
    is there any third option where we get the desired result without changing or entering the g/l manually
    if there is please let me know the t.codes

  • Error while reversing goods issue using VL09

    Hi All ,
      user is getting the error " 4902546971document does not contain any selectable items "  when reverse the GI using  VL09.
    Please find the below document flow.
    Free of Charge 70475917 / 10
    . Purchase order 9900099037 / 10
    . Delivery Standard 80721176 / 10
    .. Shipment 199662 / 1
    .. WMS transfer order 12862453 / 1
    .. Pro Forma Invoice 90070497 / 10
    .. GD goods issue:delvy 4902546971 / 1
    Regards,
    Amar

    Hi,
    Try to reverse the gods issue, with VL09, for document "Delivery Standard" with number 80721176
    Free of Charge 70475917 / 10
    . Purchase order 9900099037 / 10
    . Delivery Standard 80721176 / 10
    .. Shipment 199662 / 1
    .. WMS transfer order 12862453 / 1
    .. Pro Forma Invoice 90070497 / 10
    .. GD goods issue:delvy 4902546971 / 1
    Regards,
    Amar

  • Posting goods issue using Message type SHPCON and idoc type DELVRY03

    Hi SAP Gurus,
    I am using message type SHPCON and idoc type DELVRY01 with processing code DELV to post goods issue for a delivery note.
    I tried to simulate the inbound entry via WE19. The scenario should be posting goods issue based on the delivery order.
    In some cases, quantity issued is less than the quantity in the DO. For this, I need to change the delv quantity in the DO via VL02N before I select Post goods issue button. This will change at the same time post the goods issue.
    What I have filled up are the fields:
    E1EDL20-VBELN = DO num
    E1EDL20-VSTEL = Plant
    E1EDL18-QUALF = "PGI"
    E1EDTH13-QUALF = "006"
    E1EDTH13-NTANF = date today
    E1EDL24-POSNR = 000010
    E1EDL24-MATNR = material num
    E1EDL24-WERKS = delv plant
    E1EDL24-LGORT = sloc
    E1EDL24-LFIMG = updated quantity
    But everytime I simulate using WE19, the entire quantity in the DO is not changed at all. The goods issue quantity posted is still the original DO quantity.
    May I know how to do this? Thanks.

    Put value in E1EDL24-LGMNG for qty to pgi.

  • Goods Issue using VT02N transaction

    HI Friends,
    I am doing shipment completion and when i press save button in VT02N transaction, Goods Issue is done for the delivery document. But when i try to reverse the Goods Issue and try to do Goods Issue again using VT02N tran (doing shipment completion & press save button), its not doing Goods Issue.
    wt should i do to make goods issue happen using VT02N even after the reversal?
    Thanks & Regards,
    Sasi

    Problem solved.

  • How to create post goods issue using sapgui.

    hi,
    can u pls tell how to create pgi for delivery .pls tell  spep by step procedure
    regards
    Guru

    Hi,
    Goto VL02N -> give the delivery number..Then press enter..
    In the resulting screen..There will be a button for called "Post goods issue"..Then press that..The goods issue will be posted automatically..
    Thanks,
    Naren

  • Cancel goods issue using Idocs

    Hi,
    I'm trying to cancel a goods issue on delivery using idocs. I would like to use either WMMBID02(Message type WMMBXY) or DELIVERY03(message type SHPCON).
    Is it possible or not?
    If not, which idoc do I have to use for this
    Thanks

    Hi Omar,
    Welcome to SDN.
    Please try to use this IDoc type MBGMCA01 with message type MBGMCA and process code BAPI.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

Maybe you are looking for

  • Html Xmas animations for iweb

    Please does anyone know of a site where I can get html code to paste into the html snippet (web widget) which will give me flashing Christmas lights or Seasons Greeting. I wish to add some festive cheer to a homepage. Any suggestions?

  • Why did my macbook say it has to shut down?

    I left my macbook plugged in, downloading the latest CBC podcasts and when I return, there was an error message on the screen saying that the machine needed to shut down.  Fine.  I shut it down, but when I hit the power button to start up again, I he

  • Production Order Component Overview (SAPLCOMK - screen 120)

    PP Experts, Have a requirement to add column to the component overview screen within production order create, change and display (CO01,CO02 & CO03).  In particular the column is the material master field - old material number (MARA-BISMT). Any sugges

  • Can i give color ot check box in forms 6i

    HI is it possible to change the color of check box in forms 6i..?? i want to change the color of inner part of square of check box.. is it possible?? pls reply me asap .

  • Bleutooth 3.0 connectivity problems

    I use my new HP pavillion dv6 with ralink integrated BT 3.0 module, using the latest ms stack as noted down. Im able to pair and connect my Nokia E66 through the windows BT program, but not able to connect it through the Nokia PC Suite (code: open me