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: 

RPREX010 User Exit - Acces Key

fabio_bellocchio
Participant
0 Kudos

Hi experts,

sorry, I am begginer in "user exits".

I am trying to edit the include RPREX010, which is an "User Exit" for class CL_EX_TRIP_POST_FI, in program RPRFIN00_40.

But it asks for Access Key.

Is it normal?

My user has developer role and everything. I've been programming normaly.

Any hint is welcome.

Cheers

Fabio

1 ACCEPTED SOLUTION

former_member188831
Contributor
0 Kudos

Hi Fabio,

The include has the BAdi. You cannot edit the include directly. You need to impliment the BAdi "TRIP_POST_FI".

Badi definitions can be viwed in SE18 & you can create multiple implementations for a BAdi definition & all the implementations gets called. In your system, already an existing implementation available. Now you can create your own implementation.

Badi's can be implemented in transaction code SE19. You need to create your own class to implement the BAdi.

Select Classical BAdi & give the Badi definition Name "TRIP_POST_FI" & Click on create implementation.

Give name for your implementation & Click OK.

Give short text.

On the interface tab, the system proposes default implementation class. You just double click on the method which you want to implement & write your own code. Activate the class & Badi implementation.

You can find lot of threads for imlementing BAdi's. If you still could find enough information to create a implementation on your own, I will help ou out.

Regards,

Mahesh Gattu

5 REPLIES 5

Former Member
0 Kudos

Hi,

The class that you are trying to edit : CL_EX_TRIP_POST_FI is the class for a standard implementation of a BADI.Instead what you need to do is to create another implemetation of the same BADI : TRIP_POST_FI. You can view this BADI in transaction se18 and to create an implemetaiotn for the smae you ahve to go to transaction se19 then enter this BADi in the badi name and create the badi-implementaiotn the name of the implementaiton should be in customer name space.

After you create the implementation you another class would be created which would ahve methods editable.

Regards,

Himanshu

former_member188831
Contributor
0 Kudos

Hi Fabio,

The include has the BAdi. You cannot edit the include directly. You need to impliment the BAdi "TRIP_POST_FI".

Badi definitions can be viwed in SE18 & you can create multiple implementations for a BAdi definition & all the implementations gets called. In your system, already an existing implementation available. Now you can create your own implementation.

Badi's can be implemented in transaction code SE19. You need to create your own class to implement the BAdi.

Select Classical BAdi & give the Badi definition Name "TRIP_POST_FI" & Click on create implementation.

Give name for your implementation & Click OK.

Give short text.

On the interface tab, the system proposes default implementation class. You just double click on the method which you want to implement & write your own code. Activate the class & Badi implementation.

You can find lot of threads for imlementing BAdi's. If you still could find enough information to create a implementation on your own, I will help ou out.

Regards,

Mahesh Gattu

0 Kudos

Thank you very much, Mahesh.

Just one more question: how can I make the standard program call the methods from my new implementation?

Best regards,

Fabio

0 Kudos

Hi,

Yes once you create your implemetation the standard program should callyour code as well after creating the implemetaiton just activate and put a break point in the code and execute the standard program the control should come here.

Regards,

Himanshu

former_member188831
Contributor
0 Kudos

Yes Verma is right. If your BAdi implementation is active, system takes care of the calling part.