‎2009 Jan 30 5:17 PM
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
‎2009 Jan 30 5:21 PM
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!
‎2009 Jan 30 5:21 PM
‎2009 Jan 30 8:00 PM
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
‎2009 Feb 13 7:38 AM
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
‎2010 May 07 12:44 PM
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
‎2010 May 07 12:52 PM
Either create a component AMT_TC in INP_STRUCT_01 or remove that column from your input file.