cancel
Showing results for 
Search instead for 
Did you mean: 

HTTPS Sender url parameters in SAP CPI

Reddy4417
Explorer
0 Kudos
2,164

Hi Team,

Good Day...

my scenario is we need to get data from DB to SAP, i am using JDBC adapter to connect the DB directly and able to connect successfully and fetch the data from DB by using get operation from SAP by using query select * from dbo.[Table_Name] .


now my concern is customer wants to fetch the data based on month and year (response has the filed as same mnth_year>202301</mnth_year> )dynamically like below.

can you please help to achive this from cpi end.

Thnks in-advance.

BR,

Chinnu

Accepted Solutions (0)

Answers (1)

Answers (1)

MortenWittrock
SAP Mentor
SAP Mentor

Hi Chinnu

You can get at those query parameters using the built-in header called CamelHttpQuery. You need to parse its contents in a script and then construct your database query dynamically.

When constructing the query, be very mindful that you are not opening yourself up to SQL injection. I.e. verify that the format of the parameter is as expected; don't just concatenate strings to form a SQL query.

Regards,

Morten

Reddy4417
Explorer
0 Kudos

Hello Morten,

Thanks you your suggestion and time.

BR,

Chinnu.