cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Inputs to one RFC

Former Member
0 Kudos

Hi

I'm trying to pass some standalone values as well as two tables to a backend RFC.. however VC is calling the function twice. The second call does not include the standalone values (only the two tables I am passing)

I've had this issue with the old VC but I'm not sure how I got around it.. what is the proper way?

I have one event called 'toplevel'. I have connected my form and created a button that sends the event toplevel.

I have created two tables and connected them with the event *toplevel

I set a breakpoint in my RFC. It gets called twice.

The first time all data is passed correctly.

The second call only the tables are passed (no date is passed).

This is a big problem because the second call wipes out all my results/data.

I tried removing the *toplevel and replacing it with just toplevel (Removed the asterix). This does not pass the tables.

Not sure what to do next? How can I make sure it is only called once and it passes ALL values.

Cheers

Brad


Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hey Brad, try changing the first toplevel action to *toplevel so that all 3 actions are similar. I think this will prevent it from calling the RFC twice.

Chintan

Former Member
0 Kudos

Hi Chintan

That was worth a shot for sure but no luck I'm afraid! The standalone values are passed but the tables are not. It only calls once now though.

0 Kudos

Brad, what version of VC are you using? I'll try creating a small application to test such a scenario.

I do have a model in 7.31 SP07 CE where I have one table and one form going into an RFC with SAVE action. I was running into exactly same problem as you (RFC getting called twice) when I was using SAVE and *SAVE actions. Once I changed both of them to *SAVE it worked as expected.

Former Member
0 Kudos

I'm on the same version as you. Just tried again and it worked... go figure. I think I have a caching issue? Maybe I didn't hit deploy who knows but your solution works!

Answers (0)