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

how to capture the string values

Former Member
0 Likes
649

Hi Gurus,

Could you plz suggest me how to capture the string value.

My requirement is.

I have a structure field called cnj_stat-sttxt_int and it is storing a value like "REL CDRT AVAC". AND the moddile value CDRT will change according to condtions. now i required to write a logic like if cnj_stat-sttxt_int field contain 'REL' and 'AVAC'. I HAVE TO THROW SOME ERROR.

SO please give some idea about on it...

Its urgent..

points will be rewarded...

Thanks in advance!!!!

Thanks & regards,

Kranthi.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
580

Hi,

Typ using Contains Pattern(CP).

example:

IF cnj_stat-sttxt_int CP RELAVAC*.

Give some ERROR.

ENDIf.

Regards,

Jaya Vani

5 REPLIES 5
Read only

Former Member
0 Likes
581

Hi,

Typ using Contains Pattern(CP).

example:

IF cnj_stat-sttxt_int CP RELAVAC*.

Give some ERROR.

ENDIf.

Regards,

Jaya Vani

Read only

former_member156446
Active Contributor
0 Likes
580

if cnj_stat-sttxt_int field contain 'REL' and 'AVAC'. I HAVE TO THROW SOME ERROR.


if cnj_stat-sttxt_int CS 'REL' and cnj_stat-sttxt_int CS 'AVAC'. 

THROW SOME ERROR.

endif.

Read only

Former Member
0 Likes
580

do it like in this way

if cnj_stat-sttxt_int cs 'REL' or cnj_stat-sttxt_int cs 'AVAC'.

message 'ERROR' type 'E'.

endif.

Read only

Former Member
0 Likes
580

Thanks a lot my problem solved.

regards,

kranti.

Read only

0 Likes
580

HI Dear

could you plz tell me the code how can i handle it in CJ20N this, Actullay i have also this assingment "Select those Projects whose status in not REL DLFL

With regards