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 Exists & BADI

Former Member
0 Likes
839

Hello,

What is the use of User Exists and BADIs?

Is this concept to add extra fields like textbox, button to a existing form in SAP!! is this correct?

Can u people give me one realtime example for each User Exists and BADIs

VG

1 ACCEPTED SOLUTION

Hello,

What is the use of User Exists and BADIs?

Is this concept to add extra fields like textbox, button to a existing form in SAP!! is this correct?

Can u people give me one realtime example for each User Exists and BADIs

VG

5 REPLIES 5
Read only

Former Member
0 Likes
782

check this link.

Read only

Former Member
0 Likes
782

User-exits are SAP's oldest way of updating data in standard programs - see MV45AFZZ - Form Userexit_Save_Document_Prepare.

Here you simply add ABAP code or add INCLUDES, etc

Customer-exits were SAP's next generation. They are built on the concept of function modules - where you add your custom within the Z func modules.

BADIs are SAP's newest and current way of updating data uisng Object-oriented concepts.

Read only

0 Likes
782

Hello,

Any realtime examples? what u guys did??

VG

Read only

0 Likes
782

Venkat,

User-exit in Include MV45AFZZ

form userexit_pricing_prepare_tkomk.

data: l_kukla like kna1-kukla.

if ( tkomk-vkorg = '0152' or tkomk-vkorg = '0155'

or tkomk-vkorg = '0156' or tkomk-vkorg = '0157'

or tkomk-vkorg = '0158' or tkomk-vkorg = '0159').

clear l_kukla.

select single kukla into l_kukla from kna1

where kunnr = tkomk-kunnr.

tkomk-kukla = l_kukla.

loop at xvbpa where ( parvw eq '1D' ) and

posnr eq '000000'.

endloop.

if sy-subrc = 0.

move xvbpa-kunnr to tkomk-hienr01.

endif.

endif.

endform. "USEREXIT_PRICING_PREPARE_TKOMK