Bapi : Goods Recipt for Subcontract Po

Hi Friends ,
                    Please any one suggest me,  how to use   BAPI_GOODSMVT_CREATE  to receipt goods(MIGO-GR)  form subcontract PO ,   here my confusion is how to pass Component materials(BOM materials)  and  their quantity  to this BAPI.
Thanks in advanced.
Shiv'.

Hi,
Check on it:-
Goods Issue against PO
Re: Subcontracting: component issue storage location
pherasath

Similar Messages

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

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

  • Batch number issue when posting goods receipt for Subcontracting PO

    Dear expert,
    I always heard there will be issues while posting goods receipt for subcontracting PO. If the component is managered by batch.
    No batch number will be proposed during PGR in MIGO...
    I dont quite understand where is the issue??
    My understanding:
    We have batch managered components and End Product. All have batch numbers, then we PGI the stock to 'SC stock' via 541 movement type.
    Then Vendor will finish the end product and send us back the end product.
    We consumption the components use 543 O movement type? And GR the end product..
    So while goods receipt, the sytem just need pick the existing batch number for both components and finish products..
    Where are the issues???
    Thanks.

    Hoo Laa wrote:
    I have questions for people always mentioning there are issues with batch determination while post goods receipt for subcontracting orders.
    >
    > I am thinking maybe they didnt active the batch determination for 543 movement type..
    >
    > Thanks.
    Hi Hoo,
    You are right!!
    Setting of batch number determination has its importance in Mvt Type be it 541, 543....
    The issue you might have observed would be with Batch Determination in Goods Issues which folks find it bit tough to achieve n make it work for them.
    Cheers!!
    Shiva

  • Goods issue for subcontracting

    Hi,
    when I post a goods issue for subcontracting with trx MB1B and mvt 541 the system replies with:
    For object XABBELEGNR , number range interval 01
    does not exist OMJ6
    It seems that numeric ranges are ok

    Hi,
    Number Range for GR/GI Slip Number
    Please check in OMJ6 t.code are anybody maintained number range,If not please maintain.
    Hope this would help.
    Regards,
    JS

  • BAPI for goods receipt for subcontracting PO

    Dears,
    I Just want to confirm that whether BAPI "BAPI_GOODSMVT_CREATE " will do the goods receipt for the subcontracting PO. SInce  I will be passing only 101 mvy type in BAPi, will the system automatically call 543 mvt type and post the consumption.
    Require suggestions
    Regards
    Kamesh

    Hi,
    Yes, BAPI_GOODSMVT_CREATE will work for subcontracting GR as well.
    It all depends on the parameters you pass to the BAPI.
    Example give below:
    *Item Parameters to be passed:     
    Ordered (Subcontracting) Material:
    Parameter     Field     Description     Value
    GOODSMVT_ITEM     MATERIAL     Material Number     100-200
         PLANT     Plant     1000
         ENTRY_QNT     Quantity in Unit of Entry     0.000
         MOVE_TYPE     Movement Type     121
         PO_NUMBER     Purchase Order Number     4500000007
         PO_ITEM     Item Number of Purchasing Document     00010
         MVT_IND     Movement Indicator     O
         LINE_ID     Unique identification of document line     000001
         PARENT_ID     Identifier of immediately superior line     000000
    Note: Quantity of ordered material must be zero.
    Component Material 1:
    Parameter     Field     Description     Value
    GOODSMVT_ITEM     MATERIAL     Material Number     100-100
         PLANT     Plant     1000
         ENTRY_QNT     Quantity in Unit of Entry     2.000
         LINE_ID     Unique identification of document line     000002
         PARENT_ID     Identifier of immediately superior line     000001
    Note: LINE_ID should be incremented for each component and the PARENT_ID remains same for all the components of an ordered material. Component negative quantity can be given in case of Under Consumption.
    Component Material 2:
    Parameter     Field     Description     Value
    GOODSMVT_ITEM     MATERIAL     Material Number     100-100
         PLANT     Plant     1000
         ENTRY_QNT     Quantity in Unit of Entry     3.000
         LINE_ID     Unique identification of document line     000003
         PARENT_ID     Identifier of immediately superior line     000001

  • Goods receipt for subcontract does not erase requirement in MD04

    Hi,
    I have a subcontract material for example X which is built of 3 components - A,B & C.
    Initially the BOM in the Purchase Order of X did not have any component. I mistakenly posted a goods receipt and realized that the requirement were not getting deleted from MD04 of the components. There after to correct this, I reversed the goods receipt and populated the BOM with components A, B & C and again posted goods receipt for the subcontract material X.
    When I receive material X, the requirement still exists in the stock requirement list (MD04) of A, B & C.  I also went to Transaction ME2O and saw that the stock at the vendor did not get reduced.
    I have checked the Goods Receipt material document and the components A, B & C have a movement type of 543 O. In MB51 Goods movement for the components, I can see the deduction from the vendor.
    Why are the requirements not getting deleted from MD04 of A, B & C and why is not  the component stock at the vendor getting reduced?
    For all other orders, the requirements get erased in MD04 of A, B & C when I receive X
    Please help me out with this issue.
    Sincerely,
    Ketan

    thread closed

  • Production operation external processing goods receipt for subcontract PO

    Hi PP/MM experts,
    I searched for existing forum entries but no luck or final answer.
    I have a question about the goods receipt for a subcontracting PO that is account assigned to an operation of a production order (external processing for operation).
    The following situation:
    Production order type PP02 - external processing
    There is only one operation in the production order with control key PP02 - external processing. I marked the control key PP02 in configuration for 'Automatic goods receipt'.
    I created a PO for the PR is the operation
    When I'm doing the goods receipt of the subcontrating PO a 101 posting is triggered for the finished product and components are consumed by 543 O movements. So far so good. But the inventory for the finished style is not increased. In MIGO I even see that even a batch number for the finished product is determined. Looks like that only the service is posted but not the inventory. I assumed when I mark the operation contol key for 'goods receipt' that the MIGO will also post the inventory for the finished style.
    Reason for PP order and not only subcontract order is that we want to manage capacities of external suppliers with PP capacity planning.
    Is that a bug in our system or normal behaviour? We use SAP ERP 6.5 with IS AFS.
    Thanks in advance for your answers.
    Best Regrads,
    Harry

    Hi Rizzi and all others,
    thanks for your replies.
    I'm using a production order for the following reasons:
    We want to use capacity planning for external suppliers. At least to have some overview of work they have to do in a month
    The external assembly can also be changed to internal assmebly and for that reason we will start always with the same kind of document -> production order.
    But one more thing what is really confusing. In the materials document list MB51 the 101 movement for the service is listed even if the inventory was not increased. That is really confusing for the users.
    Best Regards,
    Harry

  • Goods Receipt for Subcontracting PO

    Hi,
    I got an issue like this....User has Created and posted Sub contracting PO.
    and when we tried to enter Goods Receipt for this SUbContracting PO system is giving an error like this
    <b>"No special stock O of the material (batch ) exists in storage location for 0000000333 331/18237".</b>
    Any one can tell me how to resolve this issue....
    Thanks and Regards

    Dear MK,
    Once Subcon PO is created, we have to send the child components to vendor. This can be done either by MB1B or ME2O.
    Once these components are issued to the vendor, we can view them at MMBE stock over view as 'material provided to the vendor' OR by T-code MBLB.
    In your case, probably user has not followed the above two steps and hence the error.
    Regards
    Ravi

  • How to use BAPI_GOODSMVT_CREATE  receipt goods(GR) for subcontract  PO

    Hi Friends ,
                                  Please any one suggest me, how to use BAPI_GOODSMVT_CREATE to receipt goods(MIGO-GR) form subcontract PO , here my confusion is how to pass Component materials(BOM materials) and their quantity to this BAPI. While reading BAPI FUNCTION MODULE DOCUMENT   : i found some information but am unable to understand  usage of   LINE_ID  and PARENT_ID  .      
                              Please any one suggest me how to pass values to above  BAPI
    Thanks in advanced.
    Shiv'.

    Hi,
    Did u check the serial numbers table before calling the BAPI. Might be the case tht same serial number is assigned for all items, in this case the goods movement may be possible with same serial number for all items.
    Reagrds,
    Aditya
    Edited by: aditya on Aug 11, 2009 11:46 AM

  • Goods receipt for subcontracting material

    Hello friends,
    i  am doing operation subcontractiing. My first operation is subcontracted. So, I have assigned PP02 control key to first operation (external processing and no auto goods receipt indicator)  and maintained external processing data for opration in routing. When i saved the order, for that operation PR gets generated.
    Now, I converted PR into PO and assigned raw material that has to be send to vendor. By 541 mvt. type material is issued to vendor. When i do goods receipt in MIGO, system is not showing storage location field. I dont find material in stock anywhere.
    But i can see quantity received in external processing tab of first operation in routing overveiw in order.
    Then how can i issue the material from storage for second operation if it is not in stock?
    How can i get stock of subcontracted material by MIGO?
    Please help me.
    Thanks in advance!

    Kiran,
    Since your scenario is Subcontract of operations, you will not find a material referance in your PR/PO, so there is no GR of Material happening, in this Scenario GR means delivery of the operation.
    If you really want to track, then you need to create an additional material number and assign that material number with Special Procurement key "30", here in this case you can recieve the product after subcontract as this is product sub contract process. In this case Production order is not relevant.
    Regards,
    Prasobh

  • Goods issue for Subcontract PO's

    Hello Experts,
    For earlier SAP versions there used to be a Tcode : ME2O to issue materials to vendor against subcontract PO's. I do not find this tcode on the SAP standard menu on recent versions.  Is there a new way to issue materials to vendor?
    Can someone tell me what the new Tcode is & menu path for the same. 
    Thanks,
    Ram

    Hi,
    Check on it:-
    Goods Issue against PO
    Re: Subcontracting: component issue storage location
    pherasath

  • Goods Recipts for Limit item SC

    Hi,
    When we create shopping cart with limit item and choose the "confirmation and invoice option" during the Limit SC creation the backend PO is created with item category 'D'. The service PO is created, but there is no data updated in service tab at the item level, there is only line item created in item overview with the expected value as the net price and Qty as 1 PU. But without the line item in service tab at  the item level we cannot do the planned service entry sheet.
    Now with the current scenario when i try to do the confirmation in EBP, i have add description, QTY and value details and then i am able to post the document.The staus shows as document posted in backend but when i click to view the document, there is no document to be displalyed. The confirmation data is not getting updated in the follow on documents or in the purchase order history in R/3.
    In R/3 i am not able to enter the service entry sheet for the corresponding PO, it says no line items in the PO. Thats because there is no line item in the service tab. I am not able to post the invoice since the GR based IV is checked in PO.
    Now my question is whether this is the standard behaviour, cant we do service entry sheet for these kind of PO. How to get the line item detail in the service tab in item level. What is the advantage of this function in SRM if we cannot post service entry sheet.
    Please suggest how to overcome this issue.
    Regards
    GGL

    Hi Sanjeev,
    I checked the ESSR table and the document is not getting updated. I found that there is an error meaasge occuring when i try to post the service entry sheet. The error is "Express document "Update was terminated" received from author" and when i check my inbox i see the below message
    Update was terminated 
    Update was terminated
    System ID....   UDS
    Client.......   030
    User.....   N0208
    Transaction..   ML81N
    Update key...   4A0DF49ADEE1006EE1008000820A0466
    Generated....   16.05.2009, 11:03:35
    Completed....   16.05.2009, 11:03:35
    Error info...   SG 105: Enter rate GBP
    Error info Enter rate in GBP, i check the service entry sheet and the currency is maintained in GBP and all the other entries looks fine. I am not sure why i am getting this message.
    Please let me know if this is related to any config or how to to rectify this.
                                                                                    Regards
    GGL

  • Good receipt problem for subcontracting purchase order

    Good receipt problem for subcontracting purchase order
    with account assignment type ‘E’.
    After update to ECC 6.0. Do good receipt for subcontracting purchase order with account assigment 'E'.The system show the error message(KI235)----Two cost elements (Change in Stock (Subcontracting)&Outside processed fee) haven't CO account assignment.but the field status  for sale order is option entry , when I default cost center for the cost element  in OKB9.the system post the material document and generate the following accounting document.
    Doc.Type : WE ( Goods receipt ) Normal document
    Doc. Number    5000056065       Company code    1000         Fiscal year     2007
    Doc. date      2007.12.04       Posting date    2007.12.04   Period          12
    Calculate Tax
    Doc.currency   HKD
    tm PK Account    Account short text   Tx Cost Ctr   SaleOrder               Amount
    1 89 13500000   Stock-Work in proces                   1007823  10             274.4
    2 96 21210010   GR/IR Clearing                             1007823  10             205
    3 91 41010102   Chg in Stock(Subcon)    10901099  1007823  10            274.4
    4 86 41031000   Outside processed fe     10901099  1007823  10            205  
    5 99 13500000   Stock-Work in proces                    1007823  10            69.4
    6 81 41010101   Cost of Prod (Subco)                      1007823  10           69.40
    My problem is:
    When use MIGO to do good receipt for subcontracting Purchase order, for consumption account((Change in Stock (Subcontracting)-41010102&Outside processed fee--41031000) ,why the system don’t recognize the sale order filled as CO account assignment?

    Dear fanny chen
    Did you get a solution for your open question?
    I`m facing the same problem, so any help yould be appreciated.
    Regards

  • With what value finish product as come when we do goods recipt from prd

    Hi,
    With what value finish product as come when we do goods recipt for oa prodution order in make to order scenerio.
    The material is not talking standard price form th e material master when we are doing goods recipt.
    Regards,
    somiraghu

    If you use non-valuated sales order stock (account assignment E) there will ne no value posting at all during GR, thus also no accounting document. The full actual costs (that Pankaj listed) will be posted during settlement of the production order.
    Regards,
    Kay

Maybe you are looking for

  • Print Settings

    Now that Print dialogue is Application dependent, meaning that different settings will be shown for say, a web page than shown for a .pdf document, I cannot find where these settings reside. I save certain received emails as .pdf documents, and later

  • Export and Import Files in Table in JDeveloper11g

    Hi Every body, I have to make a functionality in my project like Export any af:table data in Different file format like XML,*CSV*,*XLS*,*TXT*. and also Import these files in to af:Table. Can anybody suggest me, What to do? How can i do this? Is there

  • Type mismatch - apex_interactive_reports_4_0.js

    Hi, I have a page with an interactive report region, that is shown conditionally. Initially, the IR functions like Select columns, or filtering work fine. After a popup reoprt is invoked, the IR functions do not work any longer. The error in IE is: M

  • Is possible organize photos in  photo stream

    is possible organize photos in  photo stream

  • Text Messaging Contacts

    I just updated the OS on my device to 10.2.1.2122 and it has caused two issues.  The most annoying one is that all my text messages now just show the phone number of the person instead of matching the number to the contact list and showing me the nam