02-14-2007 12:05 PM
Hi,
I am creating a RFC function module. The requirement is:
In a report program, the user enters ABC and XYZ values on the selection screen. These 2 fields are select options so will have From-Value and To-Value. This report program will pass these values to my RFC FM and depending upon these values I have to read a DB table and pass the data back to the program.
My doubt is, how should I intake these select options value? i.e should I specify them in import tab or tables tab? What TYPE/LIKE should I use?
Please help me in this...
Rgds,
Nimma.
02-14-2007 12:11 PM
Hi Nimma,
YOu should go to the SE11 transaction and create one Z structure each with the fields.
SIGN CHAR1
OPTION CHAR2
LOW <with data element of ABC/XYZ>
HIGH <with data element of ABC/XYZ>
then use that as structure in the tables TAB of the se37 transaction.
Regards,
Ravi
02-14-2007 12:09 PM
Hi,
You have to declare the INPUT Parameters as IMPORT like WSELKUNNR (kust Example).
and the for the Values fetched from DB tables delclare an Internal Table in TABLES paramters of the FUn module. and populate into that Int table.
Regards,
Anji
02-14-2007 12:15 PM
Hi Anji,
What is 'WSELKUNNR'? Is it a user defined type?
I am doing as below in the IMPORT tab.
Parameter name/Type Spec/Associated Type
ABC/LIKE/
I am not sure what type I have to use here as the incoming values will be of type SELECT-OPTIONS. Is there any standard type to specify here? If not, what should I do?
Best Regards,
Nimma.
02-14-2007 1:18 PM
you can use the standard table type RSELOPTION (which has got sign, option, low, high) in tables parameter
Raja
02-14-2007 1:42 PM
Hi All,
I have created a Z Structure, as specified by Ravi, and it solved my problem.
Thanks very much for all your help.
I have assigned the points.
Best Regards,
Nimma.
02-14-2007 12:11 PM
Hi Nimma,
YOu should go to the SE11 transaction and create one Z structure each with the fields.
SIGN CHAR1
OPTION CHAR2
LOW <with data element of ABC/XYZ>
HIGH <with data element of ABC/XYZ>
then use that as structure in the tables TAB of the se37 transaction.
Regards,
Ravi