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

where to put my code in standard sap code?

Former Member
0 Likes
401

Can I put my code in any part(implicit enhancement option) of a stardard sap code(va01)?

For example, I need to move some fields from vbak to vbap in transaction va01.

I founded the user exit but I need to use a new badi.

Is it an obligation to use this user exit? or with the new enhancement framework, where can I move this fields without using the user exit?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
380

>

> Can I put my code in any part(implicit enhancement option) of a stardard sap code(va01)?

>

>

> For example, I need to move some fields from vbak to vbap in transaction va01.

> I founded the user exit but I need to use a new badi.

> Is it an obligation to use this user exit? or with the new enhancement framework, where can I move this fields without using the user exit?

Hi Rafael,

Just want to share my opinion on this.

In general, the priority will always like this:

1. Try to find BADI or Enhancement Spot to meet your requirement first.

2. If no BADI can fulfil your requirement, search for any user exit/screen exit/subroutine exit or any other exit provided by SAP.

3. If above options still can not fulfil requirement given, make use of implicit enhancement with extra careful because you can change the expected behaviour of SAP code with your additional code.

4. The last and final option is modify SAP standard code which is not recommended. You need to do a careful assessment on your requirement to see if this requirement really have to be implemented or not.

That're my consideration when choosing enhancement approach and i believe it is the above opinion still valid until now.

Regards,

Abraham

2 REPLIES 2
Read only

Former Member
0 Likes
380

Hi,

You can use user exit MV45AFZZ for moving field VBAK & VBAP.

^ VBAK - routine USEREXIT_MOVE_FIELD_TO_VBAK

^ VBAP - routine USEREXIT_MOVE_FIELD_TO_VBAP

Cheers,

Read only

Former Member
0 Likes
381

>

> Can I put my code in any part(implicit enhancement option) of a stardard sap code(va01)?

>

>

> For example, I need to move some fields from vbak to vbap in transaction va01.

> I founded the user exit but I need to use a new badi.

> Is it an obligation to use this user exit? or with the new enhancement framework, where can I move this fields without using the user exit?

Hi Rafael,

Just want to share my opinion on this.

In general, the priority will always like this:

1. Try to find BADI or Enhancement Spot to meet your requirement first.

2. If no BADI can fulfil your requirement, search for any user exit/screen exit/subroutine exit or any other exit provided by SAP.

3. If above options still can not fulfil requirement given, make use of implicit enhancement with extra careful because you can change the expected behaviour of SAP code with your additional code.

4. The last and final option is modify SAP standard code which is not recommended. You need to do a careful assessment on your requirement to see if this requirement really have to be implemented or not.

That're my consideration when choosing enhancement approach and i believe it is the above opinion still valid until now.

Regards,

Abraham