Automic Workload Automation

 View Only
  • 1.  AWA 12.3.1 - SAP CallAPI: connection impossible with SAP

    Posted Sep 14, 2020 06:21 AM
    Hello,

    We are trying to interconnect SAP with AWA through the SAP CallAPI, but the connection is rejected.

    The CallAPI process ends quickly with this log:
    20200910 / 114248.265 - U03004012 Could not register to the SAP gateway.
    20200910 / 114248.265 - U03004008 RFC-Server version '12 .3.1 + build.1570454025760 'for SAP R / 3 ended abnormally.

    We have a trace file with this message (dev_jco_rfc.trc):
    Error:> Thu Sep 10 11: 42: 21,619 <RfcException raised by system [<unknown>]:
    message: Connect to SAP gateway failed
    Connection parameters: PROGID = Qal_UC4_xxxx GWHOST = sapxxx.xxx.com GWSERV = sapgwxx

    ERROR service 'sapgwxxx' unknown
    TIME Thu Sep 10 11:42:21 2020
    RELEASE 721
    COMPONENT NI (network interface)
    VERSION 40
    RC -3
    MODULE nixxsl.cpp
    LINE 184
    DETAIL NiSrvLGetServNo: service name cached as unknown
    COUNTER 6

    return code: RFC_FAILURE (1)
    error group: 102
    key: RFC_ERROR_COMMUNICATION

    And at the level of SAP, the SAP administrator gives me this log:
    GwIParseAclEntry: ACCESS = local, internal, 10.252.xxx.xxx (3 entries, 3 ok, 0 error)
    NiStrToAddrAndPort: '10 .252.xxx.xxx '-> host = '10 .252.xxx.xxx'; serv = NULL
    NiStrToAddrMask: local nodeAddrStr: 10.252.xxx.xxx len 14
    NiStrToAddrMask: '10 .252.xxx.xxx '-> 10.252.xxx.xxx/32 (0/0)
    NiILocalCheck: SiBind failed (sirc = 7; 99-Cannot assigned requested address 10.252.xxx.xxx)
    NiLocalCheck: address 10.252.xxx.xxx is not local
    GwIParseAclEntry: CANCEL = local, internal, 10.252.xxx.xxx (3 entries, 3 ok, 0 error)
    GwIRegFillEntry: found valid entry "P TP = Qal_UC4_xxxx HOST = local, internal, 10.252.xxx.xxx ACCESS = local, internal, 10.252.xxx.xxx CANCEL = local, internal, 10.252.xxx.xxx # Tests One Automation" in line 23


    On the ucxsapc.ini file side:

    ;
    ; Automic Configuration File for Call API SAP
    ;
    [GLOBAL]
    system=AE_xxx
    language=(E,D)
    logging=/appli/awa/logs/CallAPI/sap/sapc_logg##.txt
    logCount=20
    helplib=./uc.msl
    change_Logging_Days=1
    change_Logging_MB=100
    log_To_File=1
    max_logging_kb=10000
    timeout=60

    [TRACE]
    file=/appli/awa/logs/CallAPI/sap/sapc_trace##.txt
    trccount=20
    xml=0

    [RFC]
    gwserv=sapgwxxx
    hostname=sapqlxxx.xx.com
    progid=Qal_UC4_xxxx
    rfc_Trace=0
    unicode=1

    [USER]
    client=100
    user=xxxx
    dept=xxx
    pass=xxx

    [CP_LIST]
    4217=ordo-xxx.xx.com

    SAP works hassle-free with TradeXpress.
    To connect, TradeXpress uses the same information (gwserver, hostname), but uses a user / pwd.
    However, it does not seem possible to add this in the ucxsapc.ini.

    To be precise, when you work in the other direction: AWA -> SAP via a SAP connector, there is no problem and AWA can control SAP Jobs without problems.

    Do you have any clues that can help us understand what may be a concern for the connection to work?

    Thanks for your help

    ------------------------------
    AWA 12.1.2
    Sam
    ------------------------------


  • 2.  RE: AWA 12.3.1 - SAP CallAPI: connection impossible with SAP

    Broadcom Employee
    Posted Sep 15, 2020 01:39 AM
    Edited by Yohan JANOLIN Sep 15, 2020 01:39 AM
    Hi Samuel,

    Regarding this error : ERROR service 'sapgwxxx' unknown
    Does the sapgwxxx service exist in the /etc/services file?

    If not, try to create it by adding the following line at the end of the file : 
    sapgwxxx           3600

    Regards,
    Yohan

    ------------------------------
    Solution Architect Automation
    Broadcom
    ------------------------------



  • 3.  RE: AWA 12.3.1 - SAP CallAPI: connection impossible with SAP

    Posted Sep 21, 2020 05:14 AM
    Hi Yohan,

    Thank you for your reply.
    The /etc/services file was not set with the information from the sapgw service.
    After updating this file, we re-tested and we are still in error but with a different message:

    Error:> Tue Sep 15 08: 45: 58,386 <RfcException raised by system [<unknown>]:
    message: Connect to SAP gateway failed
    Connection parameters: PROGID = Qal_UC4_Automation GWHOST = sapqlf.stef.com GWSERV = sapgw50 TRACE = 1

    ERROR partner '10 .252.168.65: sapgw50 'not reached
    TIME Tue Sep 15 08:45:58 2020
    RELEASE 721
    COMPONENT NI (network interface)
    VERSION 40
    RC -10
    MODULE nixxi.cpp
    LINE 3289
    DETAIL NiPConnect2: 10.252.168.65:3600
    SYSTEM CALL connect
    ERRNO 111
    ERRNO TEXT Connection refused
    COUNTER 6

    return code: RFC_FAILURE (1)
    error group: 102
    key: RFC_ERROR_COMMUNICATION


    On the other hand, the SAP administrator cannot find any log or trace on his server to explain the refused connection.

    We will try to redo some tests soon and recheck the SAP logs.

    ------------------------------
    AWA 12.1.2
    Sam
    ------------------------------