Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Single adaptive RFC model with different RFCs

Hi there,

I created a single adaptive RFC model and put 3 RFC function into it.

I'd like to call the RFCs from a custom controller. My question is, how can I switch between the different RFCs, e. g. how can I decide what RFC to call?

For a model with a single RFC in it, I simply bind the model inside wdDoInit() and call it later with modelObject().execute(). Can I later bind another rfc outside wdDoInit() ?

My second problem is, that 2 of the RFCs have exactly the same import and export parameters. This causes some trouble, because I need to rename that parameters for the model binding in my custom controller. Is it possible to pass the parameters of a RFC directly in one block to another rfc?

Best regards,


Former Member
Former Member replied

It doesn't matter how many RFCs you have in one model.

For each RFC you will have a model node in your context.

You will have to bind model object to every model node.

So when you want to execute a RFC you have call .execute() method of the corresponding model Node.

e.g: ZXXRFC1()


ZXXRFC3() are three RFCs.

There will be three model nodes



->ZXXRFC3 under your context.

wdContext.currentZXXRFC2ContextElement().modelObject().execute() to execute ZXXRFC2()

wdContext.currentZXXRFC3ContextElement().modelObject().execute() to execute ZXXRFC3()

IF you have same import and export parameter you have to rename the model nodes.

You have to pass values to each RFC separately.

Hope it helps.


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question