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

转 Using "Check Function Module" in Workflow

 
阅读更多

Using Check Function Module in SAP Workflow

By Geethanjali K, Kaavian Systems from link

 

Following is a custom function module created for our demo purpose, which will check the conditions before triggering the workflow. 

FUNCTION ZGEE_SALES_ORG.
*"----------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(OBJTYPE) TYPE  SWETYPECOU-OBJTYPE
*"     VALUE(OBJKEY) TYPE  SWEINSTCOU-OBJKEY
*"     VALUE(EVENT) TYPE  SWETYPECOU-EVENT
*"     VALUE(RECTYPE) TYPE  SWETYPECOU-RECTYPE
*"  EXPORTING
*"     REFERENCE(RESULT) TYPE  C
*"  TABLES
*"      EVENT_CONTAINER STRUCTURE  SWCONT
*"  EXCEPTIONS
*"      NOT_TRIGGERED
*"----------------------------------------------------------------
TABLES: VBAK.
  DATA VKORG LIKE VBAK-VKORG.
  SELECT SINGLE VKORG INTO VKORG
     FROM VBAK WHERE VBELN = OBJKEY.
  IF VKORG = '3000'.
    RAISE NOT_TRIGGERED.
  ENDIF.
ENDFUNCTION.

Now go to transaction SWE2 and insert your object type, event, and the receiver type. 

  Double click on your entry, following screen appears: 

Provide the name of the customized function module name created earlier in the check function module field. 

Now workflow is triggered only when the sales order is created with the sales organization 3000.

分享到:
评论

相关推荐

    Windows Workflow Function 高级编程

    扫描书,不含示例代码,代码网上很多,自己下

    Beginning WF: Windows Workflow in .NET 4.0

    Beginning WF: Windows Workflow in .NET 4.0 By Mark Collins Publisher: Apress 2010 | 500 Pages | ISBN: 1430224851 | PDF | 4 MB Windows Workflow Foundation is a ground-breaking addition to the core ...

    Oracle Order Management Using Oracle Workflow in Oracle Order Ma

    Oracle Order Management 使用 Oracle Workflow 在 Oracle Order Management 11i 中 Oracle Order Management 是一个关键的企业资源计划(ERP)模块,用于处理企业的订单生命周期管理。它提供了全面的功能,从订单...

    pro wf windows workflow in dot net 3.5

    《Pro WF:Windows Workflow in .NET 3.5》是一本深入探讨Windows Workflow Foundation (WF) 技术的专业书籍,该技术是微软.NET Framework 3.5中的一个重要组成部分。WF提供了一种在应用程序中实现工作流逻辑的方式...

    Windows Workflow in .NET 4 PDF和代码

    本教程将深入探讨Windows Workflow in .NET 4,包括它的核心概念、设计模式以及如何在实际项目中应用。 WF提供了一种声明式的方式来定义和执行业务逻辑,使得流程的创建和维护变得更加直观。通过WF,开发人员可以将...

    WORKFLOW AND PARALLELEXTENSIONS IN .NET FRAMEWORK 4

    ### WORKFLOW AND PARALLELEXTENSIONS IN .NET FRAMEWORK 4 #### Microsoft TPL 和 Windows Workflow Foundation 整合使用 在 .NET Framework 4 中,引入了新的并行编程模型来支持多线程操作,这其中包括了 **...

    Using Domino Workflow

    ### 使用Domino Workflow的核心知识点解析 #### 一、Domino Workflow简介 - **定义与概述**:“Domino Workflow”是一种企业级工作流解决方案,旨在帮助组织优化业务流程管理。它集成于IBM Lotus Domino/Notes平台...

    Beginning WF Windows Workflow in .NET 4.0.pdf

    ### 关于《Beginning WF: Windows Workflow in .NET 4.0》的知识点解析 #### 一、概述 《Beginning WF: Windows Workflow in .NET 4.0》是一本专为希望学习并掌握Windows Workflow Foundation(WF)技术的开发人员...

    ts-internal-module-workflow:建立在 gulpnode 之上的 TypeScript 工作流,旨在大规模编写多个“项目”的内部模块。 (并修复“转到定义”!)

    (并修复“转到定义”!) 通过采用此工作流程,您将获得; TypeScript 库项目的概念! (见下文‘用法’) gulp-typescript的增量构建所有项目的通用监视/构建任务。 项目构建顺序 - gulp all 。 BrowserSync设置...

    Pro WF - Windows Workflow in .NET 4.pdf

    Pro WF: Windows Workflow in .NET 4 provides you with the skills you need to incorporate WF in your applications, using a lively tutorial style with each example illustrated in C#. This book gets you ...

    Beginning WF Windows Workflow in .NET 4.0 文字版PDF及源码

    " Beginning WF Windows Workflow in .NET 4.0" 是一本针对初学者的指南,旨在帮助读者从零开始深入理解WF技术,并通过实例学习来达到精通的程度。 这本书可能涵盖以下关键知识点: 1. **WF基础**:介绍WF的基本...

    workflow-in-mvc-simple-demo

    本项目"workflow-in-mvc-simple-demo"旨在提供一个简单的示例,展示如何将工作流集成到MVC应用中,以实现更加灵活和可维护的业务逻辑。 首先,让我们深入了解一下工作流(Workflow)。工作流是一系列按特定顺序执行...

    Laravel开发-workflow

    public static function createDefinition(): Workflow { $definition = (new DefinitionBuilder()) ->addPlace('created') ->addPlace('paid') ->addPlace('shipped') ->addTransition(new Transition('pay'...

    TMS Workflow Studio v1.9.0.0 Full Source

    Improved : Better performance for saving/loading workflow definitions, instances and tasks when using ADO Fixed : Workfklow blocks not displayed when language different than English was used Fixed : ...

    Laravel开发-laravel-workflow

    $workflow = (new Factory)->make('article', function (Definition $definition) { $definition->initial('draft') ->transitionTo('pending', 'submit_for_review') ->transitionTo('published', 'approve') -...

    Pro.WF.Windows.Workflow.in.NET.4.0.pdf

    《Pro.WF.Windows.Workflow.in.NET.4.0》是一本深入探讨.NET 4.0框架下Windows Workflow Foundation(WF)技术的专业书籍。WF是微软提供的一种用于构建长期运行的业务流程的应用程序框架,它允许开发者创建和管理...

    (2007 Apress)Pro WF Windows Workflow in .NET3.0.pdf

    根据提供的文件信息,本书《Pro WF: Windows Workflow in .NET 3.0》由Bruce Bukovics撰写,是一本深入探讨Windows Workflow Foundation (WF)在.NET 3.0中的应用的专业书籍。以下是从该书标题、描述及部分展示内容中...

Global site tag (gtag.js) - Google Analytics