Pending Goods receipt against SubContracting PO

Hi,
I have a scenario where I issue the component goods for subcontacting to a vendor & create a Subcon PO.
Now I receipt the Finished goods against this PO through 101 movement type.
There is some component material is pending with vendor & needs to get back from him.
I want to take back this material against that Subcon PO only. Is this possible in SAP and also I want that pending return material should show against that Subcon PO only so that I can check in future also that this material was returned from that vendor.
Regards,
Hitesh Agrawal

Bit confusing, but try to understand the below explanation
solution 1:
You have issued material with 541
You will now have to reverse the extra quantity with 542 wrt to the same PO
Later you have to edit the PO and reduce the quantity accordingly.
Solution 2:
Here there is a small trap
if you had material A of 3 components a,b,c
and A= 2*a+3*b+4*c
That is you need 2,3,4 quantity of a,b,c resp to make one A
You have accordingly made the BOM
Now, if the vendor mentioned that he had made A with just 2 quantity of each  and you have to bring back the remaining b and c, you shouldnt directly do the 542
Reverse everything,
first reverse 101
then reverse the complete GI (541)
Then edit the components in the BOM of the PO
and then go ahead with the process again
the reason why you need to do this is becuase the system calculates the stock consumption on the vendors end (543) based on the BOM in the PO. Thus if you have GRed 101 completely, the entire materials at the vendor stock is consumed. Thus during reversal of GI (542) you will get the error.
The first solution is valid only if you have not recieved all quantity and intend to reduce the quantity of PO too
the second solution is valid in case you want to keep PO quantity same but bring back materials.
Regards

