Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Return code (SY-SUBRC) for the EXCEPTION will not be processed

Former Member
0 Kudos

Hi,

when I was doing the EPC check i have approached this messgae.

Return code (SY-SUBRC) for the EXCEPTION will not be processed after CALL FUNCTION

'CU_READ_RGDIR'

(You can turn off this check by setting all EXCEPTIONS to 0)

(The message can be hidden with "#EC *)

Any pointers on how to handle this.

Regards

Rohini.

2 REPLIES 2

Former Member
0 Kudos

Hi Rohini,

The Extended syntax check expects to use the SY-SUBRC check immediately after the CALL FUNCTION command, if you are setting the EXCEPTION parameters. Hence the error.

But if the programming logic is already working fine and needs no change, then you can eliminate this error by adding a "#EC FB_RC at the line which contains the EXCEPTIONS parameter in the CALL FUNCTION interface.

Best Regards,

Rekha

Former Member
0 Kudos

Hi Rohini,

Try doing something like this.

TYPE-POOLS: hrpay.

DATA: w_pernr              TYPE          p0000-pernr ,
      w_buffer             TYPE          hrpay_buffer,
      w_no_authority_check TYPE          xfeld       ,
      w_molga              TYPE          t500l-molga ,

      t_in_rgdir           TYPE TABLE OF pc261.


CALL FUNCTION 'CU_READ_RGDIR'
  EXPORTING
    persnr             = w_pernr
    buffer             = w_buffer
    no_authority_check = w_no_authority_check
  IMPORTING
    molga              = w_molga
  TABLES
    in_rgdir           = t_in_rgdir
  EXCEPTIONS
    OTHERS             = 0.