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

syntax error in user exit

Former Member
0 Likes
867

friends,

i have written an exit in zxmbcu02...when i check the include, it says a target area has to be specified and i have declared the table in the tables work area..when i activate, it says there are syntax errors and says the ztable that i have declared in teh tables work area has already been declared...whether i include or remove, it gives the same error..where am i wrong? thanks all

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
715

Satish,

Probably, you can avoid using the TABLES statement and declare a workarea explicitly and use that workarea.

That way you are clear as to which variable you are using and you will not get in to this.

There might be other includes in the same user exit, which might be using the same TABLES statement with the same Z table.

I would recommed to create a explicit work area.

Regards,

Ravi

4 REPLIES 4
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
715

Hi,

Try activating the entire program with the include you modified.

Read only

Former Member
0 Likes
716

Satish,

Probably, you can avoid using the TABLES statement and declare a workarea explicitly and use that workarea.

That way you are clear as to which variable you are using and you will not get in to this.

There might be other includes in the same user exit, which might be using the same TABLES statement with the same Z table.

I would recommed to create a explicit work area.

Regards,

Ravi

Read only

former_member404244
Active Contributor
0 Likes
715

Hi satish,

Try to create an include in zxmbcu02.then inside this include write the code.Also remove the tables statement and declare an workarea like ur ztable and then activate...

Regards,

nagaraj

Read only

Former Member
0 Likes
715

Hi,

Do not make the syntax check just activate the userexit. before this remove the tables declaration. if possible create the Workarea of type Ztables and then try to make use of it.

BR,

Ravi