‎2011 Sep 19 7:26 AM
Friends,
I have developed an OOPS ALV to display the records with cost field as editable. And the cost should not accept decimals values, if the user enter the same (12.56) and click the save button (user-defined) then need to populate the error message. I am populating the error message, then the user change the value (12) and click the save, then in the ALV screen the chanegd value 12 is automatically back to prv. one 12.56 and the same error messgae is displaying.
If i change the message type from Error to Info, then its working fine... but the client wants only error message. So anybody came across the same scenario? if yes.. pls share the solution..
Ganesh C
‎2011 Sep 19 12:01 PM
Hi,
Can you check by passing values to import parameters I_BUFFER_ACTIVE, I_BYPASSING_BUFFER in method SET_TABLE_FOR_FIRST_DISPLAY of the class CL_GUI_ALV_GRID
Thanks
Pavan
‎2011 Sep 21 3:26 AM
Hi,
As Pavan suggested, this seems to be buffer issue. Try to clear buffer every time you display error message.
Thanks.
Ravi
‎2011 Sep 23 8:06 PM
Hi,
Looks like a refresh issue to me... If you press ENTER before SAVE the second time, do you have the same behaviour?
Kr,
m.
‎2011 Sep 30 9:05 AM
Hi,
In this case, after the error message issued though the value is corrected , corrected data is not transferred to progarm.
Program still works with old data. Check how you are issuing message and how you refereshing the table after user inputs.
you can check program BCALV_EDIT_03 for vlidating fileds.
I believe you can simply refer a data element which does not accepts decimal values.
Regards,
Ravi.