Hi,
I need some help with the code to a user exit I am working for a CO-PA datasource. This is the code I wrote, but needs some tweaking, as this is the error message at CALL Function level: "Das formale Argument 'OTHERS'muss am der Ausnahmeliste stehen".
DATA: 1_d_fmname TYPE c .
CONCATENATE ' Z_DS_1_CO_PA1001000' i_datasource
INTO 1_d_fmname.
TRY .
CALL FUNCTION 1_d_fmname
EXPORTING
I_DATASOURCE = I_DATASOURCE
I_ISOURCE = I_ISOURCE
I_UPDMODE = I_UPDMODE
TABLES
I_T_SELECT = I_T_SELECT
I_T_FIELDS = I_T_FIELDS
C_T_DATA = C_T_DATA
C_T_MESSAGES = C_T_MESSAGES
EXCEPTIONS
RSAP_CUSTOMER_EXIT_ERROR = 1
OTHERS = 2
IF FOUND .
IF SY-SUBRC < > 0 .
RAISE RASP_CUSTOMER_EXIT_ERROR .
ENDIF .
CATCH CX_SY_DYN_CALL_ILLEGAL_FUNC .
No exit implemented, no need to do
anything here.
ENDTRY .