Similar Messages

  • Goods receipt against Subcontracting PO(101 movement)

    Dear ABAPer,
    I want to develop the new Enhancement :Goods receipts against subcontracting PO with challan(movement type: 101) using Function module BAPI_GOODSMVT_CREATE.
    please give details example using the same.
    Already i was testing  in standalone mode with whatever required input have been given using that function module. but i was getting error .
    please give solution.
    Advance thanks.
    with best regards,
    Velmurugan.S

    Hi ,
    Check this Code.
            MOVE x_purchaseorder TO goods_mvt_tab-ebeln.
            MOVE eban-bnfpo      TO goods_mvt_tab-ebelp.
            MOVE up_tab-feld_12  TO goods_mvt_tab-menge.
            MOVE eban-werks      TO goods_mvt_tab-werks.
            MOVE eban-lgort      TO goods_mvt_tab-lgort.
            APPEND goods_mvt_tab.
      LOOP AT goods_mvt_tab.
        CLEAR   : y_goodsmvt_header, y_return, y_goodsmvt_item, y_return.
        REFRESH : y_return, y_goodsmvt_item, y_return, z_return.
        MOVE sy-datum            TO y_goodsmvt_header-pstng_date.
        MOVE goods_mvt_tab-ebeln TO y_goodsmvt_item-po_number.
        MOVE goods_mvt_tab-ebelp TO y_goodsmvt_item-po_item.
        MOVE '101'               TO y_goodsmvt_item-move_type.  "movement type 101
        MOVE 'B'                 TO y_goodsmvt_item-mvt_ind.
        MOVE goods_mvt_tab-menge TO y_goodsmvt_item-entry_qnt.
        MOVE 'PC'               TO y_goodsmvt_item-entry_uom_iso.
        MOVE goods_mvt_tab-werks TO y_goodsmvt_item-plant.
        MOVE goods_mvt_tab-lgort TO y_goodsmvt_item-stge_loc.
    * ECC6 Upgrade Begin of Change Z01K969512 #1
      DATA: ls_movement_code LIKE bapi2017_gm_code.
        ls_movement_code-gm_code = '01'.
    * ECC6 Upgrade End of Change Z01K969512 #1
        CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
          EXPORTING
            goodsmvt_header             = y_goodsmvt_header
            goodsmvt_code               = ls_movement_code
            testrun                     = y_testrun
          IMPORTING
            materialdocument            = y_materialdocument
          TABLES
            goodsmvt_item               = y_goodsmvt_item
            return                      = y_return.
        LOOP AT y_return.
          WRITE : /
          y_return-type,
          y_return-id,
          y_return-number,
          y_return-message(100).
          ENDIF.
    endloop.
    Regards,
    Sachin M M
    Edited by: Sachin Mathapati on Jun 17, 2009 3:32 PM

  • Automatic posting of invoice(miro) against pending Good Receipt of Goods

    Hi Gurus,
    We had pending Migos(good receipts)against which bill(miro) has to be done. Is there any Transaction code where we can book the bills(miro) on mass scale against pending gir.
    Reargds
    Rajesh K

    hi,
    You can check tcode MIRA...you make IR in the background...
    (If possible in your case, if settings are maintained, then can also do via ERS)...
    Regards
    Priyanka.P

  • Error in creation of purchase materials/Goods receipt against PO(FI-MM)

    Hi All,
    While processing FI - MM integration iam facing below errors,request to guide me with same
    1) While creation of purchase materials
    Valuation class 7920 not allowed for material type Raw material Message no. M3180
    Diagnosis
    The combination of values you have entered is not defined in the system.
    Procedure
    Check your entries, and choose a valid value or combination of values with F4.
    I have crossed checked in t code OMSK valuation class 7920 exists.
    2) Goods receipt against PO:
    Number range for trans./event type WE in year 2014 does not exist Message no. M7562
    Diagnosis
    The number range for document number assignment has not been maintained in the year 2014 for the transaction/event type WE.
    Procedure
    Contact your system administrator.
    in second case i have maintained number ranges in OBA7,OMBT,still iam facing with the same issue
    Regards
    Santosh

    Hi Dev,
    Thanks for your reply...yea i have done the ground work before posting this query
    but bitt confused with the post i have come across..
    Problem was occurring due to the wrong updating of raw material instead of finished goods in  MM01 (CREATION OF PURCHASE MM)
    however i have over come my 2nd issue,hopefull will over come my 1st issue also
    Thanks a lot
    Santosh 

  • MIGO - Goods Receipt against Purchase order. PO rate dispaly.

    Is it possible to display purchase order line item rate in MIGO - Goods Receipt against purchase order - Quantity tab.
    In Quantity tab - System is showing Qty in Unit of Entry, Qty in SKU, Qty in Delivery Note, Quantity Ordered, alongwith these fields we also want display of Purchase order rate/each of that line item.
    Please guide.

    BTW you are getting PO number at MIGO and clicking over that you will get entire PO then why you want PO rate display here??

  • Control on creation of inspection lot during goods receipt against process

    Dear Friends,
    When goods receipt against process order  of say quantity 100 Kg is done in PP, inspection lot for the same of origin 04 is created in QM.
    My requirement is that PP should be able to post 90 Kg in quality inspection and remaining 10 Kg should directly go to
    reserve sample without coming in Quality.
    Is it possible?
    I have tried by changing material master record in MM02 for inspection set up data. But it is not serving the purpose.
    Thanks in advance,
    Regards
    Vrish

    Hi,
    04 type of inspection is GR at the time of Production Order.
    Whenever you do the production order quantity, an inspection lot is created. It will be created for full quantity which you are confirming (i.e. 100 kg will be considered and not 90 kg).
    This material will be Quality Inspection.
    You have to do Result recording and give usage decision.
    While giving usage decision, you can allot 90 kgs to Unrestricted and 10 kgs can go as Sample what you desire.
    Hope this will solve your issue.
    Srini

  • Automated statistical goods receipt against inbound delivery

    Hi,
    We have set up a process that we get a DELVRY03/DESADV Idoc from our vendor to confirm the delivery to our customer. This DESADV Idc will create an inbound delivery and a statistical goods receipt will be posted.
    Now we have a new requirement, the vendor material has a serial number assigned. We get the serial number in segment E1EDL11 and it will be copied into the inbound delivery, unfortunately the statistical goods receipt will use transaction MB01 and it will post the statistical goods receipt against the purchase order details which did not contain the any serial number information.
    Is there any way to set up the automated goods receipt against the inbound delivery and not against the PO?
    Thank you,
    Frank

    Hi,
    Anybody out there who knows how to enable an automated goods receipt against an inbound delivery?
    Thank you,
    Frank

  • Rounding while goods receipt against outbound delivery

    Hi Experts,
    I have an issue regarding alternative unit of measure.
    Material with base unit of measure FT,ordered unit is Meters since the alternate unit of measure has conversion factor getting decimal places while goods receipt against outbound delevry.
    Is it possible to round off to nearest figure without decimals.At what level means PO,delivery,GR how we can round off.please advice with customization.
    Thank you very much for your help.
    Regards,
    Babu
    9930154536

    it is not possible to rounding of stock while  GR through customizaton settings.
    abap development is required to round off the stock.

  • Goods receipt against outbound delivery

    Hello,
    Can we create a goods receipt against an outbound delivery document?
    The transaction MIGO provides an option but for some reason I am not able to create.
    The scenario is the following  :
    Lets say there are two DCs DC1 and DC2  : both belong to different company codes.
    - Outbound delivery created by DC1,then post goods issue
    - Goods receipt to be done against the above outbound delivery.
    Is it possible?
    (I do not want to create a PO for this.)
    Regards,
    Lisa

    Hi Prabhu,
    I have been trying to post goods receipt against outbound delivery but here is the error I have been getting :
    "Goods receipt not possible for delivery 80000059: error code 4".
    Is there any specific reason for this?
    Here is the process I have follwed :
    -Created outbound deliveries via allocation
    -Picking
    -Post Goods Issue
    - Migo - Goods Receipt.
    Regards,
    Lisa

  • Problem for Goods Receipt for Subcontracting Purchase Order

    Dear all,
    Presently, we are using SAP version 4.6C and we need to introduce GR for
    Subcontracting Purchase Order. We have developed a ABAP program to handle
    subcon Goods Receipt by uploading flat-files from our subcontractor. The
    scenario is as follows :
    Goods Receipt for Subcontracting Purchase Order
    1. In the ABAP program, function BAPI_GOODSMVT_CREATE will be used for goods
    movement.
    2. Data provided to the function are as follows :
    - Posting date
    - Document date
    - Material number
    - Plant
    - Storage location
    - Batch
    - Movement type (101)
    - Quantity
    - Purchase order number
    - Purchase order item
    - Movement indicator (B - Goods receipt for purchase order)
    3. The function will do data verification and automatically determine GI
    item for subcon stock:
    - Movement type (543)
    - Special stock (O - parts prov. vendor)
    - Material
    - Quantity
    - Plant
    Our problem is that :
    Only the GR item in the interface is to be transferred and the GI item is
    determined by the system. So, the quantity for subcon stock cannot be
    changed using this BAPI. Then the system will continue processing the goods
    receipt and create material document.
    Manually, by using transaction code MIGO, the user can display the subcon
    stock data and then change the quantity.
    By using transaction code MB01, after the user fills in all the GR fields,
    the system comes to line item 002 (subcon stock data) and then quantity can
    be changed.
    As per user requirement, quantity for GI item must be same with the quantity
    that has been transferred to subcon vendor in Delivery for Subcon
    (transaction code VL02N).
    We cannot achieve this requirement by using the BAPI mentioned above. Would
    appreciate any valuable help from anyone who is able to help us on this
    matter. Are there any other BAPI's that can help us to achieve the same
    result ?
    Thank you in advance and best regards.

    As far as i understood the problem I suggest u to create the
    BDC according to user actions that are performed in he manual
    operation.
    I can't say that the BAPI performs the exac solution what you want.
    I have done some BDC work using MB01 and suggest you to be careful
    and try to keep the complete in the logic as some chages in rows in BDC will
    change the complete scenario.And throw correct quantity val in correct
    material
    row.
    This methodology will help u even in mass uploads.
    Or in case of automation u can perform the call transaction BDC in
    background mode.
    so As per my understanding bdc program is the solution. pls try and let me
    know.

  • Idoc Type for Goods Receipt against a PO

    Hi ,
    The Goods Recept is already done in my legacy system, So my interface updates the goods receipt in SAP based on goods receipt done in Legacy system.
    I receive following data:
    Plant
    Purchase Order Number
    Line Item
    Pack List Number
    Material Number
    Quantity
    Storage Location
    GM_CODE = '01'
    MVT_IND Movement indicator = 'B'
    So I want which Standard Idoc Type I can use for this.
    I reffered to Note 833603.
    In that
    1. WMMBXY (WMMBID01, WMMBID02) and
    2. MBGMCR (MBGMCR01, MBGMCR02) is mentioned.
    Which one I should Use, as this GR is done again PO so its mandatory for me to pass Purchase Order Number and line item.
    Plz guide me which IDOC type i shd choose.

    Hi,
    Use the message type WMMBXY, IDOC Type as WMMBID02 and the function module is L_IDOC_INPUT_WMMBXY (Process Code WMMB) to process the Goods Receipt against a PO.
    I have successfully used that in many projects till now.
    Please let me know if you have any queries.
    Thansk,
    Mahesh.

  • I/B EDI IDoC for Service Ent Sheet & Goods Receipt against PO SAP ECC 6.04

    Hi EDI Experts ,
    We Have ECC 6.04. We are planning to have  inbound  EDI IDoC for Goods Receipt against PO & Service Ent Sheet .
    1.For Goods Receipt against PO  I have identified below Message type:
    MBGMCR / MBGMCR03 - Used in SRM Confirmation IDOC from SRM & SUS
    WMMBXY/  WMMBID02- Messages Types - I remember used in last Project
    Can anyone please suggest/confirm me , exactly which is most used and most suitable ?
    2. For Service Ent Sheet  inbound posting I unable to find any IDoC and never heard same.
    ( I learnet that from SUS Service entry posted in ECC by eSOA with PI ( XML).... or in other cases it may created using some BAPi)
    What is exact fact ?  Is there  Service entry sheet can not pe posted by IDOC ?  If yes, how ? if now, what is the best options ?
    Thanks in advance.
    Regards
    NAP

    Hi ,
    In MM-SUS deployment,
    Until SRM 7.0 with ECC 6.04,  Service procurement using MM-SRV & SAP SUS, was not  provided. But,  as of “SRM 7.0, only in combination with ECC 6.04 ”,  SAP standardized the “Service Procurement” scenario along with Material Procurement  for MM-SUS deployment  and  so fully supported for Material & Services .
    Please refer the Note 868192 & 1269540 and Technical scenario matrix ( criterion 18) document for details.
    So for there is Enterprise Services ( eSOA) and not IDOC. Please see below messages for Services.
    Create Purchase Order
    PurchaseOrderERPRequest_Out_V
    Outbound
    Change Purchase Order
    PurchaseOrderERPRequest_Out_V1
    Outbound
    Receives Service Entry Sheet
    ServiceAcknowledgementERPCreateRequest_In
    Inbound
    Approve Service Entry Sheet-> Send Approval Note
    ServiceAcknowledgementERPConfirmation_Out
    Outbound

  • Goods receipt for subcontracting order! BAPI_GOODSMVT_CREATE

    I wanna use BAPI "BAPI_GOODSMVT_CREATE"  to create goods receipt for subcontracting order.
    But it says that this combination is not possible.  Combination of my movement type and this BAPI.
    What can i do to solve it?
    thanks in advance.

    >
    Julia Nikiforva wrote:
    > I wanna use BAPI "BAPI_GOODSMVT_CREATE"  to create goods receipt for subcontracting order.
    > But it says that this combination is not possible.  Combination of my movement type and this BAPI.
    >
    > What can i do to solve it?
    >
    > thanks in advance.
    Might work
    report zbapi_goodsmovement.
    parameters: p-file like rlgrap-filename default
    'c:\sapdata\TEST.txt'.
    parameters: e-file like rlgrap-filename default
    'c:\sapdata\gdsmvterror.txt'.
    parameters: xpost like sy-datum default sy-datum.
    data: begin of gmhead.
    include structure bapi2017_gm_head_01.
    data: end of gmhead.
    data: begin of gmcode.
    include structure bapi2017_gm_code.
    data: end of gmcode.
    data: begin of mthead.
    include structure bapi2017_gm_head_ret.
    data: end of mthead.
    data: begin of itab occurs 100.
    include structure bapi2017_gm_item_create.
    data: end of itab.
    data: begin of errmsg occurs 10.
    include structure bapiret2.
    data: end of errmsg.
    data: wmenge like iseg-menge,
    errflag.
    data: begin of pcitab occurs 100,
    ext_doc(10), "External Document Number
    mvt_type(3), "Movement Type
    doc_date(8), "Document Date
    post_date(8), "Posting Date
    plant(4), "Plant
    material(18), "Material Number
    qty(13), "Quantity
    recv_loc(4), "Receiving Location
    issue_loc(4), "Issuing Location
    pur_doc(10), "Purchase Document No
    po_item(3), "Purchase Document Item No
    del_no(10), "Delivery Purchase Order Number
    del_item(3), "Delivery Item
    prod_doc(10), "Production Document No
    scrap_reason(10), "Scrap Reason
    upd_sta(1), "Update Status
    end of pcitab.
    call function 'WS_UPLOAD'
    exporting
    filename = p-file
    filetype = 'DAT'
    IMPORTING
    FILELENGTH =
    tables
    data_tab = pcitab
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_READ_ERROR = 2
    NO_BATCH = 3
    GUI_REFUSE_FILETRANSFER = 4
    INVALID_TYPE = 5
    OTHERS = 6
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    exit.
    endif.
    gmhead-pstng_date = sy-datum.
    gmhead-doc_date = sy-datum.
    gmhead-pr_uname = sy-uname.
    gmcode-gm_code = '01'. "01 - MB01 - Goods Receipts for Purchase Order
    loop at pcitab.
    itab-move_type = pcitab-mvt_type.
    itab-mvt_ind = 'B'.
    itab-plant = pcitab-plant.
    itab-material = pcitab-material.
    itab-entry_qnt = pcitab-qty.
    itab-move_stloc = pcitab-recv_loc.
    itab-stge_loc = pcitab-issue_loc.
    itab-po_number = pcitab-pur_doc.
    itab-po_item = pcitab-po_item.
    concatenate pcitab-del_no pcitab-del_item into itab-item_text.
    itab-move_reas = pcitab-scrap_reason.
    append itab.
    endloop.
    loop at itab.
    write:/ itab-material, itab-plant, itab-stge_loc,
    itab-move_type, itab-entry_qnt, itab-entry_uom,
    itab-entry_uom_iso, itab-po_number, itab-po_item,
    pcitab-ext_doc.
    endloop.
    call function 'BAPI_GOODSMVT_CREATE'
    exporting
    goodsmvt_header = gmhead
    goodsmvt_code = gmcode
    TESTRUN = ' '
    IMPORTING
    goodsmvt_headret = mthead
    MATERIALDOCUMENT =
    MATDOCUMENTYEAR =
    tables
    goodsmvt_item = itab
    GOODSMVT_SERIALNUMBER =
    return = errmsg
    clear errflag.
    loop at errmsg.
    if errmsg-type eq 'E'.
    write:/'Error in function', errmsg-message.
    errflag = 'X'.
    else.
    write:/ errmsg-message.
    endif.
    endloop.
    if errflag is initial.
    commit work and wait.
    if sy-subrc ne 0.
    write:/ 'Error in updating'.
    exit.
    else.
    write:/ mthead-mat_doc, mthead-doc_year.
    perform upd_sta.
    endif.
    endif.
    FORM UPD_STA *
    form upd_sta.
    loop at pcitab.
    pcitab-upd_sta = 'X'.
    modify pcitab.
    endloop.
    call function 'WS_DOWNLOAD'
    exporting
    filename = p-file
    filetype = 'DAT'
    IMPORTING
    FILELENGTH =
    tables
    data_tab = pcitab
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_READ_ERROR = 2
    NO_BATCH = 3
    GUI_REFUSE_FILETRANSFER = 4
    INVALID_TYPE = 5
    OTHERS = 6
    endform.

  • Goods Receipt in Subcontracting process

    Hi,
    I am beginner in SAP.
    This is regarding Goods Receipt in Subcontracting process.
    I have provided raw material Quantity = 100 Nos. to subcontracting vendor.
    Subcontracting vendor done machining on 80 Quantity, and we have done Goods Receipt for 80 Quantity as Finished Parts.
    Subcontracting vendor found 20 Quantity as Defected.
    Shall I take back 20 Quantity by Movement Type 542.
    OR
    Shall I do Goods Receipt of 20 Quantity as Finished Product and price = 0. & then stock transfer of Finished to Raw Material.
    Please reply.

    Hi,
    It depends on what you want your subcontractor to do with the faulty raw material stock - if you want them to scrap it you can scrap stock from subcontractor stock using movement type 551 and special stock "O" (the system should prompt you to enter the vendor code). If you want it returned for you to scrap it - movement 542 to return it then scrap it from your own stock.
    You shouldn't receive an additional 20 of the finished parts - as you only received 80 not 100. Close the purchase order off to close off the balance of 20 remaining.
    Thanks

  • Fields mapping IDOC WMMBXY to post Goods Receipt against Inbound Delivery

    Hi Friends
    I am testing Goods Reciept against Inbound Delivery using Inbound IDOC.
    IDOC Type used WMMBXY  and Function Module :
    System is giving erorr message as "Document does not contain any items".
    Kindly let me know segment data mapping for above IDOC type
    Following data are passed to segments,
    E1MBXYH-BLDAT  Document date
    E1MBXYH-BUDAT Posting date
    E1MBXYH- XBLNR  .. in this field i am passing Inbound Delivery number
    E1MBXYH- TCODE  ...  MIGO
    E1MBXYI-BEAKZ   ...  B Goods Receipt against Purchase Order
    E1MBXYI-MATNR     material number
    E1MBXYI-WERKS     Plant
    E1MBXYI-BWART    Movement Type
    E1MBXYI-LIFNR         Vendor code
    E1MBXYI-KZBEW      B
    E1MBXYI-POSNR      Item number in delivery
    E1MBXYI-VBELN       Inbound Delivery number
        E1MBXYJ-VLIEF_AVIS            Inbound Delivery number
        E1MBXYJ-VBELP_AVIS           Item number in Inbound Delivery
        E1MBXYJ-WM_KZBEW            Movement indicator
    Raj

    Hello,
    Did you recieve any answer or find a solution? I encounter a similar issue.
    Thanks in advance,
    Génia.

