I get error message DB745 with EDIT ALV on a field type DEC?
I have an ALV which has a field type DEC.
The ALV is open for edit.
Once I put negative number in, I get the error message DB745.
This error is retrieved from SAP code and I do not see any reason why.
I checked the field cat and it looks fine (ref to a field type DEC).
I am using lcl_grid_event_receiver with method: handle_data_changed FOR
EVENT data_changed OF cl_gui_alv_grid.
In that method I get the error in er_data_changed->mt_protocol.
There is no problem to show negative data if it is saved in the database
Can anyone throw ideas how to fix that?
If you simply check the domain WERT7, you'll see that the checkbox for "Sign" is <b>not</b> checked. Therefore negative numbers are <b>not</b> allowed.
Just because a field is decimal or currency does <b>not</b> mean that negatives are allowed.
Many times, the sign is handled by a separate debit/credit indicator field such as a field with a domain of SHKZG.
Message was edited by: