on 08-19-2010 9:01 AM
Hi,
I have an ALV report and when I execute the report it works fine. I can see data on output screen. if I print the report using SAP print icon, I get to see only report header and ALV grid header but not data (but on screen I can see it). any idea what went wrong.
Regards
Here is my code
DEFINE fc.
add 1 to col_pos.
fieldcat_ln-col_pos = col_pos.
fieldcat_ln-fieldname = '&1'.
fieldcat_ln-key = &2.
fieldcat_ln-hotspot = &3.
fieldcat_ln-no_out = &4.
fieldcat_ln-do_sum = &5.
fieldcat_ln-cfieldname = &6.
fieldcat_ln-outputlen = &7.
translate: fieldcat_ln-fieldname to upper case.
append fieldcat_ln to fieldcat.
END-OF-DEFINITION.
fieldcat_ln-tabname = 'IT_OUTPUT'.
fieldcat_ln-ctabname = 'IT_OUTPUT'.
fc facul space space space space space 10.
fc dept space space space space space 10.
fc zz_req_appr space space space space space 10.
fc zz_req_clrk space space space space space 10.
REFRESH g_events.
wa_events-name = 'TOP_OF_PAGE'.
wa_events-form = 'TOP_OF_PAGE'.
APPEND wa_events TO g_events.
g_print-no_print_selinfos = 'X'.
g_print-no_print_listinfos = 'X'.
fieldlayout-zebra = ' '.
fieldlayout-colwidth_optimize = 'X'.
fieldlayout-no_vline = ' '.
fieldlayout-confirmation_prompt = ''.
fieldlayout-key_hotspot = 'X'.
fieldlayout-cell_merge = ' '.
fieldlayout-get_selinfos = 'X'.
This removes the column headings if the flag is set to 'X'
fieldlayout-no_colhead = ' '.
fieldlayout-detail_popup = 'X'.
fieldlayout-allow_switch_to_list = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_callback_pf_status_set = 'PF_STATUS_SET'
i_callback_user_command = 'USER_COMMAND_NEW'
i_callback_top_of_page = 'TOP_OF_PAGE'
i_structure_name = 'IT_OUTPUT'
i_grid_title = 'General data'
is_layout = fieldlayout
it_fieldcat = fieldcat
i_save = 'A'
is_variant = is_variant
it_events = g_events
IS_PRINT = g_print
TABLES
t_outtab = it_output
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Can you paste your segment code in calling the FM for ALV?
- JQC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.