Maybe you are looking for

  • ISE 1.2 Patch 2 External RADIUS Server Sequence Broken?

    Hi community, We have upgraded our proof of concept ISE 1.2 lab to Patch level 2. Our lab design includes the use of external RADIUS servers which we off-load certain authentication rules to. To ensure resiliency of the external RADIUS service, we ha

  • Bridge CC asks to Purge Cache but freezes when I try to do so

    Am using Bridge on a MAC. Each time I open Bridge an error message comes up requesting to Purge Cache via preferences - But when I try to do this, it freezes. In fact, even before trying to purge cache, if I try navigating to another folder on Bridge

  • Connecting a macbook pro to a verizon wireless network

    how do i connect a macbook pro to a verizon wireless network? Wi-Fi connection automatically assigns an IP address and indicates that the Mac won't be able to connect to the internet. Two other MacBook Pros connect to the network without any problems

  • Cannot resize some columns in the music folder for my ipod

    It seems I cannot resize some of the columns I'm displaying in the music folder for my iPod... such as: Album, Grouping, Kind But I can resize the other columns... I've tried moving the column around, doesn't seem to help I can resize all columns in

  • Oracle 11g zip file Checksum

    Hi, i have downloaded oracle 11g R1 zip file for linux x86.The checksum of the zip file on the download page is "302838609" However, when i find out checksum through md5sum.exe dos utility after downloading the zip file, it gives me the following che