Application Development and Automation 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: 
Read only

Function Module

Former Member
0 Likes
838

HI Friends,

I got a wierd requirement from one of my client.

They said i have to create Remote Enabled FM where user will enter multiple single values and the resultant output should get the details of all the values.And the function module cannot use ranges for output.

I want ot know how can a user enter multiple values as I have to check "pass by value" in import for RFC FM.

As I am using Web RFC fro the same. I guess it will still be difficult for publishing the same on portal.

Please can anyone give good suggestionfor my query.

Regards,

Sany.

1 ACCEPTED SOLUTION
Read only

vinod_vemuru2
Active Contributor
0 Likes
808

Hi,

Pass your result in tables parameter along with the input provided.

Say u got input of 10 values, your result will be one tables parameter with input value provided in field1 and result in field2.

Thanks,

Vinod.

8 REPLIES 8
Read only

vinod_vemuru2
Active Contributor
0 Likes
809

Hi,

Pass your result in tables parameter along with the input provided.

Say u got input of 10 values, your result will be one tables parameter with input value provided in field1 and result in field2.

Thanks,

Vinod.

Read only

0 Likes
808

Hi Vinod,

Ofcourse my output will be in tables parameters. But my input would be just like how we choose multiple single values for

SELECT-OPTIONS in reports.I want to make user enter multiple values to get the resultant output.

The user wont mind to enter again n again the single values but he wants the resultant output in table format.

Regards,

Sany

Read only

0 Likes
808

so what would be your problem, take the input into a itab pass it to your function and display the return. you can display it as a alv

Edited by: Nafran Shiraz on May 5, 2010 11:57 AM

Read only

0 Likes
807

For multiple input ou can use Table parameter,

Create a report and call it in From RFC.(submit or call transaction).

if the user wants in table format then create a module pool programming and pass the input using submit or call from RFC.

Read only

0 Likes
807

Nafran i am using RFC here not a report and can you tell me how can you take tables in changing parameters using pass by value as it is mandatory to check pass by value in Function module.

I am not using any report here.. Please read my query and then comment on it.. Here ALV doesn't exist at all..

Please provide valid answers.....

Read only

0 Likes
807

Dharma ,

I tried using submit but its then used in portal where there is no provision of taking selection-screen dyanamically during run time.

Regards,

Sany

Read only

0 Likes
807

Hi Santosh,

I thought when you said portal you using the portal to view using sap portal where you can add the normal screen to it.

anyway i think i dont get what your trying to explain.

Read only

Former Member
0 Likes
807

I am not sure if i am fully clear of your requirement.

but why cant u send a table and return the table i mean in changing mode