03-25-2010 10:21 PM
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.
03-26-2010 1:35 AM
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....
03-26-2010 4:48 AM
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!
03-29-2010 10:30 PM
03-26-2010 1:35 AM
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....
03-26-2010 3:06 AM
03-26-2010 3:35 AM
TRY WRITING THIS MESSAGE
IN PAI
MESSAGE 'Error!!' TYPE 'I'.
Regards,
Sumit
03-30-2010 5:34 AM
Hi all,
Has anyone faced a similar problem???Basically displaying error message as status message in a subscreen?