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

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
G
Google Developers Blog
博客园 - 司徒正美
J
Java Code Geeks
aimingoo的专栏
aimingoo的专栏
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
D
Docker
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
腾讯CDC
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
C
Check Point Blog
M
MIT News - Artificial intelligence
Jina AI
Jina AI
I
InfoQ
雷峰网
雷峰网
The Cloudflare Blog
美团技术团队
Engineering at Meta
Engineering at Meta

博客园 - 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