Open Quantities / relation between Sales Schedule LInes and Doc flow tables

Hi Experts,
I got a requirement, in which I hv to develop a report for the Open quantities for sales order items. fine.
I ssue is that, in the report I hv to show at Schedule line level i.e. VBEP.
So, by pulling the records from VBEP depending on the seldction criteria, I hv to pull the MATCHING record from VBFA for Post Goods Issue.
Then, I hv to implememnt the follwoing formula,
Open Quantity = VBEP, say Schedule line 1 quantity -(mnus) first saved corresponding Order, Item Quantitity-RFMNG in VBFA for PGI type
As we know, VBEP is at Schedule line lvel, where as VBFA is ITEM level!!
So, pls. let me know that,
1 - Is really, we can develop the MATCH btwn VBEP and VBFA tbls, I mean, always, the data will be correctly pulled?
2 - If so, Is the folllwoing statement is OK?
LOOP AT IT_VBFA WHERE VBELV = IT_VBEP-VBELN and POSNV = IT_VBEP-POSNR and ERDAT LE IT_VBEP-MBDAT
3 - Any other good statement for my requirement?
Looks like, functional guy is also NOT much idea, here.
Thanx

no reply

Similar Messages

  • Is there a DIRECT link between SD schedule lines and delivery lines?

    Is there a direct link (db table) between schedule lines on a sales order (VBEP) and the delivery lines (LIPS)? 
    Is there a function module to retrieve the data?
    Example-
    One order line with 3 schedule lines.
    Each schedule line is for 2 units (total of 6 units).
    Three deliveries made.  1st is for 2 units, 2nd is for 1 unit (backorder), 3rd is for 3 units.
    You can use document flow (table VBFA) or examine the SD document in the delivery line (LIPS) and link the delivery line to the order line.  The schedule line already references the order line.
    I am using math to decrement the schedule lines used and make the link between VBEP and LIPS.  It works fine.  I need four records back....
    1st schedule line for 2 units uses delivery 123
    2nd schedule line for 1 unit (partial) uses delivery 124
    2nd schedule line for 1 unit (partial) uses delivery 125
    3rd schedule line for 2 units uses delivery 125
    Like I said, it works. Just wondering if I missed a more direct link.

    As far as Db link is concern , I don’t remember exactly , but 3 years before I had written a report which see Sales order schedule lines and devilry note lines against sales order.  If you see process wise…. when ever you create PO ( production order you assign some qty using 101 movement type .. and against production order you also give sales order . When you do delivery ( run seclude run ) it delivers against that material number , its movement is 601 ...
    but I remember there’s a link between these tables, VBAP,VBFA AND VBEP , LIPS ...  against every sales order you can see sales invoice ( VBRP,VBRK) and you can also see your delivery note number in document flow .
    I hope this’ll give you some guide line, as right now I can not tell you the exact business process but I remember I written a report in SD 4 years before , in which they required Delivery against production order and sales order ... One more thing you also have production order reference on delivery item number. ( field :Empst ) . I think in my project they were maintaining this field .
    Thanks

  • Link between the Schedule Lines and the GR document

    Hi
    I would like to find the link between the Schedule Lines (of Scheduling Agreement) and the GR document. i.e. which GR has been made against which Schedule Line. I have checked the tables EKET, EKBE, MSEG but there is no link with the Schedule Line, I found the link only with the item number there.
    Thanks
    Prashanth

    Hi
    At the time of posting the GR for a SA you will be not posting this with reference to the Schedule line of the SA item. So system will always update the GR document against the SA item and update qty on the schedule line.
    May be this is the reason we donot have any direct relation ship to material document and Scheclue line
    Thanks & Regards
    Kishore

  • Relation column for Tax Line and Item Line in AP Invoice Ditributions 11i

    Hi,
    We have requirement of populating Line_Group_Number in AP_invoice_lines_interface for a related item line and a Tax Lines. We are getting the data for AP invoices from 11i.
    Could you please let us know column which can show the relation between a Tax Line and a corresponding Item Line in AP_invoice_distributions Table in 11i.
    Thanks,
    Bhanu Kiran

    hi,
    If you are using business area method then you want to create all sales tax GL with business area optional. And You create one GL like Tax clearing account(business area optional)and assign the same in OBXM against all the sales tax GLs.
    Then you want to run F.5d and F.5e on everymonth.
    govind.

  • Mapping between Sales Order-Schedule-Line and Delivery-item

    Hi together,
    I want to extend the Datasource 2LIS_12_VCITM (Delivery-number, -item, Order-number,-item is available) by Sales Order Schedule Line.
    Could not find any ERP table (VBEP and LIPS allow a mapping only on item level) for the mapping between Sales Order Schedule Line and Delivery item yet. The use of the extractor 2LIS_12_VCSCL for the extention (e.g. infoset) afterwards is no option.
    Thanks for your help in advance!!
    Assign full points!!
    Sven

    Hi Reddy,
    thanks for your answer.
    I know that I have to add this field.. but the problem is, how to fill this field. I don't know how to map the delivery-item with the schedule line-item.

  • Difference between sales order schedule line and item level data

    Hi All,
    Could you please let me know what is the difference between sales order schedule line and item level data?
    Thanks,
    Ramya

    Hi Ramya,
    Sales order schedule line contains del date, order qty, rounded qty, confirmed qty, delivery qty, schedule line category, purchase requisition etc.,  ie It contains the full details of sales order data with respect to the scheduled line of delivery.  The total quantity of a sales order item can be subdivided into schedule lines that contain the various subsets with the corresponding delivering dates.
    Sales order Item level data contains details of the item in the sales order like material code, net price, net value, UoM, PO details, reason for rejection if any, material group,billing date, plant etc., ie this
    contains the full details of item irrespective of scheduled line.
    Regards,
    R. Senthil Mareeswaran.

  • What is the link between schedule lines and delivery document item level

    Can any one please explain me what is the link between the schedule lines of the order/scheduling agreement and the item level of the delivery.
    Is there any link between VBEP and LIPS ?

    Hi
    Most of the item level data in delivery doc is copied from Schedlue lines in Sales order for eg delivery date
    So u may say that schedule line in sales order becomes the line item in Subsequent doc that is in Delivery doc .
    The table u are talking about i.e VBEP is related to sales doc and it contain data for Schedule line in sales order and the other table i.e LIPS give the delivry doc related data at item level.
    Hope this help

  • Difference between Scheduling lines and Delivery schedule

    Hi SD Experts
    can u say me the clear difference between Scheduling lines and Delivery schedule.
    where we will maintain deliver schedule. whether delivery schedule is automatically created along scheduling agreements..
    with regards
    James

    Hi James,
    Schedule Lines: Has basically information realted to delivery scheduling in Sales Order level.
    Delivery Scheduling: Is a process using which system will determine what are the different activities which need to be performed and time taken for each activitiy only after which the material can be delivered to the customer.
    Delievry scheduling will be started only from the material availability date i.e., system will first determine the material avail date and then do scheduling. By default Standard SAP system does Backward Scheduling in case material availability falls beyond the required delivery date system will do forward schedluing
    Delivery Scheduling consists of the following Basic activities:
    We give deatils while creating order:
    Order Creation Date
    Required Delivery Date
    Order date - Material availability date - Transportation Planning Date - Loading date - Goods Issue Date - Required Delivery Date
    Time Between GI Date and required Delivery Date is called Transit Time
    Time Between LoadingDate and GI Date is called Loading time
    Time Between Material Availability Date and Loading Date consists of 2 components - Pick / PackTime and Transportation Planning Time
    System has to calculate all this before it determines the confirmed delivery date.
    Give your mail Id I have some Presentation I will send you across.
    REWARD POINTS IF IT HELPS
    Regards
    Srini

  • Link between Delivery schedule line counter from PO and the material docume

    Dear Gurus,
    I have one PO with single line item having delivery schedule -
    Material 1 -
    delivery schedule 01.01.2009     2000
                                                         01.03.2009    5000
    I have received quantity against this Po
    I want to know where I can find the link between Delivery schedule line counter from PO and the material document
    Best regards
    Sar

    There is no link from the MAterial document line item (Table Mseg) to the PO Schedule Line (EKET).
    If this is for Evaluating an on time delivery or GR, you may consider the following approach.
    PO details Po Date  QTY
    Sch1   01Jun2009   200   
    SCH2  08Jun2009   100
    GR Details
    GR1   01Jun2009   180
    GR2   07Jun2009   110
    GR3  09Jun2009      10
    Calculate a *** total qty for the PO Line.
    PO details Po Date  CUMUL QTY
    Sch1   01Jun2009   200   
    SCH2  08Jun2009   300
    Calculate a *** total qty for the ontime GR.
    PO details Po Date  CUMUL PO QTY  CUMUL GR on time
    Sch1   01Jun2009   200                180
    SCH2  08Jun2009   300                 290 (180+110)  the 3rd GR was too late
    Evaluate the PO SChedule Lines as follows:
    Po SCL qty + CUMUL GR QTY - CUMUL PO QTY = ADJ GR ON Time Qty
    SCH1 01Jun2009
    200 + 180 - 200 = 180 on time for 01Jun2009 date ( 90% fill rate)
    SCH2 08Jun2009
    100 + 290 - 300 = 90 on time for 08Jun2009 date (90 % fill rate) the first 20 of the GR on 07Jun2009 went to fill the late, early date.
    Best of luck !
    SCH2 100 +290 - 300 = 90 on time for 07Jun2009 date

  • Relation between Sales org and Shipping Point

    Hai all,
           Can any one tell me wt is the relation between Sales Org and Shipping point?
    Ravi
    < PLEASE DONT USE SMS LANGUAGE AND PLEASE SEARCH THE FORUMS.  >

    Hi Ravi,
    There is no direct relation.
    Sales organisation in broader level, it is responsible for selling a product in a company.
    It is liable to the customer interms of service of the product or service and confirmation of the sale order, delivery and invoicing.
    Shipping Point is a logical point from where the shipment / dispatch begins.
    Both Sales organisation & Shipping point wil be linked to plant (one or more).
    In case of sale order, sales org will decide the delivering plant.
    Shipping point will be picked based on delivery plant, sh.conditions (cmr) & loading grp (mmr).
    hope this is clear to you now!

  • Relation between sales organization and company

    HI,
    What is the relation between sales organization and company
    codes?
    ANY BODY SUGGEST THIS MATTER.

    hI,
    Kindly search in this forum before posting
    Re: Can you assign one sales organization to multiple company codes?
    see the above link
    Thanking you,

  • Relation between Sales order and Production order

    Hi,
    In Make to stock scenario how the relation between Sales order and production order are related.In which table we will get the related fields (expect AUFK,VBAK,AUFO).
    warm regards,
    Surendar reddy.

    The relation between sales order and prodution order  is as follows.
    Pass AUFNR to AFKO/AFPO  Get AUFPL.
    Pass AUFPL to AFVC Get BANFN.
    Pass BANFn to EBAN Get EBELN.
    Hope this works .
    Cheers,
    Lakshmi Prasanna Gandham

  • Relation between Sales Organization, Sales Office and Sales Group in SAP

    Hi!
    I want to know the relation between Sales Organization( VAKPA -VKORG), Sales Office( VAKPA-VKBUR) and Sales Group ( VAKPA-VKGRP) in SAP.
    Relation in the sense, does One-to-One or One-to-Many relation exist between them..or do they form an hierarchy??
    Thanks

    Sales Org---->sales office:  1:N (routed through sales area i.e sales organization,distribution channel and division)
    each sales office belongs to only one sales org.
    each sales office may consists, many sales groups:
    Sales office to Sales Group: 1:N (each sales group belongs to only one sales office- sales group means group of people)
    Thanks
    Chidambaram

  • Relation between Sales org , Dist Channel and Division

    Hello all ,
        I need to know where the relation between Sales Org. , dist channel and Div is stored in CRM . I need to create search help which will get Dist channel and Division for a particular sales orgnization .
        Helpful answers will be rewarded .
    Thanks ,
    Shounak M.

    Any Suggestions ?
    Thanks ,
    Shounak M.

  • Schedul lines and delivery

    Hi to all,
    is there a way to identify the connection between the schedul line of sales order (vbep-etenr) and the line of outbound delivery? My problem is that i have 2 or more schedul lines and 2 or more deliveries for the same sales order item and i want match this with a program.
    thx a lot

    Hi,
    Schedule lines are defined by scdule line category.
    As we know that item category is determined by a sales order type,Item category group,Usage,High level item category using VOV4 T.Code.
    These schedule line category is going to be determined by item category and MRP Type by using VOV5 T.Code.
    Means it has indirect relation ship with sales document.
    Each schedule line in a sales order refers to an outbound delivery.So in your order as there are 2 schedule lines two deliveries will come.
    Regards,
    Krishna.

Maybe you are looking for

  • I have two itunes accounts because I used a second email address by mistake as an id.  Can I merge them?

    I have two iTunes accounts because I used a second email id by mistake years ago and have lived with it ever since.  How can I merge them to access all my music in one place?

  • Iphone4 will not sync, back up file corrupt

    During the sync process my iphone was accidentally disconncted.  After restarting my computer and trying to again sync I received an error message stating the the back-up file is corrupt.  I followed the procedure to delecte the corrupt file and have

  • Downsampling pdf on the mac...?!

    my butt is dragging on this issue and I feel like asking pdf for my butt back. i am using Preview, Aperture, and Pages - among other things and I need to get a submission with images uploaded somewhere so that it is under 2 MB. I finally figured out

  • Can't find PE8 mac edits in LR3

    I'm trialing LR3 on mac.  After edits on PE8, and save, I can find the new edit in Finder, but cannot see in LR3 library.  If I attempt import, still cant see image in the folder where I know it exists. (since I can see it in Finder).  I think I'm mi

  • Additional USB port

    Many thanks to Ann Bras for recommending a USB Parallel Printer Adaptor to solve my problem of connecting my Laserjet to my IMac. Now I have a follow-on problem. My IMac has 3 USB ports - 1 is used for an HP Photosmart all-in-one, 2 is used for my ke