‎2009 Dec 14 9:34 AM
Hi
I have added 2 more fileds in internral table . this is alv report there is no syntax error .
i have user function module
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = w_repid
i_internal_tabname = 'T_BSIK'
I_STRUCTURE_NAME =
I_CLIENT_NEVER_DISPLAY = 'X'
i_inclname = w_repid
i_bypassing_buffer = 'X'
I_BUFFER_ACTIVE =
CHANGING
ct_fieldcat = T_FIELDCAT
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3
.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
LOOP AT t_fieldcat INTO wa_fieldcat.
CASE wa_fieldcat-fieldname.
WHEN 'ZFBDT'.
wa_fieldcat-key = ''.
wa_fieldcat-reptext_ddic = 'Net Due Dt.'.
wa_fieldcat-seltext_l = 'Net Due Dt.'.
wa_fieldcat-seltext_m = 'Net Due Dt.'.
wa_fieldcat-seltext_s = 'Net Due Dt.'.
WHEN 'KUNNR'.
IF p_kunnr IS INITIAL.
wa_fieldcat-no_out = 'X'.
ENDIF.
WHEN 'LIFNR'.
IF NOT p_kunnr IS INITIAL.
wa_fieldcat-no_out = 'X'.
ENDIF.
WHEN 'SHKZG'.
wa_fieldcat-no_out = 'X'.
WHEN 'ZBD1T'.
wa_fieldcat-no_out = 'X'.
WHEN 'BELNR'.
wa_fieldcat-key = 'X'.
WHEN OTHERS.
wa_fieldcat-key = ''.
ENDCASE.
MODIFY t_fieldcat FROM wa_fieldcat.
ENDLOOP.
I am getting error on that.
ERROR is :
The Internal table "\UNCTION= K_KKB_FIELDCAT_MERGE\DATA=L_ABAP_SOURCE[]" IS 72 CHARACTERS Wide
.the program line is 79 characters wide.
Thanks
Chandra
‎2009 Dec 14 9:39 AM
Hi Chandra,
For ALV reports the length should not be greater than 72. (please change the same)
You can also achive the same
Goto SE38
Open your program in edit
Utilities --> Settings --> Set "Downwards-Comp Line Length" falg to X and save. (This wil auotmatically set ur code to 72 chars)
Hope this helps,
Nag
‎2009 Dec 14 9:39 AM
Hi Chandra,
For ALV reports the length should not be greater than 72. (please change the same)
You can also achive the same
Goto SE38
Open your program in edit
Utilities --> Settings --> Set "Downwards-Comp Line Length" falg to X and save. (This wil auotmatically set ur code to 72 chars)
Hope this helps,
Nag
‎2009 Dec 14 9:39 AM
Hello,
'REUSE_ALV_FIELDCATALOG_MERGE' is scanning source code and reading all definitions. So if you want to use this function module all lines in your source code should be less or equal to 72 character (old abap editor value)/
Regards
Gungor