cancel
Showing results for 
Search instead for 
Did you mean: 

adding mark column into an alv

Former Member
0 Kudos

Hallo ladies and gentlemen,

how can i easily add an mark column to an alv-list?

thanks a lot,

Marcel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

In the internal table include a column for Check box.

In the fieldcatalog there is one property called "Checkbox / Check", just fill it as 'X'.

Regs,

Venkat Ramanan N

Answers (3)

Answers (3)

Former Member
0 Kudos

in the layout structure of the ALV just use the SEL_MODE option.

This can be either 'A','B' or 'C'.

anversha_s
Active Contributor
0 Kudos

hi,

DATA : wf_slis TYPE slis_t_fieldcat_alv.

PERFORM build_catalog USING wf_slis[].

FORM build_catalog USING wf_slis TYPE slis_t_fieldcat_alv.

.

.

.

.ur old fields....

.

.

.

.

*new field mark

CLEAR wf_str_slis.

wf_str_slis-fieldname = 'WF_MARK'.

wf_str_slis-checkbox = 'X'.

wf_str_slis-edit = 'X'.

APPEND wf_str_slis TO wf_slis.

endform.

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

  • I_BYPASSING_BUFFER =

  • I_BUFFER_ACTIVE = ' '

i_callback_program = sy-cprog

  • I_CALLBACK_PF_STATUS_SET = ' '

  • I_CALLBACK_USER_COMMAND = ' '

  • I_STRUCTURE_NAME =

  • IS_LAYOUT =

it_fieldcat = wf_slis[]

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

  • IT_SORT =

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_DEFAULT = 'X'

  • I_SAVE = ' '

  • IS_VARIANT =

  • IT_EVENTS =

  • IT_EVENT_EXIT =

  • IS_PRINT =

  • IS_REPREP_ID =

  • I_SCREEN_START_COLUMN = 0

  • I_SCREEN_START_LINE = 0

  • I_SCREEN_END_COLUMN = 0

  • I_SCREEN_END_LINE = 0

  • IR_SALV_LIST_ADAPTER =

  • IT_EXCEPT_QINFO =

  • I_SUPPRESS_EMPTY_DATA = ABAP_FALSE

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER =

  • ES_EXIT_CAUSED_BY_USER =

TABLES

t_outtab = int_zone[]

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.

rgds

anver

Message was edited by: Anversha s

Former Member
0 Kudos

add one more field to ur internal table <b>checkbox</b> of length 1

in fieldcatalog

wa_fcat-fielname = 'CHECKBOX'.
wa_fact-checkbox = 'X'.
wa_fcat-edit = 'X'.
append wa_fcat to it_fcat.

in ur layout

wa_layout-box_fieldname = 'CHECKBOX'.