03-14-2014 7:06 AM
i am having a requirement tab addition in cj20n.
i done the structure append to PRPS but fields of the structure not able to retrive for the standard screen how can i do it.
if it is possible without adding tab then pls suggest or how will i add tab pls suggest.
i tried with cmod.
03-14-2014 7:46 AM
Hi,
You can add tab by using SAP Enhancement CNEX0007 in tcode CMOD.
https://help.sap.com/saphelp_45b/helpdata/en/81/e32c7dd435d1118b3f0060b03ca329/content.htm
Thanks.
Regards,
Keng Haw
03-14-2014 8:19 AM
Hi Amol -
Use enhancement - CNEX0007 (User exit) for this. You need to add the custom field in screen 700 of program SAPLXCN1.
Also you need also implement the exits -
EXIT_SAPLCJWB_004
EXIT_SAPLCJWB_005
Let us know, in case any further help.
Regards,
Atul Mohanty
03-14-2014 8:46 AM
Dear Amol,
Follow the below steps - I guess, it will help you to close the thread.
1) You can use the enhancement CNEX0007 to add new customer-specific fields for the standard project definition in table PRPS To process these fields you can create your own screen, which the user can call up when maintaining standard project definitions.
The enhancement CNEX0007 contains the following components,:
Menu entries:
a) SAPLCJGR+CUD Project planning board
b) SAPLCJWB+CUD Master data maintenance (CJ06, CJ07, CJ08)
Function exits:
a) EXIT_SAPLCJSS_002 for transferring data to your own program
b) EXIT_SAPLCJSS_003 for transferring data from your program to the SAP system
Screen areas:
a) 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:
SAP reserves the right to add new fields to table PROJ. If the maximum number is reached, your fields could be removed.
Activate the structure.
4. Maintain the enhancement components:
1) Assign the function Customer Fields a name.
2) 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.
3) 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.
4) Create the screen area.
Double-click SAPLCJWB0205_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 SAP Note number 86050.
5) Activate the project.
Only once you have activated the project, will your enhancement take effect.
6) For your customer-specific fields to be evaluated in the project information system, the structures in the project information system must beregenerated. To do this, start program RCNCT001.
After this activities you can see your custom fields in CJ01, CJ02, CJ03 or CJ20N.
Regards,
SaiRam