REUSE_ALV_LIST_DISPLAY

Hi,
  I am using the REUSE_ALV_LIST_DISPLAY FM to display my output. I would like to insert a check box before the list/output. I have tried the following way but it is giving me a runtime error.

Y_LAYOUT-BOX_FIELDNAME = 'BOX'.
Y_LAYOUT-BOX_TABNAME   = 'YDATA'.

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
            I_STRUCTURE_NAME   = 'SFLIGHT'
            IS_LAYOUT          = Y_LAYOUT
            IT_FIELDCAT     = gt_fieldcat
            I_TABNAME       = 'SFLIGHT'
       TABLES
            T_OUTTAB           = it_flight.

Can anybody help me out.

Thanks,

Kind regards,
said
saidreddyAsked:
Who is Participating?
 
jonvaughanCommented:
So  you trying to get a check box as the left column so that you can select lines ?

As this is not a hierarchical report with more than one table then you don't actually need the Y_LAYOUT-BOX_TABNAME.

However the field BOX does have to be in the datatable that you are using - SFLIGHT rather than in a seperate table YDATA.

so you will need to extend your strucure SFLIGHT to include another field BOX.

Cheers
Jon
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.