|
Steps To Implement User Exit CONFPM05
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./
Get help for your ABAP problems
Do you have a ABAP Question?
ABAP Books
ABAP Certification,
BAPI, Java, Web Programming, Smart Forms, Sapscripts Reference Books
More ABAP Tips
Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.sap-img.com
All the site contents are Copyright © www.sap-img.com
and the content authors. All rights reserved.
All product names are trademarks of their respective
companies. The site www.sap-img.com is in no way affiliated with
SAP AG.
Every effort is made to ensure the content integrity.
Information used on this site is at your own risk.
The content on this site may not be reproduced
or redistributed without the express written permission of
www.sap-img.com or the content authors.
|