‎2007 Oct 23 4:07 AM
Hi,
I have declared a variable P_TEXT in TOP include ZPGM_TOP. In main program ZPGM, I have declared this TOP include ZPGM_TOP and another include ZPGM_F01.
I am accessing P_TEXT in include ZPGM_F01, but it is giving me following error when I do syntex check.
Error : Field P_TEXT is unknown. It is neither in one of the specified tables nor defned by DATA statement.
But when I double click on P_TEXT in ZPGM_F01, it takes me to TOP include declaration.
Please advise what I am doing wrong.
Thanks.
‎2007 Oct 23 6:36 AM
Check the sequence in which your includes are declared e.g.
include zpgm_top. "data
include zpgm_f01. "codewould work, but:
include zpgm_f01. "code
include zpgm_top. "datawill give syntax error in "zpgm_f01".
Jonathan
‎2007 Oct 23 4:09 AM
Hi,
Have you activated all the programs (Main + includes) together. If not try it.
Go to SE80->program name->right click->Activate.
Regards,
Atish
‎2007 Oct 23 4:09 AM
Activate first your TOP include program and then you activate / syntax check the FORMs program. As TOP include is inactive, it is not able to activate your ZPGM_F01 program.
Hope this helps.
ashish
‎2007 Oct 23 4:12 AM
Hi,
You can try this.
Goto the main program do this.
goto UTILITIES->Update Navigation Index
Do the same thing in TOP include also and in the form include also.
This solves the problem in most cases.
Regards
Nishant
‎2007 Oct 23 5:38 AM
Activation problem..
Make sure each n every include and ur main prog is activated
First activate the include which has that variable
Hope this will solve ur query
Reward all helpful answers
‎2007 Oct 23 6:36 AM
Check the sequence in which your includes are declared e.g.
include zpgm_top. "data
include zpgm_f01. "codewould work, but:
include zpgm_f01. "code
include zpgm_top. "datawill give syntax error in "zpgm_f01".
Jonathan