Relation between tables( AR Invoice, Sales Order, Delivery)

Hi,
I have a crystal report layout for AR Invoice and I want to bring to this layout some fields from sales order and delivery. When I add the two tables (ORDR and ODLN) in database expert I am not sure what links to create with OINV. I read the link should be at row level RDR1.TrgetEntry = OINV.DocEntry, but when I try this I don't get any data when I run the report. The fields I need to add are from header level (e.g: delivery date, sales order number). Do I need to add both ORDR and RDR1? Could you tell me exactly how I can link  Sales Invoice with Sales Order table and Delivery table?
Thanks!
Cristina

Hi Cristina,
The link is between line table XXX1 and the header table. You need to include both RDR1 and ORDR in order to get the data. If you AR Invoice is not copy directly from Sales Order but Delivery, there is no direct link between OINV and RDR1.
If you search the forum, there are many thread discussing the relationship through query.
Thanks,
Gordon

Similar Messages

  • Relation between serial number and sales order number

    Hi,
    Is it any one to one relation between serial number (IN) and sales order? For example, when I create the special serial number for the special sales order (Internal or External) , whether I put the sales order number in the IQ01 or not, sales order accept that serial number(IN). Is it any way to specialize one serial number to exact one sales order number?
    Edited by: Lida Navabpour on Jun 9, 2009 1:02 PM

    Hi,
    > Is it any one to one relation between serial number (IN) and sales order? For example, when I create the special serial number for the special sales order (Internal or External) , whether I put the sales order number in the IQ01 or not, sales order accept that serial number(IN). Is it any way to specialize one serial number to exact one sales order number?
    Yes, There is one to one relation ship. U have to maintain serial number profile for the same. The serial number runs on different status.The status ESTO means the serial number is in stock. ECUS means the serial number is at customer site. AVLB means the serial number is available.
    If the status is ECUS then u cant use that again.
    Serail number profile Check t-code OIS2.
    Thanks,
    Raja

  • Sales order, Delivery and Invoice changes history tables

    Dear All,
    I want to know how to find out the changes done in Sales Order, Delivery and Invoice.
    As far as sales order is concerned, I know CDHDR and CDPOS are tables can be used to find out the changes.
    But I am not sure about the "Object ID". Where we need to find out this Object ID?
    In the Data element "VBELN_VA" "Change Document" option has been checked under "Further Characteristics" tab.
    Please confirm about the "Object ID".
    Similarly give inputs for Delivery and Invoice change history also.
    Regards,
    Mullairaja

    Hi,
    Could you please explain, how to use these programs?
    Regards,
    Mullairaja

  • Urjent-Any function module for finding Sales order, Delivery and Invoic

    Hi Experts,
    I am having selection screen like
    Sales order
    Delivery
    Invoice
    Customer
    If i give sales order
             Delivery and Invoice should pull
    If i give delivery
             sales order and Invoice should pull
    If i give Invoice
             sales order and delivery should pull
    If i give customer
               all customer related data should pull
    Do we have any function modules to meet this reqirement?
    If we have please provide function modules.
    Thanks,
    mahe
    Edited by: Rob Burbank on Mar 30, 2009 4:17 PM
    Edited by: mahahe on Mar 31, 2009 9:12 PM

    You can use VBFA table, right? in the FM also, you can find the same logic, like pulling from VBFA table.
    thanq

  • How to get data from ECC --- Sales Order,Delivery,Transfer Order & Invoice

    Hi,
    Good day.
    I'm ABAPer and I need to get Sales Order,Delivery,Transfer Order & Invoice data from ECC.  The said data will be displayed in the custom form that I need to create.  How exactly do i get the said data above? 
    Can I get them in the tables avaialable in GTS? Where?
    Or do I get the data directly in ECC? How?
    Thank you very much!
    Best regards.
    Brando

    First of all push ECC data in to GTS server through T.code:/N/SAPSLL/MENU_LEGALR3. First click on Master data tab there enter customer/vendor number then execute.
    2-Go to document tab there enter Sales order no/PO number then execute it.
    Then go to GTS server in compliance management module you can get all the information.
    Regards
    Sitanshu Panigrahi

  • Tracking Sales Order/Delivery/Invoice Status

    Hi Experts,
    I have a requirement where i need to track the status of the Sales Order/ Delivery/ Invoice without any customized program for achieving this.
    Is there any way we can track the status of the above said Sales Documents without writing a program for it?
    Kindly share your expertise on the same.
    Thanks in advance.
    Regards,
    Keerthi

    Hi,
    Use FM 'SD_DOCUMENT_FLOW_GET'.
    pass sales order no. & item no(optional)
    and you will get all flow documants for that sales order i.e. delivery, GI,invoice details along with all details including status.
    hope this will be useful for you.
    Regards
    Edited by: Vishal Chavan on Jul 9, 2009 8:23 AM

  • Tables for Sales Order,Delivery Doc, Billing Doc

    Hello All,
    Can anyone list the tables that are relevant for Sales Order,Delivery, Billing-Header,Item,Schedule line level as applicable.
    Regards,
    Raj

    Hi Raja Sekhar,
    Customers
             KNA1   General Data
                      KNB1   Customer Master – Co. Code Data (payment method, reconciliation acct)
                      KNB4   Customer Payment History
                      KNB5   Customer Master – Dunning info
                      KNBK   Customer Master Bank Data
                      KNKA   Customer Master Credit Mgmt.
                      KNKK   Customer Master Credit Control Area Data (credit limits)
                      KNVV   Sales Area Data (terms, order probability)
                      KNVI   Customer Master Tax Indicator
                      KNVP   Partner Function key
                      KNVD   Output type
                      KNVS   Customer Master Ship Data
                      KLPA   Customer/Vendor Link
    Sales Documents  
    VBAKUK VBAK + VBUK
                      VBUK   Header Status and Administrative Data
                      VBAK   Sales Document - Header Data
                      VBKD   Sales Document - Business Data
                      VBUP   Item Status
                      VBAP   Sales Document - Item Data
                      VBPA   Partners
                      VBFA   Document Flow
                      VBEP   Sales Document Schedule Line
                      VBBE   Sales Requirements: Individual Records
    SD Delivery Documets
    LIPS   Delivery Document item data, includes referencing PO
                      LIKP   Delivery Document Header data
    Billing Document 
    VBRK   Billing Document Header
                      VBRP   Billing Document Item
    SD Shipping Unit 
    VEKP   Shipping Unit Item (Content)
                      VEPO   Shipping Unit Header
    REWARD POINTS IF HELPFUL
    Regards
    Sai

  • Requisition, Sales Order & Delivery Data

    Requisition, Sales Order & Delivery Data
    Hi,
    Please answer the following as best as possible:
    1. What are the main TRANSACTIONS for Requisitions, Sales Orders & Deliveries?
    2. What are the main TABLES for Requisitions, Sales Orders & Deliveries?
    3. How are Requisitions, Sales Orders & Deliveries related to each other?
       Simplified Table Mapping?
    Please help.
    Thank You,
    John

    Hi John,
    See the General SD flow is enquiry - quotation- sales order - Delivery - Billing
    Transactions
    Enquiry - VA11/VA12/VA13
    Quotation - VA21/VA22/VA23
    Sales Order - VA01/VA02/VA03
    Delivery - VL01N/ VL02N/VL03N
    Billing - VF01/VF02/VF03
    Tables
    Enquiry - VBAK , VBAP
    Quotation - VBAK , VBAP
    Sales Order - VBAK , VBAP
    Delivery - LIKP, LIPS
    Billing - VBRK, VBRP
    to know more about the tables refer sapgenie.com
    Thanks
    Ashok

  • TABLE/FIELD FOR SALES ORDER'S SHIP TO LOCATION

    Hi everyone,
    Does anyone tell me what is the related tables/fields for Sales Order's Ship To Location? Since I want to display the Ship To Location information in the Oracle Report in Oracle Apps R11i.
    I tried to use the following SQL select statement to retrieve the Ship to address:-
    -- SHIP TO LOCATION
    select a.address_id, c.customer_name, C.CUSTOMER_ID, A.SITE_USE_ID from ra_Site_uses_all a, ra_addresses_all b, ra_customers c
    where a.site_use_code = 'SHIP_TO' and
    a.status = 'A' and
         b.address_id = a.address_id and
         c.CUSTOMER_ID = b.CUSTOMER_ID and
         b.status = 'A' and
         c.customer_id in (select customer_id from ra_customers) and
         c.status = 'A' and
         c.customer_name like 'CLARION (H.K.)%'
    But I found that the data is BILL TO address. Can anyone help me? Thanks.

    Hi all, I managed to solve my problem. Here's the query in case someone need it. Thanks
    SELECT party.party_name "Send to" (SELECT party.party_name
    FROM hz_cust_site_uses_all bill_su,
    hz_cust_acct_sites_all bill_cas,
    hz_party_sites bill_ps,
    hz_locations bill_loc,
    hz_parties party,
    oe_order_headers_all h
    WHERE h.invoice_to_org_id = bill_su.site_use_id
    AND bill_su.cust_acct_site_id = bill_cas.cust_acct_site_id
    AND bill_cas.party_site_id = bill_ps.party_site_id
    AND bill_loc.location_id = bill_ps.location_id
    AND bill_cas.party_site_id = bill_ps.party_site_id
    AND bill_ps.party_id = party.party_id
    AND h.order_number = 'your_order_number') "Invoice to"
    FROM oe_order_headers_all h,
    hz_cust_site_uses_all ship_su,
    hz_cust_acct_sites_all ship_cas,
    hz_party_sites ship_ps,
    hz_locations ship_loc,
    hz_parties party
    WHERE h.ship_to_org_id = ship_su.site_use_id
    AND ship_cas.party_site_id = ship_ps.party_site_id
    AND ship_su.cust_acct_site_id = ship_cas.cust_acct_site_id
    AND ship_cas.party_site_id = ship_ps.party_site_id
    AND ship_ps.party_id = party.party_id
    AND ship_loc.location_id = ship_ps.location_id
    AND h.order_number = 'your_order_number';

  • KPIs for SD:Sales Orders & Delivery

    Hi Experts,
    Could some one please help me out to find out different KPIs for SD : Sales Orders & Delivery.
    Am trying to create a BEx report for SD mofule using custom list of KPIs.
    Any source where i could find the KPIs for SD module.
    Thanks in advance.
    Best Regards,
    Krishna.

    Krishna,
    ???? There is no list of 'KPIs for SD module'.  KPIs differ for every company.  Perhaps you should first ask your business users what THEY think the KPIs should be.
    A few KPIs related to SD I have seen:
    Forecasted/Budgeted vs Actual - Bookings
    Forecasted/Budgeted vs Actual - Backlog
    Forecasted/Budgeted vs Actual - Billings
    Current backlog late to Requested date
    Current backlog late to Confirmed date
    Historical Requested vs Confirmed vs Actual (Shipment) date
    Historical/Current Pricing and Pricing trends
    Historical/Current Price vs cost
    ....but don't start work on ANY KPI until you get confirmation from your users that the KPIs have merit TO THEM.
    Best Regards,
    DB49

  • Sales Order / Delivery Document Report

    Hi,
    I currently am in search of a delivery report that will tell me the following:
    Sales Order
    Delivery #
    Deilivery Item # and Material Number
    Delivery Item Qty
    Delivery Pick Qty and DAte
    Delivery Actual Pick Qty and Date
    Delivery Goods Issue Qty and Date
    Delivery Actual Goods Issue Qty and Date
    All i can find are txns VL06O and VL06F, but it doesn't show the actual pick and goods issue qty's. I'm only able to get the processing status on whether the goods issue has been processed, what i actually need is the qty's and their associated dates. Also, the sales order is not on this report. I basically need a report to show me what is in the pipeline for deliveries and what deliveries have been shipped (complete or partial) and processing status.  Many thanks for your help. Best, Erik
    Edited by: Erik Kraus on Sep 15, 2010 1:56 AM

    Hi,
    You have to make use of the tables VBAK, VBAP, LIKP, LIPS, VBFA, VBUK, VBUP tables to create a Z report for ur rqmt. There is no standard requirement which meets ur reqmt.
    You can have a selection screen where you can select the sales order numbers or sales order status and so on. Based on that input, you can get the following data as output.
    Sales order number -VBAK-VBELN
    Delivery number - LIKP-VBELN found out using VBFA table by giving VBAK-VBELN value as VBFA-VBELV and getting VBFA-VBELN.
    Delivery item/material : LIPS-POSNR and LIPS-MATNR
    Qnty : LIPS-LFIMG
    Unit of Measure - LIPS-VRKME
    Goods issue date : Check LIPS-WADAT

  • Change Sales Order, Delivery, Billings Reports

    Hi Gurus,
    Can any body please tell me is there any Report for change logs of Change Sales Order, Delivery,
    Billings & Change report of Customer & Material,
    Regards,
    Sai

    Hi,
    There are no standard reports to display the changes made in the Sales orders and the details you had asked.
    But for the latest changes you can check in the Table :Header details for change CDHDR and for Item details CDPOS
    Or Based on your requirement you can go for a Customized Report
    rgds
    psk

  • I  wants to change material details in sale order , delivery  & billing

    dear guru
    I  wants to change material details in sale order , delivery  & billing
    becuse user entered wrong deatils but condition is same no range to be mantained in sale order ,delivery& billing
    Regards,
    Maha.U

    Hi,
    If Material A - Description Vicks is created in Material master n if you want the same material with change of description for respective customer,you can change the description like Vicks XL while creating SO in Description of Material line item.
    Same can be displayed in invoice as well.
    Thanks
    Shri

  • Copy Sales Order delivery date to Delivery Order delivery date

    Hi,
    Is there a way to create a FMS to copy the sales order delivery date to delivery order delivery date?
    Thanks
    Fabian

    Hi Fabian,
    I am not sure whether I have understood your requirement correctly.
    CopyTo also works for creating a delivery document from more than one sales order as base documents and base ref is available in line table than in parent table.
    The work around could be to create a UDF in marketing documents & update this UDF in sales order using FMS or using SBO stored procedure.
    Now, once after sales order is copied to delivery the UDF value is available in delivery and u can create one another FMS to get the UDF value into Delivery's Delivery Date.
    Hope this helps.
    Best Regards
    Satish

  • Sales Order Delivery Shipment

    Hi All,
    Could somebody please explain the need for the above mentioned chain of documents with reference to LES in R/3.
    What is the essence of each one of them: Sales Order>Delivery>Shipment
    Where does a transfer order fit in between the three?
    regards,
    Sudhir

    Hi
    This is basic process of shippment of goods to customer from Sales side:
    Sales Order --> Delivery --> Shipment
    Sales Order: The sales order is a contractual agreement between a sales organization and a sold-to party about delivering products or providing a service for defined prices, quantities and times.
    In sales order processing, the system implements various functions:
    In the sales order, functions such as pricing and printouts are available. The system checks whether the material is available for the requested delivery date and if necessary, transfers the requirements to materials planning. Shipping deadlines and shipping points are determined in delivery scheduling.
    Delivery: the outbound delivery supports all shipping activities including picking, packing, transportation and goods issue. During the outbound delivery process, shipping-planning information is recorded, status of shipping activities is monitored and data accumulated during shipping processing is documented. When the outbound delivery is created, the shipping activities, such as picking or delivery scheduling, are initiated, and data that is generated during shipping processing is included in the delivery.
    Delivery: the outbound delivery supports all shipping activities including picking, packing, transportation and goods issue. During the outbound delivery process, shipping-planning information is recorded, status of shipping activities is monitored and data accumulated during shipping processing is documented. When the outbound delivery is created, the shipping activities, such as picking or delivery scheduling, are initiated, and data that is generated during shipping processing is included in the delivery.
    Shipping: Shipping is an important part of the logistics chain in which guaranteed customer service and distribution planning support play major roles.
    In shipping processing, all delivery procedure decisions can be made at the start of the process by:
    Taking into account general business agreements with your customer
    Recording special material requests
    Defining shipping conditions in the sales order
    Transfer order will come to into picture, if storage location is warehouse managed, from the same storage location, if you need to delivery the goods to Customer. This activity will start once delivery is created and before POst Goods Issue.
    Hope it helps.
    regards
    Srinivas

