Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to Business addin function in Standars transactiion
code. how it is steps

Answer Posted / sivaramakrishna.s.v

Example1 on BADI
BUSINESS REQUIREMENT
&#61656; Raise an error message whenever the vender
belongs to german country and region is not specified.
STEP 1: Find the list of the BADIS for TCODE XKO2.

&#61656; GO TO SE24

&#61656; Give the class name as CL_EXIT HANDLER (this
class triggered for all transactions )

&#61656; Click on display

&#61656; Double click on the method GET_INSTANCE (in this
method exit_name parameter return all the available badis)

&#61656; Put a break point

&#61656; Execute the TCODE XKO2

&#61656; Give the vender no as 1

&#61656; Click on Select all icon to check the check boxes

&#61656; Press enter

&#61656; Give the country as DE and click on save

&#61656; The debugger will start and note down the list of
the BADIS


For first screen
VENDER_FIELDSTATUS
GOS_SRV_SELECT
For second screen
After save button u can find below badi

ADDRESS_CHECK
ADDR_TXJCD_CHECK
BADI_LAYER
ADDRESS_UPDATE
VENDER_ADD_DATA

&#61656; Go to se18&#61664;select badi name radio button
&#61656; Give the BADI NAME &#61664;click on display
&#61656; Select interface tab &#61664;And check all the methods
&#61656; Find the suitable/roughly decide BADI name and
method by reading the description and checking the
signature. Here for our requirement check_all_data is the
method.
&#61656; Then create badi implementation as below

Step 2 : Creating implementation for the BADI
&#61656; Go to SE19
&#61656; Select classical badi radio button and give the
badi name vender_add_data in the second selection screen.
Now click on create implementation button below.
&#61656; Give the implementation name as
zvender_add_data ,click on continue.
&#61656; Give imple text.
&#61656; Now dbclick on the method check_all_data. Now
click on create button in displayed scree. &#61664;give the
enhancement impl name as zvendor_add_data and text. Click
on continue
&#61656; Give package name and select given implementation
zvendor_add_data in the displayed screen and click on
continue.
&#61656; Now the method will be opend and write the code
break_point. Activate.
&#61656; Back and avtivate.
&#61656;
Step 3 : TESTING weather BADI is correct or not
&#61656; Now run the transaction XKO2
&#61656; Our BADI will be triggered with a break point
&#61656; So, this is the BADI and method which we can use
for this business requirement.


&#61656; Finally write the below code

METHOD IF_EX_VENDER_ADD_DATA~CHECK_ALL_DATA.
IF I_LFA1=LAND1=`DE’AND I_LFA1-REGIO=` ‘.
Massage ‘Region is mandatory for GERMAN VENDORS’ TYPE ‘E’.
ENDMETHOD.

&#61656; SAVE AND ACTIVATE THE METHOD.
&#61656; Click on back
&#61656; Activate the implementation

Step 4: UNIT TESTING
• Now test the transaction XKO2 by giving vender
country as ‘DE’ and without specifying the region.
• The Error message is displayed.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the restrictions on subscreens?

1216


Give 3 scenario of reporting due to which you require reporting help of ABAP consultant?

2052


The data of a view is not physically stored, but derived from one or more tables (t/f) : abap data dictionary

1249


what is the purpose of BAPI BAPI_CUSTMATINFO_GETLIST What is input and output of this BAPI.

2536


how to capture the errors in bdc Call transaction method?

1029


What are the mandatory fields to be filled for BAPI_CUSTOMER_CREATEFROMDATA1

3726


Explain what are the different functions used in sap script?

1028


What are local objects? : abap data dictionary

1016


What is runtime analysis?

1093


How can you manipulate the presentation and attributes of interactive lists?

1120


Kindly help me to Know the process of mapping in EDI from R/3 to a convertor(third party which translates IDoc flatfile to EDIFACT /XML / FTP /HTTP ) ?

1980


What is the collect statement? How is it different from append?

1006


How do you process errors in session method ? : abap bdc

1105


What are conversion & interface programs in sap?

1104


What does the insert statement in extract datasets do? : abap modularization

1033