Delivery to Subcontracting Vendor in ME2O

Hi All,
I am working on a requirement where the Delivery needs to be created for the Purchase order in ME2O. Can someone help me out in this. I need the BAPI for doing this. It would be difficult to do with BDC. Please help
Thanks
Rashmi

Hi ,
Following is the sample code for creation of inbound delivery Using BAPI 'BAPI_DELIVERYPROCESSING_EXEC'
Which may be helpful.
PARAMETERS: p_vbeln LIKE ekko-ebeln.
DATA: BEGIN OF t_ekpo OCCURS 0,
ebeln LIKE ekpo-ebeln,
posnr LIKE ekpo-posnr,
kwmeng LIKE ekpo-kwmeng,
matnr LIKE ekpo-matnr,
werks LIKE ekpo-werks,
END OF t_ekpo.
DATA: t_request TYPE STANDARD TABLE OF bapideliciousrequest
WITH HEADER LINE.
DATA: t_created TYPE STANDARD TABLE OF bapideliciouscreateditems
WITH HEADER LINE.
DATA: t_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
SELECT ebeln posnr kwmeng matnr werks
INTO TABLE t_ekpo
FROM ekpo
WHERE ebeln = p_vbeln.
LOOP AT t_ekpo.
t_request-document_numb = t_ekpo-vbeln.
t_request-document_item = t_ekpo-posnr.
t_request-quantity_sales_uom = t_ekpo-kwmeng.
t_request-id = 1.
t_request-document_type = 'A'.
t_request-delivery_date = sy-datum.
t_request-material = t_ekpo-matnr.
t_request-plant = t_ekpo-werks.
t_request-date = sy-datum.
t_request-goods_issue_date = sy-datum.
t_request-goods_issue_time = sy-uzeit.
APPEND t_request.
ENDLOOP.
CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
TABLES
request = t_request
createditems = t_created
return = t_return
READ TABLE t_return WITH KEY type = 'E'.
IF sy-subrc = 0.
MESSAGE e208(00) WITH 'Delivery creation error'.
ENDIF.
COMMIT WORK.
READ TABLE t_created INDEX 1.
WRITE: / 'Delivery ', t_created-document_numb, ' created'.
Revrt back if any issues,
regards,
Naveen

