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: 

Regarding OOABAP

sreeramkumar_madisetty
Active Contributor
0 Kudos
62

Hi

I was created 1 class and in attributes I was given:

AI_DEFAULTS type YFIIF_EFUND_INPUT.

The Problem is while executing the report which uses this class, I am getting the error message that :

The following syntax error was found in the program

ZCL_FI_EFUND_LINE_MAPPER======CP :

""AI_DEFAULTS" has already been declared."

Can u please guide me where i was wrong.

<b>Points are assured for Correct answers.</b>

Regards,

Sree

1 ACCEPTED SOLUTION

uwe_schieferstein
Active Contributor
0 Kudos
42

Hello Sree

Apparently the attribute has been declared already. The class builder should not allow you to define duplicate attributes having the same name.

If you do not see where the first definition of AI_DEFAULTS is simply use the following approach:

1. Rename your second implementation, e.g. _AI_DEFAULTS.
2. Use the AI_DEFAULTS attribute in one of your method
3. Double-click on AI_DEFAULTS within your method -> should jump to the attribute definition

Regards

Uwe

1 REPLY 1

uwe_schieferstein
Active Contributor
0 Kudos
43

Hello Sree

Apparently the attribute has been declared already. The class builder should not allow you to define duplicate attributes having the same name.

If you do not see where the first definition of AI_DEFAULTS is simply use the following approach:

1. Rename your second implementation, e.g. _AI_DEFAULTS.
2. Use the AI_DEFAULTS attribute in one of your method
3. Double-click on AI_DEFAULTS within your method -> should jump to the attribute definition

Regards

Uwe