Application Development 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: 

Error message to be displayed in status bar and user shoud not save values!

Former Member
0 Kudos

Hi all,

I am implemeting BADi LE_SHP_TAB_CUST_ITEM for some custom fields in tcode VL31N.Now in the screen program,now for 1field.I need to check the value for the field and display an error mesage in the status bar and should not allow the values to be saved until user enters the correct value in that field.

Now my queries:

1.Im unable to display error mesage in status bar.if i display success message and use display like 'E' it display the error message ,it dislays message in status bar in red color jst like error message but the user is able to save the screen values!I dont want the usre to be able to save values when this message is displayed.

Please help.

7 REPLIES 7

Former Member
0 Kudos

Displaying an I message doesn't stop the process...your program flow just resumes when the users accepts the message. Obviously you have code to issue the message....so when you have found a problem, you must then do something to stop the save process...I'm not familiar with the enhancement named, but code must result in user returning to a screen, rather than going into save....

0 Kudos

As a workaround,rt now,Im displaying the status message as an error message using the "DISPLAY LIKE 'E' " option in the MESSAGE statement and to not allow the user from saving the values,Im clearing the value from the field itself!

Experts,

PLease help me with the code to not allow the user to save the value w/o clearing the value in the field!

Note : LEAVE SCREEN cannot be used as Im implementing the BADI for a subscreen!

0 Kudos

Hi Experts,

Any more suggestions??

Former Member
0 Kudos

Displaying an I message doesn't stop the process...your program flow just resumes when the users accepts the message. Obviously you have code to issue the message....so when you have found a problem, you must then do something to stop the save process...I'm not familiar with the enhancement named, but code must result in user returning to a screen, rather than going into save....

anup_deshmukh4
Active Contributor
0 Kudos

MESSAGE 'abcdef' TYPE 'E' DISPLAY LIKE 'S'.

Former Member
0 Kudos

TRY WRITING THIS MESSAGE

IN PAI

MESSAGE 'Error!!' TYPE 'I'.

Regards,

Sumit

Former Member
0 Kudos

Hi all,

Has anyone faced a similar problem???Basically displaying error message as status message in a subscreen?