Implementing Badi for CRM IC

Hi,
User don't want empty interaction record to be created. I have found a badi which will restrict it. But I don't know how to use that BADI as am new to CRM. Please help me to use BADI CRM_IC_IARECORD to restrict record creation.
Thanks
Subin Samuel

Hi Subin,
I would actually ask WHY do you want to suppress the creation of the Interaction Record? Doing so is actually not recommended as a lot of functionality in the Interaction Center relies on the IR including reporting; creating follow-on business transactions; and INTO/INTA linking of emails, service requests, solutions/knowledge articles, etc.
A better idea would just be to remove the IR object from the screen so that agents don't see it and don't need to fill it out, but still allow it to be created in the background.
You can find a little more info in this blog post by Gert Tackaert, "Everything you need to know about the Interaction Record..."
Regards,
John

Similar Messages

  • Implementing BADI for PO

    Dear All,
    <b>In the PO creation badi, in create/change/save methods, i need to clear the purchase info record defaulted by SAP.
    Also in create method, PO price needs to be defaulted as the same as PR price, if the reference PR is found. User should be able to change this default price and save the PO.</b>  Hence, I have to restrict this logic only to create method.
    Now i am trying to implement BADI for PO def (ME_PROCESS_PO_CUST) with (impl name: ZMM_POCREATE). For clearing the purchase info record i put the code in 2 different methods
    1. PROCESS_ITEM
      DATA: ls_mepoitem TYPE mepoitem.
      break LAKSHMIS.
    Get the PO item Details
      ls_mepoitem = im_item->get_data( ).
      ls_mepoitem-INFNR = space.
    Set the item data
      CALL METHOD im_item->set_data
        EXPORTING
          im_data = ls_mepoitem.
    2. OPEN
      DATA:
      ls_header   TYPE mepoheader,
      ls_mepoitem TYPE mepoitem.
      break lakshmis.
      CALL METHOD im_header->get_data
        RECEIVING
          re_data = ls_header.
    Get the items for the PO using get items method and change the purch info record to SPACE and set the values using SET_DATA on item.
    <b>However, in both the cases the value doesnot get changed (as i dont see any changing parameters provided). However the documentation of BADI says that we can change the HEADER as well as ITEM information in this BADI.</b>
    Can anyone please suggest, where i am going wrong and what needs to be done in order to achieve the above two requirements.
    Thanks in advance.
    Regards,
    Lakshmi

    BADI
    http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    www.sapgenie.com/publications/saptips/022006%20-%20Zaidi%20BADI.pdf
    http://www.sapdevelopment.co.uk/enhance/enhance_badi.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c2/eab541c5b63031e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/63ee7f486cc143a560799d8803ce29/content.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/srm/badi-general+information&
    http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    www.sapgenie.com/publications/saptips/022006%20-%20Zaidi%20BADI.pdf
    http://www.sapdevelopment.co.uk/enhance/enhance_badi.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c2/eab541c5b63031e10000000a155106/frameset.htm
    The specified item was not found.
    http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
    http://support.sas.com/rnd/papers/sugi30/SAP.ppt
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://members.aol.com/_ht_a/skarkada/sap/
    http://www.ct-software.com/reportpool_frame.htm
    http://www.saphelp.com/SAP_Technical.htm
    http://www.kabai.com/abaps/q.htm
    http://www.guidancetech.com/people/holland/sap/abap/
    http://www.planetsap.com/download_abap_programs.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    http://www.allsaplinks.com/badi.html
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-serieshttps [original link is broken]:///people/alwin.vandeput2/blog/2006/04/13/how-to-search-for-badis-trace-it
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework /people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework
    http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    http://www.esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40921dd7-d5cf-2910-1894-bb62316afbd1
    http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
    http://support.sas.com/rnd/papers/sugi30/SAP.ppt
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://members.aol.com/_ht_a/skarkada/sap/
    http://www.ct-software.com/reportpool_frame.htm
    http://www.saphelp.com/SAP_Technical.htm
    http://www.kabai.com/abaps/q.htm
    http://www.guidancetech.com/people/holland/sap/abap/
    http://www.planetsap.com/download_abap_programs.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
    http://esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    http://esnips.com/doc/365d4c4d-9fcb-4189-85fd-866b7bf25257/customer-exits--badi.zip
    http://esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
    http://help.sap.com//saphelp_470/helpdata/EN/eb/3e7cee940e11d295df0000e82de14a/frameset.htm
    Rewards if useful.........
    Minal

  • Implementing Badi for additional tab page & creating views in cProjects 3.1

    Hi,
    I am implementing DPR_ADD_SAP_TAB_I for adding new tab page in Cprojects 3.1.
    Please tell me whether we have to create any veiw?
    if it is please tell me the procedure & steps

    Hi...
    Implement the BAdI DPR_ADD_SAP_TAB_I
    and write following code in its method GET_ADD_TAB_DATA
    method IF_EX_DPR_ADD_SAP_TAB_I~GET_ADD_TAB_DATA .
      field-symbols: <tab_data> type DPR_TS_SAP_TAB_CTRL.
      data: lt_tab_data type DPR_TT_SAP_TAB_CTRL.
      constants: lc_pre_ctrl   type string value 'CTRL_TAB_',
                         lc_suff_ctrl  type string value '.DO'.
      lt_tab_data = ct_comp_ctrl.
      loop at lt_tab_data assigning <tab_data>.
        case <tab_data>-obj_type.
       project definition
          when CL_DPR_CO=>SC_OT_PROJECT.
            <tab_data>-tab_title = 'otr(zotr_cust_txt/proj_txt)'.
            concatenate lc_pre_ctrl CL_DPR_CO=>SC_OT_PROJECT lc_suff_ctrl
    into <tab_data>-controller.
        endcase.
      endloop.
      ct_comp_ctrl = lt_tab_data.
      EV_BSP_APPL = 'CST_ADD'.
    endmethod.
    Regards,
    Reema.

  • Badi for CRM billing information...

    Hi experts...
    Is there  any Badi or Exit in ECC to see the CRM Billing Document informatin before accounting document gets generated.
    Or In CRM any BAdi is there to send some values to ECC when billing document gets release.
    Actually i need contract number is to be captured in assignment field of accounting document. Currently we have a provison in ECC i.e in GL  master data one sort key field is there (108- Service contract). If we select this sort key contract number is coming in assignment field of accounting document for the contracts created in ECC(VA41).
    But for CRM contract numbers its not capturing.
    Thanks in advance
    A

    .

  • How implement function for CRM - R3 data exchange

    Hi gurus,
    I'm trying to implement sap note 686215 for CRM side.
    I've create the function module Z_CURRENT_STATE_BUPA_MAIN and insert the record
    into table CRMC_BUT_CALL_FU.
    But now i'dont know how to debug it.
    I've stop the crm outbound and when i save an order in crm and look the outbound bidoc i see:
             Function Module                 Queue Name                Destination                       Date        Time     
          BAPI_SALESDOCU_PROXY_UPLOAD     R3AUORDER_0045000548      QASCLNT100     03.02.2010  15:21:04 
    If i try to debug the FM BAPI_SALESDOCU_PROXY_UPLOAD of bidoc from TR smqs i don't find anything about CRMC_BUT_CALL_FU function modules.
    Any Help?
    Thanks in advance,
    Regards
    Davide

    Hi Davide,
    Not much sure about what exactly you are expecting? Are you trying to create a Data Exchange Scenario within SAP ECC and SAP CRM? Or are you trying to use any existing scenario to enhance it?
    To implement the data exchange between SAP CRM and ECC you need to perform a lot of steps and you need some more function modules.
    It would be good if you can specify more about your requirement as it will help a lot more to tackle the actual problem.
    Hope this helps.
    Thanks,
    Samantak.

  • Implementing BADI for logbook

    Hi,
    I want to implement logbook for PM module for that there are some BADI's , can you please tell me how to implement those BADI and where to see my logbook.
    What is the transaction for logbook.

    answered

  • Implement badi for vms isolate action

    Dear expert,
      I am developing the VMS(vehicle management system) action which is set as "isolate" action.
      I use badi for isolate action to perform execution logic (like update ztable and populate some value to VMS table).
      but the problem is, the history of vehicle, status of vehicle and green light at navigation pannel is not updated even the message display successful.
      Do I need to put some FM call after execute logic within this isolate badi?
      Can some give me some sample?
       Thank a lot.
    Regards,
    Boonsom

    Hi Tim,
    You can execute a method call in Action definition.
    This method call is a badi implementation.
    Badi: EXEC_METHODCALL_PPF
    In this method call you can trigger your external interface.
    Steps:
    1) Implement badi EXEC_METHODCALL_PPF to create you method implementation from which you will trigger your external interface
    2) Create an action definition in Action profile, in third level configuration for action profile, specifiy Method Call and assign the badi implemented method here.
    3) Schedule the action condition.
    Thats all.
    Test the Scenario.
    Best Regards,
    Pratik Patel
    <b>Reward with Points!</b>

  • BADI for CRM Order item

    Hi There,
    I have to execute some custom code whenever an order line item has been deleted. Is there any BADI for this?
    BADI should give me all the line item details and update indicator.
    Thanks in advance,
    Rams.

    Hi Rams,
    Use the parameter IV_GUID in which you will get HEADER GUID.
    Pass this header guid to the CRM_ORDER_READ to get the required data for item.
    Refer the following piece of code:
      APPEND iv_guid TO lit_header_guid.
      INSERT gc_object_name-orderadm_h INTO TABLE lit_req_object.
      INSERT gc_object_name-orderadm_i INTO TABLE lit_req_object.
      CALL FUNCTION 'CRM_ORDER_READ'
        EXPORTING
          it_header_guid       = lit_header_guid
          it_requested_objects = lit_req_object
        IMPORTING
          et_orderadm_h        = lit_orderadm_h
          et_orderadm_i        = lit_orderadm_i
        EXCEPTIONS
          document_not_found   = 1
          error_occurred       = 2
          document_locked      = 3
          no_change_authority  = 4
          no_display_authority = 5
          no_change_allowed    = 6
          OTHERS               = 7.
    <b>Reward points if it helps.</b>

  • BADIs for CRM Billing

    Hi,
    I wanted to know the list of BADIs from billing due list to billing documents. Do we have any thing?.
    Regards,
    Shravan.

    Hi,
    You can find out all the BADIs by placing a breakpoint in method GET_CLASS_NAME_BY_INTERFACE of class CL_EXITHANDLER . Now you can check out manully ( eg: while creation of billing document or update the status), the all BADIs which are associated with this event will trigger.
    Regards,
    Nithish

  • Sample Code for CRM enhancement in BADI

    hi,
      can anybody please give me sample code for BADI for CRM enhancement.
    i have added couple of z field in a extract structure. now i have to write code in BADI to populate those fields.
    please do not send code for user exit.
    Regards
    Subrata

    Hi Aviral,
    Please consider below thread :
    http://scn.sap.com/thread/2069370
    Best regards - Christophe

  • 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

  • BADI for CHM

    Hi,
    Any one knows what is the BADI for CRM-CHM transactions like IR, RTCM, CIR etc where i can get hold of inserted, updated and deleted records.
    Thanks
    Akila. R

    Hi Akila,
    I'm also currently working on CHM archiving and im using the BADI *CMS_BFW_BLH_BADI*. I'm yet to test my implementation and hoping this works.

  • Implementing BADI

    Hi,
    How to implement BADI?
    I want to Implement Badi for t.code FBL3N .
    In This i need to update BSEG table.
    please give me solution
    Edited by: Santhosh on Jan 22, 2008 4:50 PM

    Business Add-Ins
    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. Since specific industries often require special functions, SAP allows you to predefine these points in your software.
    As with customer exits (SMOD/CMOD Page 40), two different views are available:
    • 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.
    In contrast to customer exits, Business Add-Ins no longer assume a two-system infrastructure (SAP and customers), but instead allow for multiple levels of software development (by SAP, partners, and customers, and as country versions, industry solutions, and the like). Definitions and implementations of Business Add-Ins can be created at each level within such a system infrastructure.
    SAP guarantees the upward compatibility of all Business Add-In interfaces. Release upgrades do not affect enhancement calls from within the standard software nor do they affect the validity of call interfaces. You do not have to register Business Add-Ins in SSCR.
    The Business Add-In enhancement technique differentiates between enhancements that can only be implemented once and enhancements that can be used actively by any number of customers at the same time.
    In addition, Business Add-Ins can be defined according to filter values. This allows you to control add-in implementation and make it dependent on specific criteria (on a specific Country value, for example). All ABAP sources, screens, GUIs, and table interfaces created using this enhancement technique are defined in a manner that allows customers to include their own enhancements in the standard.
    A single Business Add-In contains all of the interfaces necessary to implement a specific task. In Release 4.6A, program and menu enhancements can be made with Business Add-Ins. The actual program code is enhanced using ABAP Objects. In order to better understand the programming techniques behind the Business Add-In enhancement concept, SAP recommends reading the section on ABAP Objects
    DEFINING THE BADI
    1) execute Tcode SE18.
    2) Specify a definition Name : ZBADI_SPFLI
    3) Press create
    4) Choose the attribute tab. Specify short desc for badi.. and specify the type :
    multiple use.
    5) Choose the interface tab
    6) Specify interface name: ZIF_EX_BADI_SPFLI and save.
    7) Dbl clk on interface name to start class builder . specify a method name (name,
    level, desc).
    Method level desc
    Linese;ection instance methos some desc
    8) place the cursor on the method name desc its parameters to define the interface.
    Parameter type refe field desc
    I_carrid import spfli-carrid some
    I_connid import spefi-connid some
    9) save , check and activate…adapter class proposed by system is
    ZCL_IM_IM_LINESEL is genereated.
    IMPLEMENTATION OF BADI DEFINITION
    1) EXECUTE tcode se18.choose menuitem create from the implementation menubar.
    2) Specify aname for implementation ZIM_LINESEL
    3) Specify short desc.
    4) Choose interface tab. System proposes a name fo the implementation class.
    ZCL_IM_IMLINESEL which is already generarted.
    5) Specify short desc for method
    6) Dbl clk on method to insert code..(check the code in “AAA”).
    7) Save , check and activate the code.
    Some useful URL
    http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    www.sapgenie.com/publications/saptips/022006%20-%20Zaidi%20BADI.pdf
    http://www.sapdevelopment.co.uk/enhance/enhance_badi.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c2/eab541c5b63031e10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f3202186-0601-0010-6591-b832b1a0d0de
    Now write a sample program to use this badi method..
    Look for “BBB” sample program.
    “AAA”
    data : wa_flights type sflight,
    it_flights type table of sflight.
    format color col_heading.
    write:/ 'Flight info of:', i_carrid, i_connid.
    format color col_normal.
    select * from sflight
    into corresponding fields of table it_flights
    where carrid = i_carrid
    and connid = i_connid.
    loop at it_flights into wa_flights.
    write:/ wa_flights-fldate,
    wa_flights-planetype,
    wa_flights-price currency wa_flights-currency,
    wa_flights-seatsmax,
    wa_flights-seatsocc.
    endloop.
    “BBB”
    *& Report ZBADI_TEST *
    REPORT ZBADI_TEST .
    tables: spfli.
    data: wa_spfli type spfli,
    it_spfli type table of spfli with key carrid connid.
    *Initialise the object of the interface.
    data: exit_ref type ref to ZCL_IM_IM_LINESEL,
    exit_ref1 type ref to ZIF_EX_BADISPFLI1.
    selection-screen begin of block b1.
    select-options: s_carr for spfli-carrid.
    selection-screen end of block b1.
    start-of-selection.
    select * from spfli into corresponding fields of table it_spfli
    where carrid in s_carr.
    end-of-selection.
    loop at it_spfli into wa_spfli.
    write:/ wa_spfli-carrid,
    wa_spfli-connid,
    wa_spfli-cityfrom,
    wa_spfli-deptime,
    wa_spfli-arrtime.
    hide: wa_spfli-carrid, wa_spfli-connid.
    endloop.
    at line-selection.
    check not wa_spfli-carrid is initial.
    create object exit_ref.
    exit_ref1 = exit_ref.
    call method exit_ref1->lineselection
    EXPORTING
    i_carrid = wa_spfli-carrid
    i_connid = wa_spfli-connid.
    clear wa_spfli.
    Regards

  • BADI for ME21N to deactivate HOLD button?

    Hi All,
    I have one doubt in ME21N t'code i:e
    i want to  implement badi for me21n for deactivating for HOLD button. how can i do this one.
    <removed_by_moderator>
    Thanks in Advance,
    Srinivas.
    Edited by: Julius Bussche on Oct 29, 2008 10:36 AM

    you have badi for doing this .ME_HOLD_PO this is badi . Implement this in se19 . You have IS_ALLOWED method . In this method  write ch_allowed = ' '. This will solve your requirement.
    Edited by: A kumar on Oct 29, 2008 10:34 AM

  • I have implemted badi  for adding tab vl01 t.code?

    Hi abapers,
    I have implemented badi  for adding tab vl01 t.code?But additional tab is not appearing in vl01?

    Hi,
    I found something similar.hope it helps.
    lets say u have to add fields to standard table  EKPO.
    U can add a customer field in a standard table only for those standard table which has given the provision for adding fields .
    Go to se11 and check out the table. there u will have CI_EKPODB  . "CI " stands for custom include.
    i u can add my field.
    Read the following----
    To add the customer field :
    Go to SE11 --> EKPO -->Display --> then doube click the data element "CI_EKPODB"... it will ask whether u want to create a field ...press YES and then continue with adding the field.. "ZZPAYMENT" in that ...
    Creating the field in the table:
    Give the name of the componenet "ZZPAYMENT" and the related data element (if the field "ZZPAYMENT" is of type CHAR give the data element as "CHAR" and give the needed length of the field say (15)...... then save and activate ur table........ it will show some warnings .... (ignore that) now ur table with the customer field will be ready
    Hope this helps u out.
    regards,
    Hari Kiran

Maybe you are looking for