Q60: How to report sales order number against in voice number

Dear All,
I have this simple report but need to include the relevant sales order in the column aftero the invoice number.
I know it is the base doc but do not know how to build it in.............
SELECT
t0.docduedate as 'Invoice Date',
t0.docstatus as 'Open/Closed',
t0.docnum as 'Invoice Number',
t0.numatcard as 'Customer Ref. No.',
t0.u_rbdelivery as 'Tracking Number',
t0.doctotal as 'Invoice Value',
t0.cardcode as 'Customer Code',
t0.cardname as 'Customer Name',
t0.address2 as 'Delivery Address'
FROM
oinv t0
WHERE
t0.docstatus = '[%0]' and
t0.doctype = 'I' and
left(t0.cardcode,1) = 'K'
Many thanks for any help.
Robin

Hi,
You have to use following tables to get the data VBRK (Billing Header), VBRP (Billing Item), KNA1, KNB1 and KNVV (Customer Master Tables), VBAK (Sale Order Header) and FPLTC(Payment cards table)
First pass the input data for example
Customer reference number into VBRK- KUNNR and Date into VBRK-FKDAT and get the relevant VBLENu2018s for the customer. 
Pass VBRK-VBELN value into VBRP-VBLEN and get VBRP-AUBEL (Sale order number).
Pass customer number into KNA1-KUNNR and get KNA1-ADRNR (for fetching the address details for the customer) pass this
ADRNR into ADRC-ADDRNUMBER And get all the address details of the customer.
Similarly pass VBRP-AUBEL into VBAK-VBLEN and get VBAK-FPLNR pass this value into FPLTC-FPLNR and get all the card relevant details.
Hope this helps.
Revert back in case of clarifications.
Regards,
Sharan

