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

Differentiate between transparent tables, cluster tables and pooled tables

1118


1.why dont use top of page. wat is the use? 2. wat is sub screen? 3. why u select the session method in bdc ? how many records wil be updated on that time? 4.why dont use start form in script? 5.wat is difference b/w dilldown and interactive report? 6. wat is pf status interactine report?

2870


Explain what are standard layouts sets in the sap script?

1483


What is a subscreen? How can we use a subscreen?

1075


Explain about Recording Function?

1127


Give examples of transparent table?

1179


What is the difference between Classic badi and Kernal badi ?

2539


Have you printed any report?

2178


What is a modification assistant?

1052


What is a multiple line field?

1062


Value table VS check Table.

1479


BDC program to migrate data to SAP R/3 database. The data will be uploaded using transaction ME11. (Session Method) plz mention the detail coding Tahnks, Rahul

2279


if while coding power goes off , how to retrieve the codes?

2095


How do u set up background jobs in SAP? What r the steps? What are the event driven batch jobs?

1120


Explain the systems fields used for interactive lists and lists?

1019