Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Custom container with Input field

0 Kudos

Hi,

I have created a ALV grid display using CL_GUI_ALV_GRID. In the top Header of my ALV grid I need to display the input field parameter values given in the the selection screen.

can any one suggest me an idea..........

In the layout screen I have created the TOP OF PAGE input values but dono how to pass the selection screen parameter value in that.......

Help me...its urgent

2 REPLIES 2

Former Member
0 Kudos

Hi,

Consider the following code for reference. you can pass each selection-screen parameter into 'WA_LINE-INFO'.

Data :  WA_LINE       TYPE SLIS_LISTHEADER,

            GT_LIST_TOP  TYPE  SLIS_T_LISTHEADER.

FORM TOP_OF_PAGE .

REFRESH GT_LIST_TOP.

WA_LINE-TYP = 'H'.

WA_LINE-INFO = 'Lab Report'.

APPEND WA_LINE TO GT_LIST_TOP.

CLEAR WA_LINE.

CONCATENATE 'Sample ID Count :' L_CSAMPCNT  INTO L_CSAMPCNT1 SEPARATED BY SPACE.

   WA_LINE-TYP = 'S'.

   WA_LINE-INFO = L_CSAMPCNT1.

   APPEND WA_LINE TO GT_LIST_TOP.

   CLEAR WA_LINE.

"Report is used only in India

   CONCATENATE 'Date   : '   L_SDATE+4(2) '.' L_SDATE+6(2) '.'  L_SDATE+0(4) INTO L_CDATE.

   WA_LINE-TYP = 'S'.

   WA_LINE-INFO = L_CDATE.

   APPEND WA_LINE TO GT_LIST_TOP.

   CLEAR WA_LINE.

   CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

     EXPORTING

       IT_LIST_COMMENTARY = GT_LIST_TOP.


ENDFORM.

Former Member
0 Kudos

Hi,

  

Ref :  OR

              Sample ALV: Heading in ALV