2006 Aug 04 12:35 PM
2006 Aug 04 12:47 PM
Hi,
You can define them in Exceptions & raise them appropriately.
Regards,
Nameeta
2006 Aug 04 1:05 PM
You have to declare a tables parameter of type bapiret2 and appropriately fill it in case of errors.
See any bapi to know how to do it.
Regards,
Ravi
2006 Aug 04 1:20 PM
Hi,
Define your function module call as follows:
For example:
*--- Call RFC to check commitment
CALL FUNCTION 'BBP_ACC_PURCHASE_REQUI_CHECK'
DESTINATION LW_DESTINATION
TABLES
PURCHASEREQUI = T_ACCPR
RETURN = RETURN
EXCEPTIONS
COMMUNICATION_FAILURE = 1 MESSAGE MSG_TEXT
SYSTEM_FAILURE = 2 MESSAGE MSG_TEXT
OTHERS = 3.
MSG_TEXT is populated with any errors.
MSG_TEXT is defined as DATA: MSG_TEXT(80) TYPE C.
Cheers
Colin.