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
622

Hi

In at selection screen iam validating PRODH field which is in MVKE.

but value table is T179.

can i validate like tis

select single prodh from mvke....

or

i need to do

select single prodh from t179..etc

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
601

Hi

use

<b>select single prodh from t179..etc</b>

Reward points if useful

Regards

Anji

5 REPLIES 5
Read only

Former Member
0 Likes
602

Hi

use

<b>select single prodh from t179..etc</b>

Reward points if useful

Regards

Anji

Read only

santhosh_patil
Contributor
0 Likes
601

Hi,

use

select single prodh from t179..

--Patil

Read only

Former Member
0 Likes
601

U can use any one of them. But, coz the second method fetches the value from the check table where the primary key would be the field in interest, there is no chance of a duplicate key..hence would be more efficient.

If you dont have a check table then use

select <field list>

from dbtab up to 1 rows

....

.....

santhosh

Read only

Former Member
0 Likes
601

select single prodh from t179..

IF sy-subrc <> 0.

message: not found.

endif.

Read only

Former Member
0 Likes
601

Hi krk

Please use the check table for this validation.PRODH is the primary key in table T179. Hence this would be a more efficient way of validating.

Cheers

shivika