BADI for Customer

Hi,
i want to implement BADI for Customer field in table BSEG . For that T.Code is FBL3N.
please tell me
How to find the BADI and How to Implement the BADI

Hello,
I think that the use case page 105 of the documentation is exactly what you need :
"Use case: A new field of an R/3 standard table is to be communicated to the CRM Online application
Assume that you have an additional field in R/3 table KNA1 (customer master). The field is called ZZCONT. It shows in which continent a customer lives. Assume that the R/3 application will be enhanced in a way that the field can be maintained. To realize the communication to CRM you have to perform the following steps.
Hope this will help you,
Regards,
Frédéric

Similar Messages

  • Search for BAdi for Customer Master Data (XD01)

    Hi experts,
    i am looking for a BAdi for Customer Master data (XD01). Can anyone suggest me which one can i use?
    thanks in advance.
    Regards,
    aksh

    hi
    execute this report
    *& Report  ZNAGBADI
    REPORT  ZNAGBADI.
    *report zbadi_find .
    tables : tstc,
    tadir,
    modsapt,
    modact,
    trdir,
    tfdir,
    enlfdir,
    sxs_attrt ,
    tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode,
    p_pgmna like tstc-pgmna .
    data wa_tadir type tadir.
    start-of-selection.
    if not p_tcode is initial.
    select single * from tstc where tcode eq p_tcode.
    elseif not p_pgmna is initial.
    tstc-pgmna = p_pgmna.
    endif.
    if sy-subrc eq 0.
    select single * from tadir
    where pgmid = 'R3TR'
    and object = 'PROG'
    and obj_name = tstc-pgmna.
    move : tadir-devclass to v_devclass.
    if sy-subrc ne 0.
    select single * from trdir
    where name = tstc-pgmna.
    if trdir-subc eq 'F'.
    select single * from tfdir
    where pname = tstc-pgmna.
    select single * from enlfdir
    where funcname = tfdir-funcname.
    select single * from tadir
    where pgmid = 'R3TR'
    and object = 'FUGR'
    and obj_name eq enlfdir-area.
    move : tadir-devclass to v_devclass.
    endif.
    endif.
    select * from tadir into table jtab
    where pgmid = 'R3TR'
    and object in ('SMOD', 'SXSD')
    and devclass = v_devclass.
    select single * from tstct
    where sprsl eq sy-langu
    and tcode eq p_tcode.
    format color col_positive intensified off.
    write:/(19) 'Transaction Code - ',
    20(20) p_tcode,
    45(50) tstct-ttext.
    skip.
    if not jtab[] is initial.
    write:/(105) sy-uline.
    format color col_heading intensified on.
    Sorting the internal Table
    sort jtab by object.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type c.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    loop at jtab into wa_tadir.
    at first.
    format color col_heading intensified on.
    write:/1 sy-vline,
    2 'Enhancement/ Business Add-in',
    41 sy-vline ,
    42 'Description',
    105 sy-vline.
    write:/(105) sy-uline.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    format color col_group intensified on.
    write:/1 sy-vline,
    2 wf_object2,
    105 sy-vline.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    select single modtext into wf_txt
    from modsapt
    where sprsl = sy-langu
    and name = wa_tadir-obj_name.
    format color col_normal intensified off.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single text into wf_txt
    from sxs_attrt
    where sprsl = sy-langu
    and exit_name = wa_tadir-obj_name.
    format color col_normal intensified on.
    endcase.
    write:/1 sy-vline,
    2 wa_tadir-obj_name hotspot on,
    41 sy-vline ,
    42 wf_txt,
    105 sy-vline.
    at end of object.
    write : /(105) sy-uline.
    endat.
    endloop.
    write:/(105) sy-uline.
    skip.
    format color col_total intensified on.
    write:/ 'No.of Exits:' , wf_smod.
    write:/ 'No.of BADis:' , wf_badi.
    else.
    format color col_negative intensified on.
    write:/(105) 'No userexits or BADis exist'.
    endif.
    else.
    format color col_negative intensified on.
    write:/(105) 'Transaction does not exist'.
    endif.
    at line-selection.
    data : wf_object type tadir-object.
    clear wf_object.
    get cursor field field1.
    check field1(8) eq 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    set parameter id 'MON' field sy-lisel+1(10).
    call transaction 'SMOD' and skip first screen.
    when 'SXSD'.
    set parameter id 'EXN' field sy-lisel+1(20).
    call transaction 'SE18' and skip first screen.
    endcase.
    reward for useful answers
    regards
    Nagesh.Paruchuri

  • Badi for Customer Master adding Subscreens

    Hi,
    I am working on BADI for Customer master. Basically I am adding Subscreen for Z Table Fields, So I got the screen and designed the screen.
    I have written some code
    Data:   txtCMSDP(40) type c, “ which I declared in Subscreen text field name
            txtCMSBL(40) type c, “ which I declared in Subscreen textfield name
            txtCustomerNumbercms(7) type c.
    Data:   wa_zdt_sm_kna1_attr type zdt_sm_kna1_attr,
            it_data             type table of zdt_sm_kna1_attr.
      select * from zdt_sm_kna1_attr into corresponding fields of table it_data where kunnr = i_kunnr.
      loop at it_data into wa_zdt_sm_kna1_attr.
        txtCMSDP               = wa_zdt_sm_kna1_attr-dpguid.
        txtCMSBL               = wa_zdt_sm_kna1_attr-blguid.
        txtCustomerNumbercms   = wa_zdt_sm_kna1_attr-cms_num.
      endloop.
    Here I have only Import parameter I_kunnr but I don’t have Export parameters for the field’s dpguid, blguid and cms_num
    I am using BADI customer_add_data and Method READ_ADD_ON_DATA.
    I need to display the data in Subscreen form the Ztable , Please help some sample code for Display values in subscreen fields.
    Thanks in Advance
    vanaja

    Hi Vanaraja,
    You are very close . But chosen a different BADI. You need to implement BADI 'CUSTOMER_ADD_DATA_CS' where you will get a Tab strip. Display your data on the tab strip either as label or as input fields greyed out.
    Pls reward if useful.
    Regards,
    Laxman Nayak.

  • BADI for Customer's own screen for Purchase Requisition.

    Hi All,
    I have a requirement where I need to create a BADI implementation for creating addition screens in the Purchase Requisition Transaction (ME51n/ME52n/ME53n).
    I know there are User exits but we donu2019t want to implement them. Now in case of PO there is a standard SAP given BADI -> ME_GUI_PO_CUST for Customeru2019s own screen but as far as my understanding goes there are no such BADIs for Purchase Requisition.
    Could anyone please advice if I can create a Custom BADI similar to ME_GUI_PO_CUST for PR for adding the screen and throw some light on it like how can this be achieved?
    Thanks,
    Ameesha

    Thanks Darek for replying back and the BADI   ME_BAPI_PR_CUST looks helpful but could you please help me in understanding how can i create my own custom screens within ME51N / ME52N / ME53N tcode using the BADI , ME_BAPI_PR_CUST.
    For example in PO, we have the BADI   ME_GUI_PO_CUST, with several methods like SUBSCRIBE and others which we can make use of for creating screen exits but what in the case of PR fpr BADI  ME_BAPI_PR_CUST. i couldn't find any sample code for implementing this.
    Any help is greatly appreciated.
    Thanks,
    Ameesha

  • SAP delivered standard BADI for custom extracts in R3

    Hello Friends,
    I sthere any SAP delivered standard BADI that can be implemented for custom extracts in SAP R3.
    Thanks
    Simmi

    Hello
    Please see this
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0ec3252-f21c-2a10-3c8d-b9ef05f839ef
    Page 61
    Thanks
    Chandran

  • Badi for customer master

    Hi Experts,
    Is there any badi , i need to validate the customer master data before saving.
    Thanks in Advance,
    Ur's
    Harsha

    Hi Harsha,
    I will tell you a general process to find BADI for a transcation.
    Go to the Transaction, for which we want to find the BADI,
    In our case we will take the example of Transaction XD01/XD02.
    Get the Program Name of Corresponding Transaction.
    (Click on System->Status. Double Click on Program Name)
    Once inside the program search for ‘CL_EXITHANDLER=>GET_INSTANCE’.
    Make sure the radio button   “In main program” is checked.
    A list of all the programs with call to the BADI’s will be listed.
    The export parameter ‘EXIT_NAME’ for the method GET_INSTANCE of class CL_EXITHANDLER will have the user exit assigned to it.
    With the exit name go to SE18 and get the interface name. Do the validation in appropriate of the methods of the interface.
    For example for your case, BADI is CUSTOMER_ADD_DATA and you can do validation in method CHECK_ALL_DATA of interface IF_EX_CUSTOMER_ADD_DATA.
    Award points if found useful.
    Regards
    Indrajit

  • User Exit or BADI For Customer Hierarchy Maintainence- VDH1N

    Hi All,
    I need User Exit or BADI for the Customer Hierarchy Maintainence VDH1N Tansaction.
    I need to Capture all the Changes done to the Customer Hierarchy by the User in ECC.
    Thanxs.
    Swathi

    Hi,
    Follow these steps to find BADI...
    1. Go to the TCode SE24 and enter CL_EXITHANDLER as object type.
    2. In 'Display' mode, go to 'Methods' tab.
    3. Double click the method 'Get Instance' to display it source code.
    4. Set a breakpoint on 'CALL METHOD cl_exithandler => get_class_name_by_interface'.
    5. Then run your transaction.
    6. The screen will stop at this method.
    7. Check the value of parameter 'EXIT_NAME'. It will show you the BADI for that transaction.

  • Badi for custom field check

    hi
      what is the badi which is used to enchence the field validation for the custom fields and control the custom fileds as well as standard felds.
    thx in advance...explain me in detail abt it...

    Hi
    For field validation for the custom fields and control the custom fileds as well as standard felds, you can use the following SRM Business Add-Ins(BADIs) ->
    - BBP_DOC_CHECK_BADI / BBP_ITEM_CHECK_BADI
    - BBP_CUF_BADI / BBP_CUF_BADI_2
    To get the complete details of these SAP BADIs, use transaction - SE18, and read the relevant Standard documentation an the sample code in the methods given in this case...
    Hope this will help. Do let me know your complete business requirements.
    Regards
    - Atul

  • BADI for customer download

    Could anyone tell me which is the customer download BADI in CRM definition please?
    Regards
    Javier Merino

    Hi,
    during searching for issues regarding CRM enhancement or new tables in CRM with MAS and R/3 i found your messages with note to a special document,
    Please can you send me also the doc 'CRM Object Extensions in CRM 3.0 and upcoming releases' (is it the actual now? we are working with CRM 5.0)
    and maybe you can send me another docs or hints for the following issues:
    - create Z-table in R/3 --> CRM --> MAS and develope an synchronisation in both rights
    - create a Z-tables in CRM --> MAS (Customization text table e.g. for Payment condition) and the transfer of data from CRM to MAS
    - add new field to sales area data (KNVV) in r/3--> CRM --> MAS and also an automytical synch in both rights
    i hope you can help me, because i'm new on CRM and his mysterious synch and bdoc mechanism.
    thanks a lot in advance
    regards
    Michael Handschuh
    CSC Austria

  • BADi for custom field

    Once the custom fields inside cProjects are updated and saved, I am looking for a BADi that would do some enhancements. Any idea about this availability?

    Dear Anantharam,
    Please check this sample program from other thread to find BADI and enhancement for a given transaction code. You just need to create a custom program in your system by cut and paste below codes.
    REPORT ZTEST.
    TABLES: TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA: JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA: FIELD1(30).
    DATA: V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS: P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA: WA_TADIR TYPE TADIR.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    ENDCASE.
    Alternatively, you can do the following:
    1. For what ever transaction u want the enhancement .. just check for the System-->status (menu) and find out the PROGRAM name....
    2. Double click on to the program name and go inside the program (Abap editor)
    3. Search for "Call Customer-function " ... and u'll get some search results .. If u get results then u have enhancement in that tcode .....
    4. Then it actually calls a Function module .... copy the Function module name .... go to SE80 (object navigator) click on "Repository Information system" then Customer Enhancements .... Give the Function module name in the "Components" field and click Execute ....
    ull get a list of Enhancements related to that Componene....
    5. Choose which ever enhancement will suit ur business need ..
    6. Go to CMOD... create a project .... assign ur enhancement ... and then code ur logic.... activate ur enhancement in CMOD ....... Ur Buisness need will be solved...
    For a user exit......
    Finding whether there is any User Exit or not for tcode VA42
    1. For what ever transaction u want the user exit .. just check for the System-->status (menu) and find out the PROGRAM name.... ( The program name would be for our scenario "SAPMV45A" )
    2. Double click on to the program name and go inside the program (Abap editor)
    3. Search for the word "USEREXIT" .... u ll find all the user exits in the search result .. and find ur's then ...
    Reward points if this is helpful.
    Regards,
    Naveen.

  • User Exit or BADI for Material,BOM,Customer,Vendor

    Dear All,
    I have requirement where if User A changes a Material X .It should go for approval by workflow.
    When the Material X is waiting for approval no other User should be able to change the material .It should give him a message
    and restrict him from changing the Material.
    Is there any User Exit or BADI to restrict him from changing the material. The exit or BADI should be called as soon as the Material is entered in MM02.
    I need exit or BADI for BOM, Vendor and Customer also.
    Thank you.

    Hi,
    You can go to Transaction SE80 and check in Function Group MATF. There have been two User Exits which are called during MM02 Transaction execution (via Analysis Transaction SE30) - MATERIAL_FIELD_SELECTION_NEW and MATERIAL_FIELD_SELECTION_COMB.
    BAdI called by FM MATERIAL_FIELD_SELECTION_NEW.
    Thanks and Regards,
    Prabhakar Dharmala

  • User,Customer exits or BADI for IDOC Type - CRMXIF_ORDER_SAVE_M01 in CRM

    Hi Friends,
    We are creating teh EDI Sales order in CRM using below details:
    Basic Type - CRMXIF_ORDER_SAVE_M01
    Message Type - CRMXIF_ORDER_SAVE_M
    Functional Module  - IDOC_INPUT_CRMXIF_ORDER_SAVE_M
    Direction -Inbound
    We need to customize the values for the IDOC,
    Can any one help  us in providing the details on any Customer Exits , User Exits and /or  BADIs for the abov ementioned FM.
    We greatly appreciate your early responce.
    Thanks
    Vijay

    Thanks Naresh, it helped...
    Can you please help on the below:
    1. For outbound Sales order IDoc- CRMXIF_ORDER_SAVE_M01,need BADIs for modification of the IDoc before it gets generated.
    2. Need program to generate output as outbound IDoc- CRMXIF_ORDER_SAVE_M01  for sales order conformation/acknowledgement.
    3. Need a BADI after the EDI Sales order is saved.
    Thanks in advance
    Vijay

  • BADI -- CUSTOMER_DATA_CS for Customer master...

    Hi Experts,
    I have inplemented BADIs CUSTOMER_DATA_CS, CUSTOMER_DATA for customer data. It works fine for XD01, XD02, XD03, but when we are in XD03 -display customer transaction and then press on CHANGE  button but the new tab still remains in display mode.
    We can put a user-commnad in PAI of new subscreen, but when user clicks on the CHANGE button and then on the new tab then the sy-ucomm is caputred for the new tab button.
    Can anyone help me out !!!
    Thanks
    Govind

    solved myself..

  • Customer function or Badi for MB21

    Hello,
    I'm looking for a customer function or BADI for MB21 to check values entered in the header.
    I just tried MB_RESERVATION_BADI using DATA_MODIFY or DATA_CHECK interface,but in the first case you cannot use error messages (that's what I need to stop process),well you could use but it get you out of the MB21!
    In the second case you can use error messages (with raise external_message) but
    the transaction doesn't stop in the dynpro header.
    I also used MBCF0007 but it's after the commit ...in this case I don't know how could be usefully,I need to check before it.
    Anyone know if I need to try migrating MBCF0007 to BADI ? Could this help me ?
    Or there something else ?
    I was thinking to move MBCF0007 user extt before commit....
    Thank you !

    Hi,
    look at this
    Exits to change Destination Bin and Storage type during TO creation
    Thanks,
    Gaurav.

  • Performance analysis for custom BADI in SAP BPC

    Hi,
    How to do the run time analysis for custom badi in SAP BW for optimization, please guide me. if some one know the procedure which part of code take more time for execution.
    Regards
    Vimal Raj

    Hello Vimal.
    Please have more info here.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70187b3e-d5ce-2d10-d780-bb8b1a5b0bdc?QuickLink=index&overridelayout=true&49533857874839
    Regards-Ashok

Maybe you are looking for

  • HT201317 updating apple tv gives error in photo stream

    After updating my Apple TV2 to 5.1 Photo Stream no longer works on Apple TV. It demands "accept new terms om conditions... for iCloud", but nowhere it is possible to fins the accept page. I have iPhone 4 with iOS 5..1.1  and PC(Vista) with iTunes upd

  • Don't want voice but phone keeps asking me!!

    Hello all, Got an n95 and just updated the maps. Tried to use the navigation but phone asks about voice guidance. Get 2 options, purchase or exit. Don't want to purchase, so exit, and it leaves the whole "start navigation" process. Am I doing anythin

  • HT3777 Can I use Windows XP in Bootcamp 3/Snow Leopard?

    I have a 27" iMac (I believe it's still the most surrent-bought it late June 2011. Parallels and VMWare Fusion have been a pain. Can I use XP or do I have to upgrade and buy a newer version of Windows: Vista or 7?

  • Please HELP! Fixing My MacBook Pro after I accidentally dropped it

    Hi there, I dropped my MacBook pro earlier and I went online and read some discussions on how to fix it. So I checked my data utility, it says 'Verified' on SMART status, does this mean that my hard drive is okay and all my files are still there? The

  • Printing/Application

    I attempted to compile the following code and got the error: Exception in thread "main" java.lang.NoClassDefFoundError: printer import java.awt.*; import java.awt.event.*; public class printer {      public static void main(String[] argv) {