• ABAP Online Training @ $50

    Now you can learn ABAP by watching and listening video classes by experienced consultant.

  • ABAP Tutorials N Materials

    Read, Surf and Download useful ABAP tips, tutorials, code and download many eBooks and documents free

  • Latest ABAP Job in India

    Get all latest opening for SAP ABAP and related jobs, vaccancies across India and apply for the same.

    Wednesday, June 13, 2012

    Line count in  ABAP programming tell us how many lines the report can have.
    SYNTAX: REPORT <rep> LINE-COUNT <length>[(<n>)].
    Here <length> will decide the length of complete report or list length. If this is 0 then complete window will be considered(standard length). If you mention <n> then besides output list, the report will store <n> lines for footer. If nothing is in footer, then only empty line will display.
    To understand better, go to se38 and create the below simple report.
    REPORT  ztest_first_report LINE-SIZE 40 LINE-COUNT 4(1).

    WRITE:  'SY-LINCT:', sy-linct.
    SKIP.

    DO 4 TIMES.
      WRITE / sy-index.
    ENDDO.

    Execute:

    Here total 5 pages created. We have mentioned in our line count as 4(1) . Means report can have max 4 lines in one page, where 1 line is reserved for footer.
    Now let's increase the length from 4 to 5.
    REPORT  ztest_first_report LINE-SIZE 40 LINE-COUNT 5(1).


    Now each page can hold 5 lines with 1 line as footer.
    Easy2learnabap.co.in @ 2012 All product names on this web site are trademarks of the companies that own them .

    Easy2learnabap.co.in is not affiliated with SAP AG in any way. SAP AG is the registered trademark holder of SAP, SAP R/3, mySAP, ABAP, xApps, NetWeaver, and other proprietary terms.

    The technical information on this site is verified to the greatest extent possible, however, any information found on this site is used at the site visitor's own risk. All the tutorials are collected from various sources, if anyone is having problem with the content, report this to us. We will take action accordingly.

    Easy2learnabap.co.in reserves the right to correct any errors or omissions in any portion of this site at any time without obligation.

    This website is created to teach people about ABAP technology. The Video contents provided in Premium service are completely owned by us and copyrighted.