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

Error Handling in FM/RFC

Former Member
0 Likes
447

Hi all,

I am developing RFC to same datas in custom table. Before inserting i am validating all input values in performs.

I should not through any errors, if any error occured need to capture in internal table and should return.

If any error occured in am storing into internal table.(with the format of bapiret2)

Here my problem is, inside of 3rd level of perform i am getting the error.. from this place i am not able to come out from function module directly... how can i come out directly can u help me...

FM

Begin.

Perform1

Exit.-----> If i write in functionmodule body its coming out of function module

end of fucntion.

form 1

perform2

endform1

form 2

perform3

endform2

form3

Here error is occuring.. i am copying to internal table.. and

Exit.. ---> this is coming out from the perform only...

is ther any statment to come out of function module directly

endform4.

Regards

Hi all,

I am developing RFC to same datas in custom table. Before inserting i am validating all input values in performs.

I should not through any errors, if any error occured need to capture in internal table and should return.

If any error occured in am storing into internal table.(with the format of bapiret2)

Here my problem is, inside of 3rd level of perform i am getting the error.. from this place i am not able to come out from function module directly... how can i come out directly can u help me...

FM

Begin.

Perform1

Exit.-----> If i write in functionmodule body its coming out of function module

end of fucntion.

form 1

perform2

endform1

form 2

perform3

endform2

form3

Here error is occuring.. i am copying to internal table.. and

Exit.. ---> this is coming out from the perform only...

is ther any statment to come out of function module directly

endform4.

Regards

1 REPLY 1
Read only

Former Member
0 Likes
421

try using STOP