Skip to Content
author's profile photo Former Member
Former Member

LSMW MM01 creation ERROR

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Sep 27, 2010 at 04:37 AM

    Check your declaration for field material in LSMW.

    It should be something like this.

    Matnr(18) type c.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2010 at 04:45 AM

    Hi,

    Syntax error in program "/1CADMC/SAP_LSMW_CONV_00000018 "...

    Length of programname is long..

    so reduce it to something descriptive and small...

    Regards,

    Ankit.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 11, 2010 at 04:30 AM

    Closing thread...

    Not solved

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.