Steps To Implement User Exit CONFPM05

本文介绍如何在SAP中实现一个用户退出,确保在保存生产订单确认之前已执行特定物料移动类型261。通过创建用户退出并进行相应的编程,系统会在未完成必要步骤时显示错误消息。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Real Work Ticket Raise :
We need to perform a user exit for the transaction colln and that exit has to be performed while we save the production order confirmation in colln. Now the concept is as follows: Before we save the confirmation in colln,the user has to check the movement type 261 in transaction mb1a(261 Consumption for order from warehouse) and then save it, once he has done this then the user can go to co11n and save the production confirmation. Now we need to use the user exit in such a way that it has to show an error message while saving the confirmation in co11n if the user has not performed the movement type 261 in transaction mb1a.

By: Donny

Based on your requirements, here's what You have to do :

1. Goto T-Code *CMOD*
2. Enter project name (example : *ZCO11*)
3. Click Create
4. Enter Short text that explain the user exit you want to create (example : "Production order validation").
5. Save, enter the package and TR Number
6. Click *Enhancement assignment*s
7. Enter *CONFPM05* in the input box under title Enhancement
8. Save
9. Click *Components*
10. Double Click *EXIT_SAPLCORF_005*
11. Double click on the word *ZXCOFU05* on *INCLUDE ZXCOFU05*.
12. Just press enter, ignore the Warning message "Program names ZX... are reserved for includes of exit function groups".
13. On the popup question to create include *ZXCOFU05, press Yes. *Enter the appropriate package and TR.
14. The next step is a bit tricky, You have to ask your functional consultant which field on table CAUFV that was updated by performing MB1A, because the user exit only provide 2 structure : CAUFVD_TAB and AFRUD_TAB to be used in the coding.
So the coding should look a little like this (Change the <<fieldname>> and <<something>> with the information from your functional consultant) :
/ if CAUFVD_TAB-<<fieldname>> EQ <<SOMETHING>>.
message "Error" type 'E'.
endif./

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值