‎2006 Jul 18 6:56 AM
Hi All,
Can any one Please tell me when the 'PROGRAM_ERROR' Exception is handled in REUSE_ALV_GRID_DISPLAY.
What are the conditions to get this exception when we use FM 'REUSE_ALV_GRID_DISPLAY'. I read the documentation i got some thing but i want to know where it is handled in program.
Thanks& Regards,
Kiran
‎2006 Jul 18 7:00 AM
Hello,
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE =
I_INTERFACE_CHECK = ' '
I_CALLBACK_PROGRAM = ' '
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
..
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB =
<b> 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.</b>
Regards,
Naimesh
‎2006 Jul 18 7:16 AM
hi kiran,
when you pass the wrong parameters, when you don't pass any values to the required parameters, then program_error will be raised in terms of dump, or type X message raised if you comment this ..
<b>IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.</b>
Regards
vijay