• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1903
  • Last Modified:

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
0
saidreddy
Asked:
saidreddy
1 Solution
 
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now