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

Error message in program

Former Member
0 Likes
444

Hi,

I trying to modify some existing program and in the program I have some lines of code like this..

-

-


  • Read the program code from the textpool.

castProgramName = programName.

read report castProgramName into iIncludeLines.

append INCLUDE to iKeywords.

scan abap-source iIncludeLines tokens into iTokens

with includes statements into iStatements keywords from iKeywords.

clear iIncludeLines[].

-

-


I am getting error message for the above code lines like this..

(message is displaying in German language-I converte this message..(Der Zusatz WITH INCLUDES benötigt im Zusammenspiel mit Erweiterungen mindestens einen der Zusätze FRAME PROGRAM FROM oder INCLUDE PROGRAM.))

Error message..

The additive WITH of INCLUDES needs at least one of the additives FRAME PROGRAM FROM or INCLUDE PROGRAM in interaction with extensions.

Can any one please let me know what is the error.

Thanks in advance.

3 REPLIES 3
Read only

Former Member
0 Likes
415

Check the FM <b>ZPROGRAM_ANALYSIS</b> on my weblog <a href="/people/alvaro.tejadagalindo/blog/2007/03/13/tasting-the-mix-of-php-and-sap--volume-11 the mix of PHP and SAP - Volume 11</a>

I do something like that -;)

Greetings,

Blag.

Read only

Former Member
0 Likes
415

hi Kavitha,

This is just a warning message not a error message. this warning will not affect your program in any way.

In order to avoid the warning message change the code like below..

scan abap-source iIncludeLines tokens into iTokens

with includes

statements into iStatements

keywords from iKeywords

frame program from <program name>.

hope it solves your query.

regards,

Navneeth.K

Read only

0 Likes
415

Hi Kavitha,

did the above piece of code solve your purpose. Are you able to rectify the warning message.

regards,

Navneeth.K