Sunday, December 26, 2010
This program displays any program source code in ALV list display using function module REUSE_ALV_LIST_DISPLAY.
REPORT ztest_program. DATA: BEGIN OF it_source_code OCCURS 0, data(500) TYPE c, END OF it_source_code. TYPE-POOLS: slis. DATA: it_fieldcat TYPE slis_t_fieldcat_alv, wa_fieldcat LIKE LINE OF it_fieldcat. PARAMETERS:p_name(30) TYPE c. START-OF-SELECTION. READ REPORT p_name INTO it_source_code. wa_fieldcat-fieldname = 'DATA'. wa_fieldcat-tabname = 'IT_SOURCE_CODE'. wa_fieldcat-seltext_m = 'Source code'. wa_fieldcat-outputlen = '500'. APPEND wa_fieldcat TO it_fieldcat. CLEAR wa_fieldcat. CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = sy-repid it_fieldcat = it_fieldcat TABLES t_outtab = it_source_code.
Followers
Popular Posts
- ABAP - ALV Report example with steps
- ABAP - Step by step tutorial on Smart Forms - Template Node
- ABAP - Sending email with pdf attachment
- 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.