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

select statment

Former Member
0 Likes
1,376

hi friends,

i dont understand this statement pls help me.

1. Do look up in COAS to obtain "internal order"(COAS-AUFNR) and Internal Order Text(COAS-KText) using this conditions.

Ordertype(COAS-AUART)='x'

Release Status(coas-phas1)='x'

completion status(coas-phas2)<>'x'

cloasing status (coas-phas3)<>'x'

Delettion status(coas-loekz)<>'x'

what is 'x' there.

chandu

12 REPLIES 12
Read only

Former Member
0 Likes
1,284

Hi here the 'x' is the value in the table for all these fields

example

deletion status <> 'x' means that the deletion indicator has not been set for that record.

the value of deletion status in the record should not be equal to 'X'.

Read only

Former Member
0 Likes
1,284

In this they are fetching only the active records. For example LOEKZ is a deletion indiactor. If u delete any records in Master data, physically they are not deleting. i. e they assign the 'X' to LOEKZ field. but logically it is deleted . These records are not available in the Table. If you want to see the deleted records they are using these fields.

Hope it will be helpful

Read only

Former Member
0 Likes
1,284

hi,

pls send select stament for this.

chandu

Read only

Former Member
0 Likes
1,284

Internal Order will have different status. If a field = 'x' then it is maintained. Your functional consultant will be able to explain you about Internal Order status.

Thanks & Regards,

Govind.

Read only

madan_ullasa
Contributor
0 Likes
1,284

Ordertype(COAS-AUART)='x'

Release Status(coas-phas1)='x'

completion status(coas-phas2)<>'x'

cloasing status (coas-phas3)<>'x'

Delettion status(coas-loekz)<>'x'

Probably implies :

from table coas, field auart has value equal to 'X'.

similiarly for other things in the bracket.

'<>' implies 'not equal'.

hope this helps.

regards,

Madan..

Read only

Former Member
0 Likes
1,284

Hi,

In ABAP we usually put 'X' as a flag. This signifies whether a certain condition is true or not. For example if deletion flag is 'X' then it says this record is marked for deletion.

And make sure when you write the query it should be capital 'X' not 'x'

Regards,

sumit.

Read only

Former Member
0 Likes
1,284

I do not understand what do you want actually. Do you want the select clause to be written.

select aufnr ktext

into (coas-aufnr, coas-ktext)

from coas

where auart = 'X'

and phas1 = 'X'

and phas2 <>'X'

and phas3 <> 'X'

and loekz <> 'X'.

'X' means here 'YES'.

Regards,

Subhasish

Read only

Former Member
0 Likes
1,284

select aufnr

ktext

from coas

into table t_tab

where auart = <some value> "I don't think it is 'X'

and phas1 = 'X' "Phase "Order released"

AND PHAS2 <> 'X' "Phase "order NOT completed"

AND PHAS3 <> 'X' "Phase "order closed"

AND LOEKZ <> 'X'. "Deletion flag NOT SET

rEGARDS,

rAVI

Read only

Former Member
0 Likes
1,284

hi

check this out

TYPEs : begin of ty_coas,

auart type AUFART

ktext type AUFTEXT,

end of ty_coas.

DATA: i_coas type standard table of ty_coas.

select aufnr

ktext

from coas

into table i_coas

where auart eq 'X' and

phas1 eq 'X' and

phas2 ne 'X' and

phas3 ne 'X' and

loekz ne 'X' .

Read only

Former Member
0 Likes
1,284

DATA I_COAS like standard table of COAS.

SELECT * FROM COAS into I_COAS

Where AUART = ‘X’

AND PHASE1 = ‘X’

AND PHASE2 <> ‘X’

AND PHASE3 <> ‘X’

AND LOELZ <> ‘X’.

Read only

Former Member
0 Likes
1,284

Hi Chandru,

use this-

select aufnr

ktext

into corresponding fields of table itab

from coas

where auart = 'X'

and phas1 = 'X'

and phas2 <> 'X'

and phas3 <> 'X'

and loekz <> 'X'.

X means its active.

Hope this helps!!!

Seema.

Read only

Former Member
0 Likes
1,284

I don't know about the select statement, but I'd go back to the person that gave you the specs and ask what is meant by "Ordertype(COAS-AUART)='x'". Order type is a four character field. Unless your organization has created this order type, it may mean something else.

Rob