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

error handling in screen

Former Member
0 Likes
786

Hey experts,

I have a screen with an internal table and on double clicking any of the lines, a popup screen appears with certain values from the line clicked on it. This fields are editable. There are two options on this screen Save and Cancel

Now the user wants to do some input check on it, but then this checks are relevant only if we press the save button.

Lets say field1 and field2 on screen, now if i press save and field 2 is empty, it shud give an error message but teh control shud return to that screen and user should be able to enter the data.

At present i am using message type i, but the screen disappears and user have to double click again to popup the screen.

Any ideas please ?

I am doing this checks in button handling since doing it beforehand is pointless since we wont need this checks if user decides to cancel.

please guide.

Hey experts,

I have a screen with an internal table and on double clicking any of the lines, a popup screen appears with certain values from the line clicked on it. This fields are editable. There are two options on this screen Save and Cancel

Now the user wants to do some input check on it, but then this checks are relevant only if we press the save button.

Lets say field1 and field2 on screen, now if i press save and field 2 is empty, it shud give an error message but teh control shud return to that screen and user should be able to enter the data.

At present i am using message type i, but the screen disappears and user have to double click again to popup the screen.

Any ideas please ?

I am doing this checks in button handling since doing it beforehand is pointless since we wont need this checks if user decides to cancel.

please guide.

4 REPLIES 4
Read only

Former Member
0 Likes
656

Hi,

u can try with message type 'S' instead of type 'I'.

seshu.

Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
656

HI,

After throwing that error message

Call the same popup once again(screen number)

like call screen <screen number>.

or

you can give message type as "E'.

Like :

MESSAGE text-028 TYPE 'S' DISPLAY LIKE 'E' .

Thanks & Regards

Read only

MarcinPciak
Active Contributor
0 Likes
656

Hi,

Try with [events or editable fields of ALV|]

When data are entered, this event will be triggered, inside which you can do necessary checks and prompt appropriate message if entires don't satify certain conditions.

Regards

Marcin

Read only

Former Member
0 Likes
656

HI.

Please do you validation like error message in side of CHAIN and ENDCHAIN.

Refer this link.

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa4735c111d1829f0000e829fbfe/content.htm

REgards.

Jay

Edited by: Jay on Jan 21, 2009 11:27 AM