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

CALL FUNCTION using PARAMETER-TABLE in background task

Former Member
0 Likes
943

Hi experts !!!

Is there any way to use CALL FUNCTION using PARAMETER-TABLE in background task ??

CALL FUNCTION ls_service-funcname

PARAMETER-TABLE

lt_fupar.

We use a dinamic call, pero it seems can´t be used in such way.

Thanks a lot in advance.

Manuel

5 REPLIES 5
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
772

What do you mean by PARAMETER-TABLE.

If its a function module, you can declare a table type in import parameter or a tables parameter and call it in background task.

Check f1 help for call function.

Read only

prasenjit_sharma
Active Contributor
0 Likes
772

Hi,

You can use the parameter table for dynamic call only if the parameters remain the same.

Regards

Prasenjit

Read only

Former Member
0 Likes
772

Hi Manuel,

why do You think

it seems can´t be used in such way.

? Could You post your code and more detailed description of your problem?

Regards,

Adrian

Read only

Former Member
0 Likes
772

Hello Manuel,

It's possible to pass table parameter when calling the function dynamically.

The best example can be calling a smart form.....we use ssf_function_module...to get the dynmaic function moudle name of smart form.....

and can pass each type of parameter...

Thanks,

Krish

Read only

0 Likes
772

Hi all,

I'm quite new to business and got the same problem Manuel stated.

For a (generalized) manipulation of queued-RFC I want to state the following:

CALL FUNCTION iv_fname

   IN BACKGROUND TASK

   AS SEPARATE UNIT

   PARAMETER-TABLE

     lt_parmbind.

That is, I want to combine dynamical providing of parameters using the statement "PARAMETER-TABLE" (as many parameter structures as needed for the actual RFC) *and* queueing the remote function calls.

I cannot activate my program, so it seems to be not possible.

Does anyone solved this puzzle in the past and could provide me some more hints?

Thanks in advance for further contributions.

Kind regards,

Matthias