07-13-2011 4:37 PM
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
07-14-2011 9:52 AM
Hi llmw07;
Which method do you use connect to SAP? (NCO 3, 2 , 1 or direct dll )
Best regards.
07-14-2011 11:29 AM
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
07-14-2011 12:37 PM
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
07-14-2011 6:24 PM
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
07-14-2011 7:20 PM
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
07-14-2011 11:16 PM
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)