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

doubt about exceptions.

Former Member
0 Likes
478

hai,

here there is user eit function module.

call customer-function '014'

exporting

is_header = is_caufvd

is_component = cs_resbd_new

is_component_old = is_resbd_old

is_materialview = is_msfcv

i_fcode = c_fcode

i_marked = c_flg_sel

exceptions

no_changes_allowed = 01.

-


directly it taking data from screen. so here i have doubt that when that exception will raise.

tell me what is main use of exception.

-


some fm there is more than one exceptions is there?

so plz tell me about the use exception & changing in function module.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
440

Hi,

CALL customer-function '014', is called from a standard program. There might be a case where depending on certain conditions you want to restrict the user from making changes on the screen. In that case you you will raise the exeption in the implementation of the user exit where you write your own code.

In this case

RAISE no_changes_allowed. 

For further details on how to raise the exception, refer to the keyword 'RAISE'

regards,

Advait

2 REPLIES 2
Read only

Former Member
0 Likes
440

this is a customer function, so you need to code for this exception for the scenarios where you dont want the Changes.

Read only

Former Member
0 Likes
441

Hi,

CALL customer-function '014', is called from a standard program. There might be a case where depending on certain conditions you want to restrict the user from making changes on the screen. In that case you you will raise the exeption in the implementation of the user exit where you write your own code.

In this case

RAISE no_changes_allowed. 

For further details on how to raise the exception, refer to the keyword 'RAISE'

regards,

Advait