Application Development 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: 

Error meesages in Update FM's (i.e. V1/V2 FM's)

Former Member
0 Kudos

Hello Everyone

I want to know the usage of error messages in Update FM's. I have come across instances where in all places they mention usage of Message type 'A' to do explicit roll back in V1/V2 FM's. It's not very clear whether we can use message type 'E' inside V1/V2 FM's and what will happen if we use Error messages in these FM's.

Any help will be highly appreciated and would definitely be rewarded.

Cheers

Ranganath

1 REPLY 1

Former Member
0 Kudos

Hi,

If you use error messages (type 'E') inside the FM, normal flow will get affected and SAP will take the control from the execution flow(i.e., code(s) after the Error message will not be executed, instead the program will be hanged displaying a BLANK screen after the error message), this the reason why Abend type 'A' messages are used instead of type 'E'.

NOTE: you can try the same giving error message 'E' in start-of-selection event of a report to see the effect.

Hope this helps ..

Regards,

Dilli