Call function module from within a function component

  • Michael
  • Michael's Avatar Topic Author
7 years 9 months ago - 7 years 9 months ago #85 by Michael
Hello, we experience the following issue:
When calling a SAP function module (to trigger a workflow), via the 'Connect for SAP‘ Explorer all works fine. The issue occurs when translating this into Delphi code.

In the Delphi application, the components “TSAPxNWClientCompConnectionGS“ and “TSAPxNWClientCompFunctionGS“ have been added. “TSAPxNWClientCompFunctionGS“ has been linked to the connection component. The connection component itself links to a configuration INI (AliasName). AliasName has been selected.

It is not possible to switch the component via the object inspector to “Active = True”.

Could you give some further information on how I can call a function module from within a function component?
Environment: Our development system is an SAP ERP 6.0 (NetWeaver 7.40 SR 2 Edition).
thank you in advance for your help, Michael
Last edit: 7 years 9 months ago by gs_mschoch.

Please Anmelden to join the conversation.

  • Serge Volkov
  • Serge Volkov's Avatar
7 years 9 months ago #86 by Serge Volkov
Hello Michael.

We have reproduced the issue of switching "Active" in the Object Inspector.
Currently we are checking reasons and possible solutions.
We let you know as soon as possible.

Please Anmelden to join the conversation.

  • Serge Volkov
  • Serge Volkov's Avatar
7 years 9 months ago #88 by Serge Volkov
Currently, there is some restriction in the code that blocks login dialog when opening a connection from Object Inspector.
That results in the connection via Login Dialog in DesignTime can not be established now if some of parameters are missing or wrong.
We plan to fix the issue in the next release.

So far you could use the following workaround:
- define ALL connection parameters in the INI files (Alias-file or sapnwrfc.ini) or in the editor of Object Inspector, including Login/Password.
- turn off the flag "LoginPrompt"
In case ALL parameters are defined correctly (to ensure please see our Client Demo "ConnectAndPing") - the connection should be possible from DesignTime.

But actually, the typical scenario is a connecting in Runtime.
Perhaps it could be helpful to check also how it works using one of the Demo applications.
"ConnectAndPing": connection to SAP and call of "RFC_PING" using components.
"RfcCall": call of BAPI using components.

> Could you give some further information on how I can call a function module from within a function component?
Please see the Demo-s mentioned above.

Please Anmelden to join the conversation.

  • Serge Volkov
  • Serge Volkov's Avatar
7 years 9 months ago #103 by Serge Volkov
Hello Michael.

We have released the new version of Connect for SAP - 4.0.5.
It includes the mentioned fix (as well as others).
See the product page for details.

Please Anmelden to join the conversation.

Kontakt

  • gs-soft AG

    Delfterstrasse 10

    5000 Aarau

    Schweiz

    Telefon:
    +41 62 832 20 40
    E-Mail:
    Diese E-Mail-Adresse ist vor Spambots geschützt! Zur Anzeige muss JavaScript eingeschaltet sein!


  • Language