Steps To Implement User Exit CONFPM05

来源:互联网 发布:gartner魔力象限数据库 编辑:程序博客网 时间:2024/05/19 01:08

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./

原创粉丝点击