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

reg select statements

Former Member
0 Likes
325

hi,

i had to select swenr,smenr,refno,xmetext from vimi01 on condition cnj_stat-sttxt_int = 'create port zoud'.

cnj_stat-sttxt_int is a structure field.

can any body provide solution.

thanks in advance

siva

2 REPLIES 2
Read only

Former Member
0 Likes
299

Hi Siva,

Write the select query like,

select swenr,smenr,refno,xmetext from vimi01 into table it[it name] where nj_stat-sttxt_int = 'create port zoud'.

Thanks.

Reward If Helpful.

Read only

Former Member
0 Likes
299

Hi,

<b>The status Text of the field (sttxt_int ) are stored in TJ02T tables and status is stored in JEST table.

So you have to join VIMI01 with JEST and TJ02T tables for this.

select aswenr asmenr arefno axmetext into table itab

from vimi01 as a join jest as b on

asadrme = bobjnr join Tjo2T as c on bstat = cistat

where ctext30 = 'create port zoud' and cspras = sy-langu.</b>

Reward points if useful

regards,

ANJI