Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAP trigger "When a message is received" does not register in SAP when using SNC #1288

Open
JWScheijgrond opened this issue Jan 30, 2025 · 1 comment

Comments

@JWScheijgrond
Copy link

Describe the Bug

We have multiple logic apps connecting to SAP and have started to add connections that use SNC.

We have a working SNC connection (including the PSE) that is able to send RFC messages. When we try to use a SapTrigger nothing happens and nothing is logged. We have set the logging to Level4 and Verbose. We see the connection check in the logging but after that nothing happens.

The workflow when saved or after a restart or stopping and starting the logic app does nothing. If we change the connection to not use SNC the workflow registers with SAP. And we see logging.

Plan Type

Standard

Steps to Reproduce the Bug or Issue

  1. Create a SAP PSE and add this to the environment
  2. Create a new workflow
  3. Add the SAP Trigger
  4. Create a new SNC SAP connection (this is seen in the logging and is validated)
  5. save the workflow

The workflow does not register with SAP....
When using a non SNC connection then it works.

Workflow JSON

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "actions": {
            "Response": {
                "type": "Response",
                "kind": "Http",
                "inputs": {
                    "statusCode": 200
                },
                "runAfter": {}
            }
        },
        "contentVersion": "1.0.0.0",
        "outputs": {},
        "triggers": {
            "When_a_message_is_received": {
                "type": "ServiceProvider",
                "inputs": {
                    "parameters": {
                        "idocFormat": "SapPlainXml",
                        "DegreeOfParallelism": 1,
                        "ReceiveIDocsWithUnreleasedSegments": true,
                        "GatewayHost": "correct gateway host",
                        "GatewayService": "4800",
                        "ProgramId": "correct program id",
                        "SncPartnerNames": "p:CN=correct partner, O=Correct org, L=Correct, SP=correct, C=NL"
                    },
                    "serviceProviderConfiguration": {
                        "connectionName": "sap",
                        "operationId": "SapTrigger",
                        "serviceProviderId": "/serviceProviders/sap"
                    }
                }
            }
        }
    },
    "kind": "Stateful"
}

Screenshots or Videos

No response

Additional context

Connection.json (redacted)

{
  
    "serviceProviderConnections": {
       "sap": {
            "displayName": "sap-snc",
            "parameterValues": {
                "applicationServerHost": "correct host",
                "applicationServerService": "4800",
                "applicationServerSystemNumber": "00",
                "authenticationType": "Snc",
                "client": "correct client",
                "language": "",
                "logonType": "ApplicationServer",
                "sncMyName": "p:CN=correct name, O=correctorg, L=correct, SP=correct, C=NL",
                "sncPartnerName": "p:CN=correct parther, O=correct, L=correct, SP=correct, C=NL",
                "sncPassword": "@appsetting('sap_sncPassword')",
                "sncQop": "Default",
                "sncSso": "Off",
                "sncUserName": "correct username"
            },
            "serviceProvider": {
                "id": "/serviceProviders/sap"
            }
        },
        "sap-intern": {
            "displayName": "sap not snc",
            "parameterValues": {
                "applicationServerHost": "@{appsetting('sapServer')}",
                "applicationServerService": "3000",
                "applicationServerSystemNumber": "@{appsetting('sapSysNr')}",
                "authenticationType": "Basic",
                "client": "correct client",
                "logonType": "ApplicationServer",
                "password": "@appsetting('sapPassword')",
                "userName": "@appsetting('sapUser')"
            },
            "serviceProvider": {
                "id": "/serviceProviders/sap"
            }
       
    }
}
@sebastianmeyer-1
Copy link

Exactly the same behavior at one of our customer. So +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants