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

Subscreen in Customer Master(XD01)

Former Member
0 Likes
548

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

1 ACCEPTED SOLUTION
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
450

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

1 REPLY 1
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
451

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