Function module for finding number of records in table

Do we have any function module to find number of records in a table?
Thanks,
Shweta

use the EM_GET_NUMBER_OF_ENTRIES. You just have to write your table name into the input table IT_TABLES in the TABNAME field

Similar Messages

  • Function module for converting number to exponential???

    Hi All
      please tell me Function module for converting number to exponential.
    Deepak

    try:
    REPORT Zconvertf.
    parameters p1 type p decimals 2 default '4711.99'.
    data f1 type f.
    move p1 to f1.
    write: / p1, f1.
    hope that helps
    Andreas

  • How to config Check Digits function module for Student Number Validation

    Hi SLCM Experts,
    In the SAP-SLCM, How to use check digits function module for validate student number.  Just only config it or need to customizing program.
    *Any idea to student number validation in SLCM?*
    Best Regards,
    Suvatchai K.

    Hi ,
    Can you expalin it further ?
    You configure the St. no in piq_matr . And set it  as external or internal no. range which suits your business .
    What is the validation you are looking for ?
    Regards
    Gajalakshmi

  • Function Modul for Order Number from VA02

    Hallo
    i have a delivery number and want read the order number from VA02.
    Of course, select the database from LIKP --> LIPS --> VBKD is possible but 
    maybe it has function modul for read the order number from transaction VA02.
    THX ANU

    Hi,
    I think is better recover the data directly from DB tables (in table LIPS you have the fields VGBEL, VGPOS, VGTYP ) if you only want the order number.
    With the delivery number you only need to acces 1 table. If you use a FM, you will recover this data and a few fields that is not interesting for you. The access to table LIPS is using table index (delivery number)
    Regards,
    Pepe

  • Function module for comparing contents of two internal tables

    Hi All,
    Is there any function module to compare contents of two internal tables of same structure?
    If yes please let me know.
    Thanks in advance.
    Amol

    Hi
    call SE16 with table TFTIT in order to get a full list (it will be long...)
    A list of FMs with parameters can be found in table FUNCT.
    Finally go to sm37rsdf4
    that will give you all the function modules with description
    Here is the list:
    http://www.erpgenie.com/abap/functions.htm
    hope this helps...
    Regards
    CSM Reddy

  • Function Module for getting Number ranges between two number

    Hi guys,
    Is there any Function module which provide us the number range between two numbers?
    For Ex:If i give 1 and 10 to FM it must give me 1
    2
    3
    4.....upto 10.
    is there any FM for doing this,but i'm not able to find exact Fm for same.
    I can write small piece of code for getting number ranges, but if i get FM it could save little work.

    Hi
    But why do u need a fm, can't you do it by yourself?
    DATA: FROM_NUMBER TYPE I VALUE 1,
          TO_NUMBER   TYPE I VALUE 15.
    DATA: NUMBER            TYPE I.
    DATA: BEGIN OF T_NUMBER OCCURS 0,
                  NR TYPE I,
              END    OF T_NUMBER.
    NUMBER = FROM_NUMBER.
    DO.
      IF NUMBER <= TO_NUMBER.
        T_NUMBER-NR = NUMBER.
        APPEND T_NUMBER.
      ELSE.
        EXIT.
      ENDIF.
      NUMBER = NUMBER + 1.
    ENDDO.
    LOOP AT T_NUMBER.
      WRITE: / T_NUMBER-NR.
    ENDLOOP.
    Max

  • Function module to find number of table entries in Data base table

    Hi All
       I have the urgent requirement to find out the number of table entries in a table  using the function Module.
    if u know the Function Module name please let me know
    Thanks & Regards
    Rajmohan.G

    You can calculate the total number of records like this.
    TABLES : ztable.
    DATA cnt type I.
    Select count( * ) into cnt FROM ztable.
    Regards,
    Santosh

  • Function module for adding number of months to the date

    Hi,
    Is there any function module to get the date by adding number of months...
    Regards,
    Yadagiri

    Normally all SAP FM will return that value. As 1 month in general means 30 days only.
    You can check the code in this link for logig of 31 -
    add month in the date to find next date
    Regards,
    Amit

  • Function Module for finding all the users in an org unit?

    Hi,
    is there a function module or a table by which we can find all the users within a purchasing group of purchasing organisatiopn unit.
    Looking for a quick response.
    Regards,
    Neha

    Please use the function module BBP_OM_STRUC_GET_USER_FROM_ORG.  You have to pass the Org Ids in the parameter START_OBJECTS. Then USER_TAB will give you all the users.
    Note:
    OTYPE = 'O'.
    OBJID = <Org Id say 50002323>.
    Regards
    Kathirvel
    Edited by: Kathirvel Balakrishnan on Sep 24, 2008 2:25 PM

  • Function module for finding related IDOCs of a document

    Hi All,
    I have a requirement where the inout will be shipment numbers. The expected output is the list of all the IDOCs that are related to the shipments. I know that this is a replica of the WE09 functionality but the users will not have access to WE09 and more over WE09 takes a long time to give this result.
    My expectation is someting like the relationship in the "Services for objects2 that we have in the document which will give this detail very quickly.
    I know one function module (WFMC_PROTOCOL_GET) which will give the list of outbound IDOCs if we know the output type  and the shipment number. Also there is another function module GOS_EXECUTE_SERVICE which will do very similar to the servie for objects. But I need to know exactly the class or function module which will give me the relationship output alone so I can use this for further processing.
    Also kindly let me know if there is some other standard way of looking  at this requirement.
    regards,
    Vijay V

    Vijay,
    You can use FM  'DRB_NEIGHBOURS_GET' for the required functionality . Here is sample code :
    DATA : L_BORIDENT  TYPE  BORIDENT ,
            T_RELATIONS TYPE TABLE OF BORIDENT .
      L_BORIDENT-OBJKEY = Delivery_no .      "Document no
      L_BORIDENT-OBJTYPE = 'LIKP' .          "Object type e.g. LIKP , BUS2025 
        CALL FUNCTION 'DRB_NEIGHBOURS_GET'
          EXPORTING
            BORIDENT           = L_BORIDENT
          TABLES
            T_RELATIONS        = T_RELATIONS.
    Linked Idoc type will be in table T_RELATIONS with OBJTYPE value equal to 'IDOC' .
    - Tushar Shukla

  • Function module for finding sales order GT total value(vbak-netwr)

    Can anyone tell which function module is used to find the Sales order  greater than the input parameter which is  total value(vbak-netwr).Output should be the details of sales order satisfying the condition.ie greater than the total value.

    Hi chandra
    I hope you are giving the logic to the ABAP'ers . By giving the input and the outputs. So here , VBAK-NETWR are related to functional consultants .
    Based on the requirement , SD,FI etc the give the logic but mostly it is related to SD consultants only
    Reagrds
    Srinath

  • 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

  • Function module for no of entries in a table

    is there any function module by which we can get the number of entries in a database table?

    Hi,
    You can use like:
    select count(*)from dbtab into cnt.
    which will return u the no. of records.
    Regards,
    Renjith Michael.

  • Function module to find the columns in Internal table

    Hi Group,
    Is there any function module which displays the columns of the internal table. I guess there is one cos when we debug any program and select the "Tables" button while debugging and enter an internal table and then do a "Find" the pop up which comes up shows the internal table columns. As this functionality is in the debugger which I cannot debug hence was wondering if some one has come across any such function module. Thanks in advance.
    Regards,
    Ankur Bhandari
    [email protected]

    Hi again,
    1. In the above FM
       Pass Program as SY-REPID (U cann pass other prg name also)
    in FieldName Pass the name of the internal table
       eg. 'ITAB'
    2. This FM will give u the details of the
       internal table.
       The u can display the COMPONENTS table
       using ALV or anyother method u like.
    Regards,
    Amit M.

  • Function module for finding differens in date

    HI,
    Friends can any one help me in finding out difference in date in select option .
    i having problem when difference  became negative .My requirement is to find out monthly report for a material . so i need to find out difference of date and need to add one month from the given date to require date.
    Regards,
    Mahendra.

    try the following fms
    SD_DATETIME_DIFFERENCE
    DAYS_BETWEEN_TWO_DATES
    MONTHS_BETWEEN_TWO_DATES..
    sample code is
    REPORT ZDATEDIFF.
    DATA: EDAYS LIKE VTBBEWE-ATAGE,
    EMONTHS LIKE VTBBEWE-ATAGE,
    EYEARS LIKE VTBBEWE-ATAGE.
    PARAMETERS: FROMDATE LIKE VTBBEWE-DBERVON,
    TODATE LIKE VTBBEWE-DBERBIS DEFAULT SY-DATUM.
    call function 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
    exporting
    i_date_from = FROMDATE
    i_date_to = TODATE
    I_FLG_SEPARATE = ' '
    IMPORTING
    E_DAYS = EDAYS
    E_MONTHS = EMONTHS
    E_YEARS = EYEARS.
    WRITE:/ 'Difference in Days ', EDAYS.
    WRITE:/ 'Difference in Months ', EMONTHS.
    WRITE:/ 'Difference in Years ', EYEARS.
    INITIALIZATION.
    FROMDATE = SY-DATUM - 60.
    <u><i><b>DATE DIFF W/O FM</b></i></u>
    LOOP AT itab.
      v_number_of_days = itab-date2 - itab-date1.
      IF v_number_of_days > 1.
        DELETE itab.
      ELSE.
    *-- Do something else.
      ENDIF.
    ENDLOOP.
    regards
    navjot
    REWARD IF HELPFULL
    Message was edited by:
            navjot sharma

Maybe you are looking for