Multiple-Use in BADI
Hi Friends,
Could any one you please let me know the purpose of Multiple-Use Atrribute in BADI.
Awaiting for a qick response.
Thanks in Advance
Regards
Tina
Hi,
check this sap Help..
Multiple Usability for BADI Definitions
Multiple use for BADI definitions means that there can be several active BADI implementations. When there is a call, they are all called up - however, in an unpredictable sequence.
If you have multiple-use BADI definitions, the sequence must not play any role therefore. A typical example is the execution of checks before a save.
Regards
vijay
Similar Messages
-
Hi ABAP Gurus,
Can someone brief a scenario in which multiple use BADI was used or will be helpful.
Thanks,
SooryaHello Soorya
Example of multiple-used BAdIs (ca. 850 in ECC 5.0) are:
- BADI_MATERIAL_CHECK (Enhanced checks for material master table)
- BADI_SD_BILLING (Billing Enhancements)
- BUPA_PCARD_CHECK (Additional Checks for Payment Cards)
Many, if not most, of these BAdIs are used for checking or validating data. The active implementations of such a BAdI must be independent meaning they must not rely on a specific calling order (see SAP documentation below).
<b>Multiple Usability for BADI Definitions</b>
Definition
Multiple use for BADI definitions means that there can be several
active BADI implementations. When there is a call, they are all called
up - however, in an unpredictable sequence.
If you have multiple-use BADI definitions, the sequence must not play
any role therefore. A typical example is the execution of checks before
a save.
Regards
Uwe -
Creation of "New Badi" with Multiple Use
Hi,
I am trying to create New badi within enhancement spot which is multiple use, problem here is the badi interface method has got some exporting parameters.
when i try to activate badi definition it is showing the error this type of interface which is having exporting or returning parameters cannot be used, however if i remove export parameters in the interface method, then i am able to activate the BADI definition.
Please suggest me, is it not possible to have badi interface method with exporting or returning parameters if it is Multiple Use Badi???
Thanks,
Kranthi.Answered my self.
it is the restriction. below is SAP documentations that explains the same
http://help.sap.com/saphelp_nw70/helpdata/en/e4/5c3642eca5033be10000000a1550b0/frameset.htm -
hi guru,
i am new in abap,
if we have 20 badi's using multiple implimentation.which one trigger first.it is necessary to deactive all badi before running new badi name of some single use ,multiple,filter dependent badi in crm.Hi,
As per my understanding, your query is this - for a single BAdI there might be multiple implementation and which one will be triggered first.
As per SAP, there is no guarantee of the order of the call of the BAdI Implementation, but only thing that can be guaranteed is that all the active implementation will be called. You don't need to deactivate any Badi before implementing your BAdI.
I hope this answers your question.
Some important BadI's of SAP CRM are - ORDER_SAVE, COM_PARTNER_BADI, etc.
Thanks,
Samantak -
Multiple use Badi implementation
Dear Experts,
I have created a custom BADI definition of multiple use type and one implementation for it n it is working fine but now i want to create multiple implementations for it.
But when im trying to use method of second implementation in my program its raising an error that this method is not defined.
Hope u understand my query.Plz explain me with an example that how to implement multiple use BADI's.
Thanx in advance.Hi,
You can implement several BADIs based on the same definition if FILTER option or MULTIPLE USE option are active.
In this way you can have (implement) the same method does different actions according to the BADI where it's defined.
So you can use the FILTER to decide which method (BADI) has to work.
If the FILTER isn't active a definition of a BADI can use once, so it can implement only ones.
But if the flag MULTIPLY USE is active it can use the same BADI for several implematations.
In this case every BADIs'll works because there isn't a filter.
So you can implement several actions.
See this Weblogs,
/people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
/people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
See here:
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/cs/user/view/cs_msg/9494
http://www.sapgenie.com/publications/saptips/022006%20-%20Zaidi%20BADI.pdf
Regards,
Padmam. -
Badi Multiple Use and Filter Dependent.
Dear Experts,
i Have enough Documents on Badi.
and My question is If we implement the Multiple Use the program calls all active implementations in Dynamic sequence.
to Call Particular Implmentation do we go for Filter dependent?
or is both concepts are independent .
Let me Know the difference
Regards
Raj.Yes,Both Concepts are independent.
If the BADI Has checked with Muliple use check box then u can implement multiple implementation for that BADI for example check the BADI ME_PURCHDOC_POSTED Attributes tab.
If the check box is marked with Filter-dependent then u can implement based on the data element.Example check the BADI NOTIF_EVENT_SAVE Attibutes tab. -
Hi
do you think it is appropriate to give as example calculation of shape (square, rectangle, triangle)
as an example to BADI Multiple use?
can you give me a tips on how i can startHi,
Pls go through the following links
BADI's
BADI's
http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
http://support.sas.com/rnd/papers/sugi30/SAP.ppt
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
http://members.aol.com/_ht_a/skarkada/sap/
http://www.ct-software.com/reportpool_frame.htm
http://www.saphelp.com/SAP_Technical.htm
http://www.kabai.com/abaps/q.htm
http://www.guidancetech.com/people/holland/sap/abap/
http://www.planetsap.com/download_abap_programs.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
/people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
/people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
http://www.esnips.com/web/BAdI
http://www.allsaplinks.com/badi.html
New to Badi
Thanks,
Reward If Helpful. -
Difference between multiple use and filter depend in BADis
Dear Experts,
Can u plz tell me the major difference between <b>MULTIPLE USE</b> and<b> FILTER DEPEND</b> types in badi definition.Is it possible to create a BAdi definition without selecting none of them
Thanks & regards,
vineelYou can differentiate between single-use and multiple use Business Add-Ins. The distinction is based on the procedure or event character of an enhancement. In the first case, the program waits for the enhancement to return something, usually a return code. A typical example could be a benefit calculation in HR. Depending on the implementation, alternative calculations can be executed. With multiple use add-ins, an event that may be of interest to other components is processed in program flow. Any number of components could use this event as a hook to hang their own additional actions on to.
Business Add-Ins may be implemented on the basis of a filter value. If an enhancement for country-specific versions is provided for in the standard version, it is likely that different partners will want to implement this enhancement. The individual countries can create and activate their own implementation.
Enter a filter type when defining your enhancement (a country or industry sector, for example). All methods created in the enhancement's interface have filter value FLT_VAL as their importing parameter. The application program provides the filter value for the enhancement method. The method then selects the active implementation for that value.
http://help.sap.com/saphelp_nw04/helpdata/en/eb/3e7cf4940e11d295df0000e82de14a/frameset.htm -
Unable to check multiple use check box for BADI
Hi,
In ECC 6.0, when I am trying to activate the multiple use check box ( For multiple implementation of BADI ) , it is not allowed me the same.
Throwing the error as - interface IF_EX_TAX1_XTXIT_SET can not be used.
BADI name - BADI_TAX1_XTXIT_SET
Can anyone pls help me how to do this.
Thanks,
ShaktiHello Sakti,
I am also in ECC6.0 & if i see the definition of the BAdI BADI_TAX1_XTXIT_SET, "Multiple Use" checkbox is checked! What are you trying to do - trying to create an implementation?
@Prabhu: Although the BAdI is "multiple-use", but there is not filter applied to it. Next time do your checks properly before replying
BR,
Suhas -
About BAdI's Atribute: Multiple-Use
Hi all,
I found a BAdI that may be very useful for me. But its attribute "Mutiple Use" is not selected. When I create an implementation,I find it can not be activated. Could you tell me why? And Can I use this BAdI ?Hello Alex
Since the flag "Multiple Use" is not marked you can have only a single active BAdI implementation.
There is another standard or customer implementation which is already active (check in SE18 menu ... -> Overview: here you see all current implementations, active and inactive ones).
You need to check if you can inactivate the current active implementation without any harm to the affected processes. Afterwards you can activate your implementation.
Regards
Uwe -
How many implmentation allowed of BAdi with multiple use option???
Dear all ,
I have doubt in BAdi implementation -
Case 1 - I have create a z badi with multiple use option enabled . than i create two implementation of that BAdi . when i call it from my z program than it will call only one which was created 1st so what is use of 2nd implementation and when it will call ???
Case 2 - Same case for tcode VD02 their is badi CUSTOMER_ADD_DATA which is also multiple option enable Badi
for this also i have created 2 implementation but in this case when i create 2nd implementation it asked for migration of implementation why ???
ThanksDear deepak ,
i have check it both implementation showing yellow color please check my z program and tell me what is wrong in this .
REPORT Y_BADI_EXP1.
CLASS cl_exithandler DEFINITION LOAD.
DATA : l_badi TYPE REF TO ZIF_EX_MYBADI,
email TYPE AD_SMTPADR,
email1 TYPE AD_SMTPADR..
PARAMETERS : p_user TYPE sy-uname.
START-OF-SELECTION.
CALL METHOD CL_EXITHANDLER=>GET_INSTANCE
EXPORTING
EXIT_NAME = 'ZMYBADI'
NULL_INSTANCE_ACCEPTED = 'X'
CHANGING
INSTANCE = l_badi " here it will return 2 implementation ZMYBADI_IM1 , ZMYBADI_IM2
EXCEPTIONS
NO_REFERENCE = 1
NO_INTERFACE_REFERENCE = 2
NO_EXIT_INTERFACE = 3
CLASS_NOT_IMPLEMENT_INTERFACE = 4
SINGLE_EXIT_MULTIPLY_ACTIVE = 5
CAST_ERROR = 6
EXIT_NOT_EXISTING = 7
DATA_INCONS_IN_EXIT_MANAGEM = 8
OTHERS = 9
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD l_badi->GET_USER_EMAILID
EXPORTING
uname = p_user
CHANGING
emaill = email.
WRITE : /5 email. " when o/p comes it shows only 1st implementation .
i placed break point in methods of both implementation but as usual it stop only at first method ??? -
Can Single Use standard BADI be converted to Multiple Use
Is it possible to make standard BADI a Multiple Use when it is single use?
I hope it is not.
Please confirm.
Thanks,
ArshadHello Arshad
If a BAdI is defined as single-use (SE18) then you can have only a single active implementation within the system. Thus, the answer to your question is: No, it is not possible.
However, there may be the reverse situation where you have a BAdI defined as single-use but would like to have multiple implementations. In this case you have to adjust the single active implementation and instantiate other implementations if certain conditions are fulfilled, e.g.:
<b>Active</b> implementation of a BAdI should be: ZCL_MY_BADIIMPL_01
You create a second implementation (<b>not active</b>): ZCL_MY_BADIIMPL_02
Within the methods of ZCL_MY_BADIIMPL_01 you could code:
DATA:
lo_badi2 TYPE REF TO <BAdI interface>.
IF ( <condition is fulfilled> ).
CREATE OBJECT lo_badi2 TYPE ('ZCL_MY_BADIIMPL_02').
* Call methods of second BAdI implementation
ENDIF.
Regards
Uwe -
BADI - Call my Z impl from multiple impl of BADI
Hello,
I have created my own Z implementation of a BADI defn.
Already i see that there are some more Z implementations of the same BADI.
Now How can i make sure that my Z impl will be called?
Thanks
RickHi,
Click on F1 help at Multiple Use check box in your BADI.
You will come to know, all the active implementations for a multiple use BADI will be called in an unpredictable sequence:-)
To make sure that, keep a user breakpoint and check whether it is getting called.
Cheers,
Raja.D -
Use of BAdi UC_CTR_XRPROC in Currency Translation
Hi All,
Has anyone experience of the BAdi for determining Exchange Rate in BCS?
In BCS you have the option of customising the Procedure for Exchange Rate Determination by using a Badi, my current client has configured a custom one but I can't view the configuration (due to authorisation frustrations), so I can see that something has been selected but can't see what it is.
Selected Info from SAP BCS help:
You can create additional procedures for exchange rate determination in the customer namespace. The custom procedures, along with the standard procedures, are offered for selection in Customizing of currency translation methods.
If you specify a parameter when creating a procedure for exchange rate determination, this parameter is also offered for selection when the procedure is listed.
At the time of execution, whenever a custom procedure for exchange rate determination is encountered, the system calls the Business Add-In for exchange rate determination ( UC_CTR_XRPROC). There you can freely determine the exchange rate for each data record being translated.
Also:
The E/R determination procedure is the second-last step for determining the value in target currency. (The last step is the currency translation procedure, for which there is also another Business Add-In, UC_CTR_CTPROC.) At this point, the data records to be translated are accessible, and the date of exchange rate determination is known.
All help will be much appreciatedThanks Eugene,
it appears to have been implemented at one of my current clients but I can't work out what it's doing.
An old, incomplete configuration document indicates that they were trying to stop the GC figure being updated unless Currency Translation Indicator <> 0 (ie RFD record is not updated by Currency Translation task, GC values are only posted to new records with CT Indicator >0) -
How can I use a bad IMEI AT&T iphone 5 with straight talk ?
Someone sold me a bad IMEI AT&T iphone 5. I had an AT&T iphone 4 with straight talk prior to buying this phone. I didn't know the IMEI was bad so I bought the iphone 5 hoping to switch. I cut my SIM card and put it into the iphone 5. Everything worked perfectly fine so I went ahead and gave the dude the money. I went to sleep and wake up the next day and try to make a call and I get a message saying my phone has been blocked from the network. I contacted straight talk and they thought it was a problem of theirs so somehow they got my phone to work again. Everything was good , calls, texts , and data. 2 hours later, the same problem happens. So I call straight talk again , tell them the problem. They fix It again, 2 hours later , THE SAME PROBLEM. I gave up this time and began looking for answers. Is there any way I can use this iphone 5 with straight talk ? There was a comment I saw through my search for answers where if I get another straight talk sim everything would work again. Is this true? How can I use a bad IMEI AT&T iphone 5 with straight talk ?
If that IMEI has been blacklisted by AT&T, then it is blacklisted by all USA carriers, as well as several participating Canadian and Mexican carriers.
As of 31 October 2012, USA Cellular Providers are sharing a common IMEI/ESN database to ensure that phones blacklisted on one carrier can't be activated on another carrier. AT&T and T-Mobile are also participating members of the GSM-networks global shared blacklists.
Maybe you are looking for
-
I have a dialogue box that will not go away and it seems to have started when I upgraded to Mt. Lion. the box says, "To open JavaApplication, you need to install a Java 6 SE runtime. Would you like to check for and install one? (smaller print) No
-
How to re-calculate a column value based on another column value in the same ADF Table row
Hi, I'm using Jdeveloper 11.1.2.3.0. I have an adf table with 2 columns, columnA and columnB. When the value changed in ColumnA, 1) i need to call a PLSQL and update the ColumnB value that is returned from PLSQL. 2) Show a warning message if the exis
-
Organizer and Collections in Acrobat X
Had I read some of these comments before I bought X, I would never have done so. I used the organizer daily, and the collections several times a year as I prepared for trade shows. If it was taken out because people are using Acrobat on Blackberry
-
SWF file animation problem - CS4
Hi, I've been trying to inset this specific AS2 swf file (accordion.swf) into captivate CS4 and the animation does not seem to work after publication. I was wondering if anyone out there with their vast experience can help me with this and will be de
-
We have had BT Broadband since July last year, having at last left Virgin Media well behind. We should have an 'up to' 8 Mbps service on ADSLMax, our exchange is not yet enabled for 21CN. We have had several instances of low download speeds shown b