cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass Multiple Parameters in Global Variables in SAP CPI DS

former_member277492
Participant
0 Kudos
1,360

Hello Experts,

I am looking for a support on passing multiple filters in a single global variable in SAP CPI DS system.

I have tried the below methods and still facing the issue.

'\'AB\',\'CD\''

'AB|CD'

Kindly sugest how to pass multiple filters to a Global variable.

Thanks in advance,

Best Regards,

Sree

View Entire Topic
aourzy_ankur
Discoverer
0 Kudos

global parameter example $G_PARA to have default value as '.*' (Dot Star inside single quotes)

Now to pass multiple values as - 'AB|CD'

Then use function:-

match_regex ( input string ,$G_PARA , flags ) = 1

Flag Options Description

'CASE_INSENSITIVE' If set, matching takes place in a case-insensitive manner.

'COMMENTS' If set, allows use of white space and #comments within patterns.

'DOTALL' If set, a "." in a pattern matches a line terminator in the input text. By default, it will not. Note that a carriage return or line feed pair in text behave as a single line terminator and match a single "." in a regular expression pattern.

'MULTILINE' If set, the function treats the input string as multiple lines instead of a single line. The '^' and '$' characters apply to each line in the input string instead of the entire input string.

'NO_PUSHDOWN' If set, the match_regex function is processed but is never pushed down to the database.