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 while compling

Former Member
0 Likes
1,997

hi,

i have made module programe, its running fine,

but my problem is that when i do some changes in PAI, or PBO include and try to check it (Ctrl + F2), then it gives error that some variable v_chk not defined, but v_chk is defined in TOP include already, but when i activate it activates it successfully, i have activated the whole programe but it gives error while checking the code..

abhishek suppal

21 REPLIES 21
Read only

Vinod_Chandran
Active Contributor
0 Likes
1,968

Hi Abhishek,

Can you try the following.

Goto SE80

Select the dropdown 'Program' and enter your program name in the field below that. Press the display button.

Under this you can find another toolbar with a 'Refresh' button. Select the program and press refresh.

Hope this will work. If you are doing a sytax check it will not consider the includes.

Thanks

Vinod

Message was edited by: Vinod C

Read only

Former Member
0 Likes
1,968

Hi,

as far as I understood you try to check only the include, if the variable you need is not defined in this include than you have to run the check for the whole programm. Will say, start the check from your main programm, so that all includes are taking into consideration.

Hth.

Read only

0 Likes
1,968

if the top include is active and if you still have this problem, go to utilities->update navigation index.

Regards

Raja

Read only

0 Likes
1,968

dear raja,

no that also didn't work,

my all includes are activated still its giving error while checking but not while acitvating

its beahving something eratic

sometimes its gives error on some variable and sometimes gives it on another variable and same case with my internal tables also.

all the variables and tables are globally defined in TOP include then why its behaving like this..

abhishek suppal

Message was edited by: Abhishek Suppal

Read only

0 Likes
1,968

Hi Abhishek,

I have just written a simple module pool program but not getting the error you have mentioned. I remeber sometime back I had the same issue. So I did a refresh from SE80 as I mentioned in my earlier post. Can you pls try this?

Thanks

Vinod

Read only

Former Member
0 Likes
1,968

Check syntax of your mail program using CtrlF7 rather than using CtrlF2.

Then you can get the possible errors.

regards,

suresh

Read only

0 Likes
1,968

dear suresh

it says syntax is correct,....

no error found

abhishek suppal

Read only

Former Member
0 Likes
1,968

Check OSS 432357 .

If a syntax error is found in an Include, you should check the main program to ensure that this error does not come from the Include nesting of the main program.

Also did you try Update -> Navigation index in main program in SE38.

If there is an error in include try activate / generate main program. Syntax errors in includes are confusing at time so dont bother about them.

Cheers.

Read only

0 Likes
1,968

dear sanjay, & vinod

i have tried both of ur solutions but none has worked it out.

abhishek suppal

Read only

Former Member
0 Likes
1,968

Hi abhishek

On other reason may be the order of the includes in your main program.

open you program in SE80 double click on root node.

You will get a popup and click on Main Program.

Then check here. TOP include should be the first include.

and check by changing the order in such a way that data definition includes

should be in top.

This may help you.

regards,

suresh

Read only

0 Likes
1,968

dear suresh

the order of include is

top

pai

pbo

abhishek suppal

Read only

Former Member
0 Likes
1,968

In one of your message you said no error in main program.

So why worry when main program is correct.

Is your transaction associated to module pool not running fine.

When you activate select all the entries that come in POup and try activate all at once ( top / pbo/ pai ).

I really dont understand what is you issue ?? Is it synatx check or is it program not activating.

Cheers

Read only

Former Member
0 Likes
1,968

Check by changing it to

TOP

PBO

PAI

in my programs includes are in the above order.

Close this thread if your problem solved!!!

Message was edited by: Suresh babu Desu

Read only

Former Member
0 Likes
1,968

This happens becaue the navigation index doesn't get updated sometimes. All you have to is to go to your program and in the menu UTILITIES-->UPDATE NAVIGATION INDEX. That should take care of this syntax error.

Read only

0 Likes
1,968

hi

my trasaction is running fine without any error, but while doing some modifications in the code and when its is checked it gives error, there is no issue of any errors,

i have updated the navigation index also.

just to know the reason why this is happening....

abhishek suppal

Read only

0 Likes
1,968

The key is the sequence in which you do these changes.

1. Add a new variable in TOP include.

2. Change your PAI or PBO.

3. Check the logic.

You may get the syntax error, because the navigation index is not yet updated. Instead, you add 'update navigation index' between 1 and 2, you should not have that problem.

Srinivas

Read only

0 Likes
1,968

Hello Abhi,

why don't you just paste your whole code

we will try to recreate your problem on our systems.

pls do mention which server it is 4.6c or 4.7 uni

regards

And please close your last two threads, 'sending pdf files'

by closing mean , it should show star color black

please do that, so that if someone is looking for same kind of solution, he or she can directly refer to solved threads.

cause i always search forum for closed threads for my problems.

hope all other SDN people agree with me

regards

Message was edited by: Surpreet Singh Bal

Read only

0 Likes
1,968

hi surpreet

this is module pgm. which invovles lot of z tables also

so its not possible to paste the whole code here.

and also i have closed bothe threads

abhishek suppal

Read only

0 Likes
1,968

Hello Abhi,

yes thanks , threads closed

well i know it is very difficult to paste whole code.

if possible please paste the flow logic

regards

Read only

Former Member
0 Likes
1,968

Have you read OSS 432357 . This should explain and end your curiosity .

Cheers.

Read only

Former Member
0 Likes
1,968

if none of the above are working out....just verify that the include statement is written before you are using the variable defined in it....

otherwise it seems to be a pretty strange issue....

rgds,

PJ