Funktion to create MM Scheduling agreement

Dear all,
I am looking for a funktion/bapi to create material scheduling agreements in SAP. I think BAPI_PO_CREATE1 does only create purchase orders. Any ideas how to create scheduling agreements by funktion?
Kind regards
Roman

Hi,
Did you read the FM documentation.
there a table parameter for Schedule lines.
Parameter: POSCHEDULE
PO_ITEM = 00001
SCHED_LINE = 0001
DELIVERY_DATE = 02.12.2002
QUANTITY = 6.000
PO_ITEM = 00001
SCHED_LINE = 0002
DELIVERY_DATE = 03.12.2002
QUANTITY = 5.000
PO_ITEM = 00001
SCHED_LINE = 0003
DELIVERY_DATE = 04.12.2002
QUANTITY = 4.000
Parameter: POSCHEDULEX
PO_ITEM = 00001
SCHED_LINE = 0001
PO_ITEMX = X
SCHED_LINEX = X
DELIVERY_DATE = X
QUANTITY = X
PO_ITEM = 00001
SCHED_LINE = 0002
PO_ITEMX = X
SCHED_LINEX = X
DELIVERY_DATE = X
QUANTITY = X
PO_ITEM = 00001
SCHED_LINE = 0003
PO_ITEMX = X
SCHED_LINEX = X
DELIVERY_DATE = X
QUANTITY = X
Check it...
you can use it to create the schedule lines also...
Regards
vijay

