on 09-19-2006 10:32 AM
Hallo ladies and gentlemen,
how can i easily add an mark column to an alv-list?
thanks a lot,
Marcel
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in the layout structure of the ALV just use the SEL_MODE option.
This can be either 'A','B' or 'C'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.