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

system status search

Former Member
0 Likes
608

Hi :

In Plant Maintenance , i was able to find system status using the function

'STATUS_TEXT_EDIT'. From the returned string i want only those status whose value is CNF or TECO or CLSD and excluding the status if it contains PCNF or CRTD or DLFL or REL.

How can i search the variable ( v_status ) returned from the function 'STATUS_TEXT_EDIT'.

Thanks.

Raghu

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
529

Try something like this.



if (  str cs 'CLSD'
   or str cs 'CNF'
   or str cs 'TECO' )
 and 
   (  str ns 'PCNF'
  and str ns 'CRTD'
  and str ns 'DLFL' ) .
  


endif.

STR is the string which contains the status from the funciton module.

Regards,

Rich Heilman

Hi :

In Plant Maintenance , i was able to find system status using the function

'STATUS_TEXT_EDIT'. From the returned string i want only those status whose value is CNF or TECO or CLSD and excluding the status if it contains PCNF or CRTD or DLFL or REL.

How can i search the variable ( v_status ) returned from the function 'STATUS_TEXT_EDIT'.

Thanks.

Raghu

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
530

Try something like this.



if (  str cs 'CLSD'
   or str cs 'CNF'
   or str cs 'TECO' )
 and 
   (  str ns 'PCNF'
  and str ns 'CRTD'
  and str ns 'DLFL' ) .
  


endif.

STR is the string which contains the status from the funciton module.

Regards,

Rich Heilman

Read only

0 Likes
529

Thanks Rich.