Wednesday, December 22, 2010
Use function module REUSE_ALV_GRID_DISPLAY_LVC to get Bold letters to on ALV output.
REPORT ztest. TYPE-POOLS: abap. TYPES : BEGIN OF ty_outtab, celltab TYPE lvc_t_styl. INCLUDE STRUCTURE t100. TYPES END OF ty_outtab. DATA : gt_outtab TYPE TABLE OF ty_outtab WITH HEADER LINE, wa_outtab type ty_outtab, gs_layout TYPE lvc_s_layo, ls_celltab TYPE lvc_s_styl, lt_celltab TYPE lvc_t_styl. START-OF-SELECTION. SELECT * FROM t100 INTO CORRESPONDING FIELDS OF TABLE gt_outtab UP TO 20 ROWS. ls_celltab-style = '00000121'. INSERT ls_celltab INTO lt_celltab INDEX 1. READ TABLE gt_outtab INDEX 1. gt_outtab-celltab = lt_celltab. INSERT gt_outtab INDEX 1. gs_layout-stylefname = 'CELLTAB'. CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC' EXPORTING i_structure_name = 'T100' is_layout_lvc = gs_layout TABLES t_outtab = gt_outtab EXCEPTIONS program_error = 1 OTHERS = 2.
- Output
Followers
Popular Posts
- ABAP - ALV Report example with steps
- ABAP - Sending email with pdf attachment
- ABAP - Step by step tutorial on Smart Forms - Template Node
- SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program
- SAP ABAP - CL_ABAP_CHAR_UTILITIES class usage
- ABAP - Multiple value selection from F4 help for SELECT-OPTIONS
- Execute ABAP Report using SUBMIT statement
- ABAP - Select all or Deselect all in ALV or Check box handling in ALV
- Web Dynpro ABAP ALV - ON_CLICK event
- ABAP - Dynamic WHERE clause
0 comments:
Post a Comment
Your useful comments, suggestions are appreciated.Your comments are moderated.