on 2024 Aug 20 7:55 AM
• when u execute factory method program we can’t able to see customize grid title, we can customize title by using set_list_header method in cl_salv_table.
• create a basic program in SE38 code as follows.
"INSTANCE FOR FACTORY
DATA : o_alv type REF TO cl_salv_table,
lo_columns TYPE REF TO cl_salv_columns_table,
lo_column TYPE REF TO cl_salv_column_table,
LO_FUNCTIONS TYPE REF TO cl_salv_functions_list,
ls_color TYPE lvc_s_colo.
START-OF-SELECTION.
"FETCH DATA FROM EKPO
select * FROM ekpo INTO TABLE @DATA(lt_ekpo) UP TO 20 ROWS.
"DISPLAY ALV
TRY.
CALL METHOD CL_SALV_TABLE=>FACTORY
IMPORTING
R_SALV_TABLE = o_alv
CHANGING
T_TABLE = lt_ekpo.
CATCH CX_SALV_MSG .
ENDTRY.
CALL METHOD o_alv->GET_DISPLAY_SETTINGS
RECEIVING
VALUE = data(gr_disp). "ALV Settings for Display
gr_disp->SET_STRIPED_PATTERN( VALUE = ABAP_TRUE ).
gr_disp->SET_LIST_HEADER( VALUE = 'PURCHASE ORDER REPORT' ).
CALL METHOD o_alv->DISPLAY.
Request clarification before answering.
can u please guide how to post normal sap community blog
for my account create blog is disabled.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
https://community.sap.com/t5/help/faqpage/title/can_write_publish_own_blog_post
What You Need to Know About Blogging Post-Migratio... - SAP Community
"new members who wish to blog will need to take this tutorial to receive blogging permissions"
User | Count |
---|---|
59 | |
9 | |
8 | |
6 | |
5 | |
4 | |
3 | |
3 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.