‎2006 Aug 26 8:50 AM
Hi All..
I am facing RunTime error as "Read Report Line too Long"..
This code has no errors, while activation...
Please Help me out....
DATA : BEGIN OF it_skf OCCURS 0,
zreqtyp like zcomd_skftable-zreqtype,
zreqemail like zcomd_skftable-zreqemail,
zreqno like zcomd_skftable-zreqno,
END OF it_skf.
DATA : alvfc TYPE slis_t_fieldcat_alv.
select single zreqtype zreqemail zreqno into (it_skf-zreqtyp, it_skf-zreqemail, it_skf-zreqno)
from zcomd_skftable where zreqno = s_reqno-low.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = 'IT_SKF'
i_inclname = sy-repid
CHANGING
ct_fieldcat = alvfc
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
*------- Field Catalogue
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = 'IT_SKF'
i_inclname = sy-repid
CHANGING
ct_fieldcat = alvfc
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
*----
Display
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
it_fieldcat = alvfc
i_callback_program = sy-repid "<-------Important
i_callback_user_command = 'ITAB_USER_COMMAND' "<------ Important
TABLES
t_outtab = it_skf
EXCEPTIONS
program_error = 1
OTHERS = 2.
‎2006 Aug 26 9:06 AM
Hi,
I think in your code there are two errors.
1. you are selecting values into internal table fields , but you are not appending values to internal table.
2.i_callback_user_command = 'ITAB_USER_COMMAND' <b>change with</b> i_callback_user_command = 'USER_COMMAND'
why FM : 'REUSE_ALV_FIELDCATALOG_MERGE' called two times.
check this link for sample code :
http://www.sap-img.com/abap/sample-alv-heading-in-alv.htm
Regards
Appana
‎2006 Aug 26 9:06 AM
Hi,
I think in your code there are two errors.
1. you are selecting values into internal table fields , but you are not appending values to internal table.
2.i_callback_user_command = 'ITAB_USER_COMMAND' <b>change with</b> i_callback_user_command = 'USER_COMMAND'
why FM : 'REUSE_ALV_FIELDCATALOG_MERGE' called two times.
check this link for sample code :
http://www.sap-img.com/abap/sample-alv-heading-in-alv.htm
Regards
Appana
‎2006 Aug 26 9:19 AM
Hi Pawan,
Go to the runt itme dump , there on the application tool bar you will see the tab Debugger, it will take you to the code where the run time error had occured and start analysing from there by seeing the variable values(string values) to get an idea of what variable actually caused the error.
Thank You!
Please reward points if helpful.
Sunmit.
‎2006 Aug 26 10:15 AM
Hi pawan...to correct this problem please go through your code and make sure than each line you typed does not exceed 120 characters(including comment line).
In case if there area any lines so big then please bread it up into several samller lines after than save and activate your program and then run it.... it is sure to work..
‎2006 Aug 26 11:41 AM
hi
good
when it is giving this error one message window must comes click on ok (right symbol)it will work fine.
thanks
mrutyun