I have small problem while implementing this SELECT statement.
my requirement:
I will get RFC call from SAP: In that call they will send 1 or 4 types of input data ex: create date(High and Low), change date(High and Low), PO number (High and Low), Entity Numbers (High and Low). Using this input I need to get the out of PO results.
My suggesting is to examine the data that you receive to construct a dynamic SQL statement.
Work backwards from the SQL statements that you would need to execute to process requests with some or all of the column names and containing either data values or data value ranges.
Read the dynamic SQL adapter service documentation and create a simple dynamic SQL service before diving into the more complicated case.
Use pub.date:dateTimeFormat to convert dates from one format to another. You can also use this to only convert one portion of the date (e.g. month) to another.
r u specifying the input and output fields in the custom Sql ,if not specify the select column fileds in the output and passing fileds of select statement as a input fileds in the input fileds,give SQL Command in the Sql Block,After u have done run the Adapter service ,it vl open the dialogue box for input fileds.give i/p and click o.k button . u vl get output