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

bapi FM

Former Member
0 Likes
279

hi,

1)may i know why bapi function module cannot use changing and exception parameter?

2) also in the bapi function module cannot use include structures, commit work, call transaction, submit report, set get etc. what is the reason?

3)when calling program called bapi function module, calling program cannot catch the exception as bapi function module cannot define exception and therefore cannot raise exception in bapi function module. must use bapiret2 for bapi function module in this case. what is the reason?

4) why normal function module can define and raise exception whereas bapi function module cannot.

thanks

1 REPLY 1
Read only

Former Member
0 Likes
239

Hi el,

1.changing parameters means those which r passed by reference,but here we have only pass by value.bapireturn parameter returns errors(no exceptions)

2.its a function module so its not possible .in function module we cannt specify all like....

3.bapireturn is uesd for handling errors.

4.here in bapi we can handle exceptions thru bapiretun parameter,but in normal fm we didnt have that parameter,so we use exceptions concept.