Application Development 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: 

CN41- PS system.

Former Member
0 Kudos

Dears,

I have added the 4 user defined fields in CN41 transaction in the customising .

I need to do some calculation and put it into that user defined fields.

1 ) Is there any BADI or UE for this ?

2 ) If no then where can i add that code in the program.

Please note that the includes are used for CN41 transaction are also using in other transaction.

There are some structure. but this structure values are populating dynamically and different transaction are using different includes in the same structure.

If someone is working on PS -ABAP or PS functional then please reply soon. Its a golive time and i need to finish this ASAP.

thanks,

Dhiraj.

3 REPLIES 3

Former Member
0 Kudos

Hi,

To find out a BADI,

1) Goto se24 (Display class cl_exithandler)

2) Double click on the method GET_INSTANCE.

3) Put a break point at Line no.25 (CASE sy-subrc).

Now

4) Execute SAP standard transaction

5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.

6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.

7) This way you will find all the BADIs called on click of any button in any transaction

if you follow this 7 steps, and execute/run your infotype or press any button then see whether the screen is going to stop there, if the scrren stops and goes to Debugging mode then there should be a BADI for that one

Please reward the points if it helps

Regards

Sudheer

Former Member
0 Kudos

Hi,

CN41 is the report which gives the project related information. You CANNOT do any calculation here.

Also, when yuo say user define fields, are these "custom fields" in PRPS or PROJ using include structure CI_PRPS or CI_PROJ or these are "user-defined" fields in PRPS ( PRPS-USR00 to PRPS-USR11 ).

If you want to fill either "custom fields" or "user-defined" fields you will have to do this either when you create / change the project OR using Project / WBS related BAPIs.

Please provide more detail regarding what you have done and what exactly you want to do now.

Regards,

RS

0 Kudos

Yes RS,

These are the user defined fields which is usr04, usr05, usr06 and usr07 which are in the structure strucr.

I want to code in the program but the program and its includes are using in another 30-40 PP relatede transaction.

Here in the deburgging i found that there is one internal table aus_s000 which is storing all the data and it is passing this data to the field symbol for displaying it into the output.

The AUS_S000 is having different fields in the different includes . if i am calculating the values from this fields then it is throu'g syntax error.

i want to calculate the date fields says 'earlier start date - todays date ' should have to go to the user defined fields usr05 and so on.

Please reply soon if possible where can i add the code or what is the another possibility for populating the values in all these user defined fields.

Always thanks for your responce.

Dhiraj.