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

User Exit for TCode CJ20N to populate Project system user fields

Former Member
0 Likes
3,874


Hi team,

need one support from your side..

I am looking for User Exit for TCode CJ20N to populate Project system user fields on SAVE.

I have found

Enhancement        CNEX0001

Short text         PS: User field

which is exactly suiting my req...as it has USER Fields (USR08/USR09 )in export paramters..

BUT it is not triggering on SAVE,,

Any hint or is any other user exit/badi which have USER Fields in export paramters.

Warm Regards

Krishan


Hi team,

need one support from your side..

I am looking for User Exit for TCode CJ20N to populate Project system user fields on SAVE.

I have found

Enhancement        CNEX0001

Short text         PS: User field

which is exactly suiting my req...as it has USER Fields (USR08/USR09 )in export paramters..

BUT it is not triggering on SAVE,,

Any hint or is any other user exit/badi which have USER Fields in export paramters.

Warm Regards

Krishan

3 REPLIES 3
Read only

former_member196651
Contributor
0 Likes
2,107

Hi Krishnan,

If you want a custom tab that contains User defined fields at Project level then you have to use CNEX0006 user exit. Before this you must declare your fields using the CI include CI_PROJ in the PROJ table.

If you want a custom tab that contains User defined fields at WBS level then you have to use CNEX0007 user exit. Before this you must declare your fields using the CI include CI_PRPS in the PROJ table.

In the PBO function module exit of these exits you must use the following statements as the first statement.

MOVE-CORRESPONDING sap_proj_imp TO proj.

MOVE-CORRESPONDING sap_prps_imp TO prps.

In the PAI function module exit of these exits you must use the following statement as the last statement.

MOVE-CORRESPONDING proj TO cnci_proj_exp.

MOVE-CORRESPONDING prps TO cnci_prps_exp.

The remaining programming as in the case any Screen Exit.

Regards,

Abijith

Read only

0 Likes
2,107

Dear Abijith,

Thanks for your help.

I am using only standard fields..provided by SAP and in standard tab.

At header level, there is "BASIC DATA" tab having below dates field

Start date    

Finish date   

I want to transfer these two fields values to WBS element level

to two dates field USR08 and USR09 (PRPS) table

BUT breakpoint is not stopping in user exit  CNEX0001

which have all fields

please suggest


Read only

former_member196651
Contributor
0 Likes
2,107

Hi Krishnan,

Ok. Then you do one thing. Implement the BAdI PROJECTDEF_UPDATE and use method BEFORE_UPDATE to get the Start & Finish dates and place this into an Export parameter.

Then Import this parameter in the BEFORE_UPDATE of the BAdI WORKBREAKDOWN_UPDATE and place this dates where you want to save.

Regards,

Abijith