<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: Code Generator for the Code Stage to use SAP RFC Function Modules Easily in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Code-Generator-for-the-Code-Stage-to-use-SAP-RFC-Function/m-p/84180#M35356</link>
    <description>Hi stefan,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;While running the RFM code generator application, after providing Connection details, if prompt as "connection successful".&lt;BR /&gt;But while search with keyword eg., RFC* giving exception as"Option_Not_Valid". Please help me on this.&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;nbsp;&lt;BR /&gt;abarna&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Abarna Anbu&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 06 May 2022 05:55:00 GMT</pubDate>
    <dc:creator>AbarnaAnbu</dc:creator>
    <dc:date>2022-05-06T05:55:00Z</dc:date>
    <item>
      <title>Code Generator for the Code Stage to use SAP RFC Function Modules Easily</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Code-Generator-for-the-Code-Stage-to-use-SAP-RFC-Function/m-p/84177#M35353</link>
      <description>Hello Community,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Remote Function Calls (RFC), also known as Remote Procedure Calls (RPC) or Remote-Enabled Function Modules (RFM), is the standard SAP interface for technical communication between SAP systems. RFC calls a function to be executed in a remote system. On an SAP back-end system exists many RFMs which offers an incredible scope of possibilities. Likewise on the&amp;nbsp; Business Application Programming Interface (BAPI), which is a formal defined interface to the business object model which uses RFC. To use this kind interface &lt;A href="https://support.sap.com/en/product/connectors/msnet.html" target="_blank" rel="noopener"&gt;SAP offers the dotNET Connector, called NCo&lt;/A&gt;. You can download it explicit or you can use it with your SAP GUI for Windows installation.&lt;BR /&gt;&lt;BR /&gt;To use this connector I programmed an RFM Code Generator. With this tool you can generate C# or VB.NET code to use RFMs of an SAP back-end system. You can easily detect and select the RFM you need. With a few mouse clicks you can generate the code to call the RFM. All descriptions and interfaces, with its technical details, are visible and you can put together exactly what you need. To use this code with BP, transfer it easily to a Code Stage.&lt;BR /&gt;&lt;BR /&gt;Here are some pictures with explanations.&lt;BR /&gt;&lt;BR /&gt;After starting the generator, the connection data must be entered first at the Connection tab.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11661.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11832i8ABBE52D130DF748/image-size/large?v=v2&amp;amp;px=999" role="button" title="11661.png" alt="11661.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;After the connection has been successfully established, you can switch to the Search tab. Enter a pattern or the name of the RFM you want to use, in our example RFC*, and press the button Search to get the RFMs.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11662.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11833iE35D9BED49B6AD61/image-size/large?v=v2&amp;amp;px=999" role="button" title="11662.png" alt="11662.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You will be automatically redirected to the Selections tab. Here the desired function module can be easily selected and the code generated in a few steps.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11663.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11836i6E83D90F55A968F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="11663.png" alt="11663.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Double click on the RFM name you want to use. In this example RFC_SYSTEM_INFO.&lt;/LI&gt;
