Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Interactive Reporting

In basic list i have 2 fields,"BILL NO" and "Budget".If i click 'BILL NO' first interactive list should be displayed. and if i double clik on budget another list be displayed .

PLZ help me with sample code which matches my requirement.

Thanx in advance

Tags:
Former Member
Former Member replied

Hi,

Hope this code may help you.

<code>

TYPES : BEGIN OF TY_ITAB,

KUNNR TYPE KUNNR,

NAME1 TYPE NAME1,

END OF TY_ITAB.

DATA : GT_ITAB TYPE TABLE OF TY_ITAB,

WA_ITAB TYPE TY_ITAB,

FIELDNAME(30).

SELECT KUNNR NAME1

FROM KNA1

INTO TABLE GT_ITAB

UP TO 10 ROWS.

ULINE.

WRITE :'Customer Number',50 'Customer Name'.

ULINE.

LOOP AT GT_ITAB INTO WA_ITAB.

WRITE :/ WA_ITAB-KUNNR,50 WA_ITAB-NAME1.

ENDLOOP.

AT LINE-SELECTION.

GET CURSOR FIELD FIELDNAME.

CASE SY-LSIND.

WHEN 1.

IF FIELDNAME EQ 'WA_ITAB-KUNNR'.

************************CODE FOR FIRST LIST**********************

WRITE : 'CUSTOMER NUMBER'.

WRITE :/ 'CODE FOR FIRST LIST'.

ELSEIF FIELDNAME EQ 'WA_ITAB-NAME1'.

************************CODE FOR SECOND LIST**********************

WRITE : 'CUSTOMER NAME'.

WRITE :/ 'CODE FOR SECOND LIST'.

ENDIF.

ENDCASE.

<code>

check the code and write your code accordingly.

Regards.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question