‎2007 Mar 10 7:14 AM
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
‎2007 Mar 10 7:31 AM
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.