This website is not affiliated with, sponsored by, or approved by SAP AG.

contains_any_not_of predicate function

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

contains_any_not_of predicate function

Postby banerjee_atanu » Mon Aug 25, 2014 12:14 pm

Dear Members :

Code: Select all
Data: flag TYPE abap_bool value abap_false.
IF contains_any_not_of( val = sy-abcde start = 'cDEF'  CASE = flag off = 2  len = 4 ).
  WRITE / 'contains_any_not_of: TRUE'.
ENDIF.

getting syntax error: formal parameter "CASE" does not exist - but why ?
Appreciate your response.
Thanks.
AB
banerjee_atanu
 
Posts: 5
Joined: Mon Dec 27, 2004 9:24 am

Re: contains_any_not_of predicate function

Postby Grogan » Mon Aug 25, 2014 4:16 pm

What is CONTAINS_ANY_NOT_OF ? A functional method of a custom class ?
What are its parameters and how are they defined ?
Also you might like to try adding a comparison to your IF condition: IF contains_any_not_of(...) EQ abap_true.
Grogan

Award cash if useful.
Grogan
 
Posts: 365
Joined: Thu Aug 04, 2005 7:16 pm
Location: Australia

Re: contains_any_not_of predicate function

Postby banerjee_atanu » Mon Aug 25, 2014 6:24 pm

same as CN. Works fine if I take out "case" - kindly have a look at it's full syntax. Thanks.
banerjee_atanu
 
Posts: 5
Joined: Mon Dec 27, 2004 9:24 am

Re: contains_any_not_of predicate function

Postby Grogan » Mon Aug 25, 2014 8:01 pm

Syntax definition is here:
http://help.sap.com/abapdocu_702/en/abencontains_functions.htm

It says that CONTAINS_ANY_OF and CONTAINS_ANY_NOT_OF are always case sensitive and there is no CASE parameter.
Grogan

Award cash if useful.
Grogan
 
Posts: 365
Joined: Thu Aug 04, 2005 7:16 pm
Location: Australia

Re: contains_any_not_of predicate function

Postby banerjee_atanu » Tue Aug 26, 2014 3:21 am

yeah :? my mistake - thought as they are offering with "contains". Thanks.
banerjee_atanu
 
Posts: 5
Joined: Mon Dec 27, 2004 9:24 am


Return to ABAP

Who is online

Users browsing this forum: Google [Bot], Google Adsense [Bot] and 10 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.