Skip to Content
0
Former Member
Jan 22, 2015 at 02:38 PM

DUMP UP50RU01 UPDATE - An error occurred while the changed data was being saved Message no. WUSL112 - error updating a record

864 Views

Hi,

I have a problem when I update a record in my custom Infotype table.

When I update one particular record (for other records all similar to this one, all work right) I have got this dump error MESSAGE_TYPE_X.

NO

00190004218 999912312012092400020150121CARTA.FEDERI X2012092420130911960002079320141231

SI

00190004219 999912312012092400020150121CARTA.FEDERI X2012092420131231960002079320141231

These two record have similar values in their field, but the first give the follow dump error (code where generate the error is at line 209):

Information on where terminated

Termination occurred in the ABAP program "SAPUP50R" - in "UPDATE".

The main program was "ZHCMTTEIT001 ".

In the source code you have the termination point in line 213

of the (Include) program "UP50RU01".

Source Code Extract

Line SourceCde

183 WHEN opera-update.

184 READ TABLE before_image WITH KEY psoper(38).

185 IF sy-subrc <> 0.

186 CREATE DATA infty_struc TYPE (l_t777d-ppnnn). "ANDUNI

187 ASSIGN infty_struc->* TO <infty_struc>. "ANDUNI

188 ASSIGN infty_struc->* TO <infty_struc_char> CASTING. "ANDUNI

189

190 * SELECT SINGLE * FROM (dbname) INTO *prel_db "ANDUNI

191 SELECT SINGLE * FROM (dbname) INTO "ANDUNI

192 CORRESPONDING FIELDS OF <infty_struc> "ANDUNI

193 WHERE pernr EQ psoper-pernr

194 AND subty EQ psoper-subty

195 AND objps EQ psoper-objps

196 AND begda EQ psoper-begda

197 AND endda EQ psoper-endda

198 AND seqnr EQ psoper-seqnr

199 AND sprps EQ psoper-sprps.

200 IF sy-subrc EQ 0.

201 * MOVE-CORRESPONDING *prel_db TO before_image. "ANDUNI

202 before_image = <infty_struc_char>. "ANDUNI

203 MOVE psoper-infty TO before_image-infty.

204 APPEND before_image.

205 ENDIF.

206 ENDIF.

207

208 * UPDATE (dbname) FROM prel_db. "ANDUNI

209 UPDATE (dbname) FROM <prel_db>. "ANDUNI

210 IF sy-subrc <> 0."darf eigentlich nicht pass. "QNOK008851

211 * Fehler beim &1 von Tabelle &2 Argument &3

212 * MESSAGE i476 WITH 'UPDATE' dbname <prel_db_char>. "ANDMSGX

>>>>> MESSAGE x476 WITH 'UPDATE' dbname <prel_db_char>. "ANDMSGX

214 ENDIF.

215 ENDCASE.

216

217 * collect change pointers for ALE "QDOK000494

218 IF pspar-tclas = 'A' OR "QDOK040772

219 pspar-tclas = 'B'. "QDOK040772

220 CALL FUNCTION 'RH_IDOCSEG_TYP_OF_INFTY_GET' "QDOK000494

221 EXPORTING "QDOK000494

222 act_infty = psoper-infty "QDOK000494

223 act_subty = psoper-subty "QDOK000494

224 EXCEPTIONS "QDOK000494

______________________________________________________________________________________________________

I did another test:

I tryed to update those two records directly on the table via SE16N -> &SAP_EDIT:

NO

00190004218 999912312012092400020150121CARTA.FEDERI X2012092420130911960002079320141231

SI

00190004219 999912312012092400020150121CARTA.FEDERI X2012092420131231960002079320141231

When I update the second one, all works fine, but

when I try to update the first one, system gives me this error:

An error occurred while the changed data was being saved

Message no. WUSL112

Diagnosis

An error occurred during writing of data.

Error reason: Change PA9002

System Response

The system cannot save your entries.

Procedure

Restart the transaction and repeat the changes you made.

Could someone help me?

thanks in advance,

best regards

Fede