2007 Dec 07 5:51 AM
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.
2007 Dec 07 8:36 AM
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.
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.
2007 Dec 07 8:36 AM
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.
2007 Dec 07 4:13 PM
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
2007 Dec 11 4:34 AM
Hey Siva,
Thanks a bunch. The code in chain endchain worked.
Regards,
Neha.