Similar Messages

  • Intra company stock transport order with delivery to subcontracting vendor

    Hi Friends,
    We have an issue with Intra company stock transport scheduling agreement with delivery to subcontracting vendor.
    We have a scenario where the component is provided by another plant (Plant A -Intra company) directly to subcontracting vendor and the subcontracting vendor processes the component and sends us(
    Plant B) the finished good.
    We have a subcontracting scheduling agreement created with the subcontracting vendor with Item category u201CLu201D for plant B .(Document type LPA)
    And we created the stock transport scheduling agreement with document type LU (Between Plant A to Plant B) by entering the subcontracting vendor number to the "EMLIF- Vendor to be supplied/who is to receive delivery" field but the check box "LBLKZ-Subcontracting vendor" is hidden in the delivery address tab.
    Field selection with document type (LU) and Field selection with transaction code (ME37) did not help to bring the field to the delivery address tab.
    As a result, when we do PGI from the supplying plant, the stock is posted to "in transit" (Movement type 641) instead of "Component provided to vendor" (Movement type 641 u2013 O)
    The same behavior for purchase order with document type UB as well/
    Is the movement type u201C641-O u201C supported by standard SAP or do we have any other workaround to address the requirement. ?
    Now we are in ECC 6.0 EHP3.
    Your inputs will be highly appreciated.
    Regards
    Gobinathan G

    Hello,
    This EhP4 feature addresses only the one step Stock Transport Order to subcontracting vendor for intra company.
    Does anybody know how to do a two steps Stock Transport Order to subcontracting vendor for intra company?
    By "two steps" I mean:
    1- Goods Issue from supplying plant A to in-transit stock of the subcontracting vendor at receiving plant B.
    2- Inbound Delivery Notification (IDN) at receiving plant B + Goods receipt against this IDN into the subcontracting stock at receiving plant B.
    Thanks and regards,
    Stéphane

  • Creation of delivery for subcontract Purchase Order

    Hi All,
    I am trying to create delivery for subcontract PO. ME2O transaction creates delivery but doesn't link PO to delivery . Is there any SAP table where we can see link of subcontract PO to delivery created throug ME2O?
    Business don't want to use MB1B transaction because it doesn't create delivery inturn doesn't create any paper work(Pick list or Packing list).
    Is there any way to create delivery based on subcontract PO?
    Thanks in advance.
    Sonali.

    You have to do Sub con PO setup in Img customization. You can be able to print all ur required documents during MB1B also. Presently I am doing exact the same setting for my present project. Complete Configuration required under
    Img->MM->IM and PI->Output Determination.ABAP help will be required to design the layout for pick list and packing list.Let me know if you need more information.
    Cheers!

  • Create delivery in subcontracting - Essential transfer parameters missing

    Hi Guys,
    This is my first thread - I hope I get everything right
    From ME2O, stock monitoring for Vendor (subcontracting), I want to create a delivery to the vendor. After checking a material with a requirement and pressing "Create delivery" I get a box containing:
    Vendor:
    material:
    Plant:
    Shipping Point:
    Stor. location:
    Batch:
    Quantity:
    All fields are predefined and filled except "Shipping point". It's grayed so I can't search/enter it manually. I have assigned a loading group to the material in the Material Master: Sales: General/Plant. So where does this (missing) value come from if not the loading group?
    Hoping for an answer
    /Thomas

    Hi Thomas,
    The shipping pt has to maintained in customizing
    spro>logistics execution> shipping>basic shipping fns>shipping pt and GR pt determination
    maintain the shipping pt here for your plant and try again.
    Hope this helps
    regards
    Anand.C

  • Delivery for Subcontracting Orders - SC

    Hi,
    I have create a subcontracting PO.
    I would like to ask which should be the proper way of creating the outbound delivery?
    I've seen that in a ME2O there is a button to make the post Good Issue and another to create the delivery, but as the transaction is called "Stock Monitor for Vendor" I believe it must be another place to create the delivery.
    Nevertheless, when I try to create the delivery I'm getting the message: "Essential transfer parameters are missing in record:  000001"
    Thanks

    Hi,
    To create a delivery (against Subcontracting PO), the following data has to be maintained in the system:
    1. The plant must be assigned a sales organization, a distribution channel, and a division. You can define this in Customizing for Purchasing, in the step Set Up Stock Transport Order.
    2. A delivery type has to be defined for the plant from which the items are to be delivered. You can define this in Customizing for Purchasing, in the step Set Up Subcontract Order.
    3. If you want to reference a reservation when you create a delivery, you also have to set the Predecessor necessary indicator to L (Provision to subcontractor necessary) when defining the delivery type. This means that the requirements generated by the reservations can be correctly offset against the deliveries created. You can define this in Customizing for Shipping, in the step Define Delivery Types.
    4. The vendor for the stock with subcontractor must be entered as the customer in the organizational units in the delivering plant, such as sales organization, distribution channel, and division.
    5. The material to be provided has to be entered for the organizational units in the delivering plant, such as sales organization, distribution channel, and division.
    6. The combination of shipping condition (from the subcontractoru2019s customer master record), loading group (from the material master record for the components to be provided), and the plant have to be assigned to a shipping point. You can define this in Customizing for Shipping, in the step Assign Shipping Points.
    To create a delivery (in ME2O), choose Edit ® Create delivery. A dialog box appears, in which you can enter the data required to post the delivery. The system posts the delivery in the background and, after posting, it informs you in a dialog box how many items were posted.

  • Ordering components to subcontracting vendor

    Hello gurus,
    We have a scenario where we are manufacturing one product at our subcontracting vendor. The assembly contains materials we are sending to our SC vendor stock from our company (with ME2O), but it also contains materials, which are ordered directly to the stock with subcontractor from another vendor. Now when we are creating Purchase order for this kind of component, we have to fill in subcontractor's vendor number and tick the "SC vend" box (delivery address tab) every time.
    Is it somehow possible to have this SC vendor's number and SC vend box already marked in Purch. req. (which MRP run creates)?

    That's what I was afraid of.. Thanks for the info. That same component is used also in other products which are not manufactured at subcontractors location, so I need also a logic to find out which purchase requests were generated by SubReqs.

  • Error : T161W: Vendor+subcontracting vendor not allowed for 2-step stock tr

    Hi Gurus,
    When we creating a STO to sub contractor vendor ( in the delivery address tab we are entering the vendor # and activating the SC vendor check box)we are getting the error message as "T161W: Vendor+subcontracting vendor not allowed for 2-step stock transfer".
    Message no: MEPO140
    Note:
    The STO is creating with out error in ECC 5.0 for the above scenario but when i'm  trying  the same in ECC 6.0 in another system I'm getting this error, Can any one please advice.
    Thanks in advance,
    Sai

    Hi Charlie
    I had same issue and we sloved it. but i have one more issue here.
    We have created Po and SC Vendor is not check marked. When we go into the change mode of Po i can't see the field at all. but its availalbe in disply mode.
    I am using ECC 6.0, Please suggest why this is happening. I need to put check mark for SC vendor.
    thanks,
    Raju

  • Subcontracting in Production, 2 subcontracting vendors involved

    Hi,
    We have a scenario where in production 4 operations needs to be performed, one of which is a external process [subcontracting]
    Process 1 - Drilling
    Process 2 & 3 - Subcontracting [External process] u2013 2 processes
    Process 4 u2013 Finishing
    After drilling process, material is sent to subcontractor A for cutting, after this is done Vendor A will sent product to Vendor B directly for further operation . Once this is done We receive from Vendor B
    Then it will go to Process 4 [Finishing]
    Can you please help in mapping this scenario in SAP
    If there is only one vendor involved then I believe process will be like one subcontract PR [system creates automatically], we issue goods and we receive finished goods
    In this case Subcontract vendor A sends directly to Vendor B
    Both Vendor A and B sends invoice to US
    Any pointers in this regards will be of great help
    Thanks

    Hi ,
      While raising the subcontracting order for vendor A enter Delivery address vendor B address & save.
    Raise one more P.O(subcontracting ) with vendor B
    when vendor supplied material to vendor do the migo.
    then in sap stock will increase at vendor B.
    when material recieved from vendor B do migo stock will increaes in respective plant.
    you can procees invoice with P.O wise
    Try this one & let me know
    Rgds
    venkat

  • Sale Order Subcontracting & Vendor wise stock

    Dear Gurus,
         I have one doubt we are doing sale order subcontracting transfer posting by 311 E to vendor. so is it really need to create vendor wise storage locations to track the stock at vendor end,  as we have no. of vendors for subcontracting and storage location is part of organization structure.
    so is it advisable to go like that ? or please suggest me any other way to track the stock at vendor end sale order wise.
    Thanks & regards,
    Akshay

    Hello Sir ,
    As it is not possible to send material which are already in special stock (sale order stock ) to subcontractor by 541 movement type , it is recommended to transfer by 311 E my MB1B or MIGO...
    while doing good receipt 101 E and 543 E will going to happen , for 543 E system will automatically ask storage location. i have done already this but there only one subcontractor was there,
    and in this client we have more than 80 subcontractor so i am hesitating to do this....
    Subcontracting for Sales Order Stock and Project Stock - Managing Special Stocks (MM-IM) - SAP Library
    Sale Order Subcontracting & Vendor wise stock 

  • Sending material from one subcontracting vendor to another vendor

    Hi Experts
    we have a scenario we have more than one subcontracting vendors.so the unused raw material should be send to one vendor to another.so how can we configure it.please give me feedback.
    Thanks in advance...

    Hi Madhu ,
    What do u mean sending unused material from one vendor to another ?
    In subcontracting u can send material to only one vendor at a time.
    Regards
    Ramesh Ch

  • M7279- Data for creating a delivery is incomplete (Vendor)

    Dear All,
    i am getting below error while processing Goods receipt.
    "M7279- Data for creating a delivery is incomplete (Vendor)" 
    1.I am doing Goods receipt with mvt type 521( GR without ref to prod order).
    2.storge location is WH manged + HU managed.
    3.Material master is assinged with sales org / distribution channel- sales view.
    4.maintained for Transportation Group . loading group - sales gen/plant data.
    5. Maintaine for shipping data for Storage location ( customisation -SPRO-LE-Shipping-Basic shipping function- Shipping points and goods receiving points determination-Assign goods receiving points for Inbound Deliveries.)
    6. HUM- setting - LG-HUM-HU requirement for storage location and default values for deliveries)
    Why system is thowing this error message as in my case vendor does not comes in to picture ( I can cosider if a GR is with refence to PO , in that case in customer master number has to be maintained in vendor master + shipping condition entered in customer master)
    Could you pl help me on above ( as this is 521 movement , it should not have any link with vendor or customer master) then why i am getting this error.
    Appreciate your earliest response.
    Om

    I am doing simple goods receipt without reference to any document ( mvt 521 - goods receipt without ref to production order) , in that case it should not ask for any vendor or should not search for vendor code , i am not getting why it is searching for vendor.
    If i removed the setting related to HU management for storage location then it allows me to post the document without any error, but if i activate for HU managment in below path i am getting error ( even in below path if i entered any vendor code then it allows me to post the document)
    Logistics general- Handling unit management- basics-materials management - inventory management -HU requirement for storage location and default values for deliveries
    plant     Storage location      Partner storage location   Sal org  Dist chan shipping division vendor customer HU requred
    05         ZBD1                       ZPK1
    in above if i entered any vendor code then it allows me to post the doc but i remove it then i am getting above error.
    If there any alternative or other setting to overcome this error.
    Thanks
    Om

  • GR to be done against only Inbound delivery for selected vendors

    GR to be done against only Inbound delivery for selected vendors. If the user putsthe combination " Goods Receipt+ Purchase Order+ Purchase Order Number " in MIGO , the error should be displayed as "Create MIGO with Ref to ASN"
         At the time of MIGO, when user put the combination of Goods Receipt+ Purchase Order and purchase order number, BADI will activate.
         BADI will search the vendor code from the entered purchase order in the Z table in which user maintain the vendor codes.
         If BADI finds the vendor code in the Z table then, will give error as u201CPlease create inbound delivery firstu201D.
         If BADI does not find the vendor code in Z table then it will inactive.
         In short we are restricting the selected vendor for MIGO with reference to PO.

    Hi,
    If u had used confirmation control key (0001) - In Item details of PO, as per standard SAP u cannot proceed for GR without inbound delivery. Otherwise use MB_MIGO_BADI. Thanking you

  • Overhead on Subcontract Vendor Charge

    We have implemented Raw Material Costing, adding overhead through use of a costing sheet.
    We use subcontracting (PrcTypF/SpcPrcTyp 30). In most plants it is a minor portion of the cost, so we did not need to know how to add overhead to the vendor charge
    At One of the plants that we are converting now to Raw Material costing, the Subcontract vendor charge is 80 - 90% of the value. We need overhead added to that charge.
    I thought I could just check the box in the valuation variant for Overhead on Subcontract Materials and it would calculate.
    It did not..
    I did add the subcontract cost element to the BASE on the costing sheet.
    What else do I need to do to get the overhead
    thank you
    Althea

    Have you specified OH costing sheet under the tab overhead? This costing sheet needs to be specified for the Finished/semi finished field.
    Please check if you can see the OH sheet under the valuation tab. Also check if the cost element in OH costing base is showing in itemization.
    I think it is a OH costing sheet issue and not subcontracted material issue.
    Sanjay Wagh

  • Subcontracting Vendor and Purchase Vendor

    Dear All,
    I have created separate Pricing Procedure for Subcontracting PO, since the requirement is to calculate the price on issuing qty. I have put Formula Based Condition type.
    We issue 100 KG of material and receive less than 10 KG (say 90-95 KG) but the vendor charges for issuing qty (100 KG)...so I created a new condition type which calculates for total price for 100 KG and calculates for receiving qty...Suppose Rs. 10/KG then in this case its Rs.1000/- but system should calculate unit price for 90 KG i.e. 1000/90 = 11.11 ...this is working fine as long as Iam calling Subcontract Vendor where this Schema Group is assigned in the Vendor Master..
    My problem is, for some Vendors, he is both Subcontracting Vendor and Purchase Vendor...so Iam not able to calculate for Subcontracting calculation with this requirement...where as I have separate calculation schema for Purchase Vendors...
    How to meet this..
    Kindly Suggest
    Regards,
    Gopala.S

    Hi
    Thanks for your quick reply, please give me some brief info on routine, how and where we need to do settings.
    Regards,
    Gopala.s

  • Planned delivery costs (Freight) vendor into an access sequence

    Hello,
    Our MM users want to maintain a price condition record where they would be able to maintain a cost/ton based on effective dates.
    The objective is to maintain a price condition record based on the following criteria: PO header vendor, material, and planned delivery costs (freight) vendor so that they would not have to maintain prices manually in the PO (this price would come directly from the condition record).
    However, there is no standard field available to create an access sequence in which the freight vendor (KOMV-LIFNR) could be included. Indeed the field LIFNR is available but I guess it refers to the PO header vendor.
    Is it still possible to create such an access sequence? What do you think of this requirement?
    Thanks,
    Annabelle R.

    Hello Annabelle,
    Raw material vendor A + Raw material A + Truck company A =» Price A
    Raw material vendor A + Raw material A + Truck company B =» Price B
    can yo please explain the meaning of "Raw material vendor A"  stands for what price?
    As far as i know, freight cost could easily included in the material cost, because in m/06, there are so many cost that are on quantity basis and are included in the material basis, just make a copy of anyone of them and add it to you pricing procedure as well as supplementry pricing procedure, or else you can directly make a condition record in MEK1 for this condition.
    please try it hope it helps
    Regards,
    yk

Maybe you are looking for