【问题标题】:In SAP B1 Hana Transactions Notifications, is it possible to exclude the Service Layer from its action?在 SAP B1 Hana Transactions Notifications 中,是否可以将服务层从其操作中排除?
【发布时间】:2021-12-27 21:14:33
【问题描述】:

对于 SAP B1 HANA,我需要知道从执行事务通知或 TN PostNotification 中排除服务层的最佳方法。

提前致谢!

【问题讨论】:

  • 请提供足够的代码,以便其他人更好地理解或重现问题。

标签: hana service-layer sapb1


【解决方案1】:
IF (:error != 0) THEN

    --- Exclude Service Layer --
    DECLARE notServiceLayer SMALLINT DEFAULT 0;
    SELECT COUNT(*) INTO notServiceLayer
    FROM "M_SESSION_CONTEXT"
    WHERE "M_SESSION_CONTEXT"."CONNECTION_ID" = CURRENT_CONNECTION
    AND "M_SESSION_CONTEXT"."KEY" = 'APPLICATION'
    AND "M_SESSION_CONTEXT"."VALUE" NOT LIKE '%ServiceLayer%';
    
    -- Errors are only shown when they're NOT requests from the SAP B1 Service Layer:
    IF notServiceLayer > 0 THEN
        SELECT :error, :error_message FROM "DUMMY";
    END IF;

END IF;

【讨论】:

    猜你喜欢
    • 2021-08-07
    • 1970-01-01
    • 2021-10-30
    • 2019-04-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-19
    相关资源
    最近更新 更多