How to get no. of lines in a  function module

Dear Experts,
   I want to get the no. of lines present in a function module. How can I do it.
   For reports/ include I did like
  read report 'rep name' into itab.
  describe table itab lines wa_line.
  But I am not able to do the same for function module. Is there any function module to find the no. of lines?
or is there any other way?
Thanks and regards,
Venkat

HI,
In Se37, enter your FM name display,
now Goto --> Mainprogram --> you can see include for function modules
eg:   include lalfauxx.      " Function Modules
double click the include
you can see the function module names includes
Eg:
  THIS FILE IS GENERATED BY THE FUNCTION LIBRARY.             *
  NEVER CHANGE IT MANUALLY, PLEASE!                           *
include lalfau01.   "CONVERSION_EXIT_ALPHA_INPUT
include lalfau02.   "CONVERSION_EXIT_ALPHA_OUTPUT  _
double click your functipon module name 
eg :lalfau02.
you can follow the same as you did for the report
read report 'rep name' into itab.
describe table itab lines wa_line
This is the Include program name for your function module.
Basically FM is a include program.
eg:
data: begin of itab occurs 0,
        text type char2000,
       end of itab.
       data wa_line type syindex.
read report 'lalfau02' into itab.
describe table itab lines wa_line.
write wa_line.
output 13.
regards,
Nazeer

