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

Validation

Former Member
0 Likes
535

Hi Guys,

need help here. I have a form. But before calling the form, there must be a validation. Ths validation checks a particular field in a table. Basically if the field is 'x' then we show the form. Otherwise, a message box appear..How can i do this? Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
519

hi Nahoj,

i think you should perform validation before calling form,

as follow.


select single field_name 
from table_name 
where field _name = 'X'.

if sy-subrc <0>.
message***********

else.
*****
(call form. here)
******
endif.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Jan 11, 2008 5:42 PM

3 REPLIES 3
Read only

Former Member
0 Likes
519

Hi

how ru calling this form.

tc

saji

Read only

Former Member
0 Likes
519

hi Nahoj,

i think you should perform validation before calling form,

as follow.


select single field_name 
from table_name 
where field _name = 'X'.

if sy-subrc <0>.
message***********

else.
*****
 (call form. here)
******
endif.

<REMOVED BY MODERATOR>

Sandeep

Edited by: Alvaro Tejada Galindo on Jan 11, 2008 5:41 PM

Read only

Former Member
0 Likes
520

hi Nahoj,

i think you should perform validation before calling form,

as follow.


select single field_name 
from table_name 
where field _name = 'X'.

if sy-subrc <0>.
message***********

else.
*****
(call form. here)
******
endif.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Jan 11, 2008 5:42 PM