Similar Messages

  • Report for viewing Sales order no against delivery date & actual GI date

    Hi Experts,
    Is there any report for viewing Sales order no against delivery date & *actual GI date*
    Because in VL06F , i can only able to get planned GI.
    Please guide regarding the same where i can get 'ACTUAL GI DATE ' against above combination .
    Regards,
    Sujit S.

    dear Hrishi,
    i followed your suggestion, but couldn't get desired results,
    here i can get planned GI date, where i wanted to get Actual GI date for complted deliveries,
    thanks for your valuable reply.
    @ G. Lakshmipathi ;-
    i think i will need to develop z-report for fetching the data from the tables
    VBAK (to get sale order reference) and
    LIKP (to get delivery and actual GI date)
    thanks for your reply,
    Regards,
    Sujit

  • How to get sales order number before saving in VA01 by using parameter

    Hi,
    Please let me know how to get sales order number in transaction VA01 before saving it by using parameter in SU3.
    I tried to set parameter in SU3 "AUN", but it is not working as required, means sales order number is not appearing before saving.
    can you please suggest how to do it?
    Thanks & Regards.
    Rahul Verulkar

    Hi,
    In case of Support project, we get the high severity issues from users and needs to be closed withn 2 hours... so what we do we get the requirement from user and checking the same in production from our id, but we can not save the sales order as we are not authorized to do the same, so in such cases it is required to get the sales order number before saving... where we can guide the users.... but actuallly it is not getting saved in the table until and unless u save it manually. It works like a material master... when u create material master, the material number appears in advance in material number field "MATNR"
    If it is possible can you please suggest step by step to work on parameter in SU3 for sales order number before saving.
    Thanks & regards,
    Rahul Verulkar

  • REPORT-Sales Order Qty minus Delivery Qty

    How to find Sales Order Qty minus Delivery Qty  in a STd report  other than t.code v.02
    THanks in advance
    Paul

    Dear Paul
    The report which you are asking is a Pending Order Report.
    You  better go for a Zreport & call your required fields in the report.
    The selection field will be plant
    Eg: You can incorporate in the report Sales Doc, Order type, Doc date, SP, SH, Region, sales area, material code, material description, Order qty, Pend qty, Pending value, pant, PO ref no., date, Customer currency etc.
    Once all items delivered the doc number wont be in the report.
    Regards
    Deepu Pillai

  • How to compare sale order bom and production order bom.

    i would like to provide report with respect to comparation of sale order bom and production order bom, but i am not familiar with SD and PP, can anyone give me some clue? i only know sale order bom is created via 'CS61', afterwards run mrp to get production order, the process appears complicated, i needn't know the process detail, just want to know how to get sale order bom and relative production order bom. please guide me.

    Hi,
    Check Tcode:CS14 to SD/PP BOM's
    Chidambaram

  • How to create sales order Automatically with reference to contract?

    how to create sales order automatically through batch or online? can anyone please suggest what needs to be change in SAPMV45A program?

    Hi,
    Wt am able to understand from the above question is, you want to create automatic sales order against contract on a day to day basis by doing batch program, hope am wright.
    See you can do it in two ways.
    1. By using BDC, in SHDB T code record how exactly you will do transaction and then give it to your abaper rest he will do. he will write a program and he will schedule that program every day night.
    2. By using BAPI. Just check in there are many threads are there which gives sales order bapi. Tell your abaper to map that bapi and tell them to schedule back ground job.
    Hope this will help out in solving your problem.
    Regards,
    Nagesh

  • How to find sales order no., purchase order no. using sales order ID,PO ID

    hi,
    how to find sales order no., purchase order no. using sales order ID,PO ID
    Thank you,
    hari om

    Dear Hari Om,
    Could you please tell me, to what are you referring Sales Order ID and P.O. ID?
    meanwhile check with:
    T. Code: SE16
    Table: VBKD
    Execute (F8) the Report.
    On to next Screen, Go to Menu-bar
    Settings --> Format_Lists --> Choose Fields
    Field: VBELN - Sales Order
    Field: BSTKD - Purchase Order No.
    Best Regards,
    Amit

  • How to cancel sales order which I placed?

    How to cancel sales order which I placed? And this order had not been delivered.

    Rejection SO & Cancellation SO both are same. So please follow the below steps-
    1. Use Tcode VA02
    2. Enter Sales order number which you want to cancel.
    3. Click "enter"
    4. Click the icon "Reject Document"
    5. Select suitable u2018Reason for rejectionu2019.
    6. Save
    Many Thanks & Regards,
    Susanta K Senapati

  • How to block sale order

    Hi
         Can anybody clarify me how to block sale order at material level (One sale order for no. of materials).  While searching for it got solution using XD05 Tcode which blocks at customer level. For my scenario one customer having more than one material.  How to block it?
    Regards,
    K.V.Manikandan

    HI,
    Listing and exclusion functionality are used to block customer for particular material which is readily available in standard SAP.Use standard exclusion type B001 and create condition record for all customer material combination for which you want to block the customer,
    Path: Spro-IMG-Sales and distribution-basc function-listing and exclusion:
    Second way:  You can also block particular customer at sales area level by assign 01 at sales org level against field "DChain-spec. status'
    This will resolve your problem if you want to block the material for particular customer.
    Regards
    Jitendra singh

  • How to Cancell Sales Order Items......

    Hi Experts,
    How to Cancell Sales Order Items ?
    Presently I am deleteing Indidually Items in Sales Order but I am getting records through Report.
    Is there any proper way to Cancel Sales Order Items / Full Sales Order and also I can get report of which items has been cancelled and so on.
    Pl. reply.
    Yusuf

    you can not cancel sales order.. SAP has not given that option.. only opition you have is delete the line items by going to VA02, if its open sales order or blocking the sale order..
    reward if it helps..
    ramki

  • How to pull sales orders based on a Campaign??( I have created one Campaign and i need to know,for how many orders it was applicable)

    How to pull sales orders based on a Campaign ID??( I have created one Campaign and i need to know,for how many orders it was applicable)

    Hello,
    as far I understand you are talking about campaign determination. Once a sales order is generated having a campaign determined the campaign creates a reference to the sales order. The best way to track the assigned sales orders is using the related transactions function:
    The same feature is available for trade promotions as well.
    The data is available in table CRMD_BRELVONAE - you can also write a report selecting on OBJGUID_A_SEL with the campaign or TP guid and OBJTYPE_A_SEL with BUS2010020 for campaigns and BUS2010030 for trade promotions.
    Is this answering your questions?
    best regards,
    Johannes

  • How to check Sales Order complete or incomplete in program?

    Hi, Gurus:
    In the program, how to check Sales Order complete or incomplete based on Order Number vbeln?
    Thanks,

    You can check the status table VBUK for this.
    VBUK has all the status related fields in it.
    Search for the field which suits to your specific requirment.
    Regards,
    Naimesh Patel

  • All sales orders under a rebate Agreement number

    Hello Colleagues,
    I need a list of all the sales orders within a rebate agreement number after billing. I am coding a powerlist for this which displays all the sales orders for a rebate agreement number. Are there any standard function modules which could be used(I tried but without any success ) Can anyone help me on this?
    Thanks,
    JVR

    Hi,
    The requirement is, user gives input as 'Shipment Date' in selection screen.
    Based upon this, we should have data of all the deliveries (04 and 05) whether shipment is created or not.
    From shipment date we can get shipment , its respective delivery and its SO (from table VBFA) .
    But the deliveries where shipment is not created like 05, we wont get any value in VBFA. How do i fetch all the deliveries(05 in this case) i such a case ?
    -Thanks

  • How to create sales order using bapi( test purpose)

    Hi all,
           while i was creating sales order using the BAPI_SALESORDER_CREATEFROMDAT1 it is giving some error,
    version 0 is not defined for the fiscal year ****.
    I have given the fallowing parameters as input
    ORDER_HEADER_IN
         DOC_TYPE     OR
                    SALES_ORG  1000
         DISTR_CHAN  10
                    DIVISION         00
    ORDER_PATNERS
         PARTN_ROLE     SP
         PARTN_NUMB     1000
    ORDER_ITEMSIN
         MATERIAL     M-13
    I need to create sample sales order . Please help me how to create sales order with an example( for test purpose).
    Regards
    Deviprasad.

    Hi Prasad,
    Try using BAPI_SALESORDER_CREATEFROMDAT2.
    While creating sales order using FM: BAPI_SALESORDER_CREATEFROMDAT2, please make sure ORDER_ITEMS_IN, ORDER_ITEMS_INX, ORDER_SCHEDULES_IN, ORDER_SCHEDULES_INX.
    Pricing Conditions will not be mandatory to create a sales order via BAPI.
    As you were saying, you can create a sales order but not with items. Do populate the internal tables that i have specified above.
    Also try to pass the item number internally, this will help you in identifying the schedule lines.
    Regards,
    Priyanka.

  • WMS :  How to Process Sales Order Released before Turning on WMS

    Hello Gurus,
    How to process sales orders released before WMS enable flag is turned on in the  new WMS enviournment in Oracle 11.5.10 ?

    Helios,
    Thanks for the document.
    I m looking for how to perform Pick confirm transactions for already printed Pick slips before WMS enabled flag is turn on for the org.
    One option is to close all the deliveries  but if there is no on hand at that point the they will remain option.
    Other option is to Back order those deliveries and re release them post wms enable flag is turned on... The only issue i see here is that if there are more new orders for one of the items  and the orders are released then which orders will get allocated/reserved if there is limited on hand quantity to statisfy the SO need.
    Let me know if you can think off some alternative solution.
    Apprecite help !!
    Thanks,
    Sam

Maybe you are looking for

  • How to use Oracle Hints in OBIEE

    Hello guys I have a report that is running forever and I have reviewed the explain plan over and over, which makes me think that the join between these 2 tables are slowing everything down --- The fact table has 10Billion records and the Dim has 10 M

  • Porblem in displaying the data in main window and footer in sapscript

    Hi Friends, I have created a 2 pages with a main window and 6 footer windows for purchase requistion printout. My requirement is footer windows should only be displayed at the last page. If i bring the footer window at the last page there is blank sp

  • Processing report in background with a radio button option

    Hi all, We have a requirement where we need to run report output as background job, where we need to give radio button option in selection screen for background run and manual run . Thanks Karthik

  • Field Exit in 4.6c

    Hi All,    Can I create Field Exit in 4.6c (for ME23N)?    Awaiting for your suggestions. Thanks & Regards, Sudhakar

  • HT4436 my photo streamer is not working

    for 1 week now. I deleted my account twice both on the ipad and iphone and already tried everything but it just won't work...help!