Application Development 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: 

SAP RFC with VB- CHANGING parameters

Former Member
0 Kudos

Hi experts,

I am trying to do an RFC with VB and the SAP function module that I am calling contains parameters in the CHANGING tab. When you are adding parameters within the code that are in the CHANGING tab, how do you do this within vb? I have only been able to find examples that the parameteres are in the EXPORTS and TABLES tab.

Thanks

6 REPLIES 6

former_member212713
Contributor
0 Kudos

Hi llmw07;

Which method do you use connect to SAP? (NCO 3, 2 , 1 or direct dll )

Best regards.

Sandra_Rossi
Active Contributor
0 Kudos

Hi llmw07,

I am really surprised why it couldn't work, as it works with SAP to SAP RFC, but I must admit that I tried with VBA without success, and all the documentation I have read only talks about exporting, importing and tables parameters, but never says anything about the changing parameters. I have seen one thread about it which confirms that issue. But, really, I can't imagine it is not possible without having to create a wrapper at SAP side! Waiting for other answers

BR

Sandra

former_member212713
Contributor
0 Kudos

Hi;

You can read below link documents. I read it. But dont see "Changing" word for parameter.

There ara 4056 BAPIs with starting "BAPI*" word in our system. But only 5 BAPIs use changing parameters.

This is very interesting. I think SAP dont advice/suggest using Changing parameters at RFC.

Best regards.

http://help.sap.com/printdocu/core/print46c/en/data/pdf/BCFESDE2/BCFESDE2.pdf

0 Kudos

Thanks Melih MUTLU for the findings.

Other finding: there are 2 messages S&504 "BAPI &1: The BAPI function module &2 uses changing parameters" and S&573 "Method contains errors - we advise you not to create" when one's attempt to create a method from an existing RFC function module (with a changing parameter) using menu Utilities -> API methods -> Add method (that happens in function module TODO_BAPI_CHECK_FUNCTION, there are other checks)

BR

Sandra

Former Member
0 Kudos

Thanks for all of the help! I will review the documenation and see where to go from here. I am trying to create an excel macro that will call that function module. I will have to get in touch with the developer that created the function module.

Thanks

0 Kudos

I will review the documenation

I think what Melih MUTLU was saying is that this doc doesn't contain anything about the CHANGING parameter (be careful, the link to the 4.6 release is probably outdated in your case)