1、2, Transfer files which should be compared with the combinations defined in Customizing.3, 如果传递的数据和定制功能中定义的数据组合一致,则需提供一个处理程序,用来在Message Control中进行调用, FeaturesSAP System中的条件技术是用来制定所需的数据组合。如果当前的应用数据和定制功能中定义的条件一致,message determination是成功的,并且会创建一个默认消息(建议的消息)。如果应用支持,也可以改变默认(建议的)的消息(processed) 然后,消息马上执行或者
2、在定义的时间执行。消息的处理状态存储在一个状态记录中。如果应用支持,还会有处理日志。 Message Control scenarios: The credit limit has been exceeded in a sales order, whereupon the block indicator is assigned. The Message Control should respond to the block indicator by printing out this customers account history. A document is released and r
3、eceives a corresponding status in its data record. The Message Control should thereupon issue a release message.There are also applications which can switch off message determination and directly generate the message default.Message Control and connection to the SAP applicationFor more information o
4、n Message Control see Message Control Structure.You determine the rules in Customizing by which the system accesses the individual condition records. For more information see Message Control Customizing.You define concrete messages as condition records in the application. For further information, se
5、e Define messages as condition records in the applicationIf, as a developer, you want to install Message Control in an application, you can find additional information under Message Control Connection to the Application.ConstraintsThe Message Control only supports specific transmission media. For mo
6、re information, see Transmission Media.关于message determinationMessage determination是一个对象,检查应用数据是否和条件记录匹配。An object that checks whether the application data (for example, datadetermined in Customizing) corresponds to the condition records.Transmission Media DefinitionThe transmission media determine
7、the type of processing. The following transmission media are available:1 Print output2 Fax4 Telex5 Sending externally with a communication strategy6 EDI: The partner must be defined here as an EDI partner (see Partner profiles)7 Sending a mail8 Special function9 Workflow eventA Distribution (ALE) Th
8、e partner is derived from the distribution modelT Workflow taskYou can use the special functions for your own programs. For example, you could call a warehouse management system via CPI-C (Common Programming Interface-Communication).Table TNAPR contains information about which processing programs sh
9、ould be transferred for the relevant transmission medium for the dispatch of the message. New processing also requires corresponding entries. Messages which are to be sent as mails are linked with a program which calls the Business Communication Interface. Messages which are to be printed or faxed a
10、re linked with a program which contains both a call to the program which determines the print data and the name of the SAPscript form to be used. Messages which are to be processed via the communication strategy are linked to a program which contains the Include RVADOPFO for evaluation of this strat
11、egy.Message Control Structure可以认为是系统中的一个处理逻辑,Message Control可以被分割成几个部分。对于配置来说,它包含了所谓的条件元素。组合的,这就是Message Control Structure。Use 应用程序使用Message Control自动从数据源(partners,company codes)产生消息,并且在预定好的时间发送消息(for instance in paper format or as an e-mail)StructureCondition Components and Condition Records The in
12、dividual objects of the Message Control which are relevant in the message determination process and can be configured in Customizing or the application transaction are explained. Message Determination本部分描述的是如何评估条件组件层次,以及如何访问条件表。不同的场景,在定制条件组件时可以通过特殊的策略来实现,被用作例子。This section describes how the conditio
13、n component hierarchy is evaluated and how the condition tables are accessed. Different scenarios, which can be realized by special strategies when Customizing the condition component, are used as examples.Message Default and Message EditingThe result of message determination is a message default th
14、at can be edited manually in the application, if this function is available in the application. If not, any messages found are forwarded directly for automatic processing.message determination的结果是一个默认的消息,在应用中,它可以被手动编辑,如果这个功能在应用中可用。如果不可用,任何发现的消息都被直接转到自动处理。Message Processing这节介绍找到的消息怎么被执行。Requirements
15、 for ApplicationsThe Message Control is addressed by application programs via a defined interface. This section explains the various functions which must be available to the application.Condition Components and Condition RecordsThe tool that Message Control uses for message determination is well kno
16、wn in other applications (for example price determination and account determination in SD): condition technique. The condition technique uses condition components that determine with which method and with which application data the message is searched for. The following two diagrams show the hierarc
17、hy for the condition components。Condition Components: Sample Hierarchy General HierarchyThe individual condition elements are:Application CodeField Catalog for Condition KeysProcedureOutput TypeAccess SequenceCondition TableCondition Access Sample Hierarchy General HierarchyApplication CodeAn applic
18、ation code is assigned to each individual application which uses Message Control (for example EF for Purchasing, V1 for Sales, MR for Invoice Verification).每个使用Message Control的独立应用都分配有一个应用码。If an application calls Message Control, the application code is given first and the application can therefore
19、 be identified. The current application data is transferred in communication structures.如果应用调用Message Control,应用码首先被给出,然后应用可以被识别。当前应用数据被传输到通信结构中。Field Catalog for Condition KeysThe field catalog contains all fields that can be selected as keys for Message Control condition tables. One application fi
20、lter per application is created from this field catalog. This filter determines which fields can be selected for the relevant application (for example V1 for Sales).Field catalog包含了所有的字段,对于Message Control条件表,它们可以被作为key。每个应用的应用过滤器都是从这个field catalog中创建的。这个过滤决定了,对于相关的应用,哪些字段可以被选择。Defining the condition
21、 tableWhen Create Condition Table you select the key fields from the application filtered field catalog which should be used in message determination for table access.Defining the application filterIn order to define or extend the application filter, maintain Customizing table T681F: Use, for exampl
22、e, transaction NACE (expert mode) and choose Edit Field Catalog. Select new fields from the communication structures for your application.为了定义或者扩展应用过滤器,维护定制表T681F:使用NACE(专家模式),选择编辑-字段目录。从通信结构中为你的应用选择新的字段。Extend field catalogIf you want to define a condition field for your application that does not y
23、et exist in the field catalog, then before generation of the condition tables or the access sequences you must extend the field catalog (valid for all applications).如果想为应用定义一个条件字段,但是这个字段在字段目录中尚不存在,那么在条件表或者访问顺序产生之前,必须扩展字段目录(对于所有应用都有效) The field catalog for the message determination has the structure
24、KOMB. This name is stored in table T681V. The uses of the condition technique (pricing, message determination, etc.) and their attributes are managed here. Every use of the condition technique has its own field catalog.ProcedureA procedure (for example V10000) is a pool of output types (for example
25、inquiry outputs, order outputs; an output type is also called a condition type). 过程(例如 V10000)是一个输出类型池(例如:查询输出,订单输出;输出类型也叫做条件类型)An application determines one procedure from the current document type, which it transfers to message determination. A procedure is therefore a collection of output types f
26、rom an application perspective.从传递给message determination的当前document类型,应用决定了一个过程。因此,从应用的角度看,过程是一个输出类型的集合。在定制时,分配输出类型到过程。In Customizing you allocate output types to the procedure. For more information see Defining the Procedure在条件组件层级中,过程是最高的元素。无论何时过程被调用,所有的输出类型(下个层级level)都要被搜索。The procedure is the hi
27、ghest element in the condition component hierarchy. Whenever a procedure is called, all output types (next hierarchy level) are searched for.Defining the Procedure1, 从下边的2个中任选一个:1) 在有关的应用中,从定制中选择合适的活动2) 使用事物:NACE,以下将描述这种。2, 选择应用,然后选择Edit-Procedures3, 在编辑模式,选择Edit-New entries。在Control中,分配过程的输出类型4, 对于
28、输出类型,可以使用ABAP条件作为退出关键字。在事物:V/27中定义新的条件。如果条件满足,那么系统不再搜索这种输出类型的消息。You can also define conditions in Defining Access Sequences5, 保存修改。 下图显示的是:过程V10000是为订单消息生命的。应用定制定义了过程何时被应用。在过程V10000中声明的输出类型。Subsequent explanations will concern output type BA00 (order confirmation)。在过程定义的计数器不影响message determination,因
29、为过程总是作为整体来处理的。在上面的例子中,条件2代表:销售凭证必须检查完整性。只有当凭证完整时才生成消息。 通过V/27 可以查看条件2的代码The code is:1 form_kobed_002.2 * Falls Verkaufsbeleg vollstndig ist, soll Nachricht erzeugt werden3 sy-subrc = 0. 4 if komkbv1-uvall ne C. 5 sy-subrc = 4. 6 exit. 7 endif. 8 if komkbv1-costa ne space and 9 komkbv1-costa ne 10 sy-subrc = 4. 11 exit. 12 endif. 13 if not komkbv1-lifsk is initial. 14 if komkbv1-lifsk ne tvls-lifsp. 15 select single * from tvls where lifsp = komkbv1-lifsk. 16 endif. 17 i
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1