Show TOC
Create
Customer-Specific Fields in a Project Definition
The following SAP enhancement is available for
project definitions in the Project System:
- CNEX0006 Customer-specific fields in the
project definition
You can use this enhancement to add new
customer-specific fields for the standard project definition in table PROJ. To
process these fields you can create your own screen, which the user can call
up when maintaining standard project definitions.
The enhancement CNEX0006 contains the following
enhancement components:
Menu entries:
SAPLCJGR+CUD Project
planning board
SAPLCJWB+CUD Master
data maintenance (CJ06, CJ07, CJ08)
Function exits:
EXIT_SAPLCJSS_002
for transferring data to your own program
EXIT_SAPLCJSS_003 for transferring data from your program to R/3
Screen areas:
SAPLCJSS0205_CUSTSCR1_SAPLXCN10600
Activities
1. Create the
enhancement.
To do this, either create a new project or use an existing one.
2. Create
structure CI_PROJ in ABAP/4-Dictionary (transaction SE11) in your own
development class.
3. Expand
structure CI_PROJ to include your own fields.
Note the following:
- You must use the name ranges reserved for
customers.
- The maximum number of fields in database
tables is 255 (in PROJ and CI PROJ - for SAP field and user-defined fields
together). SAP reserves the right to add new fields to table PROJ; if the
maximum number is reached, your user-defined fields could be
excluded.
Activate the
structure.
4. Maintain the
enhancement components:
- Assign the function customer
fields a name.
- Add to the program code for the function exit
EXIT_SAPLCJWB_002. This function exit transfers SAP data to your part of the
program.
To do this, call up the function module and double-click the include line.
Create the include module.
In order to transfer the variables, you must insert a Move-corresponding
statement in Include ZXCN1V11:
move-corresponding sap_proj_imp to proj.
Now define the
"projs" data structure as global variable. To do this, jump to the main
program SAPLXCN1. First, double click include LXCN1TOP and then include
ZXCN1TOP. Create the object if required.
Include the following tables statement in the source text for include
ZXCN1TOP.
* tables
tables proj.
- Add to the program code for the function exit
EXIT_SAPLCJWB_003. This function exit takes the data from your part of the
program and transfers it to the SAP standard program. Create your own
corresponding include module.
In order to transfer the variables, you must insert a Move-corresponding
statement in Include ZXCN1U12:
move-corresponding proj to cnci_proj_exp.
- Create the screen area.
Double-click SAPLCJSS0205_CUSTSCR1_SAPLXCN10600 and then choose
Fullscreen . The screen has been preconfigured by SAP. You can delete
these fields and add new ones:
Choose Goto -> Dict./Program fields
Maintain the table/field name PROJ and select the
fields to appear on the screen.
Generate the screen.
For detailed
information, see OSS Note number 86050.
5. Activate the
project.
Only once you have activated the project, will your enhancement take
effect.
Note for
Batch-Input
For your customer-specific fields to be
evaluated in the project information system, the structures in the project
information system must be regenerated. To do this, start program
RCNCT001.
If you want to fill your customer-specific
fields later using batch-input you must take the screen SAPLCJWB 0205
into consideration.
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.
You can also find documentation for this
enhancement in the enhancement transaction.