‎2007 Dec 19 3:00 PM
‎2007 Dec 19 3:02 PM
‎2007 Dec 19 3:06 PM
I dont understand your question, but, if i am in certain, it is not posible. A badi only is executed when the program where have developed the badi trigger the corresponding event.
Perhaps, you could execute the method of the class, but im not sure.
‎2007 Dec 19 3:17 PM
If you know your BADI name...then do a new implementation and code it.
It will be automatically executed in your xyz trasaction process. no need to call explicitly.
or if you know your BADI method then call method explicitly.
Edited by: janardhan bidharkota on Dec 19, 2007 4:28 PM
‎2007 Dec 19 4:02 PM
Hi,
Please look in to this .
Using Business Add-Ins, you can change the SAP standard programs without carrying out any system modifications.
Business Add-Ins are a new SAP enhancement technique based on ABAP Objects
They can be inserted into the SAP System to accommodate user requirements too specific to be included in the standard delivery
Specific industries often require special functions, SAP allows you to predefine these points in your software
In the definition view, an application programmer predefines exit points in a source that allow specific industry sectors, partners, and customers to attach additional software to standard SAP source code without having to modify the original object.
In the implementation view, the users of Business Add-Ins can customize the logic they need or use a standard logic if one is available.
Go To IMG( Implementation guide)
Find the BADI in implementation Guide (IMG)
TCODE: SPRO (IMG)
Search for BADI
Check the Documentation For BADI for functionality
Data Populated as Parameters in the BADI .
Functionality will be implemented in the Method.
Calling determine_account Badi through the program
Call method cl_exithandler=>get_instance
changing instance = exit1.
call customer function
call method exit1->determine_account
exporting
item_data = item_data
changing
acct_data = acct_data[ ].
end customer function
To create BAdi follow the steps
Go to Tcode: SE18
Enter definition name
Click create
Go to Tcode: SE19
Enter the implementation name
Click create
Enter definition name
Calling determine_account Badi through the program
Call method cl_exithandler=>get_instance
changing instance = exit1.
call customer function
call method exit1->determine_account
exporting
item_data = item_data
changing
acct_data = acct_data[ ].
end customer function
send your mailid if you want pictorial document.
Thanks
Sivaparvathi
Please reward points if helpful..........
‎2007 Dec 19 10:22 PM
Dear Abhishek,
BAdIs can be called using a combination of the ABAP statements GET BADI and CALL BADI
>GET BADI FILTERS f1=x1 ... fn=xn
>CALL BADI badi->meth
Best Regards,
Rajesh
Please reward points if found helpful.
‎2007 Dec 20 3:42 AM
‎2009 Aug 03 8:45 PM
Calling determine_account Badi through the program
Call method cl_exithandler=>get_instance
changing instance = exit1.
call customer function
call method exit1->determine_account
exporting
item_data = item_data
changing
acct_data = acct_data[ ].
end customer function