Similar Messages

  • Error in creating a schedule agreement

    hi friends
    i got an error in creating a scheduling agreement
    the error reads- 'zjk5(the output type ) is not defined'
    condition records,port definition,partner profiles everything is fine.
    another error that reads is 'No communication data is set for medium 6ie edi'
    please answer this problem.thanks is advance.

    Hi,
    Check the Output type was created or not for that Scheduling Afreement?
    check the table T685 for that Output type?
    And n the diocument have you configured the Output type with the correct medium (EDI  value 6) and have you assigned the same in NACE tcode?
    check
    reward points if useful
    regards,
    Anji

  • BAPI for creating sales scheduling agreement

    Hi All,
    I have a scenario where i need to create a sales scheduling agreement using VA31. I have tried using a function module "SD_SALESDOCUMENT_CREATE". I am able to create the document by inserting the correct data in "SALES_HEADER_IN", "SALES_ITEMS_IN", "SALES_PARTNERS" and using the update flag as " I ".
    When I try to insert data in "SALES_SCHEDULES_IN" the function module returns error message "No schedule line category could be determined during quantity adjustment".
    please provide help in finding out the right procedure for creating the scheduling agreement with schedule lines data.
    Regards.
    Anurag

    Hi,
    Did you shown this to your functional team.
    Regards,
    Madhu.
    Edited by: madhurao123 on Nov 21, 2011 3:29 PM

  • I have created a scheduling agreement for a material i want to cancel.

    i have created a scheduling agreement with a material i want to use the material in a contract with another vendor, is there any way i could use the material or i have to terminate the scheduling agreement and create the contract. in case of canceling the agreement what are the steps involved i mean the T Codes.

    Hi,
    First af all you have not mention that is ther any subsequent delivery documents are exist against that scheduling agreement or not....if yes then you cannot delete the scheduling agreement unless u reverse the deliveryin t-code VL09 and by cancelling billing docs in VF11(if invoice created) as well...
    If thr is no Deliveries, then you can delete that scheduling agreemnt very well, by going VA32 enter agreement no., press enter
    on top selct sales doc option and delete the agreeement...
    Reg
    JJ
    Edited by: Jagsap on Jul 9, 2009 2:11 PM

  • Is it possible to create Automatic Scheduled Agreement like Automatic PO

    Could you please explain, is it possible to create an automatic schedule agreement from the PR, PIR (ie.e viz.. as Creation of Automatic Purchase Order)

    Hi
    Why you want to generate the Scheduling agreement automatically?  What is the requirment? Volume is high?
    As Sridhar mentioned you have no option in standard SAP to create automatic scheduling agreement. But you can create delivery schdule via MRP.
    If you have more volume then go for developing the program with ABAP guys.
    if the requirment is for Cut over only then go for LSMW or BDC options.
    Hoe it helps
    Karthik

  • 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

  • VA31 - Create a scheduling agreement

    Dear Gurus,
    When trying to create a scheduling agreement using VA31, I input the following data:
    Sched. Agreemt Type
    Sales Organization   2200   France, Paris
    Distribution Channel 14     Service
    Division             00     Cross-division
    Sales Office         2200   Office Paris
    Sales Group          2200
    Now, I cannot choose any Scheduling agreement type from a drop down menu as none seems to be linked or created for that sales area.
    Can anyone help me create a list of Scheduling agreement I can choose from?
    Thanks
    Chris

    Scheduling agreement type should have been created in VOV8 and then this document type should have been assigned to your sales area 2200 / 14 / 00 in OVAZ.  Check whether you have assigned your scheduling agreement type in OVAZ.
    thanks
    G. Lakshmipathi

  • Generate Source List while creating Contract/Scheduling Agreement

    Hi,
    My requirement is that the Source List for the particular Material / Vendor should be created automatically when I am creating a new Contract / Scheduling Agreement.
    How can this be acheived.
    Thanks in Advance,
    Manju.

    Create an LSMW so that while loading contract itself you can also load source list.
    Regards
    Mohan

  • Exit in VA31 To Prevent Creating of Scheduling Agreement

    Hello,
    I have looked through the threads and did not fnd my answer, so I am opening this thread.  I have a requirement that under certain conditions a scheduling agreement cannot be created for a particular ship-to and/or bill-to.  Is there a particular ext that someone have used before to provide this type of functionality?
    Regards, Dean.

    hi
    you may use here form USEREXIT_CHECK_VBAK in program MV45AFZB
    to display MESSAGE E...
    regards, darek

  • BAPI to create Scheduling Agreement of VA31

    Dear gurus,
    I need to find the BAPI or Function Module to create Scheduling Agreement of VA31 from the uploaded data. I know that I can use BAPI_SALESORDER_CREATEFROMDAT2 to create the sales order of VA01. Can I use the same bapi to create the scheduling agreement of VA31? Both of the screens seems to look quite the same but their order types are different. Any suggestion on this?
    Thank you for your help. Have a nice day.
    Best Regards,
    Hedy

    Hi,
    FM
    BAPI_CUSTSCHEDULAGREE_CONFDELV
    Functionality
    You can use this method to make a delivery confirmation in the SD scheduling agreement
    Example
    1. Generating delivery for a scheduling agreement item.
    2. Changing a delivery item.
    3. Posting of goods issue for delivery.
    4. Deleting a delivery item or a delivery.
    Regards,
    Venkatesh

  • LSMW - create Scheduling Agreement for subcontracting position type

    Hi all,
    I want to use LSMW to create a scheduling agreement with position type L (subcontracting).
    I'm using Business Object Method BAPI with
    Business Object      BUS2013     
    Method               CREATE
    Message Type         PURSAG_CREATE
    Basic Type           PURSAG_CREATE01
    The LSMW creates the scheduling agreement with the list of material I inserted in my file but with position type 'blank'.
    any ideas?
    i read that the standard program RM06EEI0 don't support subcontracting, this is the reason of BAPI.
    thanks, MG

    Hi gurus!
    I forgot to put 'X' in E1BPMEOUTITEMX-ITEM_CAT so, even if i mapped the field, it was not updated.
    thanks a lot.
    problem solved.
    MG

  • 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 to know if a schedulling agreement is created via EDI

    Hello,
    I would like to konw if a schedulling agreement has been created via edi. Is there any field or any transaction where is indicated so?
    Thanks a lot!
    Regards,
    JMadariaga

    Hi,
    in your title bar "Display scheduling agreement xxxxx", you should have a "Services for Object" icon
    If this is not present,  you may have to add it to your profile in SU01
    (Just set SD_SWU_ACTIVE to X)
    If the icon is there, click it
    now a small toolbar should appear
    If the "display relationships" icon is not greyed out, click it
    You should now see all the idocs associated with this scheduling agreement
    Hopefully, the first one is the idoc which created the scheduling agreement.
    Also, if you just wish to see the last idoc associated with the scheduling agreement
    .After you click the Fore Dl Sch tab or the JIT DlSh tab
    Click the Dlv Sch Hdr
    Then Click the "Curr Idoc" and you will see your current idoc.
    kind regards
    Paul Quinn

  • Batch in scheduling agreement

    Hi gurus,
    we manage some material with batch.
    when i create sheduling agreement or when I maintain delivery schedule, I cannot enter the value of batch,
    In selection screen (for scheduoing agreement o delivery schedule) is not possible to set "display" to the field "batch".
    So I suppose that the field batch is not available for scheduling agreement,
    What do you think?
    Marco

    The functionality for batch field is not available in Scheduling Agreement.
    The cause is that a scheduling agreement is for a longer period.
    So it wasn't expected that the batch number is known when creating
    the scheduling agreement. You can enter the batch number when
    creating the goods receipt.
    Edited by: Agreta Gupta on Nov 22, 2011 6:20 PM

  • Auto Update of conditions in Scheduling Agreement

    Dear experts,
    i have a requirement like this..
    when we create a scheduling agreement ...we enter material,vendor,target qty and validity date ,price and enter tax code.
    After that we maintain condition types Vendor, material and Plant level....
    So in the same scheduling agreement we are adding one more material and giving same tax code.....Is there any possibility,so that system should copy condition types when we choose this tax code....rather than entering again and again for each material....
    Please do reply me...
    Thanks and Regards
    MK

    Hi MK,
    Are you asking about pricing conditions or tax conditions?
    Tax conditions flow auto when you enter tax code
    Whereas pricing conditions if those are manual conditions have to be maintained
    manually
    for conditions to flow automatically you have to customize the condition type for "changes can be made" with manual entries indicator as B
    and maintain the condition record
    Diwakar
    reward if useful

Maybe you are looking for

  • Copy-and-paste table row results in hang in Contribute 6.5 Mac

    Am running Adobe Contribute 6.5 for Mac on OS X 10.8.2 Mountain Lion. Cannot copy-and-paste a table row from one page to another without having Contribute hang. Get spinning multi-colored beach ball and have to eventuall Force Quit Contribute. This w

  • How do I create an icon on my desktop, for example Netflix or Facebook?

    New to Mac, how do I create icons on my desktop for example Netflix, Facebook, bing etc...when i drag they all come up with the safari icon.

  • Quicktime Unknown Error -50 - Help

    I keep getting this error message when I try to open any Quicktime files on my hard drive or any HD content like movie trailers and such. "Error -50 :an unknown error occured" Does anyone know what this means? I have tried uninstalling and reinstalli

  • Scrubbing Doesn't Stick

    I've noticed that when I scrub through podcasts, I have inconsistent results. Sometimes the scrubber bar works as expected -- when I lift my finger the file plays as normal from that point. In other cases, when I lift my finger playback resumes from

  • Need details about Supported Device jsr184

    Dear friends i want details abt jsr 184. Following things i know it is used for developing 3d graphics mobile game it is only run over the WTK2.2 which has one package .m3g I want following details which mobile devices(nokia or motrolo or ...) would