2010 Nov 15 3:26 PM
hi all,
one subscreen is created for Customer master (XD02) & there is one field in the sub screen.
To validate this field( it should not be blank), i put error message in SAPMF02D exit.
if i do not put any data on this field & then press 'SAVE' button, it gives me that error i put in exit.
Then the field becomes disable & then repeatedly it gives me the same error if i press 'BACK' button.
i just need the error while SAVE but not when BACK button. Please suggest where i did mistake. Thanks.
Regd
mohan
2010 Nov 17 9:20 AM
If you want to give message on Save then
check SY-UCOMM EQ 'SAVE'.
Display error message.
Plus it is a good practice to have the filedsin CHAIN-ENDCHAIN so that whenver you throw an error it remains in Input enabled mode.
Thanks
Nabheet
hi all,
one subscreen is created for Customer master (XD02) & there is one field in the sub screen.
To validate this field( it should not be blank), i put error message in SAPMF02D exit.
if i do not put any data on this field & then press 'SAVE' button, it gives me that error i put in exit.
Then the field becomes disable & then repeatedly it gives me the same error if i press 'BACK' button.
i just need the error while SAVE but not when BACK button. Please suggest where i did mistake. Thanks.
Regd
mohan
2010 Nov 17 9:20 AM
If you want to give message on Save then
check SY-UCOMM EQ 'SAVE'.
Display error message.
Plus it is a good practice to have the filedsin CHAIN-ENDCHAIN so that whenver you throw an error it remains in Input enabled mode.
Thanks
Nabheet
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |