How to execute ATP check and update schedule lines for existing sales order

Hello all,
After stock quantity has been updated, we’d like to perform ATP check and update schedule lines for sales documents which have not been delivered yet.
Is BAPI_SALESDOCUMENT_CHANGE useful to do so?
If so which fields should I set ‘X’?
At the moment, I called BATCH INPUT and execute ATP check.
But I'm wondering if this is not a smart way.
Thank you
Yuko

Hi arnab
  one way of achieving your requirements is
after creating the sales order you can execute the SALEs order MRP using MD50 transaction enter the order # and MRP control parameters 1,3,1,2. and execute.
Ensure the following before MRP.
1. All the master data are maintained for the schedule line creation for the components ( Source list, Scheduling agreements)
2. Material master with valid MRP data.strategy group having MTO strategy.
after sales order MRP you will get the schedule line created for the components
also MRp will create the cpacity requirements as we run the MRP with Lead time scheduling.
Hope this helps
SK
Reward your points

Similar Messages

  • In V_V2 the role of Sort Item by date of creation and Sort by delivery date of earliest schedule line for the Sales Orders when Material is out of Stock.

    Hi All,
    Good Morning,
    I am working on once Incident for Re-Scheduling Program V_V2 where the user has requested us to change the criteria for determining the priority of Sales Document based on Sort Item by date of creation. Currently they are using the Sort by delivery date of earliest schedule line in the Variant.
    I would like to know the role these both options play in the Re-Scheduling program V_V2. I would like to know the impact of both of them and the kind of testing I need to perform to study the behaviour of Sales Orders especially when the material is out of stock?
    Please explain with help of examples.
    Thanks
    Farhan.

    This is not that simple that an example would explain how this transaction works but I'll give you some examples.
    Material A has SO1 and SO2 of 10KG each, stock is 20KG so both quantities are confirmed at today. A stock recount determines a reduction to 5KG. This program would change confirmed quantity of SO1 to 5KG and SO2 to 0KG if:
    Creation date of SO1 is older then SO2 in strategy 1
    1st delivery date of SO1 is smaller then SO2 in strategy 2
    Material B has SO1 and SO2 with 10KG each but no quantity confirmed, stock is 0KG. A prodution adds 15KG to stock. The program would change confirmed quantities of SO1 to 10KG and SO2 to 5KG if:
    Creation date of SO1 is older then SO2 in strategy 1
    1st delivery date of SO1 is smaller then SO2 in strategy 2
    I'm assuming a specific configuration, there are many other scenarios possible.
    regards,
    Edgar

  • How to create deliver and billing...for existing sales orders?

    Hi Guru's,
    I had uploaded the 10 sales orders using BAPI ..
    now i wanted to create deliver and billing  for the existing 10 sales orders...thru BAPI(let me know if any alternate process also).
    could please guide me how create..?
    please provide me the step by step process..and please provide me the documentation if you have that would be helpfull to me...
    please let me know if my question is not clear..
    Thanks in adavance
    Srinivas....

    Hi,
    In normal practice we upload only open sales orders from the legacy system and not the completed sales orders.
    There were no standard BAPi's to create the outbound delivery & invoice documents in SAP, as they are created with a reference documents.
    Use BDC to upload those documents, even if you find a standard BAPI they will not upload the complete information for you.
    Thanks,
    Mahesh.

  • Custom program for availability check and update for existing sale order at Item level(VA02)

    Hi,
    I came to know Bapi_Saleorder_Simulate can be used for availability check and update an existing sale order.but there is no sample program explaining the process.I have tried this by passing parameters ORDER_HEADER_IN , ORDER_ITEMS_IN  ,ORDER_PARTNERS and ORDER_SCHEDULE_EX(for getting details),also i have assigned the sale document number ,custom document type(ZSO) in ORDER_HEADER_IN . while executing the BAPI I am getting the error external number range is not assigned for the document type ZSO . I am confused on seeing this error. It is possible to do availability check for existing sale order using this BAPI. Please explain how to achieve this.It will be really helpful if it is expalained with an example.   
    Regards,
    Shanmuga

    Hello, I think you may have been misinformed about this BAPI updating a sales order at item level. As far as I understand it this BAPI can be used to simulate the creation of a sales order which obviously would include and ATP check. This is why it is giving the error because it is simulating creation but you are entering a value in a field that should be automatically generated (i.e. the sales order number). For change the sales order at item level have you looked at BAPI_SALESORDER_CHANGE? I pretty sure this BAPI both updates sales order (header or item level) and can do an ATP first.
    Points are always welcome if you feel an answer has been helpful.

  • Adding Schedule lines to a sales order

    Friends,
      We have a requirement to clear the old un-delivered scheduled lines from a sales order and then add new schedule lines from a EXCEL file.  We were able to clear the old by putting in a new location.  Then, when we go to enter the new schedule lines, it clears the location, marks the Fixed date and Qty, and enters the delivery dates and confirmed quantities.  We tried using BAPI_SALESORDER_CHANGE, but the schedule_lines table only has the required quantity so when used it increases the order quantity, which is not good.  Is there any Function module that we can call to insert new schedule lines without increasing the order quantity other than using a BDC?  Thanks!

    Pasted below is the BAPI documentation for this parameter.
    "Check Table for Schedule Lines
    Description
    This parameter completes the following two tasks:
    Controls processing functions with the value in the UPDATEFLAG field (change indicator).
    The following entries are available:
    ' ':   Create new schedule lines
    I:     Create new schedule lines
    U:     Change existing schedule lines
    D:     Delete existing schedule lines
    Controls the field entry with check fields
    If the UPDATEFLAG field has been activated, the system only copies those fields to the data parameter that have been filled with 'X'."
    Nabheet

  • Schedule line date in Sale order for backward sched.

    Dear Experts,
    In my MTO Scenario, I want to Use Backward Scheduling, so as any change in Schedule line dates in Sale order shall take effect at least in planned order Stage, i.e in output of MRP,
    But not happening so..
    I  have customized OPU5 and checked OPU3 as well,
    Please suggest...
    Regards
    Raghu

    HI Mario,
    Thanks for reply,
    I have not worked in this strategy but will try,
    What i found was, in Planned orders detailed scheduling tab, the Scheduling type appeares to be Forward, but when i convert it to Production order it shows backward scheduling.
    This duel behavior is difficult to understand.
    Regards
    Raghu

  • Want to automate process of adding schedule lines to a sales order

    Hi Experts,
    I want to change the schedule line data in sales order.So I Found a BAPI_SALESORDER_CHANGE.Is it ok if I go with this BAPI or is there some other way?
    Thanks in advance!!!!!!!!!!

    HI
    Yes it's ok, another solution can be to create a BDC program, but it's better and easier to use that BAPI
    Max

  • Schedule lines combined in sales order

    Dear All,
    We have a sales order item with say 2 schedule lines as below
    Date                  Order Qty      Rounded Qty     Conf. Qty     Delivered Qty
    05.10.2010        60                  60                      0                  0
    18.11.2010        0                    0                        60                10
    Now, if we want to unconfirm the undelivered quantity and to do this we make the order qty = delivered qty and then change back the order qty to original qty, all this with ATP check off.
    We expect it to be ...
    Date                  Order Qty      Rounded Qty     Conf. Qty     Delivered Qty
    05.10.2010        60                  60                      0                  0
    18.11.2010        0                    0                        10                10
    It works but in some cases Sometimes, we notice that SAP moves old delivered  lines to first schedule line. Hence, we loose the schedule line information.
    Date                  Order Qty      Rounded Qty     Conf. Qty     Delivered Qty
    05.10.2010        60                  60                      10                  10
    Does anyone have an idea why SAP does this and how can we avoid this. This is really important for us, any help will be greatly appreciated.
    If anyone could also suggest a better way to unconfirm undelivered qty from schedule lines also.
    Best Regards,

    You can try to use delivery block at header level. Copy the delivery block credit limit and create a Z-block(t.code OVLS The path is SPRO->Logistics execution->shipping->deliveries->define reasons for blocking in shipping). When this block is assigned the confirmed quantities will be removed. Once  business approves, the block can be removed so that the remaining quantity will be confirmed. Just test first using the credit limit block in test system and if the results are OK, then you can create a new block.
    PS: Please close threads once those are answered. There are old threads still with open status and you action to close those are appreciated.
    Regards,

  • Schedule lines & TOR in Sales order

    Hai Experts,
    ( in Sales order - VA01 ) How Schedule lines is related with TOR.
    Kindly explain me in detail
    Regards,
    Geetha

    Hi Geetha
    To deliver an Item you need to have a schedule line.
    In the Sales order, an Item can have one or more schedule line, but to be delivered atleast one schedule line must be there.
    During Sales order processing a 'requirement transfer" is sent to the "Materials planning " department for the schedule line ,which a communication between SD and MM department (SD-MM interfac).
    From this "Transfer of Requirement", Materials Planning comes to know,How much quantity of which material SD needs to deliver and on which date.
    Accordingly, they may go for Production or Procurement as applicable to make the goods available for SD to meet the schedule line.
    Schedule line contains the information about Delivery date, delivery quantity aswell as information about requirement transfer and goods movement.Schedule line is controlled by "Schedule line category".
    So, in the Schedule line category we configure, whether Tranfer of Requirement is relevant or not, beacuse all schedule lines are not relevant for Transfer of Requirement.
    For example,
    when we create a Standard order for a normal material, it has got a schedule line and its schedule line is relevant for "Requirement Transfer".
    But, when our faulty goods comes back from the customer, we create a Return order, which also has a schedule line so that the goods will come in, but this schedule line is not relevant for "Requirement Transfer".
    So, if you will go for the "Schedule line category in Return" (DN), you will find the Requirement transfer field is blank, beacuse when my faulty goods are coming back, why should I put a requirement to Materials planning.It is not relevant.
    I hope now you are clear about the relation of Schedule line and Requirement transfer.

  • Question on Schedule Line category in Sales Order not relevant to MRP

    Hi experts,
    I want to know whether the sales order having any schedule line category like CP, CN, etc will not be relevant for MRP. In other words, If I do the MRP run for the Sales Order Requiremnt having any Schedule Line Category in particular will not generate any procurement proposals like Planned order/ Purchase Requisitions. Please advice me on the same.
    Regards
    Brijesh

    Dear Brijesh,
    Please find some info related to scheduled lines below,
    The various schedule line categories are controlled in different ways:
    The schedule line AT in inquiries is used only for information.
    No requirements are transferred and no availability check is carried out for the schedule lines BN and CN.
    Requirements are transferred and the availability of the material is checked for the schedule lines BP and CP.
    No stocks are managed for the schedule line categories BT, CT and CX. No goods issue is posted for the categories BT and CT. However, goods issue is posted for CX.
    The schedule line categories BV and CV are controlled in the same manner as the categories BN and CN. However, requirements can be passed on for analysis purposes.
    Goods receipt is posted for the schedule line DN in a returns document.
    The schedule line categories CN, CP, CT, and CV are relevant for delivery; the other schedule line categories are not.
    *Control Elements for Schedule Line Categories
    Different schedule line categories are permitted according to the sales document type and item category you are using. You can use control elements to tailor the schedule line categories to meet the special demands of your installation. You can also define new schedule line categories.
    Hope this helps.
    Thanks
    Murtuza

  • Schedule Line for Make to Order Item.

    Hello
    In make to order scenario,  there are 2 schedule lines for the MTO item in create mode of Order. 0 confirm quantity on the req
    When I save the order, i can see only one schedule line with confirm quantity 0.

    Hi,
    Make-to-order production is controlled by the requirements type. The requirements type is
    determined on the basis of the MRP group and the strategy group in the material master record.
     Create material by specifying item category group as 0001 = Make u2013 to u2013 order (Normal item)
    In MM01 Basic data tab, General item category field [0001] = Make u2013 to u2013 order, 0002 for configurable
    material
    Make u2013 to u2013 order checking group for availability check should be [02] = Individual requirements in Sales:
    General/Plant tab.
     Go to VA01 and raise the sales order by specifying this material that we created in the previous step
    Item category is TAK
    Schedule line category = CP
    Requirement type = KE [Sales order Header  Procurement  Requirement field]
    KE = Individual customer order without consumption
    (For standard items item category group = NORM)
    System determines requirement type 041-order/delivery requirements. This requirement type points requirement
    class where we can control whether the system has to carryout TOR, Availability check, and Product allocation
    functions.
    Hope this helps.
    Regards,

  • How to get Characteristic Values assigned to the line item of Sales Order?

    Hi,
    I want to get the Characteristic Values( Variant Configuration )assigned to First Line Item of Sales Order.
    I was using the Fn. Mod.: VC_I_GET_CONFIGURATION_IBASE,
    this fn. mod. giving all the Characters but not the assigned characteristic values.
    Is there any other way to find characteristic values of sales order.
    Thanks,
    vinayak.
    Message was edited by: vinayaga sundaram

    For example, please see this example program.
    It lists the characteristic names, the values, and the description of the values which are tied to a sales document.
    report zrich_0001.
    * Internal Table for Characteristic Data
    data: begin of i_char occurs 0.
            include structure comw.
    data: end of i_char.
    data: xcabn type cabn.
    data: begin of xcawn,
          atwtb type cawnt-atwtb,
          end of xcawn.
    data: xvbap type vbap.
    parameters: p_vbeln type vbap-vbeln,
                p_posnr type vbap-posnr.
    start-of-selection.
      select single * from vbap into xvbap
                 where vbeln = p_vbeln
                   and posnr = p_posnr.
      clear i_char.  refresh i_char.
    * Retrieve Characteristics.
      call function 'CUD0_GET_VAL_FROM_INSTANCE'
           exporting
                instance           = xvbap-cuobj
           tables
                attributes         = i_char
           exceptions
                instance_not_found = 1.
      loop at i_char.
        clear xcabn.
        select single * from cabn into xcabn
                 where atinn = i_char-atinn.
        clear xcawn.
        select single cawnt~atwtb into xcawn
                   from cawn
                     inner join cawnt
                       on cawn~atinn = cawnt~atinn
                      and cawn~atzhl = cawnt~atzhl
                          where cawn~atinn = i_char-atinn
                            and cawn~atwrt = i_char-atwrt.
        write:/ xcabn-atnam, i_char-atwrt, xcawn-atwtb.
      endloop.
    Regards,
    RIch Heilman

  • How to Update multiple line Items in Sales order Interactive form

    Hi,
            I have created one online interactive form for sales order. In that I incorporated dynamic table logic .i.e. we can add row and delete row using buttons. Interactive form is working fine with one line item. But if I give multiple lines in table (line item) its creating sales order with single line item. So please help me how to pass multiple lines.
    Thanks & Regards,
    Krishna.

    Hi,
    Check out this link, this deals with the problem you are facing.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/802f0ed1-a17a-2c10-7db4-d515a5b047ed
    Regards,
    Runal

  • Report showing "Confirmed" and "Unconfirmed" Schedule Lines for SA's

    Hi Experts!
    I had an issue regarding our scheduling agreements. Issue is below:
    Open Order Report only shows the "unconfirmed" schedule lines...Is there any way or a report that will show the "confirmed" schedule lines as well?
    This is an urgent matter. Any responses will be greatly appreciated and points. Thank you for your time!!
    Best Regards,
    WC

    In VA05
    execute the required parameters and in settings select the layout with schedule line.
    I think that should solve your issue
    reward points if it helps
    regards
    Biju

  • Can we run a finished good ATP check based on a full pallet at Sales order level

    Hi Folks,
    I have a requirement from business stating that "is it possible to run a finished good ATP check based (for ex.) on a full pallet when the alternative UOM is maintained in the material master for the finished goods.  For ex. 20 kg = 1 pallet".
    Now I know about the transactions POP1 & POF1 used in packing. But I want to know can we include the pallets & run an ATP check at SO level for the handling unit created altogether?
    Kindly suggest
    Thanks & regards
    Ashwin Vyas

    Hi Phanikumar,
    The customer has given a crude requirement as off now & asked to investigate. So i would like to explore the possible solutions.
    However, i would like to know is packing at SO level can be a solution to this requirement.
    Also, I agree with your comment that "In Normal--Availability can happen on BASE UNIT OF MEASURE", in addition to that here in this case the availability check is marked for the pallets in master data.
    Thanks
    Ashwin Vyas

Maybe you are looking for

  • Email address was changed now iMessage won't work

    my email address was changed from mine to my dads. he had changed my apple ID over to his email (i allowed him to use my ipad and this is what happened). i just changed my password and email back to mine and now my iMessage will not work. it keeps sa

  • I open .mpg file using QT and there is sound...NONE in FCP

    I have an MPEG2 file on the computer, and opening it in Quicktime there is sound accompaning it, like it should be. When I drag the clip into FCP, there is no sound? What is going on here? What can i do to get the sound back? I checked the properties

  • Now you see it, you don't -

    Another surprise from my inherited doc set, though in general my predecessor didn't do a bad job: a paragraph style specifies a background colour (CMYK, process) to give white text on a blue background on the cover page. No problems on screen, otherw

  • N95 Mass storage connection issue.

    I have a strange problem with my N95. When I connect to my PC Vista cannot install the drivers for the mass storage/data transfer application. The drivers for PC suite, media player and image print work fine, but it appears that the drivers for Mass

  • CF9 - cfinvoke seems to search scopes in different order

    We came across this in a legacy app when it was moved to CF9 -- a cfinvoke that had always worked in previous versions seemed to stop working whereas invoking the same method using function notation returned the right results. I've only tested the fo