Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Adding custom fields to CN41 Transaction code

Former Member
0 Likes
3,526

Hi Experts,

I have a requirement to display few SAP standard fields (like VORN1 from AFABD structure) in CN41 transaction code. I modified the custom include structure CI_PROJ in table PROJ. When I ran CN41 tcode, this field doesn't show up in the layout list. But I can see the same feild in CN42 transaction code. Can anyone advise what is the difference between CN41 & CN42 and how this field to be shown in CN41?

Also, can some one advise, if SAP will take care by itself to fill the data since it is standard field or do we have to write any custom code in user exit?

Finally, can anyone explain me the difference between Structure Overview & Project Definitions?

Really appreciate your help.

Regards,

Sailesh.

6 REPLIES 6
Read only

Former Member
0 Likes
2,231

Hi

I prefer to use SHD0 tcode when you are chaning standard Tcode for adding fields.

Coming to data population,for that field,use Enhancement spot and write the code.

Read only

0 Likes
2,231

Thanks Rod,

But SAP gave us a provision to modify the custome structures CI_PROJ or CI_PRSP etc so that we can add the fields here. My question was, I am able to see these fields in CN42 tocde but not in CN41. Is there a way, that I can display the fields fromm CI_PROJ onto CN41 report?

And for second part, I thoguht, if I add the SAP standard fields from PSJ logical database, then SAP should update these fields automatically. I might be wrong on this.

Any ideas?

Shylesh

Read only

0 Likes
2,231

Hi

Try take a look at table TMC73. There are three tables in TMC73 that are of interest PROJR, PRPSR and STRUCR. Add the fields to the respective tables.

I used to think that STRUCR was related to CN41 and PRPSR for CN43 and PROJR for CN42 but I have noticed that adding fields to STRUCR gets them showing in CN42N.

Hope this helps

Regards

Leonard

Read only

Former Member
0 Likes
2,231

Sailesh,

were you able to write custom code in the exit? I added a custom field in CI_PROJ. The field shows up in CN43N, but I want the selection to be based on that new custom field.

Read only

former_member358612
Discoverer
0 Likes
2,231

Hi,

For CN41 and CN41n, you must add your new fields in structure STRUCR. Not in STRUCR or its substructures directly but rather add an extra include at the end of the structure (like STRUCR_CLIENT). Make sure that you use the same names.

Then you are able to execute program RCNCT001 using Transaction SE38.

Regards,

Keko

Read only

0 Likes
2,231

Hi,

So it´s just add into STRUCR structure and run RCNCT001? Because i´ve tried to do it but it says it´s not possible due to duplicated fields but i just added fields into CI_AFVU structure...How can it be? So is it only possible using STRUCR?

Thanks,
Mauricio