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

Problem while making a field mandatory in custome view

Former Member
0 Likes
647

Dear all,

In the Table Maintainance Generator for my view ZVV_HAUL, in the Events for new entry, I am doing a validation for a field ZROUTE as follows to make it mandatory.

if <zvv_haul>-route is initial. " <zvv_haul> is the field symbol declared for dynamic

content

MESSAGE ID 'ZD' TYPE 'E' NUMBER '027'. " 027 msg says "Enter Route".

endif.

now when i make a new entry by going in SM30 and press enter ( without entering the route) the system throws the message "Enter Route" but the field Route is getting disabled.

How to make it enabled??? Please help... this is urgent

Regards,

Neha.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
596

hi

If you take error message type E, it should be desabled. Alternative is take that message as information TYPE ' I ' disply like 'E'. Or in screen flow logic write FIELD REQUEST.

CHAIN.

FIELD : field name

MODULE check ON CHAIN-REQUEST.

ENDCHAIN.

In MODULE check ON CHAIN-REQUEST, write your error message how u r writing now. It works.

Reward if it dose

Siva Kumar.

3 REPLIES 3
Read only

Former Member
0 Likes
597

hi

If you take error message type E, it should be desabled. Alternative is take that message as information TYPE ' I ' disply like 'E'. Or in screen flow logic write FIELD REQUEST.

CHAIN.

FIELD : field name

MODULE check ON CHAIN-REQUEST.

ENDCHAIN.

In MODULE check ON CHAIN-REQUEST, write your error message how u r writing now. It works.

Reward if it dose

Siva Kumar.

Read only

Former Member
0 Likes
596

Just to cover all of the bases, have you tried just hitting the enter key after the message appears? Usually all of the fields appear to be disabled when an error message is thrown. Then once you hit the enter key you should be able to make changes again.

- April King

Read only

Former Member
0 Likes
596

Hey Siva,

Thanks a bunch. The code in chain endchain worked.

Regards,

Neha.