I have a standard FM as below:
CALL FUNCTION 'OIGI_LOADING_CREATE'
EXPORTING
i_subrc = 19
i_shnumber = load_inbound_hdr-shnumber
i_vehicle = load_inbound_hdr-vehicle
i_ldplt = lv_plant
I_LDDATE = 00000000
I_LDTIME = 000000
I_LDCDAT = 00000000
I_LOAD_AS_SCHEDULED = ' '
I_VEH_NR = 000
I_ROLLBACK = ' '
I_RECURSIVE = ' '
I_CORRECT = ' '
I_MBLNR = ' '
I_MJAHR = ' '
I_PSTDAT = 00000000
I_PSTTIM = 000000
I_DCMDAT = 00000000
IMPORTING
O_SUBRC = wf_subrc
As this FM returns error messages on some wrong input data it stops the execution and I cannot capture the exception and raise messages, also this FM does not contain any exception messages and directly raises Error messages.
How can I go about it.