Skip to Content
author's profile photo Former Member
Former Member

SAP RFC with VB- CHANGING parameters

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Jul 14, 2011 at 08:52 AM

    Hi llmw07;

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

    Best regards.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 14, 2011 at 10: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 14, 2011 at 11:37 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

  • author's profile photo Former Member
    Former Member
    Posted on Jul 14, 2011 at 06: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.