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

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
MongoDB | Blog
MongoDB | Blog
博客园_首页
博客园 - 三生石上(FineUI控件)
博客园 - 聂微东
B
Blog RSS Feed
D
Docker
IT之家
IT之家
大猫的无限游戏
大猫的无限游戏
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
罗磊的独立博客
Recent Announcements
Recent Announcements
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
A
About on SuperTechFans
The GitHub Blog
The GitHub Blog
G
Google Developers Blog
V
V2EX
量子位
雷峰网
雷峰网
月光博客
月光博客
云风的 BLOG
云风的 BLOG
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
Tailwind CSS 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