Which table I can get sales order no from delivery numbar.

Hi,
I want sales order no from delivery no. right now I am using table VBFA where I am passing VBELN and POSNN and geting sales order no. but performance of select query is very poor bcouse I am not passing first two key fields in the select query.
Is there any other tablefrom where we can get sales order no. from delivery no. so that performance of report can be improved.
Thanks,

hi,
sales doc header ( table VBAK ) copy to Delivery header table( LIKP)
sales doc item table ( VBAP) copy to Delivery item table( LIPS)
you can see this in copy control VTLA ,
now u want slaes doc no. from dilv doc. no.
so go to t-code se11.....
fill table LIKP u will get VBELN field for deliv doc no, & TERNR field for sales doc. no.
so if u want to call sales doc no from dilv doc no.. u can use table LIKP in ur report.
i hope it will help u.

Similar Messages

  • Get Sales Order price from delivery

    Hi Folks, I need your help.
    I have a smart form to print a ticket that shows the total amount to be paid. Iu2019m using the FM GN_INVOICE_CREATE to simulate the prices and sum the items (Table xvbrp), passing the material and quantity.
    The problem here is when some conditions of discounts are included manually as price conditions in the sales order this function has no considerer those and I get the wrong amount or the amount without those conditions.
    After this issue a decided to change the FM to RV_INVOICE_CREATE (Table xvbrp), which is the FM used by the transaction VF01, this function works perfect but a Post good issue is required to obtain the prices.
    I need a FM to get these prices from the delivery, taking in consideration sales order conditions automatic and manual for the delivery item and delivery quantity. The purpose of this is to print a ticket with the amount to be paid by the customer, before the invoice is created.
    Thank in advance.
    Alexis Ramirez

    I solved the issue using the FM RV_INVOICE_CREATE.
    CALL FUNCTION 'RV_INVOICE_CREATE'
      EXPORTING
        invoice_type   = rv60a-fkart
        invoice_date   = sy-datum
        pricing_date   = rv60a-prsdt
        delivery_date  = rv60a-fbuda
        select_date    = rv60a-seldat
        i_analyze_mode = 'X'
        vbsk_i         = vbsk
        id_no_enqueue  = 'X'
      IMPORTING
        vbsk_e         = vbsk
        od_bad_data    = lv_bad_data
        det_rebate     = rebate_determined
      TABLES
        xkomfk         = w_xkomfk
        xthead         = w_xthead
        xvbfs          = w_xvbfs
        xvbss          = w_xvbss
        xvbrk          = w_xvbrk
        xvbrp          = w_xvbrp
        xvbpa          = w_xvbpa
        xkomv          = w_xkomv.
    I get the price from the table xvbrp.
    Thanks,
    Alexis

  • From which table i can get Customer No, Cust Ref, Contact name

    Hi CRM Experts,
    I want some fields ie (Customer Number, Customer Reference, Contact Name, Account Manager) from which table i can get this fields according to the Object_id.
    Provide any Tables names or Functional Module

    Hello Santu,
    To get this info in the Sales order, following steps ways you can go:
    1. Get Sales Order header GUID from table CRMD_ORDERADM_H,  as you have OBJECT_ID.
    2. Get the Sales order details by passing Header GUID to FM CRM_ORDER_READ and the exporting parameter table ET_PARTNER will give the parnter details of the Sales order. Read this ET_PARTNER table with partner function 0000001 i.e. sold to party which  is customer number and check the  ET_SALES Table where in PO_NUMBER_SOLD field will be refering to customer ref may be item level or header level depends on business,
    3. regarding the Contact name..check what is business requirement whether end customer contact or contact person of the customer.
    Hope it will help,
    Regards,
    Arjun
    <b>Reward points if it helps,</b>

  • From which table i can get the long text

    Hi All
    I have created some long text through function module CREATE_TEXT And i am able to see the text in the transaction .
    My requirement is from which table i can get these stored long text???
    Any suggestions please.
    Thanks

    Appreciate your answers.
    I have checked the both the fields stxh as well as stxl but i am not able to find any text fields out there.
    My actual requirement is some third party software needs to b mapped the table fields in order to import it.
    So if i know the table fields that would be easier.
    Can you tell me y we can not read it from the tables?
    Thanks,
    @run.

  • From which table we can get the Role of the User in SRM

    Hi  All,
        I need to prepare a report which displays the user and his role in srm. So from which table i can get  the role of the user if i have the Userid.
    Thanks
    Channappa Sajjanar

    Hi
    t- code
    SUIM->rOLES->BY USER ASSIGNMENT
    SELECT WITHASSIGNMENT OF USER = username
    AS A OUTPUT YOU MAY GET ROLE ASSIGNED TO THAT USER.
    if you want which FM - you debug while executing this report.
    regards
    Muthu

  • From which table I can get Vendor characteristic values ?

    Hi Everybody,
    From Which table I can get <b>Vendor Characteristic values from Vendor classification ?</b>
    Thanks & Regards,
    Nagaraju Maddi

    Hi
    Check the Tables
    CABN and AUSP
    or use the following
    Use the following BAPI's:
    BAPI_OBJCL_GETDETAIL
    or use the fun module:
    CLAF_CLASSIFICATION_OF_OBJECTS.
    Reward points for useful Answers
    Regards
    Anji

  • In which table i can get original PIR qty.

    Dear Gurus,
                        i upded my PIR  qty in MD61. PIR qty automatically is keeps  redusing  after outbound process. in which table i  can get  the original PIR qty.
    regards
    Poste.

    Hi,
    you can check tables
                        PBIM                    Independent requirements for material
         PBED                    Independent requirement data
         PBHI                    Independent requirement history
         PBIV                    Independent requirement index
         PBIC                    Independent requirement index for customer req.
    Regards
    SANIL

  • Which table i can get BED and ECS+SHEC values

    Hi all
    which table i can get BED and ECS+SHEC values and how i link to PO number..
    plz help me
    thanks
    ramesh

    Hi
    please search before you post the question ,
    this query is discusssed many times in the forum
    [Searching|http://lmgtfy.co/?q=sapexcise%20table]
    for excise check table J_1IEXCHDR for header
    J_1IEXCDTL for item excise

  • From which table we can get cat_guid depending upon the guid of a tr.ticket

    Hi Experts,
    I have to find the cat_guid depending upon the guid which is in crmd_orderadm_h table to retrive the fields categeorization module/element/type maintained in the service ticket.
    Please tell me from which table we can get cat_guid depending upon the guid of perticular trouble ticket.
    points will be rewarded if helpful.
    regards,
    Ezal

    Hi Ezal
    Pass the GUID (CRMD_ORDERADM_H) to Function Module CRM_ORDER_READ to retrieve the required values.
    I think this should do the trick.
    Reward with points if helpful
    Regards
    Arden

  • In which table I can get the Contact full name(First name and Last name)

    Hi,
    In  which table, I can get the field for Contact Person Full  name. In many tables Iam seeing FIRST NAME and LAST NAME as two fields.
    Regards
    Babu.

    You can use FM "CRM_BUPA_DESCRIPTION_READ".
    regard,
    vijay.

  • From which table i can get all activities ?

    I can get all active processes use below sql, select * from fuego_depproc a where a.fuego_status != 'D', but i don't know from which table i can get all activities of each process, who can tell me ? thanks.

    I don't think there is a very easy way to do that.... The Directory doesn't define the activities of a process, only the process itself, and the engine only cares about the where the instances currently are....
    One way I can think of, is use the Directory table FUEGO_PROCDEF_SOURCE and get the xml, then parse that and strip out the activity names...
    HTH,
    -Kevin

  • From which table i can get the details of cancled documents

    Hi All,
    here is an quarry,
    Iam haveing an Z report on purchase tax which has all tax report.
    but now the user want to same details for cancled document
    also.So can any help me from which table i can fetch the data
    urgent ! pls help me out!
    Regards,
    Rajashekar

    Cancelled documents will not be stored in Diff tables..
    It will be stored in the Same tables..
    For PO
    EKKO header level
    EKPO  Item Level
    EKBE Po History
    Material Doc
    MKPF  Header
    MSEG Item
    Invoice
    RBKP  Header
    RSEG Item

  • How to get master sales order number from delivery number

    Hi All,
    I need logic for getting master sales order number from available Delivery number.
    Note: There can be many SO's in diffrent levels.
    Finally i need to pick up master sales order no.
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    I have a outbound delivery[VL03N] 'X' in my system .
    Then for getting sales order no i am writing below code:
      SELECT single vbelv vbeln
             from vbfa
             INTO (vbelv, vbeln)
             where vbeln   EQ p_vbeln AND
                   vbtyp_n EQ 'J'.
    Then vbelv i need to pick up master sales order no.
        SELECT vbelv vbeln
               from vbfa
               INTO TABLE i_so
               where vbeln   EQ l_vbelv AND
                     vbtyp_n EQ 'C'.
    If i write code as above it is giving four sales orders which one of them is master sales order no!
    Thanks,
    Deep.

  • How to or which table i can find Sales Tax Code in CRM

    Hi,
    I need to get Sales Tax Code(mwsk1) in BADI 'CRM_COND_COM_BADI'. if i use CRM_ORDER_READ( ET_PRIDOC) or CRM_PRIDOC_READ_OW it is going into endless loop. So i can't use these Function modules in CRM_COND_COM_BADI.
    Can you help me table or any other way to get sales tax code of Pricing conditions that appear on the sales order in CRM.
    Thanks,
    Praveen

    Hi,
    try by getting header and item guid in et_pridoc->pric_cond.
    Regards,
    Padma.

  • How to Find out the from which table we can get the following fields?

    The following fields are from invoice data
    How to  know or from which table we get the following fields:
    Header Details:
    Manifest:, Finance Control #:, Alternate SID:, Carrier:, Container/Trailer #:, Hazmat Code:, Harmonizing Code, Freight Forwarder, Fiscal Rep., Ship From,  Notify Party
    Item Details:
    VAT/Tax Rate %, VAT/Tax Amount, Measurements, Net Weight, Gross Weight
    thanks

    Dear Krishnama
    Place your mouse on the required fields and press F1.  A box with header Performance Assistant will appear in front of you where you select "Technical information" (icon like hammer and spanner). 
    You can now see what table it is.
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • Importing Actions from PS-CS3 to CS4

    I recently upgraded from Photoshop CS3 to CS4 I tried to import the "Actions" I used in CS3 into CS4, but they didn't work. Is there a converter or something?  Anyway to get those actions into CS4 without re-recording them? Thanks, --PS

  • Just have to say... I'm a tad excited

    Well, I ordered my MacBook Pro Core 2 Duo last night. 2.33GHz Intel Core 2 Duo 3GB 667 DDR2 SDRAM-1x2GB,1x1GB 160GB Serial ATA Drive@5400rpm SuperDrive 8X 17" Widescreen Display No Modem iWork '06 Preinstalled BkLit Keyboard/Mac OS Country Kit I've b

  • No Menu Needed

    How can I get my dvd to be playable without a menu, if the user wishes it?

  • 10gR2 problems

    Hello I was previously working on OWB 9.2 and recently have joined a project which uses OWB 10gR2.. Now as i have started working on the same, i am getting a lot of issues in 10gR2 which i hadn't faced in 9.2 version... One scenario is: We were havin

  • BAPI_GOODSMVT_CREATE. Migo

    Hi Can any one Please help me I need to create Goods Receipt(MIGO) without Purchase Order known using standard BAPI_GOODSMVT_CREATE. Please provide me the necessary procedure and coding to create Goods Receipt? Thanks in advance. Ritika