Schedule line logic

Hi Experts,
I would like to know a small logic on how to derive deliver qty based on schedule line. Am an ABAP developer. In one of my requirement i need to get the deliver quantity based on sales document , item and schedule  line.
i have an deliver document : 12345 , Item : 20 ,
                          schedule line : order qty, rounded qty, confirmed qty, deliver qty
                                                       15      , 15               ,  8                   , 8
                                                        0       , 0                 , 7                    , 7
When i check in LIPS table am getting the deliver qty like 8 , 2 , 5 . The deliver qty has been splited. In my report i need to show for which schedule line the are delivered. As i have only two schedule line in VBEP . when i execute am getting only two deliver qty like 8 , 2 . In my report i need to show also the 5.
So i would like to know where i can find for which schedule line the are getting spited.   If you can give me the details where i can find this information it will be helpful for me to build the logic. If you have any table name where i can find this information also it will be more useful for me.
Kindly let me know if you need any more information.
Thx in Advance.
-Guru

Hi,
Please go through the below threads it will help you to resolve your issue.
Delivery Qty of Schedule line item
Re: VBEP schedule lines
Regards,
Krishna O

Similar Messages

  • Delivery is delayed due to schedule line logic

    Hi Experts,
    I have encounter an issue with schedule line/ availability check logic.
    We have a sale order# 17111730
    Line item# 10
    Material# C540H1MG (ordered quantity: 1)
    Order was created on 06/24/2014 and on that very date  C540H1MG is available on that plant 1001 (more than 1000 quantity were available) but we have seen that delivery was created on next day although there is delivery creation batch job running every 10 mints interval and no problem found in that batch job.
    As per our observation, it is found that :
    There 3 schedule line were created for the same . For first schedule line delivery date is 06/25/2014 and for second one 06/27/2014 and third one 06/30/2014
    But when we select the individual schedule line and go to shipping tab, it has been seen that schedule line#  got switched.
    Schedule line# 2 has the MAD date as 06/25/2014 and delivery created on that date (but usually schedule line # should be 3 as it was created latest of all and deliver date was 06/30/2014)
    Schedule line# 3 has the MAD date as 06/24/2014 (but usually line # should be 2 as it was created earlier than schedule line# 3 and deliver date was 06/27/2014)
    Now my question is that once schedule line# 2 was confirmed then why another schedule line was generated through rescheduling batch job with a new MAD date and delayed the delivery and next question is why that schedule line# is getting switched?
    FYI:
    1.Changes done in schedule line was done by rescheduling batch job
    2. Recently a config change was done in availability check (T.CODE OVZJ) we make availability check rule as "E"
    For more details, screenshots with detailed explanation is attached here.
    Really appreciate your quick response on this.

    I don't think it is with the receiving server because almost 20% of our outbound email is experiencing this issue, and none of the recipients are seeing issues on their end from other senders.
    I had already reviewed those two articles but wasn't able to resolve the issue.
    One thing that worked on some of the domains was enabling "Use the External DNS Lookup settings on the transport server". It resolved some of the queued emails but they are being delayed again
    today.
    There is no gateway server. Can you elaborate on what you mean by "mail routing configured" - is there a specific setting you want to know about?
    -Chintan

  • Please provide logic for schedule lines and material document Quantity.

    Hi ABAPers,
    Please help in the following context.
    Is there any connecting or refrence field for which a particular schedule line item are considerd for the goods reciept of a particular material document.
    Also provide the logic.
    19                    34
    15
    14                   35
    11
    10
    If 19 15 14 11 10 are schedule lines, and 34 35 are two recived quantities,
    Then how can be the possible permutations and combinations logic to find out that, 34 = 19 + 15 and
           35 = 141110.
    Thanks in advance...

    Niles Raut wrote:
    Hello Gurus,
    >
    > This is intracompany STO scenario with delivery. There is one STO for quantity say 1000 pc created in 2008. Delivery and PGI done for 1000 qty in 2008.  Goods are received in receiving plant for qty 1000 in 2008. Now this delivery document is archieved and user has reversed the GR material document in 2010. Now this reversal material docuemnt has zero material qty becasue the delivery was archieved(which is the probable reson)
    >
    > When I want to cancel this reversal material document it gives error that "Qty and / or "delivery completed" ind. or final issue ind. are missing" which is logical since material document has zero quantity.
    >
    > Is there any sap notes or any other way to fix this?
    >
    > Please guide.
    >
    > Regards
    > Nilesh
    Where is actually the problem, if one only reversed 0 quantity?
    Why do you think you need to reverse this reversal again?
    why with year 2010?
    Dont you do anual inventories?  Such stock counts have corrected your stock anyway. if you start cancelling older movements then you create stock inconsistencies again.

  • 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.

  • Some info abt SCHEDULE LINES - VBEP; VBBE for OPEN quantites?

    Hi Experts,
    Pls. clarify me that,
    Am trying to show up the OPEN or BALANCE or BACK quantities in the report FOR EACH SCHEDULE LINE FOR EACH ITEM/POSNR.
    So, I need to look/subtract the VBEP-WMENG, VBFA-RFMNG for Delivery i.e. "J" VBTYP_N and the BALANCE I hv to show up.
    So, pls. let me know How Can I build the logic betwn VBEP, VBFA, VBBE? Is VBBE-MBDAT is comes into picture?
    thanq

    no reply

  • Link Sales Order Schedule Lines to Delivery

    Hi we have a custom report we use to gather all the inventory information, as well as open orders and deliveries.  We are running in to a a bit of a snafu when it comes to the order's schedule lines.  It seems we can not find a good link between the delivery and order's schedule line for the sales order item.  Any one got some thoughts?  Thanks.
    -Larry

    Hi Larry,
    The link are there in standard tables.
    Depending on the types of information that you want to gather from Sales Schedule Line, you can use the below logic:
    1. Give your program selection screen for VBAK-VBELN (optional), VBAK-AUART (optional), VBAK-VKORG (mandatory) and VBAK-AUDAT (mandatory).  Give as much selection possible to narrow down the search and so that the program can run more efficiently.
    2. Based on selection screen input + VBAK-VBTYP = C, get all VBAK-VBELN.
    3. Where VBAP-VBELN = VBAK-VBELN, get all VBAP-POSNR, and for information at Sales Line Item, get all respective VBAP-MATNR, VBAP-KWMENG and respective VBAP-MEINS, VBAP-WERKS and VBAP-NETWR. Store in Z-table.
    4. Where VBEP-VBELN = VBAP-VBELN, VBEP-POSNR = VBAP-POSNR and VBEP-ETTYP = XX (Schedule Line Type - you do not want to retrieve all types. Name only a few.), get all VBEP-EDATU, VBEP-VBEP, VBEP-BMENG and VBEP-LMENG. Not forgetting also VBEP-WADAT if u require.  For 3rd Party Sales, Requisition number can be obtained from VBEP-BANFN.
    5. Where all data are obtained, populate in ALV for respective Sales Order and group accordingly. ABAP will know what to do.
    6. Where LIPS-VGBEL = VBEP-VBELN and LIPS-VGPOS = VBAP-POSNR, get all LIPS-VBELN.
    7. Then gather all your required fields in LIKP and LIPS table accordingly.
    Hope this helps.
    Thanks.
    Rgds.
    Edited by: PKW on May 4, 2010 12:21 PM

  • How to identify the Open Schedule Lines.

    Hi All,
    I am writing an ABAP report which requires to identify the OPEN SALES ORDER SCHEDULE LINES.
    The requirement is to identify the Open Sales Order Schedule Lines for a particular month (user Processing month in the selection screen).  Here the Schedules line item could have been delivered already.  If it is not Billed then it is OPEN schedule line.
    Can anyone help me to understand the logic which I need to apply to identify only the Open sales order scshedule lines.
    I am using the following tables:
    VBAK,VBAP,VBUK,VBUP,VBEP.  Is there any other table which I need to use?  I am trying to avoid using table VBFA due to performance issues.
    Thanks in Advance
    Regards
    Gopalakrishnan S

    Hi Gopal,
    If you want to find status of any sales order line item then you can find from following method from VBUP table.
    In VBUP table there is a field FKSTK.By this filed status we can find billing status of particular sale order and this field has four possible values and these are
    <i><b>field value  field value meaning</b></i>                             
    if this value is space then order is not Not Relevant for billing             
    if this value is  'A'  then order is    Not yet processed
    if this value is   'B' then order is Partially processed
      if this value is  'C' then order   Completely processed
    If you want to find status for the header then go to VBUK table and process is same as above.
    In these table we can find all types of status.
    Message was edited by:
            shyla kumar
    Message was edited by:
            shyla kumar
    Message was edited by:
            shyla kumar

  • Schedule line

    Hi All,
    While writing an ABAP report which requires to identify the OPEN SALES ORDER SCHEDULE LINES.
    The requirement is to identify the Open Sales Order Schedule Lines for a particular month (user Processing month in the selection screen). Here the Schedules line item could have been delivered already. If it is not Billed then it is OPEN schedule line.
    Can anyone help me to understand the logic which I need to apply to identify only the Open sales order schedule lines.
    I am using the following tables:
    VBAK,VBAP,VBUK,VBUP,VBEP. Is there any other table which I need to use? I am trying to avoid using table VBFA due to performance issues.
    Any suggestions.
    Thanks
    Sadhu Kishore

    u need to do for open billing items then
    make use of this sequence
    give the input of sales orders in table VBUK
    at header level 
    join of VBAK and VBUK
    and check the fields GBSTK ne "C" and FKSTK ne "C"  implies open .
    FKSTK is for billing status..
    all the open orders with open billing status can be fetched .
    taking these Open Orders now fetch the entries at item level
    Now for these do the same at item level from VBAP and VBUP .
    In order to check the open items in schedule line fetch from VBEP for the same line items .
    regards,
    vijay

  • Scheduling Agreement Schedule Lines firmed after outbound delivery

    Dear All,
    We use scheduling agreement for cross-company process in our client.  After MRP run schedule lines created automatically. For the next step outbound delivery is created via VL10F (or VL10B).
    After outbound delivery creation, on MD04 or ME39, i see the schedule line firmed (*). Because firmig MRP doesn't change those schedule lines. This is a problem for our client.
    Do you know a way for MRP can change the schedule lines even outbound delivery created ? How can i manage this situation ?
    Best regards,

    Hi Anil
    The '*' that you see means that the schedule line has been changed manually and the Firming indicator (EKET-FIXKZ) is set when there is any change to the Schedule line.
    So, when a Delivery is created, the schedule line should be 'Fixed'.
    Otheriwse, MRP can delete or change this schedule line and it would cause an inconsistency in the system. This is the logically intended behaviour.
    Please see the F1 help for the field EKET-FIXKZ:
    "Schedule Line is "Fixed"
    Fixes the schedule line and determines that it cannot now be automatically changed as a result of materials planning and control/MRP activities.
    Procedure
    The indicator is set automatically if:
    .- You make manual changes to a line of a scheduling agreement delivery schedule that was created via the materials planning process
    .- You create a schedule line manually
    Dependencies
    You can specify whether Materials Planning/MRP can change delivery schedule lines within the firm and trade-off zones in the additional data for the scheduling agreement item."
    I hope this helps.
    Anna

  • Forecast delivery schedule lines consumption

    Hi,
    I cannot fully understand what is the logic behind the consumption of the forecast delivery schedule lines. This is how the problem can be exactly defined:
    - scheduling agreement with delivery orders (LZM)
    - JIT delivery schedules are not used and no delivery schedule is maintained... just a forecast delivery schedule
    - the whole process is manual, there is no EDI implied
    - the cumulative received quantity is updated by an ABAP development that is triggered at delivery goods issue
    The rest, happens normal - forecast schedule lines are updated weekly, the customer send pick-up sheets, a TAM delivery order is created, then delivery, GI...
    The problem: not always the MRP requirements generated by the forecast delivery schedule lines are consumed by the delivery order/GI. If the delivery orders / deliveries are made on the exact quantity of the schedule lines everything works fine. It is also ok when there are two successive delivery orders with a cumulative quantity that matches exactly the forecast line. As soon as a over-delivery is made, everything turns upside-down: older delivered schedule lines appear again in planning as if nothing was delivered until now...
    I suspect that the problem is related to the fact that the whole process is manual and updating the cumulative received quantity is not the only parameter that is counting... is it so? Or the forecast delivery schedule has to be respected 100% in terms of quantities and timing?
    I would really appreciate your help.
    Regards,
    H.

    Also please clarify whether delivery schedule lines in ME38 (even it is created automatically), in Planning time fence, will get affected by MRP run.

  • Creating Schedule lines in Scheduling agreement using LSMW

    Hi,
    I want to upload multiple schedule lines in scheduling agreement using LSMW. I have done the recording and maintained multiple lines in input file. However during execution LSMW creates only one line and keeps on ovewritting the same line. Please let me know how can I create multiple schedule lines.
    Regards

    First you should search for existing standard LSMW migration objects that possibly cover your scenario. These normally take care of complex header / multiple items / multiple subitems relations.
    With a recording you can only load flat structures. Sometimes a "create new  lines" / "enter first line" / "save transaction" logic can be constructed to load multiple items to a header (or even subitems to an item?) with a recording, but this can be pretty awkward.
    Thomas

  • Schedule line consumption

    Hi Guru's,
    Its bit urgent!!
    I have balance receipts up to today against schedule lines say 100nos. These MRP generated schedule lines are of past dates.Alos there are schedule lines in future dates. Today I wants to receive more than 100nos.(say 200nos.) In MB01 I can receive any quantity by selecting "suggest zero lines". If I do so, the extra 100 nos. quantity is consumed against the immediate available schedule line, whether it is firm or non-firm.
    My requirement is, I wants to consume this extra quantity from firmed lines.
    How can I do this and what is the consumption logic.
    Thanks.
    Suresh

    Hi Suresh,
    Now your question is clear. As per my working knowledge about purchased schedule lines your requirement is not possible.
    Whenever you make GR then first available scheddule line will be reduced (consumed) and then next till the last availabe one. If stock GR stock increases then no schedule line will come automatically from MRP but you can create manaully.
    Firming will come only if create schedule lines quantity manually or changed this after MRP...This is also possible if you use MRP types P1 to P4.
    Firming has no effect on the consumption logic, this only restrict the automatic changes of quantites in MRP run..if you want you can change manually.
    If you are doing extra GR...compare to the schedule lines quantity then next schedule line quantity will reduce. You cannot restrict this.
    Hope this is clear. Any question then please inform with rewarding suitable points.
    Regards
    TAJUDDIN

  • 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....

  • Schedule line delivery dates change in VA01

    Experts,
    User is adding some days for a material in maintenance table and it is like below.
    Material Days Plant
    2525252 100 ABCD
    3636363 150 PQRS
    The requirement is --
    While creating sales orders or changing sales orders(VA01 or VA02) while adding this material(2525252)in the line item - In schedule line items Delivery date should changed (some thing like get added 100days)
    I have added my logic in routine RV03VFZZ. But some materials are not getting changed due to avilability check.
    How can i bypass availability check ?
    (tried in USEREXIT_MOVE_FIELD_TO_VBEP... but no use).
    Thanks,
    Priya

    Take a look an ATP00001 in SMOD. However, this looks to me as a classic case when we're trying to use ABAP to compensate for poor functional choices or an incorrect business process. I find it hard to believe this cannot be done by other means than such funky ABAP.

  • Link between actual ship date of an item and schedule line in Sales Order

    So, we are developing a custom report that compares actual Ship Date (Goods Issue Document MKPF-BUDAT) and the date the item should've been shipped (Schedule Line Date).
    I am able to link the GI Document to Delivery Document and can then link to Sales Order Number/Item Number.  However, a line item can have multiple schedule lines.  What logic can be put in the mapping so that the correct scheduling line is picked for the GI date to be compared against?
    Example:
    Sales Order 123
    Item 10 Product X - Quantity 10
    Schedule Line 1: 11/15/2014 8 pieces
    Schedule Line 2: 12/15/2014 2 pieces
    Let's say first shipment gets delayed 2 months and ships 1/15/2015
    Due date in report should know to select 11/15/2014 to calculate that shipment was late 60 days
    Any way to link delivery document to a specific schedule line??
    Thanks!!

    Hello,
    Just did similar development for customer report. List of deliveries based on sales order number and sales order line item numbers. Sort these deliveries either with number or actual goods issue date. Compare goods issue quantity with schedule line quanity and start allocating deliveries to schedule line. For example
    Schedule line 1 - 10 MT, Schedule line 2 - 5 MT. Now you have created 3 delivery. First with 7MT, second with 5MT and third with 3MT. Your first delivery will be for first schedule line. Your second delivery is for first and second schedule line and your thrid delivery will be for second schedule line
    Regards,

Maybe you are looking for

  • Heat comparison between a macbook and a dell

    Hi all, Found this on digg. Interesting comparison of core duo heat issues between a macbook and a dell. http://iith096.blogspot.com/2006/07/macbook-vs-dell-heated-battle.html

  • Broadband usage limits

    Hi guys, I am not a happy bunny - previously had unlimited BB with AOL but BT sales advisor assured me that 10gb limit per month was a huge amount and more than enough for our family - he asked about downloading moviees (just occasionally) online wii

  • How to read BP header data in standardaddress context node

    Hi, we have the next requirement in CRM 7.0 WebUI: In view BP_ADDR/StandardAddress the field STRUCT.TELEPHONETEL should only be an input field if the authorization group of the business partner has a certain value. So I tried to solve this in the I-g

  • Cursor freezes after site change Mavericks

    My cursor freezes for various amounts of time since downloading Mavericks. Any body else as I'm going to talk to Apple support under Apple care and they tell me no one else has this problem.

  • Initializing HP4155B with LW5.5/CVI

    Hi all, I'm trying to establish communication between a PC w/ LW5.5/CVI and an HP4155b Semiconductor Parameter Analyzer. On the Analyzer, I've set the GPIB address, and in my test program, I use that address to call the hp415xa_init() function of the