Tables to get customer number

Hi all,
I have a requirement to get customer number for documents in bseg and bkpf table records, anyone can tell the related tables for the same ??
thanks and regards
Jijo

The key fields that link an entry in BKPF to corresponding entry in BSEG are Client (MANDT), Company Code (BUKRS), Accounting Document Number (BELNR) and Fiscal Year (GJAHR).  You will have only header info. in BKPF, so you would not get customer number from there.  In BSEG, have you tried field KUNNR for getting customer number?  You will get this record when your selection criteria is BSEG-KOART='D' for a given company code, accounting document number and fiscal year.  In that record, look for the value in field KUNNR, which is the customer number.

Similar Messages

  • How to get customer number and name from the SD document

    Hi All,
    Can you please let me know how to get Customer Number and Name from the SD Document?
    Thanks a lot....
    Anil

    Hi,
    It will be displayed in the SD (BIlling document) itself,  you clikc on the VF03. The customer name and number will also appear in the SO document also Tcode VA03
    regards,
    radhika
    Edited by: kolipara radhika on Jul 10, 2009 5:32 AM

  • Table to get the number of files flowing in XI one day

    Hi Friends,
    Is there any table in XI to see the files received/send(flow of files) for each day?
    My requirement is, I need to find the files and filenames with hashcodes if possible . For a day, I would like to see the number of files flown etc(other than via transaction SXMB_MONI or AL11) with details of the files.
    I have a generate a report to check the file sequence and file flows for any day.....
    please help.
    Thanks a lot
    Will reward points if helpful for sure
    Leeza

    Hi there,
                    Only flow of files i am not sure abt that..
    but after executing T-code:SXMB_MONI there is option processing statistics ...if go into that there u can c nmumber of XML messages processed for the day..
    above mentioned is for all the messages for the file i am not
    sure...
    there are two tables;
    sxmsphist
    sxmsphist2
    Regards
    Rao

  • How to get customer no relating to a Business partner No

    How to get customer no relating to a Business partner No . Is that Customer unique ?

    hi arshad,
    based on business partner u can get customer number. both tables having some uniqe field...based on that uniqe field u can identify business partner no.......
    if it is usefull review the points

  • Where is the customer number(KUNNR) stored in VBO3 transaction??

    Where/In which Transparent Table is the customer number(KUNNR) stored in VBO3 transaction??
    In VBO3 transaction>>Enter some agreement number>>press enter>>Click on Condition button>>select some value and proceed.
    Here you will find Customer number(Kunnr).Please tell me,in which table is this value stored??Kindly tell me the procedure to find the same so that I can find In which transparent table others fields stored on this screen......:)
    Regards,
    Shashank.

    dear shashank,
    1.  just go to the screen and -
    > click f1 -
    > then technical details
    > click on dataelement -
    > double click on data element
    > then check menu bar -
    > utilities -
    > where used list
    you will find some tables ... so these are the main tables
    2. or other wise go to st05 ,
        activate trace
       do the transaction
       and deactive trace
       and check the details in that u can view tables from that you have to see in which table it is updating..

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

  • Select name1 frm kna1 table on basis of customer number

    hi below is my PAI code
    my requiremnt is to select name1 field from kna1 table where
    kan1-kunnr = t_ZCUST_EM_create-ship_to
    where to code it pls suggest and how it will be displayed in the screen 200 ie when user press enter the name1 should automatically populate and display on the screen...
    PROCESS AFTER INPUT.                                                                               
    MODULE CANCEL_200 AT EXIT-COMMAND.                                                                               
    LOOP WITH CONTROL TABLE_ZCUST_EM_CREATE ."AT T_AIMS_OPN_CREATE ." .".
       MODULE USER_COMMAND_0200.                                                                               
    CHAIN.                                                                               
    FIELD t_ZCUST_EM_create-ship_to .                                                                               
    MODULE set_field_validation ON CHAIN-REQUEST.

    hi anji
    here is my code i ahve written in PAI event but facing problem that whne i save entering the third firled in table zcustemal which has ship_to ship to name
    and email id, kunnr is matched against kna1 table and eror msg comes if the kunnr in not in kna1 table it is working ok
    now also name 1 is being populated in the field in the screen as per my code
    but problem is
    1) when just typing kunnr and email id ( and press save without enter the data for all three is saved ie kunnr name1 ( which is selected from table kna1) and e mail id
    2) but whne i press enter after entering kunnr number on screen and then enter email id an dsave email id is not saved only kunnr and name1 is saved pls suggest
    where should i code dont know pls suggest??????
    CODe in screen
    PROCESS BEFORE OUTPUT.
      LOOP   WITH CONTROL TABLE_ZCUST_EM_CREATE."AT T_ZCUST_EM_CREATE
        MODULE STATUS_0200.
      ENDLOOP.
    *Process after input
    PROCESS AFTER INPUT.
      MODULE CANCEL_200 AT EXIT-COMMAND.
      LOOP WITH CONTROL TABLE_ZCUST_EM_CREATE ."AT T_zcust_em_CREATE ." .".
        CHAIN.
          FIELD t_ZCUST_EM_create-ship_to .
          MODULE set_field_validation ON CHAIN-REQUEST.
        ENDCHAIN.
        MODULE USER_COMMAND_0200.
      ENDLOOP.
      module read_table_value_0200.
    <b>MODULE set_field_validation INPUT.</b>
    nv added for  three email id and ship_to name
      select single * from zcustemail   where ship_to eq
      t_zcust_em_create-ship_to
      and ship_to_name = t_zcust_em_create-ship_to_name
      and email_id = t_zcust_em_create-email_id.
      if sy-subrc eq 0.
        t_gui1-fcode = 'BACK'.
        append t_gui1.
        t_gui1-fcode = 'EXIT'.
        append t_gui1.
        t_gui1-fcode = 'SAVE'.
        append t_gui1.
        SET PF-STATUS 'AIMS_200' excluding t_gui1.
        message e001 with 'Record already Exists in Zcusteamil'(001).
      else.
    *nv
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
              EXPORTING
                 INPUT         = t_zcust_em_create-ship_to
              IMPORTING
                  OUTPUT       = t_zcust_em_create-ship_to.
         select single kunnr from kna1 into v_kunnr
         where kunnr = t_zcust_em_create-ship_to.
        if sy-subrc = 0.
           select single name1 from kna1 into t_zcust_em_create-ship_to_name
           where kunnr = t_zcust_em_create-ship_to.
          SET PF-STATUS 'AIMS_200'.
           else.
           message E001 with 'customer number does not exists'.
       endif.
    *nv
      endif.
    ENDMODULE.                 " set_field_validation  INPUT
    *Setting it for select/deselect entries
      move:t_zcust_em_create to t_zcust_em_create_sel.
      append t_zcust_em_create_sel.
      clear:t_zcust_em_create_sel.
    *Getting internal table t_zcust_em_create with control
      read table t_zcust_em_create
             with key ship_to = t_zcust_em_create-ship_to.
    *Getting internal table for create entries: screen-200
      if sy-subrc ne 0 and t_zcust_em_create-ship_to ne space .
        append  t_zcust_em_create     .
        move:t_zcust_em_create to t_zcust_em_create_tmp.
        append t_zcust_em_create_tmp .
        clear:t_zcust_em_create_tmp  ,
              t_zcust_em_create      .
      endif.
      clear:t_cols.
    *Getting the value of  w_fill_200.
      describe table t_zcust_em_create lines w_fill_200.

  • Get the sales order number based on customer number

    HI all,
    how can i get the sales order numbers based on the customer number?
    plz tell me the table names.
    thanks,
    Srini

    hiiiii..
    go to database table VBAK
    where you can find customer id and sales order
    use a select statement in your report program
    and key as kunnr ...
    i hope it does ...the job

  • Any table or program to get the number of records in P, A and F tables

    HI all
    any table for program to get the number of records in P, A and F tables. I want to create SQ01 queries to get the status of number of records. We are gng for a production cutover next week. Want to capture all the data before and after Upgrade cutover.
    Also suggest me how to create sq01 queries.
    Thanks in advance
    regards
    Janardhan KUmar K.

    Use Transaction LISTSCHEMA to see all the tables assosciated with ur cube
    Total number would be what you find in both the E & F fact tables. If there is no compression in the cube then E table will be empty.
    Alternatively u can use se16 transaction and enter E table and F table manually
    E table - /BIC/E(Cube name) and Ftable -  /BIC/F(Cube name)
    Or else u can go to the manage of the cube and without selecting any field for O/P and ticking the option output number of hits execute. The total of Row Count will give u the total no of records in the cube.

  • How to get the number of routes in MLS L3SW table with SNMP

    Hello experts,
    Is there any way to get the number of routes in the MLS-hardware Layer 3-switching table with SNMP, like with CLI command "show mls cef summary"?
    If possible, please let me know the OID and which MIB do I use.
    [e.g.]
    #show mls cef summary
    Total routes: 400000
    <omit>
    ====
    Device : C6509E
    IOS : s72033-advipservicesk9_wan-mz.122-33.SXH3a.bin
    ====
    Thank you,

    function buttonClick()
    var table = profileTable;
    var lnRow = table.rows.length;
    var insertedRow = table.insertRow(parseFloat(lnRow));
    var cell1 = insertedRow.insertCell();
    cell1.innerHTML ="<tr><td><Input type=\"hidden\" >>>name=\"rowNum\" value="+cnt"+></td></tr>";
    document.profileform.submit;
    on submit it goes to the second page, but the value i got using >>>System.out.println("row number from text >>>box"+request.getParameter("rowNum")); is null. What is wrong with >>>my coding. Can anyone solve this.HI carry
    Check the value of bold data
    function buttonClick()
    var table = profileTable;
    var lnRow = table.rows.length;
    var insertedRow = table.insertRow(parseFloat(lnRow));var cnt=inRow
    var cell1 = insertedRow.insertCell();
    cell1.innerHTML ="<tr><td><Input type=\"hidden\" >>>name=\"rowNum\" value="+cnt+"></td></tr>";
    document.profileform.submit;
    }try with it

  • How can I get the number of distinct records that each field of a DB table has?

    Hi everyone,
    I would like to know how to get he number of distinct records that each field of a DB table has. When tracing a SQL statement either in ST12 or ST05, in the plan execution, if the sentence made useage of an index, then I can click in the index name and see this kind of information (no. of distinct values for each field of that index).
    Can I do something like this but with the whole fields of a table?
    What I have found until now is in Tx ST10; I search for whatever kind of table statistics and then use the function of "Analyze table" (which takes me to Tx DB05). In here, I can enter a table and up to 5 fields in order to get the information that I want.
    Is there any other way to do this?
    Regards,
    David Reza

    Hi David,
    You can export the same to excel and sort as per requirement.
    Sorry is that what you are looking for ?
    Regards,
    Deepanshu Sharma

  • How to get customer / sales order details for VBBS table?

    Hi Friends,
    I have a requirement to create a report that will give the details of sales order ( VBELN ) and customer ( KUNNR) details from the sales requirement totals record table ( VBBS )
    Currently we have a report that just gives out the VBBS table entries for plant and material combination. As you are aware, the VBBS table contains the sales / deliveries requirements as displayed in MD04 transaction.
    Now there is a requirement to have the customer ( KUNNR ) and sales order (VBELN )  detail for each individual requirement totals.
    I checked the VBBE table ( sales requrirement : individual records ) but I cannot find any relationship between VBBS and VBBE. If there is a material / plant in VBBS , the same entry does not exist in VBBE.
    Please suggest if there is any other table to get this detail.
    Thanks
    Satya

    Tables are related.
    MATNR
    WERKS
    MBDAT
    LGORT
    CHARG
    etc fields are common in both VBBS and VBBE.
    May be you can generate a condition a fetch data using this.
    I hope it helps.
    thanks

  • ADRNR number in BSEC table ( One time customer document )

    Hi
    We are printing the customer master address details on AR forms with ADRNR field but this logic is not working for one time customer documents in BSEC if ADRNR filed is not available ( BLANK )
    The ADRNR filed for one time customers documents in BSEC is not updating always but the same table  is getting updated with ADRNR some of the one tim customer document.
    I think that the ADRNR filed getting updated if one time customer document are generated from SD & Idoc posting and the ADRBR field not getting updated if one time customer document directly generated from FI side...  but i m not 100% clear of ADRNR update in BSEC table for one time customer document
    Please help me on this if any body facing some problem earlier.
    Thanks
    Risha

    done

  • How to get user detail (Customer number) in Visual Composer

    Dear All
    I am developing a Sales Order Search application for Customers of my company.
    Whenever customer logs in to the portal and access this application, he will get the information on Sales Orders created by him.
    VC application should capture the customer number of the user and execute the BAPI.
    I am not able to capture the customer number of the customer logged in.
    In our portal implementation, customer number is a customized entry in Identity management.
    Using User Data in VC is not helping me as I am not able to see customer number in it.
    Kindly help.
    Regards
    Vineet Vikram

    Hi
    It is resolved now.
    Regards
    Vineet

  • Get records number from internal table with condition.

    Internal table itab got more than 1000 records,now i need to get the number of records with condition that itab-field1 = 'XXXX'.
    actully, i got an inefficient logic to count the number in a loop statement. is there better way to implement it?

    hello,
    Every time assigning data into temp table and delete may that may not be much efficient. You can check in loop logic how much time is taken. You can check the below code. here I am trying to check the numbers of plant for for one material.
    In this logic material is the first field. So if there is option to make the required field in to the 1 st position then it will be nice.
    TYPES: BEGIN OF x_count,
            matnr TYPE matnr,
            count TYPE i,
           BEGIN OF x_count.
    DATA: i_marc  TYPE STANDARD TABLE OF marc,
          i_count TYPE STANDARD TABLE OF x_count,
          wa_count TYPE x_count.
    FIELD-SYMBOLS: <wa_marc> TYPE marc.
    SELECT * UP TO 1000 ROWS
      FROM marc
      INTO TABLE i_marc.
    IF sy-subrc = 0.
      SORT i_marc BY matnr.
      LOOP AT i_marc ASSIGNING <wa_marc>.
        wa_count-count = wa_count-count + 1.
        AT END OF matnr.
          wa_count-matnr = <wa_marc>-matnr.
          APPEND wa_count TO i_count.
        ENDAT.
      ENDLOOP.
    ENDIF.
    Thanks
    Subhanakr

Maybe you are looking for