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

Message Include * is used in multiple main programs (210)

volker_schropp
Explorer
0 Likes
2,695


Hi,

I get the message:

Select a main program in Properties View on tab "Source"

Include /SAPDMC/SAP_LSMW_READ_FORMS is used in multiple main programs (210).

when I want to modify an include in LSMW.

The effect is for example that I cannot open the declaration of a data element.

Is there something I can do?

Best regards

Volker

9 REPLIES 9
Read only

Former Member
0 Likes
2,487

Volker,

how can we reproduce this message? Is it a warning (yellow) or an error (red)?

Thanks

  Volker

Read only

0 Likes
2,487

I don't see any colour in Eclipse, but it behaves like a error message.

ADT 2.28.1

Eclipse: Kepler

SAP_BASIS: 731 SP-LEVEL: 0008

SAP_ABA: 731 SP-LEVEL: 0008

Example: just try to edit Include /SAPDMC/SAP_LSMW_READ_FORMS

Read only

schneidermic0
Product and Topic Expert
Product and Topic Expert
0 Likes
2,487

Hi Volker,

For certain operations (e.g., navigation) the tool requires the information in which program/class/function group the include is include. If the include is used by multiple programs, the user will have to choose the corresponding program.

Unfortunately, ADT does not support this scenario, yet. Additionally, the text "Select a main program in Properties View on tab "Source"" in your case seems to be wrong. We will recheck the behavior in our systems.

Michael

Read only

0 Likes
2,487

Hi,

I think that I saw the text "Include... is used in multiple main programs" in extended syntax check (SLIN), when more then one program referred to one include.

Maybe this helps.

Regards,

Dominik

Read only

0 Likes
2,487

Hello!

I can confirm that error. I have an Include with Constants which is included in more programs. When I try to edit this include, I get following message:

I get this message every few seconds, when I try to type something in this Incluge (e.g. bring new constant).

There is a properties view, where the main program is listed, but it is not possible to change it:

Have a nice day!

Ondrej Seman

Read only

schneidermic0
Product and Topic Expert
Product and Topic Expert
0 Likes
2,487

Hi Ondrej,

Did you updated your ADT plug-ins to the newest version (2.31)?

Michael

Read only

0 Likes
2,487

Hi Michael,

I have updated ADT to newest version (com.sap.adt.core is now 2.31.5).

When I type something in that Include or save it, the error message is now displayed in status bar (which is of course much better, and I can at least edit the file):

However, when I try to activate this Include, same popup comes as earlier with this error message. It is still not possible to edit the main program in properties.

What I also found out:

If I create new include, let's name it Z_INCL1, and use it in one program - Z_PROG1, include Z_INCL1 will have as main program Z_PROG1 and everything works fine. (of course).

When I create Z_PROG2 which is including Z_INCL1, main program of Z_INCL1 will be Z_INCL1 and I can no longer compile Z_INCL1. (So far there was nothing new).

Now when I remove Include statement from Z_PROG2, main program of Z_INCL1 will still be Z_INCL1 and I still cannot compile Z_INCL1 with the same error message even thougt it is now only included in 1 program again. I have to remove include statement also from Z_PROG1 and than I am able to compile Z_INCL1 again.

Have a nice day!

O.

Read only

schneidermic0
Product and Topic Expert
Product and Topic Expert
0 Likes
2,487

Hi Ondrej,

The functionality to assign the include to a main program has been introduced recently. Therefore, you need the newest backend version 7.40 SP8 to change the setting. I am just confused about the error message. I would expect that it says it is currently not supported. We will check this.


Now when I remove Include statement from Z_PROG2, main program of Z_INCL1 will still be Z_INCL1 and I still cannot compile Z_INCL1 with the same error message even thougt it is now only included in 1 program again. I have to remove include statement also from Z_PROG1 and than I am able to compile Z_INCL1 again.

The information about the main programs is fetched from the backend, when the include is read. This happens either when the editor for the include is opened or when you press F5 in the editor or Project Explorer to refresh the include. If you do this after you remove the include statement in Z_PROG2, I would expect it to work.

Michael

Read only

0 Likes
2,487

Hi Michael,

thanx for the hint with the backend version, system I was testing on is 7.40 SP 6.

Between trying to edit the include I always closed it, changed the program, activated it and opened the include.

O.