Application Development and Automation 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: 
Read only

Extended Syntax Check in abap code

Former Member
0 Likes
1,339

Hi Guys,

We are upgrading from 4.6 C to ECC 6.0. When I do the Extended Syntax check for the custom function module it gives me the following error. Please help.

The EXCEPTION "REPORT_NOT_EXISTENT" is not defined in the interface of the function module "RS_VARIANT_CONTENTS" "RS_VARIANT_CONTENTS". Internal Message Code: MESSAGE G-7.

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

Regards,

Shankar

1 ACCEPTED SOLUTION
Read only

matt
Active Contributor
0 Likes
1,028

<b>Don't suppress the message. </b> You should only suppress messages if you are aware of why they are appearing, and they are not an error.

What it means is, that in your custom function module, there is some code like

CALL FUNCTION 'RS_VARIANT_CONTENTS'
  EXPORTING
    report                     = v_report
    variant                    = v_variant
...
 EXCEPTIONS
   VARIANT_NON_EXISTENT        = 1
   VARIANT_OBSOLETE            = 2
   REPORT_NOT_EXISTENT         = 3
   OTHERS                      = 4

But if you look at FM rs_variant_contents, you'll see this exception is not defined. The correct course of action is to remove it from your call.

matt

6 REPLIES 6
Read only

former_member404244
Active Contributor
0 Likes
1,028

Hi,

This function module RS_VARIANT_CONTENTS checks whether any parameters or select options of the variant have changed. If they have, it outputs an error message .Hence u got the exception...

regards,

nagaraj

Read only

0 Likes
1,028

sorry, i didnt get you

Read only

Former Member
0 Likes
1,028

Hi,

Did you try to hide it using the message can be hidden with "#EC ARGCHECKED)?

Please do it and check again.

Reward if useful.

Thanks,

Anita

Read only

0 Likes
1,028

How do i do that.

Read only

0 Likes
1,028

At the end of your ABAP statement , whewre you get your error, give a comment

like " "#EC ARGCHECKED . Thats all.

Reward if Useful.

Thanks,

Anita

Read only

matt
Active Contributor
0 Likes
1,029

<b>Don't suppress the message. </b> You should only suppress messages if you are aware of why they are appearing, and they are not an error.

What it means is, that in your custom function module, there is some code like

CALL FUNCTION 'RS_VARIANT_CONTENTS'
  EXPORTING
    report                     = v_report
    variant                    = v_variant
...
 EXCEPTIONS
   VARIANT_NON_EXISTENT        = 1
   VARIANT_OBSOLETE            = 2
   REPORT_NOT_EXISTENT         = 3
   OTHERS                      = 4

But if you look at FM rs_variant_contents, you'll see this exception is not defined. The correct course of action is to remove it from your call.

matt