Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Help on Parameters in RFC Function Module

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

0 Kudos

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.

0 Kudos

you can use the standard table type RSELOPTION (which has got sign, option, low, high) in tables parameter

Raja

0 Kudos

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.

former_member181962
Active Contributor
0 Kudos

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