&lt;LI&gt;You see the name of the RFM which was selected and the available descriptions in all languages.&lt;/LI&gt;
&lt;LI&gt;The RFM interface, in our case it contains only export parameters. Here you can find Import, Export, Exception and Changing parameters of the RFM.&lt;/LI&gt;
&lt;LI&gt;Select the programming language in which the code is to be generated. In this example VB.NET.&lt;/LI&gt;
&lt;LI&gt;Press the Generate Code button to generate the code in the Code tab&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;If a function documentation is available, you can find it in the tab of the same name. But in the most cases RFMs are not documented.&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;With five tiny clicks you generate code to call an RFM in an SAP system.&lt;/DIV&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11664.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11835i5A6F5D514A7D37D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="11664.png" alt="11664.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;&lt;SPAN&gt;With a double click on a structure you jump into the Structure Definition tab and you can see all details, in this example RFCSI_EXPORT.&lt;/SPAN&gt;&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11665.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11834iC3CEE73DE061B5AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="11665.png" alt="11665.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;This can be used to generate code for deeper structures.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Select the fields you are interested in. In this example RFCHOST, RFCSYSID, RFCDBHOST and RFCDBSYS.&lt;/LI&gt;
&lt;LI&gt;Select Set, if you want to set the content of the fields, or Get, if you want to get the content of the fields. In this example Get.&lt;/LI&gt;
&lt;LI&gt;Press Generate Code to Clipboard button. The additional VB.NET code to get the content of the selected fields is now in the clipboard available&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11666.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11838i1E15A6F183B06417/image-size/large?v=v2&amp;amp;px=999" role="button" title="11666.png" alt="11666.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;&lt;SPAN&gt;Paste it into your code.&lt;/SPAN&gt;&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11667.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11837i03C14C4AE8B55ECF/image-size/large?v=v2&amp;amp;px=999" role="button" title="11667.png" alt="11667.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;&lt;SPAN&gt;Now the code can be copied into the Code Stage.&lt;/SPAN&gt;&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11668.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11840iC92AA50F9C74B20A/image-size/large?v=v2&amp;amp;px=999" role="button" title="11668.png" alt="11668.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Add the SAP Connector libraries to the references, in this case from the Global Assembly Cache (GAC) from the SAP GUI for Windows installation, and the namespace SAP.Middleware.Connector.&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11669.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11839iD135FF69D86060D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="11669.png" alt="11669.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;After this steps you can execute your object.&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11670.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11842i882B1EC505FEBBA9/image-size/large?v=v2&amp;amp;px=999" role="button" title="11670.png" alt="11670.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;&lt;SPAN&gt;With this RFM Code Generator you can create C# or VB.NET code sequences, to call SAP RFMs, easily. You very quickly gain an overview of the technical interface and can just as quickly create the basis for use. However, you must also know exactly what you are doing. The generated code can be easily transfer and use in a Code Stage. This approach should reduce development times.&lt;BR /&gt;&lt;BR /&gt;You can find the &lt;A href="https://www.stschnell.de/index.html#rfmcodegen" target="_blank" rel="noopener" title="RFM Code Generator"&gt;RFM Code Generator at my homepage&lt;/A&gt;, with a detailed user manual.&lt;BR /&gt;&lt;BR /&gt;Enjoy it.&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Stefan&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Stefan Schnell&lt;BR /&gt;Senior Systems Engineer at BWI GmbH&lt;BR /&gt;------------------------------</description>
      <pubDate>Fri, 29 Jan 2021 04:24:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Code-Generator-for-the-Code-Stage-to-use-SAP-RFC-Function/m-p/84177#M35353</guid>
      <dc:creator>StefanSchnell</dc:creator>
      <dc:date>2021-01-29T04:24:00Z</dc:date>
    </item>
    <item>
      <title>RE: Code Generator for the Code Stage to use SAP RFC Function Modules Easily</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Code-Generator-for-the-Code-Stage-to-use-SAP-RFC-Function/m-p/84178#M35354</link>
      <description>Hi, Stefan,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;excellent work. However, what permissions you have to have as a user when you want to invoke this? This would be probably crucial for widespread usage.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Zdeněk Kabátek&lt;BR /&gt;Head of Professional Services&lt;BR /&gt;NEOOPS&lt;BR /&gt;&lt;A href="http://www.neoops.com/" target="test_blank"&gt;http://www.neoops.com/&lt;/A&gt;&lt;BR /&gt;Europe/Prague&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Feb 2021 10:32:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Code-Generator-for-the-Code-Stage-to-use-SAP-RFC-Function/m-p/84178#M35354</guid>
      <dc:creator>zdenek.kabatek</dc:creator>
      <dc:date>2021-02-01T10:32:00Z</dc:date>
    </item>
    <item>
      <title>RE: Code Generator for the Code Stage to use SAP RFC Function Modules Easily</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Code-Generator-for-the-Code-Stage-to-use-SAP-RFC-Function/m-p/84179#M35355</link>
      <description>&lt;P&gt;Hello Zdeněk,&lt;BR /&gt;&lt;BR /&gt;thank you very much for your reply.&lt;BR /&gt;&lt;BR /&gt;In my opinion are the permissions not a problem for an RPA developer in an SAP development environment.&lt;BR /&gt;Authorization object S_RFC: RFC_TYPE = *, RFC_NAME = *, ACTVT 16 &lt;BR /&gt;Authorization object S_TABU_DIS: DICBERCLS = *, ACTVT 03&lt;BR /&gt;Authorization Object S_CTS_ADMI: CTS_ADMFCT = TABL&lt;BR /&gt;If there are any problems just call the transaction code SU53.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Stefan&lt;/P&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Stefan Schnell&lt;BR /&gt;Senior Systems Engineer at BWI GmbH&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Feb 2021 08:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Code-Generator-for-the-Code-Stage-to-use-SAP-RFC-Function/m-p/84179#M35355</guid>
      <dc:creator>StefanSchnell</dc:creator>
      <dc:date>2021-02-02T08:23:00Z</dc:date>
    </item>
    <item>
      <title>RE: Code Generator for the Code Stage to use SAP RFC Function Modules Easily</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Code-Generator-for-the-Code-Stage-to-use-SAP-RFC-Function/m-p/84180#M35356</link>
      <description>Hi stefan,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;While running the RFM code generator application, after providing Connection details, if prompt as "connection successful".&lt;BR /&gt;But while search with keyword eg., RFC* giving exception as"Option_Not_Valid". Please help me on this.&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;nbsp;&lt;BR /&gt;abarna&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Abarna Anbu&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 06 May 2022 05:55:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Code-Generator-for-the-Code-Stage-to-use-SAP-RFC-Function/m-p/84180#M35356</guid>
      <dc:creator>AbarnaAnbu</dc:creator>
      <dc:date>2022-05-06T05:55:00Z</dc:date>
    </item>
    <item>
      <title>RE: Code Generator for the Code Stage to use SAP RFC Function Modules Easily</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Code-Generator-for-the-Code-Stage-to-use-SAP-RFC-Function/m-p/84181#M35357</link>
      <description>&lt;P&gt;&lt;A class="user-content-mention" data-sign="@" data-contactkey="eae7ce67-257a-43fb-b332-7a090a7b44e0" data-tag-text="@Abarna Anbu" href="https://community.blueprism.com/network/profile?UserKey=eae7ce67-257a-43fb-b332-7a090a7b44e0" data-itemmentionkey="1743b191-ca40-4225-9bc7-1112b185a5ac"&gt;@Abarna Anbu&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hello Abarna,&lt;/P&gt;
