Dear Experts,
While creating LSMW of MM01
i am getting following error
Syntax error in program "/1CADMC/SAP_LSMW_CONV_00000018 ".
What happened?
Error in the ABAP Application Program
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_00000018
" in include "/1CADMC/SAP_LSMW_CONV_00000018 " in
line 71:
"For type "C", a maximum length specification of 65535 is allowed."
" "
" "
" "
The include has been created and last changed by:
Created by: "PPUSER "
Last changed by: "PPUSER "
Error in the ABAP Application Program
The current ABAP program "/SAPDMC/SAPLLSMW_OBJ_070" had to be terminated
because it has
come across a statement that unfortunately cannot be executed.
Error analysis
The following syntax error was found in the program
/1CADMC/SAP_LSMW_CONV_00000018 :
"For type "C", a maximum length specification of 65535 is allowed."
" "
" "
" "
Trigger Location of Runtime Error
Program /SAPDMC/SAPLLSMW_OBJ_070
Include /SAPDMC/LLSMW_OBJ_070U11
Row 163
Module type (FUNCTION)
Module Name /SAPDMC/LSM_EXE_CONVPROG_RUN
Source Code Extract
Line SourceCde
133 parameter_error = 1
134 insert_error = 2
135 OTHERS = 3.
136 ENDIF.
137
138 CHECK l_abort = no.
139
140 * Dateinamen von DXWB für Einleseprogramm
141 m_file_read = file_read.
142 m_file_conv = file_conv.
143
144 m_executed = no.
145 EXPORT m_executed TO MEMORY ID 'LSMW_CONV_EXECUTED'.
146 EXPORT m_file_read TO MEMORY ID 'LSMW_FILE_READ'.
147 EXPORT m_file_conv TO MEMORY ID 'LSMW_FILE_CONV'.
148
149 progname = l_progname.
150
151 IF l_err_line IS INITIAL.
152 IF x_submit = yes.
153 IF variant IS INITIAL.
154 IF wildcardvalue IS INITIAL.
155 IF sy-batch = no AND x_called_from_dxwb = no. "YOG200400
156 IF x_with_selscreen = yes. "YOG290300
157 SUBMIT (l_progname) WITH p_filept = p_filept
158 WITH p_trfcpt = p_trfcpt
159 WITH p_packge = p_packge
160 WITH p_fromdx = x_called_from_dxwb
161 VIA SELECTION-SCREEN
162 AND RETURN.
>>>>> ELSE. "YOG290300
164 SUBMIT (l_progname) WITH p_filept = p_filept "YOG290300
165 WITH p_trfcpt = p_trfcpt "YOG290300
166 WITH p_packge = p_packge "YOG290300
167 WITH p_fromdx = x_called_from_dxwb
168 AND RETURN. "YOG290300
169 ENDIF.
170 ELSE.
171 PERFORM print_parameters USING g_flg_new_list CHANGING lt_params.
172 SUBMIT (l_progname) WITH p_filept = p_filept
173 WITH p_trfcpt = p_trfcpt
174 WITH p_packge = p_packge
175 WITH p_fromdx = x_called_from_dxwb
176 TO SAP-SPOOL
177 SPOOL PARAMETERS lt_params
178 WITHOUT SPOOL DYNPRO
179 AND RETURN.
180 ENDIF.
181 ELSE.
182 IF sy-batch = no AND x_called_from_dxwb = no. "YOG200400
Please help
Thanks
Pert
Check your declaration for field material in LSMW.
It should be something like this.
Matnr(18) type c.
Add a comment