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

regarding exception in function module

Former Member
0 Likes
570

Hi,

i am calling the one functioin module into another function module,after calling the function module one file will be attached to the transaction code and at the time status code of idoc is 53 if file is not attached the status code is 51 ,

at that time i want raise the exception ,please explain with example (those two are zee.. function modules)

4 REPLIES 4
Read only

Former Member
0 Likes
554

U can set the exception in the FM in which u r actually reading the status of IDoc.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
554

http://help.sap.com/saphelp_nw04s/helpdata/en/a0/ff934258a5c76ae10000000a155106/frameset.htm

In the FM go to exceptions tab...name a exception...

if condition fails in your code..

raise <exception_name>.

endif.

Read only

0 Likes
554

add ur own exception name in exception tab

use RAISE <exception name> in ur program

it will go back to the calling program & the index of the exception name will reflect in SY-SUBRC.

Reward if useful

Regards

ANUPAM

Read only

0 Likes
554

tat is exactly what im doing