BAPI for GR against subcontracting Purchase order

Hi Friends,
I need to make the GR against the Subcontracting Purchase order, for that I need the BAPI. can I use BAPI_GOODSMVT_CREATE.
The problem is how to find out the BOM Materials. Can anybody provide me the source code for the reference of GR for Subcontracting Purchase Order.
Thanks in advance.
Krishan

Hi krishan,
  Refer to the link below for sample code of
BAPI_GOODSMVT_CREATE:
http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm
  also refer to the link below for BAPi's:
http://www.sapbapi.com/bapi-list/
With luck,
Pritam.

Similar Messages

  • BAPI for uploading SUBCON open purchase Order

    Hi,
    Can any one tell me a BAPI for creating SUBCON Purchase order....

    Hello,
    BAPI_PO_CREATE and BO: BUS2012.
    BAPIEKPOC = ITEM_CAT (3 - Subcontracting)
    <b>Rewrad points</b>
    Regards

  • What are the mandatory fields of BAPI for creating a new purchase order?

    Hi friends,
    I am very new to XI.My Boss has given me task to create a purchase order using BAPI. I want step by step guide to create it.How will i know which fields are mandatory for BAPI_PO_CREATE?

    Hi Shweta,
    However It depends upon the configuration that which fields to be passed.
    But you can check this by running the BAPI in the SAP system by using transaction Se37.
    The most commanly used fields are:
    HEADER :
    DOC_TYPE                       NB
    CO_CODE                        9001
    PURCH_ORG                    9001
    PUR_GROUP                    900
    VENDOR                         100000
    ITEM
    PO_ITEM                        00001
    MATERIAL                      MM10
    STORE_LOC                   01
    MAT_GRP                       01
    SHORT_TEXT                  SERVICE (optional )
    PLANT                            9001
    NET_PRICE                    500
    ITEM_SCHEDULE
    PO_ITEM                        00001
    SERIAL_NO                      0001
    DELIV_DATE                     05.04.2008
    QUANTITY                                  1.000
    You can run the BAPI with some test data... if something is missing the BAPI will ask for it... the Results are displayed in Return Table.
    Regrads,
    Sachin

  • Function Module / BAPI for Inbound Delivery from Purchase Order

    Hi,
    I need to create an inbound delivery from Purchase Order items and am looking out for some Function Module or BAPI for the same.
    The requirement is that i should be able to specify selected line items from PO for delivery.
    I tried the BDC method for VL31N , but the particular item selection is problem, since by default it shows all the items of PO and i want only selected items.
    Do reply.
    Thanks in advance.

    check these and their documentations.
    BAPI_INB_DELIVERY_CHANGE       Change inbound delivery
    BAPI_INB_DELIVERY_CONFIRM_DEC  BAPI for inbound delivery verification from a decentralized system
    BAPI_INB_DELIVERY_SAVEREPLICA  BAPI Function Module for Replication of Inbound Deliveries
    Regards
    Prabhu

  • BAPI For Inbound Delivery using Purchase Order Number

    Hi All,
    Is there any BAPI for posting Inbound Delivery (VL31N) using Purchase Order as reference.
    thanks
    bobby

    Not sure what it has to do with enhancements and modifications, but there is no such BAPI:
    http://tech.groups.yahoo.com/group/ABAP/message/38307
    http://sap.ittoolbox.com/groups/technical-functional/sap-log-mm/bapi-for-inbound-delivery-creation-and-update-vl31n-1201265
    FYI all BAPIs may be viewed in BAPI transaction.

  • Bapi for Creation of PO(Purchase Order) with Factor & Length

    Dear Experts,
    we wnat to create Po automatically by using Bapi.
    I come to know, there are some bapis like BAPI_PO_CREATE1,BAPI_PO_CREATE.
    Normal PO, we are able to create with these bapis.
    But we want to give factor & Length in PO Creation.
    Because we are using the Mill Products(cable Industry).
    so how to create the PO with Factor & Length.
    Plese help me to sort this issue.
    Thanks in advance,
    Regards,
    Rahul
    Edited by: M.Rahul Reddy on Oct 15, 2009 1:07 PM
    Dear Experts,
    I am looking for  your valuable sujjection to sort the issue.

    This is version problem in the Sap system.
    we are communicating with SAP people.

  • BAPI for creation of subcontract PO

    Hi all,
       Currently iam doing a BAPI for creation of subcontract Purchase Order using the BAPI_PO_CREATE1. But in this BAPI iam unable to find the table for entering Components.
    Regards,
    Sun.

    Hi,
    I wil give you how to fill the components of PO items, it is a sample code;
    *zPoHeader
      if kna1-kunnr eq 'BOR020'.
        zpoheader-comp_code   = '0040'.
      endif.
      if  kna1-kunnr eq 'BOR040'.
        zpoheader-comp_code   = '0048'.
      endif.
      zpoheader-doc_type    = 'ZSA'.
      zpoheader-doc_date    = mkpf-budat.
      zpoheader-vendor      = 'BOR050'. "&#351;imdilik
      zpoheader-pmnttrms    = 'Z030'.
      zpoheader-purch_org   = '1100'.
      zpoheader-pur_group   = '101'. "malzeme ÜZERINDEKI marc-ekgrp
      zpoheader-currency    = zsaleshead-waers.
      zpoheader-item_intvl  = 10.
      zpoheaderx-comp_code  = 'X'.
      zpoheaderx-doc_type   = 'X'.
      zpoheaderx-vendor     = 'X'.
      zpoheaderx-purch_org  = 'X'.
      zpoheaderx-pur_group  = 'X'.
      zpoheaderx-currency   = 'X'.
      zpoheaderx-doc_date   = 'X'.
      zpoheaderx-pmnttrms   = 'X'.
      zpoheaderx-item_intvl = 'X'.
    *zPoitem
      loop at i_posnr.
        lv_ebelp = lv_ebelp + 10.
        zpoitem-po_item    =  lv_ebelp.
        zpoitem-material   = i_posnr-matnr.
        if kna1-kunnr eq 'BOR020'.
          zpoitem-plant      = '0040'.
          zpoitem-stge_loc   = '4001'.
        endif.
        if kna1-kunnr eq 'BOR040'.
          zpoitem-plant      = '0048'.
          zpoitem-stge_loc   = '4801'.
        endif.
        zpoitem-quantity   = i_posnr-menge.
        zpoitem-po_unit    = i_posnr-meins.
        zpoitem-net_price  = i_posnr-bfiyat.
        zpoitem-price_unit = 1.
        zpoitem-tax_code   = 'V0'.
        zpoitemx-po_item    = lv_ebelp.
        zpoitemx-po_itemx   = 'X'.
        zpoitemx-material   = 'X'.
        zpoitemx-plant      = 'X'.
        zpoitemx-stge_loc   = 'X'.
        zpoitemx-quantity   = 'X'.
        zpoitemx-po_unit    = 'X'.
        zpoitemx-net_price  = 'X'.
        zpoitemx-price_unit = 'X'.
        zpoitemx-tax_code   = 'X'.
        append: zpoitem, zpoitemx.
        clear : zpoitem, zpoitemx.
      endloop.
      call function 'BAPI_PO_CREATE1'
        exporting
        poheader                     = zpoheader
        poheaderx                    = zpoheaderx
    tables
       return                       = zreturn3
       poitem                       = zpoitem
       poitemx                      = zpoitemx.
    Send me your results,
    Kenan.

  • Subcontracting Purchase Order with Delivery Cost

    Hello Experts,
    I am facing issue during Goods Receipt against Subcontracting Purchase Order.
    Note:
    a) Subcontracting PO has delivery cost given 200 /pc.
    b) Condition type Z001 for Delivery has Condition Category "B" with accrual checked.
    c) Pricing Procedure has Accrual Key FR1 with condition type Z001
    d) Condition Z001 is common for Standard Item Category PO and Subcontracting PO for delivery cost.
    During Goods receipt, system generates following accounting.
    BSX     Inventory-SemiFinish     M     S     521.12
    WRX     GRIR Clrg-Mat A/c     S     H     100.00-
    BSV     Inc/Dec. in Semi-F     S     H     521.12-
    FRL     Job Work                          S     S     100
    FRN     Freight Clearing A/c     S     S     100
    FR1     Freight Clearing A/c     S     H     100.00-
    BSX     Inventory-RM(Domest)     M     H     321.12-
    GBB     RM Consumed-Domestic     S     S     321.12
    As shown above FRN is the account which is the resultant of Devliery cost during Subcontracting. Entry of this Key is not completely knocked off in this transaction and next transaction for invoice verification MIRO.
    My query:
    A) Can we stop account posting for FRN.
    B) If not How will FRN entry be knocked off, (Entry for FR1 gets set off during MIRO- Invoice verification.)
    C) In case B is not possible, Posting in account  assigned to FRN Key will always show values.
    Can any one help me to confirm that Entries above during Goods Receipt are ok, If not what sort of changes are required.
    Can we use same condition types for Delivery cost for Standard Item category PO and Subcontracting PO .
    Awaiting reply,
    Regards,
    Manish

    Hi Vaibhav,
    a) I am not able to understand why do you think the above entries are not correct.The entries are perfect.
    My Reply:  Ok I do agree for a movement that entries are ok, No Issues
    b) If you want that freight entries should not go to separate account then you can include the freight charges in the same condition as basic price condition so that charges will go to FRL and WRX.
    My Reply: How can I include Freight Charges in the same condition as basic price condition, so that charges will to go FRL & WRX, Can you please explore this,
    Regards
    Manish

  • Bapi for subcontracting purchase order

    Hi,
    is there a BAPI allowing to create a subcontracting purchase order?
    Best regards.

    Hello,
    BAPI_PO_CREATE and BO: BUS2012.
    BAPIEKPOC = ITEM_CAT (3 - Subcontracting)
    Regds, Murugesh AS

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

  • LTP Planning for Subcontracting Purchase Order

    Hi All,
    I am doing LTP run for the Finished Material.
    Finished Material is having few open subcontracting Purchase order's.
    When I take the LTP run  in MS02, system is considering the Open PO's and adjusting (netting) it with the Planned independent requirements of finished material. This is ok.
    But the planning is not creating depending procurement proposals for the child items.
    It is subcontracting PO of finished material, system suppose to create the dependent requirements.
    In the MRP run it is working fine in MD02. But not working in LTP planning run in MS02 Transaction.
    Rgds /  Shailendra
    Edited by: Shailendra Hadkar on Apr 7, 2010 10:44 AM

    Hi All,
    I have found one BAdi u201CMD_CHANGE_MRP_DATAu201D  for showing up Subcon requirements in MS04 for child materials.
    This BADI "MD_CHANGE_MRP_DATA" requires to implement using method "CONSIDER_RESB".
    But implementation of this BADI using method "CONSIDER_RESB" will open up Dependent requirements/reservations of phantoms in phantom assembly planning and other reservations also.
    How I can implement this BADI for specific Subcon requirements or Specific MRP element??
    Regards,
    Shailendra
    Please refer below post by Nethi Venkata R... 
    LTP Doubt

  • 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

  • Message type for generating IDOC  for SUBCONTRACTING PURCHASE ORDER

    Hi All,
    I have to generate IDOC for PO creation or change .
    I am using IDOC_OUTPUT_ORDERS and IDOC_OUTPUT_ORDCHG.
    The messagetype.idoctype  I am using is  ORDERS. ORDERS05  and ORDCHG. ORDERS05.
    Now the confusion is regarding whether  this message type will work in case of SUBCONTRACTING PURCHASE ORDER as well ?
    As I have gone through some websites and came to know that I will have to use PORDCR1.PORDCR102 specially for subcontracting.
    And programs we need to use is BUS2012_ICH_R3 instead of  RSNASTED and Form Routine SEND_PORDCR1 instead of EDI_PROCESSING.
    Purchase Order Collaboration scenario - Not generating IDOC in ECC
    http://www.erpgenie.com/faq/edi_purchasing.htm    on this site question no  8.
    Subcontract PO IDOCs
    I hope your experience will help me .
    Please reply ASAP.
    Edited by: uttam27 on Dec 4, 2011 1:47 PM

    There is a generic function to create change pointers for all message typs - 'CHANGE_POINTERS_CREATE_DIRECT'.  This is triggered only if you configure your message type to create change pointers from BD50.
    Once you activate it do any change to orders you can see change pointer tables BDCPV filled. Then BD21 will read the changes and generated outbound idocs accordingly.

  • Posting of Components made compulsory for Subcontracting Purchase orders

    Hi
    I am working in ECC 6.0. In case of Goods receipt for subcontracting Purchase Orders, does the child quantities automatically changes when i change the default quantity of Header material according to the BOM relation ? I found it is not happenning.Please inform is this standard?
    Also i can post the documentfor  header material without the components,by manually changing the quantities for Child items .Kindly give a me suggestion by which this can be controlled.
    Regards
    Arvind

    Hi,
    1.
    The component changes as per the header material in MIGO when you want to do GR. Please take care that the components musn't be exploded when you change the qty of the BOM header material. If they are exploded, collapse them ("close the explosion"), after that change the qty of header material and when you explode the components again you should get the proper quantities (this button is in the line of BOM header material).
    2.
    As per my best knowledge, in standard system you cannot restrict/control the change of component quantities. The cause of it might be that the quantity of components may differ from the rates defined in the BOM and the user HAVE TO CHANGE the quantities as per the real consumption.
    Solution might be training. If the user intentionally changes the component quantities, this is a HR issue..
    Regards,
    Csaba.
    Edited by: Csaba Szommer on Dec 26, 2008 5:14 PM

  • Components for the Subcontract Purchase Order

    Hello All,
    I am trying to create a subcontract Purchase Order, I have created a subcontract Purchase Info Record using ME11 for the Finished Goods and also defined the BOM using CS01. 
    When using ME21N, I have defined the line item as L Category.  In the Item Detail -> Material Data tab, there is a "Components" and "Explode BOM" button.  When I click on the "Components" button, I see the list of raw materials defined in the BOM.  I know for subcontracting that we are able to enter the components manually or can be generated via BOM explosion.  I would like to ask how can I enter the components manually as when I try to delete an item it said not able to do so. 
    Can anyone please help.
    Thanks.

    Hi..
    In Subcontract PO, BOM can be deleted by selecting all BOM line items then go to Edit and select Delete tab .
    To enter the component manually click on Collective Entry Tab in PO BOM and after that you can enter components manually.
    So 1st delete the BOM and then add BOM manually by above procedure.
    But as a standard Practice CS03 BOM only to be changed and then explode the PO BOM.
    Regards
    Vishnu

Maybe you are looking for

  • Camera drivers won't load , unless booting from OS 9

    I am trying to use a Fuji Luma2 digital back on my Hasselblad camera; the software that controls the camera thru the firewire only works by booting from OS 9. When running the application on OS 9 classic the main features (take picture) appear ghoste

  • How to Delete Phantom Appletalk Printers

    It seems that my Appletalk network is now riddled with over a dozen phantom Appletalk printers and I cannot figure out how to get them to go away. We're all Tiger now, and in the good ol' days, renaming Appletalk printers was no biggie .. the new nam

  • IPod frozen - cannot restart - makes strange noises whilst trying to charge

    my iPod is dying! the iPod froze while i was listening to my tracks and i tried to restart it (as i've done it before) and nothing happened. Then i noticed the icon that indicates that the battery is totally drained and i have to charge the ipod at l

  • ITunes is not opening

    I've been having issues for 2 weeks.  I have the latest update. I've noticed some of my music has been removed as well, it's still on my computer so I just have to add it back in.  Some of the music missing was purchased on iTunes, some of it wasn't.

  • Anybody familar with Apple's HID USB driver?

    The driver seems to block all duplicate packets from the device. Does anybody know how to turn this "feature" off?