Show TOC

Enhancement when Creating an Order

To predefine fields in the order header when creating production orders there is the following SAP enhancement available:

With this enhancement you can take fields from the order header in your own programm and process them or define values for them and transfer the changed data again to the standard system. The transfer to the system takes place before you reach the order header screen. All processed or predefined fields can still be changed on the header screen.

The enhancement PPCO0006 contains the following enhancement components:

Function exits:

EXIT_SAPLCOZF_003 Exit for predefining fields in order header
The fields in the order header (structure CAUFVD) are placed in the function exit. All the fields that you can define or change are defined in the structure HEADER_CUST. The contents of HEADER_CUST is transferred back to CAUFVD on leaving the function exit.

Activities

1. Create the enhancement.
Either create a new project or use an existing project.
2. Process the enhancement component:
Extend the program coding for the function exit EXIT_SAPLCOZF_003. It copies data from the SAP standard program to the individual part of your program and later copies you data back to the SAP standard program. If certain fields in the structure are already filled during the import in the enhancement carefully check the effect of changing a field (if in doubt leave the contents defined by SAP unchanged).
Call up the function module and double-click on the include line. Create the include module. If you define internal work structures you should always do this using ABAP language elements LIKE so that later structure enhancements from SAP do not lead to changes in your coding.
3. Activate the project.
The enhancement does not take effect until you activate the project.

Further Notes

As opposed to modifications, enhancements are can always be released, as they are made in a name range that is reserved for customers, rather than in the SAP original.

You can find the general procedure for creating enhancements in the enhancement transaction in the menu Tools -> Online manual.

Every enhancement has its own documentation. You can find this documentation using the print key Create SAP docu in the enhancement transaction.