&lt;P&gt;I tried it and it works without any problems, mmmh...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11657.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11826i57BB119F3BACD5D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="11657.png" alt="11657.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;To find the reason please open in your SAP system the TAC SE37 and open the RFM RFC_READ_TABLE. In the field QUERY_TABLE enter TFDIR and add in the table options FMODE = 'R' AND FUNCNAME = 'BAPI%'&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11658.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11829iC17394D7C16B5881/image-size/large?v=v2&amp;amp;px=999" role="button" title="11658.png" alt="11658.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11659.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11830iA7FB31D42B8E6578/image-size/large?v=v2&amp;amp;px=999" role="button" title="11659.png" alt="11659.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;Execute the RFM and in a normal case you should see the same result.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11660.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11831iA8C080EB72B3C679/image-size/large?v=v2&amp;amp;px=999" role="button" title="11660.png" alt="11660.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;In your case an exception raises. I tested RFM Code Generator with and without OSS 2246160 successfully.&lt;BR /&gt;&lt;BR /&gt;Please replace the asterisk * with an percent % and try it again. Maybe an unicode character error.&lt;BR /&gt;Or it is possible that your system blocks the clause as insecure, i&lt;SPAN class="fontstyle0"&gt;f the allowlist RFC_READ_TABLE_TABL has been activated in TAC SLDW.&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks and best regards&lt;BR /&gt;Stefan&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;​&lt;/P&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Stefan Schnell&lt;BR /&gt;Senior Systems Engineer at BWI GmbH&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 07 May 2022 05:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Code-Generator-for-the-Code-Stage-to-use-SAP-RFC-Function/m-p/84181#M35357</guid>
      <dc:creator>StefanSchnell</dc:creator>
      <dc:date>2022-05-07T05:46:00Z</dc:date>
    </item>
  </channel>
</rss>

