Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Prob. while using error message in OOPS ALV

Former Member
0 Likes
810

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

4 REPLIES 4
Read only

Former Member
0 Likes
642

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

Read only

raviahuja
Contributor
0 Likes
642

Hi,

As Pavan suggested, this seems to be buffer issue. Try to clear buffer every time you display error message.

Thanks.

Ravi

Read only

Former Member
0 Likes
642

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.

Read only

Former Member
0 Likes
642

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.