Skip to Content
0
Former Member
May 09, 2007 at 10:25 AM

INTERACTIVE LIST

13 Views

HI All,

As i m a beginner to the abaap, and i want to do small project on library , so i want help in creating an interactive report for bookdetails

i have tried the below code.. it is working to some extened but not completely.

TABLES ZBOOKINFO.

DATA : I_BOOK TYPE STANDARD TABLE OF ZBOOKINFO,

W_BOOK TYPE ZBOOKINFO.

START-OF-SELECTION.

write : / 'BOOK DETAILS'.

TOP-OF-PAGE DURING LINE-SELECTION.

case sy-lsind.

when 1.

WRITE 'LIST OF BOOK DETAILS'.

ULINE.

when 2.

write 'list of isbn'.

uline.

when 3.

write ' list of books'.

endcase.

AT LINE-SELECTION.

WRITE: 'SY-LSIND:', sy-lsind.

skip.

write : /'ISBN'.

WRITE : /'BOOK_NAME'.

WRITE : /'AUTHOR_NAME'.

WRITE : /'PUBLISHER_NAME'.

WRITE : /'COST'.

PERFORM BOOK.

IF SY-LISEL = 'ISBN'.

PERFORM ISBN1.

ENDIF.

FORM ISBN1.

SELECT ISBN

FROM ZBOOKINFO

INTO CORRESPONDING FIELDS OF TABLE I_BOOK.

LOOP AT I_BOOK INTO W_BOOK.

NEW-PAGE .

WRITE :/ W_BOOK-ISBN.

ENDLOOP.

WRITE : / 'BACK'.

ENDFORM. "ISBN1

NOW i want the details of isbn to be printed in new page but it is priniting in same screen. can you please help me out

thanks

pushpa