Friday, December 31, 2010

REPORT ztest_notepad.
DATA:it_nfal     TYPE STANDARD TABLE OF nfal WITH HEADER LINE.
DATA:c1          TYPE cursor.
DATA:flag        TYPE c.
DATA:no_of_lines TYPE i VALUE '1000'.

START-OF-SELECTION.
  OPEN CURSOR:c1 FOR SELECT * FROM nfal.
  DO.
    IF flag NE 'X'.
      FETCH NEXT CURSOR c1 APPENDING TABLE it_nfal PACKAGE SIZE no_of_lines.
      IF sy-subrc <> 0.
        CLOSE CURSOR c1.
        flag = 'X'.
      ENDIF.
    ENDIF.
    IF flag = 'X'.
      EXIT.
    ENDIF.
  ENDDO.

1 comment:

  1. Wonderful blog & good post.Its really helpful for me, awaiting for more new post. Keep Blogging!


    SAP Consultant

    ReplyDelete

Your useful comments, suggestions are appreciated.Your comments are moderated.

Followers

Popular Posts

Contact Form

Name

Email *

Message *

Web Dynpro ABAP Book

An SAP Consultant

Follow US


Want to Contribute ?

If you are interested in writing about the new stuff you learn everyday while working, please write to the.sap.consultants@gmail.com.

Click on Contribution for more details.