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

Former Member
0 Likes
1,101

When using LSMW I go to convert and I get this error. Can anyone tell me how to fix it?

Syntax error occurred in program /1CADMC/SAP_LSMW_CONV_00000022

For typw "C" a maximum length specification of 65535 is allowed

Thanks for your help

Wayne

6 REPLIES 6
Read only

Former Member
0 Likes
911

Hi Wayne,

I believe you are using the type C for a variable which is not able to handling the data.

so instead you can use the type STRING.

Regards!

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
911

Did you specify a field which has a length of more than 65535 when creating your input structure?

Regards,

Rich Heilman

Read only

Former Member
0 Likes
911

Hi Wayne,

Problem is in your mapping (step 5 of LSMW).

I guess you are assigning a larger value to a char type variable.

When you execute the convert step or do a syntax check (in the step5 of LSMW) it will take you to ABAP editor. Do a syntax check again and it will point the error location.

If this does not help, please elaborate your requirement.

Mubeen

Read only

Former Member
0 Likes
911

Hi Wayne, did you ever manage to get a solution to this? I am having a similar issue with a LSMW and get the error "Syntax error in program "/1CADMC/SAP_LSMW_CONV_00000008" "The field "WA_ERRCAT" is unknown, but there is a field with the similar name "PT_ERRCAT". "

I have checked all my field sizes and even gone into debug mode, gone to the source code and done a syntax check, which came back with no sytax errors. Any help/guidance would be appreciated.

Cheers

Phil

Read only

0 Likes
911

Hi,

I am getting a similar error through SAP Best Practises LSMW which says:--

The current ABAP program "/SAPDMC/SAPLLSMW_OBJ_070" had to be terminated

because it has

come across a statement that unfortunately cannot be executed.

The following syntax error occurred in program "/1CADMC/SAP_LSMW_CONV_00000022

" in include "/1CADMC/SAP_LSMW_CONV_00000022 " in

line 247:

"The data object "INP_STRUCT_01" does not have a component called "AMT_"

"TC"."

" "

" "

Can you please advice how did you manage to solve this?

Regards,

Sanjiv

Read only

0 Likes
911

Either create a component AMT_TC in INP_STRUCT_01 or remove that column from your input file.