Adding schedule line in GATP result

Hi All,
Requirement is after ATP check using RBA if the order line is filled less than 100%, add a schedule line for the un-confirmed quantity with confirmation date in future.
I have observed availability check with replenishment lead time (checking horizon) confirms a line at the end of checking horizon and does not trigger RBA. This is undesirable. What is desired is order line should first check for substitute and then confirm the balance at the end of checking horizon.
To achieve this I am exploring, set the material for RBA, let RBA occur. Before publishing the GATP result to ECC, if confirmed quantity is less than order quantity add a schedule line confirming at the end of checking horizon in the initial location at which ATP check was triggered.
Appreciate quick input.
Many Thanks,
Bijit

Thanks Michael and Alhad,
Approach evolved:
Don't use checking horizon, use 'Remaining quantity" field in check instruction, select - "Create Remaining Requirement for Source Location Product". This adds additional item for the unconfirmed quantity but with no confirmation quantity. Then use BADI /SAPAPO/IF_ATP_REQ_ITEM_CONF to change the confirmation quantity and the date.
This is working fine for only product check and RBA. But not working for allocation check +RBA and forecast check + RBA.

Similar Messages

  • 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

  • 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 confirming as 0 Qty when uploaded SO using BAPI

    Hi Gurus,
    Iam posting sales order from flat file using BAPI.
    so the flat file is passing the schedule line date 31.01.2009
    but the system is taking the current date as the delivery date that is because of the VOV8 setting.
    but the issue here is that PGI and the A/c doc is also creating on 03.02.2009 date.
    can I control it?
    When I try to do a sale order manually, the schedule line takes the current date as default if i try to change it to date in past it is not confirming the quantity.
    I removed that tick in that order type VOV8.
    I dont mind if it takes the PGI date diffrent but the document date also it takes as the current date.
    after that i created a SO manully and there in the schedule line for 31.01.09 confr quantity 0 and 3.02.09 confirmed the quantity
    After removing the tick, I created manually a SO, and given delivery date 02.02.2009 but it is automatically taking 03.02.2009.
    Please help me in this regard,
    Regards,
    Anbu

    Carried out backwards delivery scheduling indicates that the system is to carry out only backwards scheduling for all schedule lines in the sales document.
    When changing a sales document, such as adding schedule lines or rescheduling, the system carries out delivery scheduling for all lines. In some cases, the system performs forward scheduling which may have the undesirable affect of rescheduling lines that have already been confirmed.
    Marked this indicator to deactivate forward scheduling.
    Note that when this indicator is set, the system may determine a material availability date that lies in the past.

  • Schedule Lines Print

    Hi,
    We create a Scheduling agreement and create scheduling lines for the same in ME38 .
    If the quantity in the Sceduling agreement is 1000 for a material 'A'.
    We create the schedule lines for quantity 100. We take a print of the scheduling lines and send it to the vendor.
    Next, we create scheduling lines for next 100. The requirement of the client is that only the newly added scheduling lines should appear in the print.The previously created scheduling lines should not appear in the print.
    Any ideas how this can be handled are welcome.
    Regards,
    Naveen Goveas

    hi,
    pl go with Y program

  • GATP scenario and Rescheduling Schedule line dates

    Hi All,
    Can anybody tell me where and how can I reschedule the Schedule line dates available from a GATP check. My requirement is as follows:
    For a GATP material, after the GATP check, I need to push the Goods Issue date AHEAD based on the DAY and TIME maintained in the Route Schedule id (VL51, VL52, VL53) for the Route, Transportation Group, Customer, Shipping Point and Shipping conditions.
    I have presently coded my development in the Enhancement option after the FM RV_AVAILABILITY_CHECK in the include FV45VFMV_MVERF_PRUEFEN. Here I have called the FM APO_SCHEDULING to get the new set of Schedule line dates by passing the Goods Issue date that I calculate based on teh Route Schedule id.
    But the problem here is that the Schedule line dates that I get here have different time intervals from the Schedule line dates that I get normally in a GATP process in a standard process. Logically I feel, these time intervals should be the same while the Enhancement is in place or not.
    Please provide me inputs if anybody had faced this issue...
    Thanks in advance,
    Susanth Kumar

    Hi
    When I see the schedule line in the sales order where in the qty in the delivered qty column (second column from the confirmed qty column) is updated item wise irrrespective of the delivery done as per scheduleline date.
    It means though the delivery and PGI is not done for the date 15.12.2008, but the qty in the delivery qty column is updated and the balace to to be delivered shows for the last date.
    So here iam able to deliver only on the last date i.e. 25.01.2009 or at a later date for the schedule line date missing in between and not on the specific date.
    Is this how SAP standard works - I was wondering why i cannot deliver any schedule line qty and date later after delivering quantities of the subsequant schedule lines.

  • Adding schedule agreement & schedule lines in one out put

    Hi Friends,
    Can we add schedule agreement & schedule lines in one out put. What settings to be done. I am using document type as LP.
    I am in ECC 5.0 version.
    Regards

    Hi,
    In std there is no possible .But still we can develop a Z- programme with the help of ABAP Person if you explanin the logic they will develop the same
    Regards
    Murugan J

  • Adding a new schedule line for a line item using bapi_po_change

    hi experts,
    can i know how to add a new schedule line for a line item using<u> bapi_po_change</u>. what are the parameters that need to be filed. i filled poitem with total quantities and poschedule table with 2 different schedule lines and passing as the parameter.but then i get the error saying item 0000 doesnt exist

    Hi,
    Please check if you have properly populated the following fields in POSCHEDULE:
    PO_ITEM
    SCHED_LINE
    and the other fields required for your schedule line such as delivery date and quantity, etc.
    After that, make sure to properly populate fields in POSCHEDULEX:
    PO_ITEM -> same value as found in POSCHEDULE
    SCHED_LINE -> same value as found in POSCHEDULE
    All other values populated in POSCHEDULE should be ticked as 'X' in POSCHEDULEX.
    Kind Regards,
    Darwin
    Kind Regards,
    Darwin

  • Retaining the old schedule lines after the ATP check in the sales order....

    Hi Experts,
    I would like to retain the old schedule lines after the ATP/GATP check in the sales order for certain conditions.
    I don't want to change XVBEP,IVBEP,VBEP contents in the user-exit..
    Is there any standard sub-routine or function module to reatain old schedule lines in the sales order so that the schedule lines will not update with the new values after the ATP check ?
    Thanks
    Rayudu

    In Include LV03VFMM, you have:
    * Userexit availability
          PERFORM USEREXIT_AVAILABILITY_IN USING DA_ATPPR.
    There may be an option to implement some logic in here. However, I tried changing the value of MVERF_POS-EINTEIL[1]-VFPKZ to initial. This will ensure that when FM AVAILABILITY_CHECK_CONTROLLER is called that the following IF statement is untrue:
    CHECK NOT P_ATPCSX[] IS INITIAL.
    as P_ATPCSX[]                     Table[0x648].....
    However, this will just mean that the 2nd confirmed schedule line (assuming we have > 1 schedule lines) will have a confirmed quantity to zero.
    EXIT_SAPLATPC_001 could also be used. However, when I removed the "X" from CHKFLG, I get the same result; the 2nd schedule line will revert to zero.
    They were the only tests I tried; I cannot think of any other ways around this....

  • Strange MRP behavior - creation of schedule lines we don't need

    We are having a very strange MRP issue that I'm hoping there's a solution for.  If MRP looks something like this (extremely simplified):
    04/16 SchLine 100
    04/17 DepReq  100
    05/16 SchLine 100
    05/17 DepReq 100
    06/16 SchLine 100
    06/16 DepReq 100
    06/28 --- Time Fence ---
    Now a requirement comes along that increases requirements by 50 on each of the DepReq lines.  MRP wants to increase each of the SchLine lines by 50, but must put them after the time fence.  So far everything still looks Ok.
    04/16 SchLine 100
    04/17 DepReq  150
    05/16 SchLine 100
    05/17 DepReq 150
    06/16 SchLine 100
    06/17 DepReq 150
    06/28 --- Time Fence ---
    06/29 SchLine 50 (reschedule message, 4/16)
    06/29 SchLine 50 (reschedule message, 5/16)
    06/29 SchLine 50 (reschedule message, 6/16)
    We can't put these where SAP wants them.  We combine them into one schedule line for 150 and put it just inside the time fence.  Now here's the problem.  When we re-run MRP, it RE-CREATES the schedule lines for 50 so it looks like this.
    04/16 SchLine 100
    04/17 DepReq  150
    05/16 SchLine 100
    05/17 DepReq 150
    06/16 SchLine 100
    06/17 DepReq 150
    06/27 SchLine 150 (the line we added)
    06/28 --- Time Fence ---
    06/29 SchLine 50 (reschedule message, 4/16)
    06/29 SchLine 50 (reschedule message, 5/16)
    06/29 SchLine 50 (reschedule message, 6/16)
    How can we prevent it from re-creating the schedule lines for 6/29?  We've already added 150 on 6/27.  We can increase that quantity on 6/27 to one million, delete the three lines on 6/29, and SAP will still re-create them the next time MRP runs.
    Thanks,
    Randy

    Hi,
    Depending on the MRP type you have defined , procurement proposals are firmed and scheduled within the planning time fence.
    Hope have defined a Time fence and MRP type P1 , the procurement proposals inside the fence are firmed automatically and hence to compensate for the shortage (new reqmts), new proposals will be created on the end of PTF.
    yopu can choose from the following firming types:
    0  -- Procurement proposals are not firmed automatically. No firming takes place with this firming type.
    1 -- Procurement proposals within the planning time fence are firmed automatically as soon as their date is at least one day before the end date of the planning time fence. The date of new procurement proposals created in the planning time fence is moved to the end date of the planning time fence. As a result, these new procurement proposals are not firmed.
    2 -- Procurement proposals within the planning time fence are firmed automatically as soon as their date is at least one day before the end date of the planning time fence. No new procurement proposals are created automatically within the planning time fence; that is, the shortage situation is not adjusted within the planning time fence.
    3 -- Procurement proposals within the planning time fence are not firmed automatically. All procurement proposals required to cover the requirements are moved to the end of the planning time fence.
    4 -- No procurement proposals are created automatically within the planning time fence; that is, the shortage situation is not adjusted within the planning time fence.
    Regards,
    Sheik

  • SA Schedule Lines from MD03 date calculation

    Hi
    Please find the following snap from MD03 ,
    here the schedule lines generated dt 06-06-14, for this material planned delivery time and GR processing time is zero in material master,
    In info record planned delivery time is 1 day, I unable to understand why system generated the schedule after 4 days
    Then I created new material copying the above material and done MD03 for newly created then the schedule lines generated on 02-06-14, Why the system proposes two different schedule dates for new material and ol material?
    I searched the forum and checked all the available configurations and finally found
    IMG-Production-MRP-Planning-scheduling and capacity parameters-Parameters for determining the basic date
    when i checked the box for Start in past and again run the MD03 for the same material, then the results as follows, which is correct i think as per MMR
    Though i got the required results but did not understand what is this field Start in Past does? how the calculations takes place, what will be the effect if i keep this checked ?
    Thanks

    But how these fields were populated?? I think at the time of creation of SA, material master has the data and it has been carried forward, is it right
    Either a user manually maintained the values that you have in the SA or these values where at time of creation present in either the material master or the info record.
    The system (depending on the config set-up) copies the values in the following sequence to the SA.
    If values are maintained in the info record the system will adopt the data from the info record
    If no values in the info record then the system will copy the data from the material master record.
    I can't judge from here what values where maintained where. You can check the change logs to check if you can find the values back. In case you can not find the values in the change logs then it's likely that the values where manually maintained in the SA.
    But How this Parameters for determining the basic date work ?
    The determination of the date works based on the backward and forward scheduling.
    The system will first schedule using backward scheduling if this is not possible then forward scheduling is used.
    Some explanation on backward and forward scheduling.
    Backward scheduling explained
    When scheduling materials in SAP MRP, the system will first try to backward schedule the materials.
    With backward scheduling is meant that the SAP MRP system will start to count backward from the
    requirement date and will then determine the delivery date. As long as this date is later then the current
    date, the delivery date will be determined without a problem.
    Below image shows a graphical representation of backward scheduling.
    Forward scheduling explained
    Forward scheduling is used by the SAP MRP system when the date determined by the backward
    scheduling process is lying before the actual date. The forward scheduled date is determined by taking
    today’s date and then adding all the relevant processing time to determine the possible delivery date.
    This kind of scheduling will throw an exception message in the MRP view screen (MD04 / MD06 /
    MD07). These exception messages are telling the materials expeditor that action from her/his part is
    required in order to either postpone the production of the finished good or to work with the vendor to
    pull forward the required materials.
    Below image shows a graphical representation of how the forward scheduling is performed by SAP.

  • Why GR performed on MRP generated delivery schedule line (unconfirmed)?

    Hi Gurus,
    Need some advice from you all, I have a scenario here which MRP generated the delivery schedule lines for material A on 10.08.2011 - 124 KG.
    User review the MRP result and didnt confirm the line, but she added in manual line on 11.08.2011 - 124KG.
    On 11.08.2011, warehouse performed GR on the delivery schedule lines. It's found that GR was actually updated into the delivery schedule line generated by MRP (10.08.2011) and not the manual line confirmed by user. (11.08.2011).
    User is questioning now why the GR able to be performed on MRP generated line which had not been confirmed? Any guru can share with me the fact and good note regarding this on MRP? Thanks!
    Michelle

    Hi,
    Since we are talking here about schedule lines, these are open for GR when the delivery schedule is send to the vendor.
    In your case you had a quantity open for 10/08/2011 generated by MRP, then the user added manually another line on 11/08/2011. After this the user will have transmitted the delivery schedule which makes that both the items where marked as transmitted and thus open for GR.
    Now when the goods come in the system will post against the first open schedule line that is found until this is fulfilled and then switch to the next open line at the moment of GR. So this is why the GR was put against the MRP generated schedule line as this one was the one with the earlier date.
    Regards,
    Peter

  • Schedule Line Category and Availability checks

    Hi Folks,
    A generic question.
    Wanted to know, how would availability check results influenced if only Item category and MRP type are maintained and not the scheduled line categories.
    Was trying to figure a strange Availability check behavior of non-confirmation for one item category and confirmation for another- item x location being same. The ATP checks settings are maintained and called from GATP. (not R/3 and R/3 customization is not imported too).
    Regards

    closing

  • Using SQVI to generate report of open and released delivery schedule lines

    All,
    I'm using SQVI  to generate an excel spreadsheet for some buyers to show open released schedule lines because they are a 1 line item per scheduling agreement company.
    I used the logical database MEPOLDB instead of a table joint and pulled fields from EKKO(vendor, SA #,&purchasing group), EKPO(Material Number), EKEH(schedule line type), and EKET(delivery date, scheduled qty,previous qty).
    Does this sound like I'll get the results I want on paper as long as I use the right selection criteria, because the report I'm getting isn't quite what I expect? I am unable to identify which lines are authorized to ship vs. trade-off zone, planning, etc. in the report thus far.

    Hi Mark,
                 I have faced same requirement. I am not sure about transporting to TST and PROD. I done by this way.
    After generating SQVI program in DEV , I assigned that program  to a transaction and tested in DEV. Later i have regenarated SQVI in Production. then I assigned the generated Program to same transaction in DEV. And transported the Tcode assignment of program to Production..
    About authorization , if its not sensitive report, BASIS can restrict at transaction level.
    Regards,
    Ravi.

  • Restriction of addition of Schedule lines to a sales order/scheduling agrmt

    Dear Gurus,
    I need to restrict addition of new schedule lines to a scheduling agreement till all the goods in the previous schedule line have been delivered.
    I tried applying a delivery block at the SL line level ( in the SL category). But to my surprise, the system allows the user to add SL lines to the scheduling agreement. after this the user is free to create deliveries even though the delivery block is still active on the SL line.
    I'll try explaining this on numbers:
    0n 30.01.2010 i created a SL line for say 100 qtys. The system automatically applies the SL block to this. This Delivery block is removed by the concerned authority.
    Now I create a delivery of say 99 QTY for this SL line. The scheduling agreemnt status is as follows:
    order qty is 100, *** rel qty is 100, open qty is 1 and confirmed qty is 100.
    Now suppose the user enters another Sl line for 100 qty's for which the delivery block is till active and not released.
    In this case the user can create delivery for upto 101 qty's. Ideally I want the system should allow the user to create a delivery for only 1 more Qty ( Delievery block for the new SL line is still not removed).
    How can we do this? Please help!
    Warm Regards
    Prashant Joshi.

    Hi,
    If u adding 100 more quantity in same schedule line then system will create delivery for 101 not for the 1
    becauze u adding qty in existing SL,
    If u want to deliver first 1 qty,then
    Add another schedule line of 100 & block it.
    Create delivery, now system will create delivery onely for qty 1, Not for 100 becauze it is blocked.
    If your Block is not working properly
    Then on initial screen of delivery creation put from to item Number as 10 in both and deliver it
    Kapil
    Edited by: Kapildev Farakte on Feb 3, 2010 5:11 PM
    Edited by: Kapildev Farakte on Feb 3, 2010 5:13 PM

Maybe you are looking for