Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

PROGRAM_ERROR in ALV Exceptions

Former Member
0 Likes
563

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

2 REPLIES 2
Read only

naimesh_patel
Active Contributor
0 Likes
400

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

Read only

Former Member
0 Likes
400

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