`
evangxli
  • 浏览: 230892 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论

转 ALE - Error handling through Workflow

阅读更多

ALE - Error handling through workflow

By  Abhijit Daptary & Siddharth Samal, Capgemini India
From link.

Pre-requisites. 
It is assumed that the reader of this article has some knowledge in SAP workflow BOR objects and ALE Idoc process like process code, Partner Profile etc. 

Description 

Here, we will be discussing in details the Error handling of an Inbound Idoc through triggering an event, which in turn will be triggering a workflow attached to the workflow. 

Steps:-

  1. Create custom BOR object with the events, Start and Stop event
  2. Create a workflow for the error handling, like generating a notification whenever an error occurred in the Inbound Idoc.
  3. Creation of Function Module and attachment with the Process Code
  4. Create the settings for the Inbound Process of the Idoc through the Process Code.

Creation of BOR objects. Go to the transaction SWO1.
 

Enter a name for the Object type and click ‘CREATE’ button for creating the custom BOR object. 

Enter the details required for creating the BOR objects... 

 

Create the Key fields and events of the BOR object.

For creating the Key fields place the cursor on the Key fields and Click on the Create Button

 

Create events for triggering the workflow and stopping the workflow.

For creating the event place the cursor on the EVENTS and Click the create button like Key fields.

Create two events.

Enter the event name description etc and proceed further to create it. 

 

Similarly create another event for ending the Workflow in the similar manner like that created earlier. 

 

Now, Generate the BOR object through the generate button

 

Release the EVENTS and subsequently release the BOR object. 

 

After the creation of BOR object

Create a workflow for the generation of notification whenever an error is reached in the Inbound Idoc.

Execute the transaction SWDD. 

 

Click on the CREATE button for creating the workflow for error handling.

Choose the Step type to be inserted for the notification like here we are using Send Mail option for sending a mail to the user whenever any error occurred.

Activate the Workflow and test it whether it is working as per the requirement.

After the successful completion it is required to attach the workflow with the event.

Go to the Header section (Denoted by CAP).

 

Go to the Start Events TAB.              

Enter the details of the event with which the workflow should be linked like the category, BOR object type and the event with which that should be linked.

Enter here the BOR object that has been created and give the name of event created for starting the workflow.

Click on the Binding Button for generating the binding between the event and the workflow.  

Generate the binding and click OK button to save the binding.

Click on Activate / deactivate button for activating the linkage.

After the successful linkage the following sign will appear on the workflow..... 

This shows that the workflow has been linked to the event and it will be triggered whenever that particular event will be triggered. 

After the creation and successful linkage of workflow with the event it is required it is required to generate a function module and attached it to the process code. 

Go to SE37 transaction and copy a standard process code function module to a custom one. Do no delete any parameters from the function module as the SAP standard program itself is calling this. 

In that function module do the required validation and whenever the validation fails set a standard parameter ‘WORKFLOW_RESULT’ to 9999 from within the function module, otherwise normally proceed to set the status to 53.

After the creation of function module it is required to attach it to the process code and corresponding attached to the message type at the Partner Profile stage.

The process code is being created through the transaction WE42

Go to the change mode and click the New Entries button for creating new process code. 

Enter the Process Code Name, description and choose the processing type as Processing by function module. Click on the extension button of Identification.

The details for the of the Process Code after clicking the identification button will be  

Whenever idoc arrives into the Destination system then the standard SAP triggers the Process code attached to the Message type in the partner profile. The partner profile is being maintained in the transaction WE20

 

Since, it is and inbound scenario so the message type and the corresponding process code will be maintained for the Inbound Parameters. 

Click on Create Inbound Parameters button for creating new Inbound Message type and the corresponding message type. 

Enter the process code for the corresponding message type. 

 

Click SAVE button for saving the changes. 

Whenever the IDOC arrives into the target system, it checks the partner profile and finds the corresponding process code. The process code is being linked with the function module through which the IDOC is required to be processed.

分享到:
评论

相关推荐

    PyPI 官网下载 | multi-agent-ale-py-0.1.0.dev0.tar.gz

    《PyPI官网下载:探索multi-agent-ale-py-0.1.0.dev0.tar.gz中的多智能体强化学习世界》 在Python的世界里,PyPI(Python Package Index)是开发者们获取和分享软件包的重要平台。本次我们将深入探讨一个名为`multi...

    AN/ALE-39 训练模拟软件

    AN/ALE-39 训练模拟软件是美军用于训练其对抗电子干扰系统操作员的重要工具。这款模拟软件旨在提供一个安全且可控制的环境,让军事人员可以在不实际使用昂贵且复杂的硬件设备的情况下,熟悉并掌握AN/ALE-39系统的...

    ale-c.dll (资源名称不得少于十一字?)

    标题 "ale-c.dll (资源名称不得少于十一字?)" 提到的是一个动态链接库(DLL)文件,ale-c.dll,通常在编程中用于提供特定的功能模块。在本例中,它似乎与一个名为 "atari-py" 的库有关,这个库是Python编程语言中的...

    Ale-0.0.4-py3-none-any.whl.zip

    标题 "Ale-0.0.4-py3-none-any.whl.zip" 提供的信息表明,这是一个包含 Python 软件包的压缩文件。在 Python 的生态系统中,".whl" 文件是预先编译的二进制分发格式,用于简化安装过程。这种格式解决了 Python 的...

    Ale-0.0.3-py3-none-any.whl.zip

    标题 "Ale-0.0.3-py3-none-any.whl.zip" 提供的信息表明,这是一个包含 Python 软件包的压缩文件。在 Python 的生态系统中,".whl" 文件是预先编译的二进制包,用于简化安装过程。这种格式的文件通常包含了已编译的 ...

    Ale-0.2.0-py3-none-any.whl.zip

    标题 "Ale-0.2.0-py3-none-any.whl.zip" 提供的信息表明,这是一个包含 Python 软件包的压缩文件。在 Python 开发中,`whl` 文件是预先编译的二进制分发格式,用于简化安装过程。这种格式解决了 Python 的 `pip` ...

    ale-client-java_1.3_0002.zip_ALE_RFID middleware_ale client ja_r

    本文将围绕“ale-client-java_1.3_0002.zip”这个压缩包,详细解析ALE RFID中间件和其对应的Java客户端。 首先,"ALE RFID middleware" 是一种中间件,它扮演着RFID硬件与应用软件之间的桥梁角色。中间件负责处理...

    ale-idoc-edi.ppt

    ALE(Application Linking & Enabling)是SAP系统中用于集成和数据交换的关键技术,它允许不同的业务应用程序之间进行通信和交互。ALE的核心目标是确保分布在多个系统中的功能和数据能够有效地、无缝地共享和传输。 ...

    ale-c.dll文件

    ale_c.dll文件

    An ALE-LDG method for directly solving Hamilton-Jacobi equations

    Hamilton-Jacobi方程的ALE-LDG方法,夏银华,,本文构造了Hamilton-Jacobi 方程的ALE局部间断有限元方法。证明了该数值格式一维时的最优收敛阶,和二维时的次优收敛阶。

    短波3G-ALE信号链路层数据编码分析.pdf

    "短波3G-ALE信号链路层数据编码分析" 在本文中,我们将对短波3G-ALE信号链路层数据编码进行详细的分析。短波3G-ALE信号是美军新一代短波通信信号,与上一代2G-ALE信号相比,在通信链路层采用了多重数据编码方式,极...

    Python库 | ale_py-0.7.3-cp39-cp39-macosx_10_15_x86_64.whl

    资源分类:Python库 所属语言:Python 使用前提:需要解压 资源全名:ale_py-0.7.3-cp39-cp39-macosx_10_15_x86_64.whl 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    ale-news-atdd

    结合"ale-news-atdd"这个项目标题,我们可以推断这是一个基于Java技术栈的新闻网站项目,它运用了ATDD的方法来确保软件质量,特别是对于用户贡献内容的处理。 【描述】中提到,ALE News 是一个由用户生成内容的新闻...

    Adam-Ale-WebApp

    "Adam-Ale-WebApp" 是一个专门为自然灾害受害者设计的饮用水位置标签系统。这个项目的主要目的是在灾难发生后,帮助受灾人群找到安全的饮用水来源,从而保障基本的生命需求。通过利用现代技术,该项目旨在提高救援...

    ale-sensible:合理,有效的ALE的漂亮,快速响应和流畅的默认设置,可让您在30秒内开始

    标题提到的 "ale-sensible" 是 ALE 的一组默认设置,旨在提供一种美观、快速响应且流畅的体验,让用户几乎可以立即开始使用 ALE。 **1. ALE的特性:** - **异步操作**:ALE 使用异步方式运行检查器,因此不会阻塞...

    鹭宫 数字温度控制器 ALE型.pdf

    控制器的型号包括ALE-SD11-011、ALE-SD12-011、ALE-SD13-011、ALE-SD14-011、ALE-SD21-011、ALE-SD22-011、ALE-SD23-011以及ALE-SD24-011,这些型号在功能上有所不同,分别对应不同的功能组合和参数设置。...

    ale-mouraboni

    标题“ale-mouraboni”看起来像是一个人名或者项目的名称,但没有足够的上下文来确定其具体含义。描述中的“你好呀 :waving_hand:”是友好的问候,并不提供任何关于IT知识点的信息。标签部分为空,也没有提供任何...

    BODA OSCAR ALE-开源

    【标题】"BODA OSCAR ALE-开源"与【描述】"视频歌曲"结合来看,这似乎是指一个开源项目,该项目可能涉及到音乐、视频编辑或者是一个与婚礼相关的开源软件,尤其是考虑到“BODA”在西班牙语中是“婚礼”的意思,而...

    ale-website-netcore:situio web realizado con .net核心和天蓝色

    标题中的“ale-website-netcore:situio web realizado con .net core y Azure”指的是一个基于.NET Core框架和Azure云服务构建的Web应用程序项目。这个项目可能是由C#编程语言实现的,因为C#是.NET Core的主要开发...

    ale-pi.github.io:我的网站是使用Hugo建立的

    【标题】:“ale-pi.github.io:我的网站是使用Hugo建立的” 【描述】:这个项目揭示了网站“ale-pi.github.io”是通过一个名为Hugo的静态站点生成器构建的。Hugo是一种快速、高效且易于使用的开源工具,它允许...

Global site tag (gtag.js) - Google Analytics