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

How is time management and payroll is integrated? : sap abap hr

983


What is pakey structure, pshd1 structure and what type of fields it contains? : abap hr

1092


What are the types of subroutines? : abap modularization

1004


How to transfer the objects? Have to transferred any objects?

1019


Explain the components of selection table?

1079


Why do we need to code a loop statement in both the pbo and pai events for each table in the screen?

1064


What are Delivery classes? What data will you want to transport during client copy?

1388


What is netweaver???what is the relationship with ABAP?

2140


What two statements are required in an abap program to output an icon using a written statement?

1095


What are the data types of internal tables?

1046


What is the maximum number of structures that can be included in a table or structure

1026


What are roles and authorization objects?

1652


Explain what are standard layouts sets in the sap script?

1437


What is Group by in Select statement?

1163


Explain what are the events in screen programming?

974