47 Flares Twitter 0 Facebook 47 Google+ 0 LinkedIn 0 Email -- 47 Flares ×

Interactive reports: Interactive reports are having the drill down option into the report data, interactive reports will give detail level of information and it is very easy to analyze the report.

1. in the interactive report we have 21 lists among them 1 is basic list and 20 secondary lists

2. For example if you are in the 20th secondary list and trying to interact with 21  secondary list then your program it will goes to short dump(Runtime Error)

3. If we are in the 20th secondary list on that time if we want to return back to the 5th list then simply write the flowing logic

IF sy-lsind eq 20.

Sy-lsind eq 4.

Endif.

Interactive reports Sample Example:

*&———————————————————————*

*& Report  ZINTARACTIVE_REPORT1

*&

*&———————————————————————*

*&

*&

*&———————————————————————*

REPORT  ZINTARACTIVE_REPORT1 NO STANDARD PAGE HEADING.

START-OF-SELECTION.

WRITE : /10 ‘This is Basic List’.

 

AT LINE-SELECTION.

CASE SY-LSIND.

WHEN 1.

WRITE : /10 ‘1st Secoendry List’.

WHEN 2.

WRITE : /10 ‘2nd Secoendry List’.

WHEN 3.

WRITE : /10 ‘3rd Secoendry List’.

WHEN 4.

WRITE : /10 ‘4th Secoendry List’.

WHEN 5.

WRITE : /10 ‘5th Secoendry List’.

WHEN 6.

WRITE : /10 ‘6th Secoendry List’.

WHEN 7.

WRITE : /10 ‘7th Secoendry List’.

WHEN 8.

WRITE : /10 ‘8th Secoendry List’.

WHEN 9.

WRITE : /10 ‘9th Secoendry List’.

WHEN 10.

WRITE : /10 ’10th Secoendry List’.

WHEN 11.

WRITE : /10 ’11th Secoendry List’.

WHEN 12.

WRITE : /10 ’12th Secoendry List’.

WHEN 13.

WRITE : /10 ’13th Secoendry List’.

WHEN 14.

WRITE : /10 ’14th Secoendry List’.

WHEN 15.

WRITE : /10 ’15th Secoendry List’.

WHEN 16.

WRITE : /10 ’16th Secoendry List’.

WHEN 17.

WRITE : /10 ’17th Secoendry List’.

WHEN 18.

WRITE : /10 ’18th Secoendry List’.

WHEN 19.

WRITE : /10 ’19th Secoendry List’.

WHEN 20.

WRITE : /10 ’20th Secoendry List’.

IF SY-LSIND = 20.

SY-LSIND = 10.

ENDIF.

ENDCASE.

Note:  Interactive report support the user interaction always through double click  whenever use double click on the record of any list then AT LINE-SELECTION event will trigger and  the list index is incremented by 1.

Also Read:

SAP ABAP report with checkbox to Download selected records at Run time.

Naming Standards in SAP ABAP.

Types of Internal Tables in SAP ABAP.

ALV Tree Display in SAP ABAP. 

47 Flares Twitter 0 Facebook 47 Google+ 0 LinkedIn 0 Email -- 47 Flares ×