‎2008 Jun 24 8:23 PM
The following SELECT statement returns all the columns in the SPFLI table for flights from New York to a city that is specified by the value of a variable. Where ABAP developer should add this variable.
To execute this statement, you must create a SAPParameter with the name @variable, specify its value, and add the SAPParameter to the SAPCommand object corresponding to the query.
[link|http://technet.microsoft.com/en-us/library/ms141761.aspx]
Code SnippetSELECT * FROM SPFLI WHERE cityfrom='NEW YORK' AND cityto=@variable
‎2008 Jun 25 7:07 AM
‎2008 Jun 25 9:43 AM
Where to add the variable in SAP so i can pull the table using that variable.
‎2008 Jun 25 11:14 AM
Not an ABAPers task. SAPParameter and SAPCommand are part of ADO.NET interfaces.
‎2008 Jun 26 5:14 PM
I have thought other option please tell me whether it will work of not.
Say if I ask ABAP developer to make custom RFC with simple select statment
i.e.
select * from Table_Name
where Field_Name between @StartDateofLastMonth and @EndDateofLastMonth.
The aforesaid select statment will get the calculated startdate and enddate from sap system date.
where as i have to give @Table_Name and @Field_Name from my end as variable...
What do u think will it work and how much time it will requir to develop.
One more favor where i can get sample RFC for the aforesaid.