Show TOC

Create function to derive network no. from WBS identifier

The following enhancement (user exit) is available for changing the network number:

You can use this enhancement to generate an external network number, based on the WBS element number. This enables you to immediately recognize the assignments between WBS elements and the corresponding networks.

Enhancement CNEX0012 contains the following enhancement components:

Function module exit:

EXIT_SAPLCOKO_002 Data transfer of the network number

Example

Project editing: P/0000/000/000000/00
Project number: P/12/1/33/1 (edited)
P001200100003301 (unedited)

Sections 3 and 4 in this example are always unique for projects that begin with "P". In this example the following network number is generated: P00003301

Activities

1. Create the enhancement.
To do this, either create a new project or use an existing one.
2. Edit the enhancement component:
Complete the coding in the program for the function module exit EXIT_SAPLCOKO_002. This exit takes the unedited WBS identifier (input) from your individual program section and then transfers the derived network number (output) back to the SAP standard program.
To do this, call up the function module and double-click on the include line. Create the include module.
When your program section cannot derive a network number, issue the exception NO_NUMBER_GENERATED.
3. Activate your project.
Only once you have activated your project, will your enhancement take effect.

Further Notes

Unlike modifications, enhancements are not influenced by a release upgrade because they are not part of the original SAP programs, rather, they exist in an area reserved for customers.

For more general information on generating enhancements refer to the documentation in the enhancement transaction under Tools -> Online Documentation.

Each enhancement has its own documentation. You can access this documentation by clicking on Display SAP Doc. in the enhancement transaction.