BAPI Create delivery from scheduling agreement

Hello,
Does anyone have code to create a delivery referencing a scheduling agreement?  
Thanks,
Evan

I dont think there is a BAPI to create delivery from the schedule lines .
You can get the details of schedule lines from the VBEP  table and use the FM BAPI_OUTB_DELIVERY_CREATE_SLS.
This becomes very cumbersome in case there are partial deliveries per schedule line.

Similar Messages

  • MRP  supplier consignment create delivery for  Scheduling Agreement

    Hello,
    We have a situation where MRP is used to calculate for a material which is subject to supplier consignment and also to scheduling agreement. When we run the MRP generates purchase requisitions for the consignment material , but it does not find the scheduling agreement for the material. We expected that it would create deliveries for the scheduling agreement.
    The question is, is it possible to obtain deliveries from the MRP for the scheduling agreement?
    Thanks a lot
    Ignasi

    Yes, it seems the problem was in Quota Arrangements which was not  well defined for consignment material.
    Thanks.

  • Info record creation from schedule agree, with all conditions

    HI
    We wish to create Inforrecord from schedule agreements, When we used Info update indicator B its creating Info record but not copying conditions from schele agreement only order history is updated
    Is there any way we can copy all conditions from schedule agreement to info record?
    Thanks

    I realized, standard SAP behaviour is
    Info record does not exist
    Quotation
    Time-dependent conditions and their supplementary conditions are adopted
      Scheduling agreement
    Is set as last document; order price history is updated
      Contract
    Time-dependent conditions and their supplementary conditions are adopted
      Purchase order
    Is set as last document; order price history is updated
    IS THERE ANY OTHER WAY TO ACIEVE CPYING OF ALL CONDITIONS FROM SCHEDULE AGREEMENT TO INFORECORD
    Edited by: Sasi nagireddy on Jan 12, 2011 5:37 AM

  • BAPI/FM to change scheduling agreement's delivery status.

    Hi All,
    I have to check  "Delivery completed" indicator of scheduling agreement.
    I tried using BAPI_PO_CHANGE but it returns the message below:
    "Not possible to process a scheduling agreement using this function"
    Is there any other BAPI or FM to change the agreement.
    I do not want to use batch-input. But if there is no other option I will.
    Note:  I am using system 4.6C
    Thanks
    Mandeep

    hii
    try using BAPI_AGREEMENT_MAINTAIN FM.
    one another FM BAPI_SCHEDULE_MAINTAIN is used to create or change scheduling agreement delivery schedule lines.i hope any FM can help you.
    regards
    twinkal

  • BAPI to create and update scheduling agreement (type LZM) in ECC

    Hi,
    We have a requirement to create and update scheduling agreement of type LZM in ECC from an external system.
    Is there a BAPI available for this in ECC 6.0 which can be used?
    The integration is using PI.
    Regards,
    Srivatsan

    Hello,
    Please use the T-code "SE93" and then click on Display option after entering the T-code. After entering into the detail screen of the T-code, you shall find option to click on OBJECT LIST and then enter into the Function Group. Now enter the T-code and then click on function module and a list of function module will be displayed in referrence to the T-code. 
    For your easy reference i have also mentioned the flow.
    SE93 --> Use tcode (eg. VA01) > display> Object list ---> Function Groups --> Tcode ---> Function module.
    Regards,
    Sarthak

  • BADI:to create automatic Sales order(va01) from Scheduling Agreement(ME31L)

    Gurus,
    I want to create SO after Scheduling agreement creation.
    I am trying to do it using BADI: ME_PURCHDOC_POSTED method Posted.
    I've implemented it, and it is getting called, I am trying to create SO using SO create BAPI in the BADI.
    though the same code of SO creation with schedule line Through BAPI working fine with reports, its not able to create SO with schedule line when i use it in BADI.
    Point rewarded for any help.
    Rgs
    Ashok.
    Edited by: Ashok Gupta on Mar 30, 2008 5:20 PM

    i've done it.

  • Outline agreement or automatic schedule from scheduling agreement

    Hello Master's,
    Plz find the below workflow which will brief u abt the complete process;-
    1.User raises indent(me51n) and then releases(me54n) else as per our MRP, indent/PR gets generated automatically.
    2. Standard Practice is that we invite offers, negotiate and place order (me21n) else f we have rate contract for any item we go for direct ordering (me21n) and then get it released (me29n)
    For around 20-30k material codes we have rate contract finalized with various suppliers for a period of time.
    When we find any indent/pr falling into this category, we dont invite offer but go for ordering as per the finalized price. The price is maintained in excel or pdf format.
    Problem is we want to map material codes with vendor and rates associated with the contract.
    For this either we have to go for outline agreement(me31k) of scheduling agreement(me31l) so that whenever any indent/PR gets generated in this category, order/delivery schedule will be generated automatically in SAP.
    Points in which i need help from you:-
    1. How to generate automatic po from outline agreement or automatic schedule from scheduling agreement.
    2. complete understanding of the difference between outline agreement and scheduling agreement.

    Hi Nilson,
    The data contained within the global outline agreement is distributed as purchasing contracts or scheduling agreements to the backend systems of the release-authorized purchasing organizations of the relevant corporate group. These purchasing organizations can then use the purchasing contracts or scheduling agreements according to the terms agreed centrally within the global outline agreement.
    For more details.
    http://help.sap.com/saphelp_srm50/helpdata/en/42/f93dfd975f3ee6e10000000a1553f7/frameset.htm
    Nishant

  • Create delivery from a PO

    Hi,
    I need to create a new Z transaction that creates a delivery from a purchase order.
    So far I found two FM's (GN_DELIVERY_CREATE and RV_DELIVERY_CREATE) but they only seem to work with sales orders.
    There also BAPI's to change deliveries but none to create deliveries.
    Is there a way to automatically create a new delivery from a PO? FM, BAPI, ...
    If possible I would like to do in in foreground
    Thanks in advance!
    Bert

    Hi Bert,
    Use code similar to the below to create delivery from PO.
      data:lt_request      like bapideliciousrequest
               occurs 0 with header line,
           lt_createditems like bapideliciouscreateditems
               occurs 0 with header line,
           lt_return       like bapiret2
               occurs 0 with header line.
      if px_infile-type = 'PO' . "If Purchase order
        lt_request-document_type      = 'B'.
        lt_request-document_numb      = lv_ebeln.
        lt_request-document_item      = lv_posnr.
      else.                      "If Sales Order
        lt_request-document_type      = 'A'.
        lt_request-document_numb      = lv_vbeln.
        lt_request-document_item      = lv_posnr.
      endif.
      lt_request-material           = lv_matnr.
      lt_request-plant              = lv_werks.
      lt_request-stge_loc           = lv_lgort.
      lt_request-quantity_base__uom = lv_base_uom_qty.
      lt_request-delivery_date      = sy-datum.
      append lt_request.
      call function 'BAPI_DELIVERYPROCESSING_EXEC'
      EXPORTING
        DELIVERY_EXTEND       =
        TECHN_CONTROL         =
        tables
          request               = lt_request
          createditems          = lt_createditems
          return                = lt_return.
      loop at lt_return where type = 'A'
                          or  type = 'E'.
        call function 'BAPI_TRANSACTION_ROLLBACK'.
        exit.
      endloop.
      if sy-subrc <> 0.
    Use the BAPI for Commit
        call function 'BAPI_TRANSACTION_COMMIT'
             exporting
                  wait = 'H'.
      endif.
    Hope this helps.
    Thanks,
    Ramakrishna

  • PS: WBS is not flowing for a Material, while creating delivery from Project

    Hi,
    While creating delivery from Project thro CNS0, WBS is not flowing for a Material in delivery, in turn WBS is not flowing in Billing document for same material, in turn not allowing to Post the Billing document to Accounting.
    Error while releasing Billing to the Accounting: Accounting Entry is not generated. Error Message:Assign Condition type
    YMRG in COPA.
    Pls let me know, what can be the reason ?
    Thanks.
    Amit.

    Hi Kuldeep,
    Check this note,
    Note 159387 - Message BP603: incorrect line item is displayed
    Its valid only till 4.6. Might give you some idea but.
    Regards,
    Gokul

  • Budget error while creating delivery from sales order

    hi Gurus,
    System is throwing error PB603 "Item 004 WBS element ABC-XXX budget exceeded" while creating delivery from sales order.
    I am picking material from unrestricted plant stock (not in project stock).
    I am also confused as sales order has 3 line items & error shows Item 004 !

    Hi Kuldeep,
    Check this note,
    Note 159387 - Message BP603: incorrect line item is displayed
    Its valid only till 4.6. Might give you some idea but.
    Regards,
    Gokul

  • Create delivery from Purchase order

    Hi all,
    I want to know the TCode to create a delivery from a Purchase Order
    Harini

    HI HARINI KESANI,
                                 IN ORDER TO CREATE DELIVERY FROM PO CAN DO THRU THE T.CODE
    VL10B( BATCHES). ENTER THE PURCHASE DOCUMENT IN THE PURCHASE ORDERS TAB PAGE, CLICK ON EXECUTE
    YOU WILL ENTER INTO ANOTHER SCREEN , SELECT THE LINE ITEM AND CLICK ON EXECUTE BACKGROUND.
    YOU WILL GET THE DELIVERY NO., GO TO VL02N AND DO THE POST GOODS ISSUE.
      YOUR CAN ALSO CHECK THE DELIVERY NO. IN THE P.O , PURCHASSE ORDER HISTORY TAB PAGE, THERE U CAN SEE THE STATUS OF THE GOODS ALSO , WHETHER MATERIAL DELIVERED ,ISSUED AND GR.
    REGARDS,
    RAM

  • Dates and quantities copied from Scheduling Agreement to Delivery Order

    Hi everybody,
    we're experiencing a problem with copying control for dates/quantities between Scheduling Agreement and Delivery Order.
    If we define a Forecast Delivery Schedule with more lines/dates into a Scheduling agreement, when I create a Delivery Order with reference to a specific date the system always copies the first forecast delivery schedule date, disregardful the date specified in the selection criteria for delivery creation and with the fact that this could have already been carried out.
    Here's an example:
    Forecast Delivery Schedule into Scheduling agreement:
    (Date) 12.03.07   (Quantity)  10 TO
    (Date) 13.03.07   (Quantity)  12 TO
    (Date) 14.03.07   (Quantity)  15 TO
    When delivery has to be created with reference to Scheduling Agreement, the system doesn't about the date specified in selection parameters (e.g. 14.03.07) and copies the quantity of the first forecast delivery schedule line (10 TO).
    Does anybody knows how to maintain Copying Control for dates and quantities between Scheduling agreement to Delivery Order?
    Thank you!
    Luca

    Dear Pattanaik,
    check data transfer from copy controls.for this T-code is VTLA
    here select your doc type and select details and check also item.check inside both types data trasfer wich is assigned change from this item to header.your problem may ve coming from here.
    hope this will helps you
    Prem

  • How to create correction delivery in schedule agreement

    Hi all -
    I am loading legacy data into SAP and am creating schedule agreements.  I create the agreement using SD_SALESDOCUMENT_CREATE, then COMMIT, then update the schedule lines using BAPI_SALES_DEL_SCHEDULE_CREATE also followed by a COMMIT. This works, and creates the schedule agreement with schedule lines.
    At this same time, or even in another BAPI or function call if need be, I need to create a CORRECTION DELIVERY for this schedule agreement.  I am populating the CORR_***_QTY_IN and CORR_***_QTY_INX in BAPI_SALES_DEL_SCHEDULE_CREATE  with values in every field, and the return tells me 'CORR_CUMQTY_IN has been processed successfully', but when I look at the schedule agreement in VA32, there is no ***. issued qty or ***. delv qty, and no correction delivery has been created.
    What am I missing??
    Thanks so much...
    Sharon

    Hi Shyam -
    I am calling the BAPI_TRANSACTION_COMMIT function right after the BAPI_SALES_DEL_SCHEDULE_CREATE function.  When I call that create function, I am adding schedule lines, so my return table has all of the other successful messages you would expect -
    ORDER_HEADER_IN has been processed successfully
    CORR_CUMQTY_IN has been processed successfully
    DEL_SCHEDULE_IN has been processed successfully
    SCHEDULE_IN has been processed successfully
    Sched. Agr. w/ Rel. 1030000058 has been saved.
    It even says the corrective *** qty was successful....but when I open the schedule agreement, and go to the Forecast Delivery Schedule tab on the line item, the Cml. iss. qty and Cml. dlv. qty fields are blank, and there are no deliveries associated with the order.
    Do I have to use a seperate BAPI to create the correction delivery?  I've looked at BAPI_OUTB_DELIVERY_CREATE_SLS, but I don't see how to specify that this is a correction delivery and not a 'regular' delivery.
    Thanks,
    Sharon

  • How are deliveries automatically created from scheduling agreement?

    How are deliveries automatically created from the schedule line of the scheduling agreement? Can anybody explain this step by step? Can we use the code VL10BATCH for this purpose? If we can, how is this code used?
    Thanks in advance.

    hi
    A customer scheduling agreement is an outline agreement with the customer containing delivery quantities and dates. These are then entered as schedule lines in a delivery schedule. You can either create schedule lines when you create the scheduling agreement or you can create them later.
    You fulfill a scheduling agreement by creating the deliveries in the schedule as they become due. You process deliveries for a scheduling agreement in exactly the same way as you process a normal delivery. After you have carried out the delivery, the system updates the Delivered quantity field in the scheduling agreement item with the delivery quantity.
    The scheduling agreement is used as a basis for delivering a material. The customer sends in scheduling agreement releases, referred to as delivery schedules, at regular intervals to release a quantity of the material.
    Document Types
    To configure document types for scheduling agreements, choose Sales -> Sales Documents -> Sales Document Header -> Define sales document types in Customizing for Sales and Distribution.
    The R/3 System contains the following document types for component suppliers:
    LZ - Scheduling agreement with delivery schedules (no external agents)
    LZM - Scheduling agreement with delivery orders
    LK - Scheduling agreement with delivery schedules (external agents)
    ED - Delivery by external agent (consignment issue)
    EDKO - External agent correction
    RZ - Scheduling agreement returns (no external agents)
    KAZU - Consignment pick-up for external agents
    KRZU - Consignment returns for external agents
    Item Categories
    To configure item categories for scheduling agreements, choose Sales -> Sales Documents -> Sales Document Item -> Define item categories in Customizing for Sales and Distribution.
    The system determines the following item categories for the related document types in
    documents containing materials with item category group NORM:
    Item category LZN for scheduling agreement type LZ
    Item category LZMA for scheduling agreement type LZM
    Item category LKN for scheduling agreement type LK
    Item category KEN for document type ED
    Item category EDK for positive corrections (or the manual alternative EDK1 for
    negative corrections) for document type EDKO
    Item category REN for document type RZ
    Item category KAN for document type KAZU
    Item category KRN for document type KRZU
    Schedule Line Categories
    To configure schedule line categories for scheduling agreements, choose Sales -> Sales Documents -> Schedule lines -> Define or Assign schedule line categories in Customizing for Sales and Distribution.
    The R/3 System contains the following schedule line categories for component suppliers:
    L1, BN, L2, and CN for item category LZN
    E4, E0, E5, and BN for item category LKN
    L2 for item category LZMA (standard for delivery order processing)
    Schedule Line Types
    To configure schedule line types for scheduling agreements, choose Sales -> Sales Documents -> Scheduling Agreements with Delivery Schedules -> Define schedule line types in Customizing for Sales and Distribution.
    Creating Scheduling Agreements
    To create a scheduling agreement with delivery schedules:
    1. In the Sales menu http://Ext. choose Scheduling agreement ->Create.
    2. Enter scheduling agreement type LK (standard) or LZ (external agents) and the
    relevantorganizational data.
    3. Choose ENTER.
    4. Enter the following data:
    Sold-to or ship-to party number
    Purchase order or closing number
    Material or customer material number
    You can use the Description field to identify the scheduling agreement. For
    example,
    you could enter the model year for a particular production series.
    The system allows up to 35 digits for a customer material number.
    Rounding quantity
    Usage
    Choose Goto -> Header -> Sales to enter the usage at header level, or Goto ->
    Item-> Sales A to enter it at item level. The system proposes usage S, for series, as default in both cases.
    Planning indicator
    Choose Goto -> Header ->Sales.
    Target quantity
    Mark an item and choose Goto -> Item -> Sales A
    Partners
    For scheduling agreements with external agents , choose Goto -> Header
    ->Partners to enter the external agent as forwarding agent and special stock partner
    on the partner function screen.
    5. Create a delivery schedule
    Mark an item in the scheduling agreement and choose Goto -> Item -> <Delivery
    schedule>. Enter:
    A delivery schedule number and date
    The cumulative quantity received by the customer
    The last delivery confirmed by the customer
    A schedule line with date, time, and quantity
    To enter additional data in the delivery schedule, choose DlvSch.Hdr (delivery schedule header).
    configuration:
    img->SD->Sales->sales document->scheduling agreements with delivery schedules->
    step1: define schedule line types
    schedule line types are not schedule line categories. Schedule line types are used for information purpose only.
    stds are 1. fixed date 2. backlog 3. immediate requirement
    4. estimate
    step2: maintain planning delivery sched. instruct/splitting rules
    The planning delivery schedule is an internal delivery schedule used to plan requirement s more efficiently.  It is sub divided into 3 parts
    2.1 delivery schedule splitting rules
    2.2 dly schedule instrusctions
    2.3 assign dly schedule splitting rules
    step3: define sales documents type
    step4 : define item categories
    step5: define schedule line categories
    step6: maintain copy control
    PROCESS
    step1:  create scheduling agreement
    VA31
    enter SP,SH valid from, valid to,
    goto ITEM OVERVIEW tab
    enter material, rouding qty
    select ITEM  click on FORECAST DLSCH
    enter different dly dates and qties
    save it.
    step2: create sales order with reference to above
    step3: create delivery
    step4: create billing
    regards
    krishna

  • Unable to create single delivery through scheduling agreement - MM37

    Dear All,
    In our scenario, we are creating scheduling agreement with tcode - ME37 for multiple material and for each material we create multiple delivery creation date schedule with past date (ME38).
    Then we create delivery with VL10D, we put scheduling agreement number in purchase order tab - purchase order field & Execute.
    It creates multiple deliveries but we want to have single delivery.
    We implemented SAP note - 377501 , but is is still not working.
    Kindly advice,
    Regards,
    Bhushan.

    Dear Lakshmipathi,
    Thanks for your reply.
    Yes, I searched the forum & got list of reasons for delivery split but wasn't able to identify exact reason.
    But first I want to confirm,
    1. Whether is it correct process to create delivery through VL10D for scheduling agreement (ME37) ?
    2. Also to overcome delivery split, we implemented SAP note - 377501 but did not worked.
    Therefore I am thinking to implement SAP Note -  386340, Kindly advice.
    Regards,
    Bhushan.

Maybe you are looking for