‎2008 Nov 03 10:15 PM
Hi All,
I need to implement the BADI PT_ABS_REQ for Absence Validations.
I have gone through the below link:
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/erphcm/validations%2bfor%2bess%2bleave%2brequest
It is detailed, but I donu2019t have much knowledge about BADI.
What is Enhancement Implementation?
Can anybody please tell me from where I have to copy this BADI (tcode) and where to write the code etcu2026..
Regards,
Dimple
‎2008 Nov 03 10:25 PM
Did you search in SCN?
Okay i will help you to become more lazy
Just go thru this:
https://www.sdn.sap.com/irj/sdn/advancedsearch?query=howtoimplement+badi&cat=sdn_all
‎2008 Nov 03 11:17 PM
Copying someone else's code is not a good approach.
What Amit meant (I am sure) is that you should search for some knowledge about BADIs and enhancement points for this requirement and code that requirement carefully.
Sharing code is one thing (not a bad thing) but copy&pasting code regardless of the exact requirement is not a good thing - particularly if the code is not sustainable.
This practice creates "urban legends". Normally (as moderators) we delete such threads, if they are not challenged (which is even better).
Please save yourself a lot of time and read up about enhancement points (e.g. F1 on "enhancement") and then ask a more specific question if you are still stuck somewhere (tell us where you are stuck!).
Please take this in a positive way to help you.
Cheers,
Julius
‎2008 Nov 03 11:28 PM
I like this quote:
" ask a more specific question if you are still stuck somewhere (tell us where you are stuck!)."
Cheers
‎2008 Nov 04 12:11 PM
Thanks for the suggestions.
In fact I am not a developer unfortunately I am developing this.
Actually I haven't communicated my problem properly.
In the link I have mentioned above, it was given that
Create an implementation for this BADI. Standard implementation is delivered: Implementation Name CL_PT_ARQ_REQ. In Ecc 5 ( ERP 2004) system, its a BADI Implementation CL_PT_ARQ_REQ and in ECC 6 system its an Enhancement implementation
I have little knowledge on BADI. Just I want know the difference between BADI Implementation and Enhancement Implementation.
If the procedure is same then know issues, if it they are different then I need your help on Enhancement Implementation.
‎2008 Nov 04 12:33 PM
Hi,
Till ECC6, BADI refers to nothing but customer exits where customer can implement his own code on top of the standard code delivered by SAP.
From ECC6 onwards, comes the New BADI concept where the BADI's are delivered as a part of enhancement framework and hence the name enhancement implementation. Though the name differs, it still refers to an implementation from customer and all you have to do is to write your own implementation of methods being defined in the BADI definition.
With the Enhancement framework, a BADI is actually defined through a enhancement spot name in SE18.
The interface ddefined in the abbove section will have all the methods(with signature/parametrs) DEFINED clearly.
Next step is to invoke SE19 transaction and create an enhancement implementation and in that a BADI implementation and define an implemnting class that holds the method implementation of the interface.
Now you can call your BADI implementation using
GET BADI <BADI_NAME>
CALL BADI ......
<removed_by_moderator>
Reegards,
Ragha.
Edited by: Julius Bussche on Nov 4, 2008 1:46 PM
‎2008 Nov 04 1:11 PM
‎2008 Nov 15 2:15 PM
Hi Ragha./ Chidanand,
Thank you very much for you help.
I have solved the problem.
Regards,
Dimple
‎2008 Nov 15 2:16 PM