cancel
Showing results for 
Search instead for 
Did you mean: 

data is not saved in customer field by CNEX0006

Former Member
0 Kudos

Hi Experts,

With the help of ABAP, i have implement the customer exit CNEX0006 to add addtional field in project definition. The filed is 40 character filed name ZPS0001.

I put the value in the field and save the project but the value does not shows in the field after open the project next.

I have checked the table proj, the value also does not show in the addtional field.

Could you please help how to store the value in the additional field.

BR,

Morshed Alam

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Ok it appears I posted in haste. For anyone that encounters the same issue I did, I resolved this by adding tables: proj. to the start of the user exit:

&----


*& Include ZXCN1U11

&----


tables: proj.

proj-zzschoolboard = SAP_PROJ_IMP-zzschoolboard.

Former Member
0 Kudos

I am currently having a simliar issue.

I followed the instructions, I added zzschoolboard to ci_proj. Activated the data element, as well as CI_PROJ and PROJ. I can drag the field from PROJ into screen painter, and it pulls my check table values on look up.

However, when I add the code:

&----


*& Include ZXCN1U11

&----


move-corresponding sap_proj_imp to proj.

I cannot compile as I get the following error message:

Field "PROJ" is unknown. It is neither in one of specified tables nor defined by a "data" statement.

While I can see a database value in my field using debug (if I supply proj-zzschoolboard in debug I see the field as legit, and can add a value).

I have the same issue in ZXCN1U12:

&----


*& Include ZXCN1U12

&----


move-corresponding proj to cnci_proj_exp.

I get the same error as in U11, however again I can see proj-zzschoolboard in debug mode I just can't add it to the code.

Any ideas?

Former Member
0 Kudos

Hi,

i have asked my ABAP team about this problem. they said the most probable reason is that something is not activated; it may be include, or screen, or structure fields including data element and domain etc..

i suggest make a cross check that everything is activated.

i am also using this customer exit. but am not facing such problems.

regards!

Former Member
0 Kudos

Hi,

check the following includes that you have written the logic correctly?

  • Now in the function exit EXIT_SAPLCJWB_002 , go in the INCLUDE ZXCN1U11 and write this logic

move-corresponding sap_proj_imp to proj.

  • Now in the function exit EXIT_SAPLCJWB_003 , go in the INCLUDE ZXCN1U12. and write this logic

move-corresponding proj to cnci_proj_exp.

Regards.

Former Member
0 Kudos

Hi Harsh,

I have checked the two steps and it (logic) was defined beofre.

But the values are not updated still.

BR,

Morshed Alam

Former Member
0 Kudos

Hi,

then check the structure "ci_proj" has been activated in table "proj".

regards

Former Member
0 Kudos

check if you have followed the correct steps:

First create a project in CMOD and attach the enhancement CNEX0006 to the project.

1. Go to se11 and in the PROJ table u will find ci_proj include , in this add the required custom fields.

2. Go to se51 give SAPLXCN1 in the program name with screen number 0600 , create the subscreen and in the layout choose Dictionary./Program fields and drag and drop in the screen .

3. If u want to write any logic before the screen is displayed do it in PBO.

4. Now in the function exit EXIT_SAPLCJWB_002 , go in the INCLUDE ZXCN1U11 and write this logic

move-corresponding sap_proj_imp to proj.

5. Now in the function exit EXIT_SAPLCJWB_003 , go in the INCLUDE ZXCN1U12. and write this logic

move-corresponding proj to cnci_proj_exp.

Activate the project .

Former Member
0 Kudos

Hi Harsh,

Actual we implemented the steps as same as you propose .

But still no update.

BR,

Morshed Alam

Former Member
0 Kudos

Hi,

Please check that your project is now having lock status.

Regards

Amit

Former Member
0 Kudos

Hi,

the project is not in lock status.

any suggestion.

BR,

Morshed Alam

Former Member
0 Kudos

Hope you have created the field in PROJ table.

it has to save in a table to get retrieved.

Former Member
0 Kudos

Hi,

I have the same problem, and i find another potencial error if you folow the steps above to create you CMOD project.

When you include then field in you screen, if you select "Dictionary./Program fields" to read you fields from, and insert inthe subscreen, you have to select then from the transparent table PROJ , not from thr structure CI_PROJ.

If you select from the structure, then fields will be defined as CI_PROJ-XXXXX and the data will not be save in then table PROJ.

You must read your fields from table PROJ, if you create the structure CI_PROJ, your fields are created in the table too. Do this and you enhancemente will save data in the table.

Matheus