Similar Messages

  • How to get data to internal table from function module tr_inspect_objects

    How to get data from funtion module to an internal table .
    function module name is tr_inspect_objects(code inspectore  se10)
    how top collect all   task request data into one internal table using this fm or we have to create another fm .
    If you have already made FM please give us the code .

    Hi,
    You can use tables E070 or E071 to get data into your internal tables instead of a function module.
    Hope this helps.
    BR
    Dep

  • Does anyone know how to get a white line across text like the USA basketball logo?

    does anyone know how to get a white line across text like the USA basketball logo?

    Draw the shape which is to be knocked out (a line in the example) in a layer above the logo. The colour doesn't matter because it will be made invisible.
    Double-click in the space to the right of the layer's name in Layers panel to open its Layer Style window where advanced blending can be modified.
    Set Fill Opacity to zero and Knockout to "Deep" or "Shallow" depending on whether the knockout should be limited to a containing Group.

  • How to get rid of lines on photo prints???

    PSE12 win7 64 bit; HP OJ 7680; HP OJPro 8630;
    all photo prints have horizontal lines (like grid lines);
    same for psd and jpg;
    same on different computer;
    same photo printed using Photo Gallery has no lines; 
    How to get rid of lines in PSE12???

    If you have layout showing you will see the borders of text boxes. Go to the View menu & choose Hide Layout & see if they disappear.

  • How to read current line number in function module sourrce code?

    Hi All,
    How to read current line number in function module sourrce code?
    regards,
    Anuj

    If you have new editor you would be able to see the line number. 
    Or in the Dump screen - there is a button called Debugger - click that you would be able to see the code where dump has occured..  you would be able to find the line number from there.
    To get the new editor with line number , you need to change the settingsin SE38.
    Regards
    Vivek

  • How to increase line-size in Function module

    Hi All,
        How to increase line-size in function module..
    I am displaying a list in function module.The output is of width more than 150..
    Regards,
    Srinivas

    Hi Srini,
    U can try by setting the system variable SY-LINSZ = 150.
    or
    Use new page command.
    Vasanth

  • How can i find start line of any functions or procedures stored in package body?

    hi
    how can i find start line of any functions or procedures stored in package body?
    is there any way to write a query from for example user_source?
    thanks

    how can i find start line of any functions or procedures stored in package body?
    Why? What will you do differently if a procedure starts on line 173 instead of line 254?
    Tell us what PROBLEM you are trying to solve so we can help you find the best way to solve it.
    If you use PL_SCOPE that info is available in the *_IDENTIFIERS views. See 'Using PL/Scope in the Advanced Dev Doc
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28424/adfns_plscope.htm
    Try this simple sample code. The query is modified from that doc sample:
    -- tell the compiler to collect the info
    ALTER SESSION SET PLSCOPE_SETTINGS='IDENTIFIERS:ALL';
    -- recompile the package
    CREATE OR REPLACE package SCOTT.pack1 as
    PROCEDURE proc1;
    PROCEDURE proc2;
    END;
    CREATE OR REPLACE package BODY SCOTT.pack1 as
    PROCEDURE proc1 IS
    BEGIN
      NULL;
    END;
    PROCEDURE proc2 IS
    BEGIN
      proc1;
    END;
    PROCEDURE proc3 IS
    BEGIN
      proc1;
      proc2;
    END;
    END;
    -- query the info for the package spec
    WITH v AS (
      SELECT    Line,
                Col,
                INITCAP(NAME) Name,
                LOWER(TYPE)   Type,
                LOWER(USAGE)  Usage,
                USAGE_ID,
                USAGE_CONTEXT_ID
        FROM USER_IDENTIFIERS
          WHERE Object_Name = 'PACK1'
            AND Object_Type = 'PACKAGE'
    SELECT LINE, RPAD(LPAD(' ', 2*(Level-1)) ||
                     Name, 20, '.')||' '||
                     RPAD(Type, 20)||
                     RPAD(Usage, 20)
                     IDENTIFIER_USAGE_CONTEXTS
      FROM v
      START WITH USAGE_CONTEXT_ID = 0
      CONNECT BY PRIOR USAGE_ID = USAGE_CONTEXT_ID
      ORDER SIBLINGS BY Line, Col
    LINE,IDENTIFIER_USAGE_CONTEXTS
    1,Pack1............... package             declaration        
    2,  Proc1............. procedure           declaration        
    3,  Proc2............. procedure           declaration        
    -- query the info for the package body - change 'PACKAGE' to 'PACKAGE BODY' in the query above
    LINE,IDENTIFIER_USAGE_CONTEXTS
    1,Pack1............... package             definition         
    2,  Proc1............. procedure           definition         
    6,  Proc2............. procedure           definition         
    8,    Proc1........... procedure           call               
    10,  Proc3............. procedure           declaration        
    10,    Proc3........... procedure           definition         
    12,      Proc1......... procedure           call               
    13,      Proc2......... procedure           call               

  • How to refer to the class in regular functional module

    Hi ABAP guru's
    I wish to get details of GET_REQUID parameter of method IF_RSBK_REQUEST_GENERAL that is available in
    class CL_RSBK_REQUEST.
    I am writing a ABAP function module and I wish to use this class in that function
    module. Can someone help to write this code on how to read value of GET_REQUID in my function module?
    Thanks for your help in advance
    Ag

    Hi Allgon,
    welcome to the SAP Community Network. I hope you become a valuable member by contributing regularly.
    You need to appreciate a few things.
    Firstly read Welcome and Rules of Engagement.
    It includes the following suggestions...
    Please...
    - Use the correct or most appropriate forum,
    - Do not cross-post or multiple-post, and
    - Search for information before asking basic questions, again.
    Cheers
    Graham Robbo

  • How to upload Excel file in BI using function module in abap program

    How to upload Excel file in BI using function module in abap program?

    Hi Anuj,
    To upload the file , you can try a standard program "RSEPSFTP" .
    while you execute the program , a selection screen appears in which the inputs should be give as
    RFC destination - The target server name
    FTP command- PUT
    local file - your file name
    local directory - path of your local file
    remote file - your target file name
    remote directory - where it has to be stored
    Hope this is useful for you
    Thanks & regards
    Anju

  • How to Create Customer by BAPI or by Function Module

    Hi all,
    I am new to this forum...
    Please can anyone tell me how to Create Customer by BAPI or by Function Module.....?
    I have tried many of the function modules posted in the threads.. but it couldn't help me out...

    > The only official solution is batchinput and idoc (CREMAS).
    Note that when an IDoc exists, it is often possible to call the function module that is just behind it (see WE57 transaction). SAP would not support that direct call, but if you need to contact SAP support about an issue, you can create the IDoc manually and there's no reason that this issue doesn't arise.
    The only difference with the IDocs is that you don't have any IDoc stored in the database, and even no log in database (so you won't be able to see anything in WE02, etc.).
    Note that it is important to know if this function module does a database commit or not: you can look at the BDFG transaction (I assume there's no BAPI related as it is the initial assumption of my post) to see if IDoc packet processing is allowed or not: if packet processing is allowed, there's no database commit in the function module, otherwise there's one.

  • How to get input source line number

    I wrote a XSLT transformation that checks the input XML for errors.
    When the transformer finds a problem, it can terminate with <xsl:message terminate="yes">, which outputs the line number within the transformer XML source. I do so in my implementation to indicate errors.
    But i need to output the line number of the input source, not that of the transformer source, because this is the location of the error.
    Anybody knows how to do this?
    How can i get the current line number of the input source XML text?

    Hello Fritz!
    XALAN reads the entire input file (SAX) before starting with transformation.
    So overriding the input stream is no way to find this line number.
    I think this would have to be a built-in XSLT functionality within the tag "xsl:message".

  • How to get price list line id for service contract line(subline)

    Does some one know how to find a price list line id for service contracts line (sub line)?
    There is actually a column in table okc_k_lines_b which is called price_list_line_id, but it looks like it is never used (all columns values are NULL). I have tried to investigate reprice API's which are used in contracts authoring form, but they are too huge and it didn't lead to nay result. There is a way (bad hack), by calling OKS_QP_INT_PVT.COMPUTE_PRICE it is possible to get price list line id by which contract line is priced, it would be kina fine if I would need to find line id for some rows, but it wont work for thousands!
    Is there some proper way how could I get price list line id by which is service contract line priced?

    Hi,
    Check out the following query that gets the price_list_id on subline_level and more.
    The price_list_Id is stored as a rule.
    SELECT
    chd.contract_number
    , par.party_number
    , par.party_name
    , ldf.pas_nummer
    , ldf.pas_houder     
    , rh.object1_id1 hdr_price_list_id
    , rsl.object1_id1 sl_hdr_price_list_id
    , pld.parkeerterrein
    , msi.segment1
    , sit.description
    FROM
    okc_k_headers_b chd
    , okc_k_lines_b clt
    , okc_k_lines_b cls
    , okc_k_lines_b_dfv ldf
    , okc_k_items cit
    , okc_rule_groups_b rgh
    , okc_rules_b rh
    , okc_rule_groups_b rgt
    , okc_rules_b rtl
    , okc_line_styles_b lst
    , okc_rule_groups_b rgs
    , okc_rules_b rsl
    , okc_line_styles_b lss
    , qp_list_headers_b plh
    , qp_list_lines pll
    , qp_list_lines_dfv pld
    , qp_pricing_attributes pat
    , mtl_system_items_b msi
    , mtl_system_items_tl sit
    , hz_cust_accounts cac
    , hz_parties par
    WHERE
    rgh.chr_id = chd.id
    AND rh.rgp_id = rgh.id
    AND rh.jtot_object1_code = 'OKX_PRICE'
    AND cac.cust_account_id = rtl.object1_id1
    AND par.party_id = cac.party_id
    AND clt.chr_id = chd.id
    AND clt.lse_id = lst.id
    AND lst.lty_code = 'SERVICE'
    AND rgt.cle_id = clt.id
    AND rtl.rgp_id = rgt.id
    AND rtl.jtot_object1_code = 'OKX_CUSTACCT'
    AND cls.cle_id = clt.id
    AND cit.cle_id = cls.cle_id
    AND cit.jtot_object1_code = 'OKX_SERVICE'
    AND cls.lse_id = lss.id
    AND lss.lty_code = 'COVER_ITEM'
    AND cls.id = rgs.cle_id
    AND rgs.id = rsl.rgp_id
    AND rsl.jtot_object1_code = 'OKX_PRICE'
    AND plh.list_header_id = rsl.object1_id1
    AND plh.list_header_id = pll.list_header_id
    AND pll.rowid = pld.row_id
    AND pat.list_header_id = pll.list_header_id
    AND pat.list_line_id = pll.list_line_id
    AND cit.object1_id1 = pat.product_attr_value
    AND cit.object1_id2 = chd.authoring_org_id
    AND msi.inventory_item_id = cit.object1_id1
    AND msi.organization_id = cit.object1_id2
    AND sit.inventory_item_id = msi.inventory_item_id
    AND sit.organization_id = msi.organization_id
    AND sit.language = userenv('LANG')
    AND cls.rowid = ldf.row_id
    Hth,
    Martin
    Edited by: mvdons on 4-sep-2008 2:13

  • How to get ALL command line parameters

    Hi,
    Is there possibility to get all command line parameters which
    Flex builder invokes when I press RUN button ?
    I am asking because I want to create mxmlc ant task with the
    same parameters as Flex builder.
    I wrote something like that below but I have a problem with
    invoking remote function, it seems that poduced SWF inf flex
    builder an my script (below) arent the same - and mayby have some
    security differences.
    Any Ideas how to get all compiler argumets from flex builder
    quote:
    <mxmlc
    file="${flex.src}\main.mxml"
    output="${flex.output}\main.swf"
    services="${path.tomcat.root.WEB}/flex/services-config.xml"
    context-root="${path.tomcat.root}"
    use-network="true"
    keep-generated-actionscript="false"
    debug="false"
    locale="en_US"
    incremental="true"
    >
    <!--load-externs="${LOADEXTERNS}"
    link-report="link-report.xml" -->
    <load-config
    filename="${FLEX_HOME}\frameworks\flex-config.xml"/>
    <source-path path-element="${FLEX_HOME}\frameworks"/>
    <compiler.source-path path-element="${flex.src}"/>
    <compiler.library-path dir="${FLEX_HOME}\frameworks"
    append="true">
    <include name="libs" />
    <include name="../bundles/{locale}" />
    </compiler.library-path>
    </mxmlc>

    Hi,
    Try -dump-config compiler argument, which will write all the
    currently set configuration values. Please find more details at the
    URL below.
    http://www.quilix.com/node/9
    Hope this helps.

  • How to get the command line interface for WRT160NL router

    hi,
    How can I get the command line interface for WRT160NL router. please suggest.

    If you’re trying to access the web-based interface of your router, just use its default IP address (192.168.1.1). The Username is left blank and the Password is "admin". Here’s a quick link on how to do that.

  • ALV_GRID How to get number of lines after filted applyed?

    Hi, all!
    The task is to display title in alv_grid like
    "N records selected (X records on the screen)".
    It means, N records in dataset and X records displayed after  filter applyed by user.
    But i can't get number of lines after filter applyed from the alv_grid.
    Can anybody help me?
    Thanks & regards,
    Konstantin

    Hi,
    If it goes through PBO/PAI cycle after user sets the filter then in your PBO call method get_filtered_entries of CL_GUI_ALV_GRID and then do a describe statement on the table.
    Number of entries in your grid table - number of entries in this filtered entries table will give you the displayed entries after the filter is set.
    If it does not go through PBO/PAI cycle then register for after_user_command and I think the fcode for filter is '&FILTER' and code for the above logic in your handler method..
    Hope this helps..
    Sri

Maybe you are looking for