Maybe you are looking for

  • Receiver file adapter error for special char.

    I am using MTB in my receiver file adapter. I am getting a special character from source system at end of the string. How to resolve this type of error u2013 please advice. This error is not coming for every message. Error message: Column value xxxx

  • Load external PDF in Acrobat Reader

    Hi Guys, I'm creating projectors for both Mac and PC and I want to get my button to load an external PDF into Reader and not the browser. Not sure how to do this the best in AS3? external .bat file maybe (I tried but with no success)??? Any help/advi

  • Clear Customer f-32

    Hi all I am using f-32 to clear customers accounts is there is any option to clear customers in mass . I can schedule auto clearing of customers as I am having 8000 odd customers if mass clearing or auto clearing  is available please suggest me the t

  • Hi. how to create Subroutine Pool and call it from sapscript

    HI, Can anyone tell is there any standard subroutine pool available which could fetch the customer number.  how to create an subroutine pool and call it from the sapscript.. please help me Advance Thanks.. Guhapriyan.

  • I have no clue what is wrong with my iPod touch...please help.

    At first I thought it was my battery and now I dont know? I have had it since Dec 10, 2010. I can get the opening screen and the apple comes up on the screen and then it jus shuts off. Its a 32gb 3rd generation. I would really appreciate it if someon