Skip to Content
0
Former Member
Jul 08, 2008 at 08:44 AM

Fox with call function error CATCH_CX_ROOT

30 Views

Hi,

When we define a FOX which calls a Z-function, we notice that in the automatic generated ABAP code for the FOX function, SAP creates an incorrect statement CATCH_CX_ROOT (instead of CATCH CX_ROOT). As a result the planfunction dumps ..

Did anyone came accross this same problem. It looks like a bug to me ... When testing the Z-function individually in SE37 it works fine.

hereunder the ABAP code generated by SAP:

FORM F_00001

CHANGING XS_RSLT TYPE YS_FORML_DATA

XT_REF_DATA TYPE YT_FORML_DATA

XT_DATA_TAB TYPE YT_FORML_DATA

XT_MESG TYPE UPC_YT_MESG.

DATA L_DUMMY TYPE C.

DATA LS_FIELDS TYPE YS_FIELDS.

DATA LTO_CHADEP TYPE YTO_CHADEP.

DATA LS_CHADEP TYPE YS_CHADEP.

DATA LV_ACTIVE TYPE STRING.

DATA LV_INFOPROV(000030) TYPE C.

TRY.

COMPUTE:

LV_ACTIVE = 'D' .

CATCH CX_ROOT.

CLEAR LV_ACTIVE.

ENDTRY.

TRY.

COMPUTE:

LV_INFOPROV = 'ZPCA_C01P' .

CATCH CX_ROOT.

CLEAR LV_INFOPROV.

ENDTRY.

TRY.

CALL FUNCTION 'Z_IP_ACTIVATE_DATASLICE' .

CATCH_CX_ROOT.

ENDTRY.

TRY.

CALL FUNCTION 'Z_IP_ACTIVATE_DATASLICE' EXPORTING I_ACTIVE = LV_ACTIVE

I_INFOPROV = LV_INFOPROV .

CATCH_CX_ROOT.

ENDTRY.

ENDFORM.

regards

D