cancel
Showing results for 
Search instead for 
Did you mean: 

RFC parameters (pass by value)

Former Member
0 Kudos
3,377

I believe Iam missing something in the concept of passing by value and reference in a RFC FM.

the question/s is/are:

we always have to check <b>'pass value'</b> for parameters(we get a syntax unless), but what value will be passed to the input parameters of the rfc,are they initial values based on type?

and do we still have to give reference when it doesn't make sense in a network?(or once the call is made from an outside system )

RFC:

<b>parameter/ ref / pass value</b>

v_vbeln /like /vbak-vbeln / check

hope i make sense.

i would greatly appreciate any answers.

thanks

Accepted Solutions (1)

Accepted Solutions (1)

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

F1 help on the field....

<i>

You pass the parameter with values. This means that the parameter contents are copied both when the parameter is passed and when it is transferred back to the calling parameter. For structures that contain tables, performance may be reduced considerably. Therefore, you should not do this.

</i>

Regards.

Rich Heilman

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

More F1 Help...

<i>

There are two types of parameter passing: pass by reference and pass by value.

Pass by reference shows the formal parameter directly on the actual parameter so that changes to the formal parameter immediately affect the actual parameter.

Pass by value creates the formal parameter either as a copy of the actual parameter when the function module is called (at IMPORTING value and CHANGING value parameters) or creates it initially on the stack (at EXPORTING value parameters). At CHANGING value and EXPORTING value parameters the formal parameter is copied onto the actual parameter when it returns from the function module call.

</i>

Regards,

Rich Heilman

Answers (0)