Application Development 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: 

select problem again

Former Member
0 Kudos

hi guys,

i have another question, whats the use of this field .....kinak = ' '......in the below sample code??what does this refer to??

select kschl sakn1 kwert from konv into table con

for all entries in doc

where knumv = doc-knumv

and kinak = ' '

and kschl in ('ZU01','R100','ZC25','ZDTR','ZDTL','ZDTP','ZDDA','ZRET','ZD06','ZDMI','ZDNP','ZDNE','ZDTD',

'ZC20','ZC01','ZC02','ZC03','ZC04','ZC05','ZC06','ZC07','ZC10','ZC14','ZC18','ZM09','ZC19',

'ZC27').

thanks in advance,

gerald

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Select statement you have provide will do the following

selects the required fields where your kunmv = doc-kunmv and it also check for

kinak = ' ' and kschl as you have provided

It will fetcvh a record where in it satisfy all the 3 conditions

if any one of the condition fail it doesnt bring the record

If you have written the conditions using OR statement it will fetch record if any one condition is satisfied.

<b>Pls Reward points if usefull.</b>

7 REPLIES 7

Former Member
0 Kudos

Hi,

If the condition type is inactive then KINAK will be not initial..

In your case KINAK = ' ' means condition is active

Thanks

Naren

meikandan_krishnan2
Participant
0 Kudos

Hi,

The condition <b>kinak = ' '</b> refers to the null value.

ie Select the records based on the condition where KINAK value is null.

Regards

Meikandan

Former Member
0 Kudos

field .....kinak = ' '.. space record can be fetch from db table.

Former Member
0 Kudos

hi guys,

can you explain further??whats that null value thing??

thanks very much.

gerld

Former Member
0 Kudos

Hi,

Select statement you have provide will do the following

selects the required fields where your kunmv = doc-kunmv and it also check for

kinak = ' ' and kschl as you have provided

It will fetcvh a record where in it satisfy all the 3 conditions

if any one of the condition fail it doesnt bring the record

If you have written the conditions using OR statement it will fetch record if any one condition is satisfied.

<b>Pls Reward points if usefull.</b>

former_member208856
Active Contributor
0 Kudos

hi,

here the value in field kinak of table konv

is SPACE, it will select only that data.

Regards,

Sandeep Kaushik

Former Member
0 Kudos

HI

<b>KINAK</b> Condition is inactive

Definition

Indicates if the condition is active.

Procedure

If you want to deactivate the condition, mark the field. During pricing, the system ignores conditions that are valid but not active.

<b>REward if useful</b>