DATA : LS_MOD_CELLS TYPE LVC_S_MODI,
LS_CELLS TYPE LVC_S_MODI.
DATA : L_IDX LIKE SY-INDEX.
BREAK-POINT.
LOOP AT RR_DATA_CHANGED->MT_MOD_CELLS INTO LS_MOD_CELLS.
L_IDX = LS_MOD_CELLS-ROW_ID.
READ TABLE IT_DATA INDEX L_IDX.
LV_MENGE = IT_DATA-MENGE.
CASE LS_MOD_CELLS-FIELDNAME .
WHEN 'LFDAT'.
IT_DATA-LFDAT = LS_MOD_CELLS-VALUE.
WHEN 'MENGE'.
IT_DATA-MENGE = LS_MOD_CELLS-VALUE.
WHEN 'FIXKZ'.
IT_DATA-FIXKZ = LS_MOD_CELLS-VALUE.
WHEN 'LOEKZ'.
IT_DATA-LOEKZ = LS_MOD_CELLS-VALUE.
ENDCASE.
MODIFY IT_DATA INDEX L_IDX TRANSPORTING LFDAT MENGE FIXKZ LOEKZ.
ENDLOOP.
* 강제로 화면 PBO, PAI 수행
CALL METHOD CL_GUI_CFW=>SET_NEW_OK_CODE
EXPORTING
NEW_CODE = 'ETC'.
--> 이런식으로 DATA CHANGE 부분을 해줬는데요..
제가 MENGE 부분을 바꾸면 덤프가 뜨네요..
왜나는지 좀 원인 좀 알려주세요~
수량을 6000 -> 5000으로 바꿨습니다. 그후 실행을하면 이런 덤프에러가 나요.
[오류] Runtime Errors CONVT_NO_NUMBER
Except. CX_SY_CONVERSION_NO_NUMBER
Date and Time 2008.06.18 08:57:23
Short text
Unable to interpret "5,000 " as a number.
어떤 문제가 발생했습니까?
Error in the ABAP Application Program
The current ABAP program "ZTEST01" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
오류분석
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_CONVERSION_NO_NUMBER', was not
caught in
procedure "DATA_CHANGED" "(FORM)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
The program attempted to interpret the value "5,000 " as a number, but
since the value contravenes the rules for correct number formats,
this was not possible.
보니까 IT_DATA-MENGE얘는 QUAN 타입이고 LS_MOD_CELLS-VALUE 는 char 타입이라 나는 것같은데요 .. 이걸 어떻게 해줘야 될지 모르겠어요 ..
, 를 없애 주라고 하셨는데 그럼 이걸 어떻게 없애줄수 있져??
제가 워나 초보라 ;;;