09-10-2008 12:08 PM
Hi friends,
I would like to know how to attach User exit program to standard program/Transaction.
We are using KO01 Create Internal order in which we want to control the naming convention of the Internal order numbers.
The Number range has been already defined as external in the Order Type.
For eg.
We have a policy of prefixing the country code before the internal order number.
Order belongs to UK start with UKXXXXX. The system should give an error to user while creation if UK is not entered.
Please help.
Regards
Tajammul
09-10-2008 12:14 PM
Try
Transaction Code - KO01 Create Internal Order
Exit Name Description
COOPA002 Customer function for master data maint. - internal orders
COOPA003 User-Defined Fields in the Order Master
COOPA004 Customer function: Print order master data
COOPA_01 Customer check modules for internal orders
Good Luck !
^Saquib
09-10-2008 12:14 PM
Try
Transaction Code - KO01 Create Internal Order
Exit Name Description
COOPA002 Customer function for master data maint. - internal orders
COOPA003 User-Defined Fields in the Order Master
COOPA004 Customer function: Print order master data
COOPA_01 Customer check modules for internal orders
Good Luck !
^Saquib
09-10-2008 12:16 PM
Hi,
look at this SAP-Docu:
Develop Enhancements for Order Master Data
The following SAP enhancements are available for internal orders:
COOPA_01 Customer-specific checking modules for internal orders
You can incorporate your own checks (also authorization checks) at the following points in internal order processing:
Master data maintenance (creating, changing, and displaying an internal order)
In Reporting
If a commerical transaction is being carried out for an internal order.
COOPA003 Enter user-defined master data fields
The data for orders is stored in database tables that are defined by SAP. Using this enhancement, you can include user-defined fields in the table of orders (table AUFK). For the new fields, you can use the same functionality as for working with the master data fields delivered by SAP.
COOPA004 Form definition for printing internal orders.
The CO order data (master data and settlement rules) is printed using a SapScript form.
In the standard case, you use the form "CO_ORDER" for printing. You can define more forms and store a form for each order type.
Using this enhancement, you can specify in even more detail when a particular form should be used for printing order data. You can also use criteria independent from the order type.
COOPA002 Customer function in internal order master data maintenance
This enhancement is superseded by the enhancement COOPA003, described above. You can continue to use COOPA002; however, SAP recommends you to use COOPA003.
In internal order master data maintenance, you can use a function code reserved for customers to process your own screens - for example: to maintain additional data for orders.
You can create your own tables or change data fields in your own name ranges. You can maintain user-defined menu entries and make the access to functions possible from master data maintenance.
Activities
1. Create the enhancement.
To do this, either create a new project or use an existing one.
2. Activate the project.
You must activate your enhancement for it to come into effect.
Further notes
You should make no independent changes to the SAP database tables (for example, through "INSERT", "UPDATE", or "DELETE") and do not perform either "COMMIT WORK" or "ROLLBACK".
Unlike modifications, enhancements are release-capable because they are not made in the original SAP name range, but in a separate one reserved for the customer.
For details of the general procedure for producing enhancements, see the online help in the enhancement transaction.
Regards, Dieter
09-10-2008 12:16 PM
Hello,
There is an exit for PAI. I think it can be useful.
EXIT_SAPMKAUF_003 find this and implement it.
Regards,
Subbu