Skip to Content
author's profile photo Former Member
Former Member

ALV with Check Box

Hi Experts,

I have an ALV grid display with check box.

I need to display the ALV with only check box. I don't need the Grid towards the left.

So can anyone tell me how to avoid the Grid which is at the left.

I am using "REUSE_ALV_GRID_DISPLAY" Function Module.

Thanks,

Karthik MD

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 27, 2010 at 01:23 PM

    Hi

    Check BOX_FIELDNAME TYPE SLIS_FIELDNAME, of fieldcatalogue - SLIS_T_FIELDCAT_ALV

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I am pasted my code below.

      wa_fieldcat_s-fieldname = 'FLAG'.

      • wa_fieldcat_s-outputlen = 1.

      wa_fieldcat_s-checkbox = c_check.

      wa_fieldcat_s-edit = c_check.

      wa_fieldcat_s-col_pos = 1.

      wa_fieldcat_s-seltext_l = 'Select'.

      • wa_fieldcat_s-no_out = 'X'.

      APPEND wa_fieldcat_s TO fieldcat_s.

      CLEAR wa_fieldcat_s.

      wa_fieldcat_s-fieldname = 'SRID'.

      wa_fieldcat_s-key = 'X'.

      wa_fieldcat_s-fix_column = 'X'.

      wa_fieldcat_s-seltext_l = 'SR Global ID'(101).

      wa_fieldcat_s-col_pos = 2.

      APPEND wa_fieldcat_s TO fieldcat_s.

      CLEAR wa_fieldcat_s.

      wa_fieldcat_s-fieldname = 'PERNR'.

      wa_fieldcat_s-seltext_l = 'Employee Number'(102).

      wa_fieldcat_s-col_pos = 3.

      APPEND wa_fieldcat_s TO fieldcat_s.

      CLEAR wa_fieldcat_s.

      wa_fieldcat_s-fieldname = 'ZZAGREEMENT_ID'.

      wa_fieldcat_s-seltext_l = 'Agreement ID'(103).

      wa_fieldcat_s-col_pos = 4.

      APPEND wa_fieldcat_s TO fieldcat_s.

      CLEAR wa_fieldcat_s.

      wa_fieldcat_s-fieldname = 'IT0041ENDDA'.

      wa_fieldcat_s-seltext_l = 'HCMS END DATE'(104).

      wa_fieldcat_s-col_pos = 5.

      APPEND wa_fieldcat_s TO fieldcat_s.

      CLEAR wa_fieldcat_s.

      wa_fieldcat_s-fieldname = 'ASSIGN_END_DATE'.

      wa_fieldcat_s-seltext_l = 'Assignment End Date'(105).

      wa_fieldcat_s-col_pos = 6.

      APPEND wa_fieldcat_s TO fieldcat_s.

      CLEAR wa_fieldcat_s.

      wa_fieldcat_s-fieldname = 'FNAME'.

      wa_fieldcat_s-seltext_l = 'First Name'(106).

      wa_fieldcat_s-col_pos = 7.

      APPEND wa_fieldcat_s TO fieldcat_s.

      CLEAR wa_fieldcat_s.

      wa_fieldcat_s-fieldname = 'LNAME'.

      wa_fieldcat_s-seltext_l = 'Last Name'(106).

      wa_fieldcat_s-col_pos = 8.

      APPEND wa_fieldcat_s TO fieldcat_s.

      CLEAR wa_fieldcat_s.

      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

      EXPORTING

      i_callback_program = prog_name

      i_callback_pf_status_set = 'PF_STATUS'

      i_callback_user_command = 'USER_COMMAND'

      is_layout = l_layout

      it_fieldcat = fieldcat_s[]

      it_events = t_events[]

      i_save = 'X'

      TABLES

      t_outtab = lt_final

      EXCEPTIONS

      program_error = 1

      OTHERS = 2.

      IF sy-subrc <> 0.

      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

      ENDIF.

      Thanks,

      Karthik MD

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.