2006 Sep 19 6:30 PM
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
2006 Sep 19 6:33 PM
2006 Sep 19 6:32 PM
2006 Sep 19 6:33 PM
2006 Sep 19 6:33 PM
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.
2006 Sep 19 6:39 PM
2006 Sep 19 6:49 PM
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