I want to develop one screen having functionality similar to ME51 i.e. my screen will have some input fields. If user types anything in any of input fields and press back it should give me a pop up to confirm saving of data.
And if user simply invkes a transaction and do not put any values no pop up message should be given.
This happens in case of ME51. If u invoke ME51 and press back without inptting nething it wont give u a pop up. But if u provide a value to input field and press back WITHOUT PRESSING ENTER i.e. without PAI to be triggered - a pop is displayed.
How should I go about this problem ?