惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

腾讯CDC
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 叶小钗
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
The Cloudflare Blog
爱范儿
爱范儿
阮一峰的网络日志
阮一峰的网络日志
WordPress大学
WordPress大学
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
Last Week in AI
Last Week in AI
Jina AI
Jina AI
V
V2EX
罗磊的独立博客
V
Visual Studio Blog
A
About on SuperTechFans
IT之家
IT之家
P
Proofpoint News Feed
B
Blog
博客园 - Franky
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
Y
Y Combinator Blog

博客园 - Steveson

(ZZ:From BaiBoyd)使用Query实现事务代码与后台配置菜单互查 User Fields in PR/PO Release Procedure 同一公司代码下工厂间的库存转储 MM配置的节点的快速入口 Setting for storage location(增加Storage Location) 上线时的相关检查清单(ZZ) SAP 可配置物料的创建过程及步骤 SAP实施Roll out项目经验谈(二) SAP实施Roll out项目经验谈(一)(ZT) SAP ECC6 BT 下载 Stock 心得 SAP IDES、DEV、QAS、PRD都是什么含义 ? SAP 月结操作 SAP MM报表集 公众演讲小秘技 Lesson 48 Planning a share portfolio 中国谚语的英文翻译 MM T-code大全 LSMW批处理使用方法(1)_总述及操作界面说明(ZZ)
User Exit for Release Procedure (PR)
Steveson · 2010-04-27 · via 博客园 - Steveson

User Exit for Release Procedure (PR)

By Willem Hoek  http://www.sap123.com/a/74/


Sometimes either the logic to be used is to complicated to use normal strategies or the field to be used in strategy is not available in Communication Structre (see transaction se12 - table CEBAN). In that case user exit can be used.

Example, lets say we want the following strategy:

For all PR's against a cost centre (account assignment K), base strategy on Cost Centre number and Document Type.

For all PR's not against a cost centre, base stretegy on Plant (in PR) and Document Type.

To set up:

  • Create 2 characteristics:
    one for doc type (linking it to CEBAN-BSART)
    one linking to user define field, say ceban-usrc1
  • Activate enhancement m06b0002 in transaction CMOD
  • Write ABAP code (user exit) in program ZXM06U13 in the case of Purchase Requisitions

When you create / change the PR, the characteristic will get value of ceban-usrc1 from user exit.

This is sample code of user exit

**&---------------------------------------------------------------------

**

**& Include           ZXM06U13

**&---------------------------------------------------------------------

case i_ceban-knttp.

 when 'K'.

    e_ceban-usrc1 = i_ceban-kostl.

 when others.

    e_ceban-usrc1 = i_ceban-werks.

endcase.

e_ceban-bsart = i_ceban-bsart.

 

Activate enhancement will activate the user exit.

Notes based on SAP ECC 5.0