Custom fields in ICWC

Hi Gurus,
We added a custom field 'Channel' in agent inbox search view.This is to search the service tickets by communication channel.We implemented BADI CRM_IC_INBOX_BADI.
For search functionality , initially we had the following logic.
There is a method called CUSTOM_HIT_LIST_SORT. It receives table of records based on standard query. Inside this method we were looping at each record and were checking whether its communication channel was same as that of search parameter. If not equal, we were deleting it from table. But the method CUSTOM_HIT_LIST_SORT receives only the first 100 records which satisfy the standard query i.e. search is done based on standard fields which is wrong. According to SAP documentation, if we want to write custom query we should write in method BEFORE_SEARCH. But we do not know how to write it. So can any one help me regarding this.
Points will be rewarded for helpful answer.
Regards,
Raghu.

Hi,
I had the same issue with a field not part of the standard search
Found the actual database call, very good comment by the way:
CL_CRM_REPORT_ACC_DYNAMIC->GET_RESULTLIST_DYNAMIC
* here comes the real stuff
    IF <ft_guidlist> IS INITIAL.
      CALL METHOD database_access
        EXPORTING
          i_select    = g_select
          i_from      = g_from
          i_up_to_n   = g_up_to_n
          it_where    = gt_where
        IMPORTING
          et_guidlist = et_guidlist.
And I realized there was no way (or very complicated) to change the search to use my new field as well. The BAdI would not have helped so I just increased the number of hits from the standard 100, put in place same limits for the standard search criteria and also informed the user that the standard search stopped after the customized max. hits has been reached
Maximum number of hits is actually misleading in the case a search by custom field had been performed.
Let's say maximum number of hits (configurable parameter) is 1000 and to summarize it:
1.     Standard finds 900 hits of which only 100 will be displayed due to the non-standard search parameter.
2.     Standard stops at 1,000 hits but after 1,000 we could have other 20 items (or none at all and actually we do not have a way to know how many) so inform the user to change the search criteria (more restrictive) as to bring the standard result under 1,000 – good enough solution I think.
METHOD eh_onsearch .
        lr_result        TYPE REF TO if_bol_bo_col,
  counter = lr_result->SIZE( ).
  l_max_hits = cl_crm_aui_service=>gv_max_hits.
if counter = l_max_hits.
            CALL METHOD lr_msg_service->add_message
              EXPORTING
                iv_msg_type       = 'I'
endif.
Regards,
Mihai

Similar Messages

  • Custom field addition in ICWC :

    Hi Experts,
    I have used EEWB  to enhanced the GUI(CRMD_ORDER), and getting my custom fields in GUI.
    How to get the same in ICWC screen.
    What are the steps which we need to follow...
    Thanks in Advance
    Chitrakant

    Hi Glenn,
    Thanks for the reply. I will check the link.
    Regards,
    Chitrakant

  • Get the custom fields data at the time of save

    Hi,
    We have added few fields in the ICWC for the complaint screen.
    At the time of save i am trigering a BADI.
    I would like to check the data that is entered in those fields of complaint screen.
    Is there any FM which can be used to get the data from the buffer ?
    I have the header GUID available to me .
    Thanks.
    R

    Hi,
    Let me elaborate a bit.
    Users would create the complaints in the ICWC.We have addeded few custom fields in the complaint screen.
    CRMT_CUSTOMER_H_WRKT is extended with the custom fields.
    At the save i am trigerring the Partner Determination BAdi.
    Here i have the complaint guid at run time.
    I would like to check the data entered in the custom field in the complaint screen. Based on this i would like to determine one more partner.
    My question is how can i get the custom field data in the complaint screen in this BAdi.
    The FM:  CRM_ORDER_READ is not returning this data.Is there any FM to get this ?
    Thanks.
    R.

  • Error while adding a custom field with Input help via AET

    Hi All,
    I need to add two custom field under Service orders at Item level in component BT140I_SRVP.
    One field is required to have the input search help f4 and autopopulates the second field
    I am able to add one field(not requiring help) successfully through AET .
    I have created one Zsearch_help in se11 and its successfully running  and Autopopulating seocnd field while I am testing it
    While adding second field through AET,I need to enter following details as -
    field label,search relevant ,serach help etc.
    When I type the name of my 'Zsearch_help' against field search help it gives me following error
    'Search help is not compatible'.
    Secondly,not getting getter and setter methods for the attrributes in BTAdminI.
    Last,please tell me if i create zhelp and activate it,would it automatically appear in the list on AETwhile assiging it to input field?
    Please help me out.Kindly be detailed as I am new to SAP CRM.
    Thanks,
    Shivani

    The question is answered in CRM 7.0 forum:
    Getting error while adding a custom field (with input help) through AET

  • Error while adding custom fields in ERP quotation

    I am trying to add custom fields to ERP quotation. So picked up ERP_H and added view BTCUSTOMER_H/CustomerH to its views. I have added the relevant custom fields to BTCUSTOMER_H/CustomerH. Now when I try displaying this, I get the following error..
    Context generation failed in view BTCUSTOMER_H/CustomerH of UI Component ERP_H
    An exception has occurred Exception Class  CX_BSP_WD_INCORRECT_IMPLEMENT - There is no node text 'BTAdminH' in controller ''. 
    Method:  CL_BSP_WD_CONTROLLER=>DO_CONTEXT_NODE_BINDING 
    Source Text Row:  39
    Initialization of view BTCUSTOMER_H/CustomerH of UI Component ERP_H failed
    An exception has occurred Exception Class  CX_BSP_WD_INCORRECT_IMPLEMENT - There is no node text 'BTAdminH' in controller ''. 
    Method:  CL_BSP_WD_CONTROLLER=>DO_CONTEXT_NODE_BINDING 
    Source Text Row:  39
    Cannot display view ERP_H/HeaderOverviewpage of UI Component ERP_H
    An exception has occurred Exception Class  CX_BSP_WD_INCORRECT_IMPLEMENT - There is no node text 'BTAdminH' in controller ''. 
    Method:  CL_BSP_WD_CONTROLLER=>DO_CONTEXT_NODE_BINDING 
    Source Text Row:  39
    Window ERP_H/MainWindow of UI Component ERP_H cannot be displayed
    An exception has occurred Exception Class  CX_BSP_WD_RUNTIME_ERROR - View BTCUSTOMER_H/CustomerH in component ERP_H could not be bound 
    Method:  CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW 
    Source Text Row:  165
    I have no prior experiance in UI development. Could someone explain me this error and how to fix this?
    Regards,
    Amar.

    closing this unresolved

  • How to populate a custom field of a Std. SAP Tx with BAPI usage 2 Load data

    Hi Experts,
    For instance, I created a custom field (say, custom_field_1) on a screen of standard SAP tx(say, ME21N) by using screen exit. And in order to populate the data into it (custom_field_1), will use the Function user exits of this Tx(ME23N).
    1) In next step, Where Where I have to add this field, apart from appending the same custom field in EKKO/EKPO table or any other related table; Extending the corresponding IDOC or creating a new Custom ÍDOC type? like What about BAPI?
    2) If I got a text file with the data (including the data for this custom_field_1 too) and I have been asked to load it into SAP, then, I decided to use BAPI (say, BAPI_PO_CREATE or CREATE1) to create the data, So, How to handle this custom field, I mean, In which BAPI structure I have to pass this custom_field_1 data? ( Iguess, for some BAPIs EXTENSIONIN structures are provided, sorry if am wrong!)
    Thank you.
    Edited by: SAP ABAPer on Feb 21, 2009 7:40 PM

    for example if you added field in the  VBAP table  then you can pass the custome field values like below
         move 'BAPE_VBAP' to lwa_extension-structure.
          lwa_bape_vbap-vbeln = lwa_final-vbeln.
          lwa_bape_vbap-posnr = lv_posnr.
          move lwa_final-yyslotid to  lwa_bape_vbap-new custome field.
          move lwa_bape_vbap to lwa_extension-valuepart1.
          append  lwa_extension to  lt_extension.
          clear  lwa_extension.
          move 'BAPE_VBAPX' to lwa_extension-structure.
          lwa_bape_vbapx-vbeln = lwa_final-vbeln.
          lwa_bape_vbapx-posnr = lv_posnr.
          move 'X' to lwa_bape_vbapx--new custome field.
          move lwa_bape_vbapx to lwa_extension-valuepart1.
          append  lwa_extension to  lt_extension.
          clear  lwa_extension.
    call function 'BAPI_SALESORDER_CHANGE'
            exporting
              salesdocument    = strcture
              order_header_inx = strcture
            tables
              order_item_in    =strcture
              order_item_inx   = strcture
              schedule_lines   = strcture
              schedule_linesx  = strcture
              extensionin      = lt_extension.

  • ABAP query using logical database KDF is not populating custom fields

    Hi Experts ,
    I created two following queries
    1.       VENDORCATKDF – uses KDF logical database
    2.       VENDORCATLFA1 – uses table = LFA1
    I’m pulling the same information in both queries:
    ·         Vendor Number
    ·         Country
    ·         Vendor Name
    ·         Vendor Category  (custom fields added to LFA1)
    The results for the query that uses the logical database KDF is incorrect.  It doesn’t pull in the flag on the custom field LFA1-ZMRO.   Even though the logical database KDF is made up of the table LFA1 and has these fields. 
    Is there something that can be done – so that all of these “custom” category fields under LFA1 (such as LFA1-ZZMRO) – get pulled into queries – when we use the logical database KDF ?

    Hi,
    I have got the error removed by ensuring that fields from one table are a part of one line ( taking help of ruler) only. But the underlying problem remains, the output is not ALV but List output.
    I do not think having additional fields in the query is reason for this.
    Is it bcoz iI am adjusting the output length of columns to ensure no hierarchical error ?
    Can we not have a query using LDB which is shown as SAP List?
    Regards,
    Garima.

  • Unable to update MARA table custom field in Material master

    Hi all,
    I have added one custom field in MM01,Basic View 2.
    For that i have apended that field in MARA table and created one subscreen for that.
    This field is visible in MM02/MM01/MM03 in basic data view 2 .
    The issue is that we are not able to save values in MARA table which we entered in this field.
    I cheked earliar in SDN but couldn't get the proper solution.
    i cheked the below available forum discussion link but couldn't get th proper solution.
    In material master How to add a new field on Basic data 1 view
    Regards,
    Amit

    Hi,
    please trye this :
    Please make sure u implemented: methods PUT_DATA_TO_SCREEN and GET_DATA_FROM_SCREEN as they are  required for data transport. These methods are called from within the program of the application at PBO or PAI .
    See below example code:
    PBO:
    MODULE initialize OUTPUT.
    CLEAR: sflight, ok_code.
    IF exit IS INITIAL.
    CALL METHOD cl_exithandler=>get_instance
    CHANGING
    instance = exit.
    ENDIF.
    CALL METHOD cl_exithandler=>set_instance_for_subscreen
    EXPORTING
    instance = exit.
    ENDMODULE.
    The factory method is used to create an instance of the adapter class. You then declare the instance using the public static method SET_INSTANCE_FOR_SUBSCREEN to allow the data for display on the screen to be used in the function group of the user or in the module pool.
    MODULE data_for_subscreen OUTPUT.
    program = sy-repid.
    dynpro = sy-dynnr.
    CALL METHOD cl_exithandler=>get_prog_and_dynp_for_subscr
    EXPORTING
    exit_name = 'BADI_SCREEN'
    calling_program = program
    calling_dynpro = dynpro
    subscreen_area = 'SUB'
    IMPORTING
    called_program = program
    called_dynpro = dynpro.
    CALL METHOD exit->put_data_to_screen
    EXPORTING
    flight = sflight
    EXCEPTIONS
    reserved = 01.
    ENDMODULE.
    PAI:
    MODULE user_command_0200 INPUT.
    CASE save_ok.
    WHEN 'BACK'.
    SET SCREEN 100.
    WHEN 'SAVE'.
    PERFORM save_flights.
    WHEN '+EXT'.
    CALL METHOD exit->get_data_from_screen
    IMPORTING
    flight = sflight
    EXCEPTIONS
    reserved = 01.
    ENDCASE.
    ENDMODULE.
    The method GET_PROG_AND_DYNP_FOR_SUBSCR and the input/output parameters specified above are used to determine the name of the customer program and the name of the subscreen. The method PUT_DATA_TO_SCREEN which is called at PBO as well as the method GET_DATA_FROM_SCREEN which is called at PAI are used to transport the data to be displayed.
    These methods are implemented by the user:
    When you define a screen enhancement, you are strongly recommended to provide sample code for the methods PUT_DATA_TO_SCREEN and GET_DATA_FROM_SCREEN. This code is automatically copied when you create an implementation and can be added to if required. The user of the BAdI definition should not be responsible for the data transport.
    regards,
    ..Pradeep

  • Who has changed the Custom Field value?

    Dears,
    Need to know the information regarding how to fetch that who has changed the Custom field value from PWA/MPP.
    Example:
    There is a PDP (say ProjectInfo):
    There is a Custom Field added to that PDP (say Project Status = In Progress).
    Now for ProjectA, someone has checked out and changed the Custom Field "Project Status" from "In Progress" to "Closed".
    I need to fetch the information regarding who has changed that Custom field.
    In which direction should I move: Event Handlers, PSI???? Any other stuff?
    Thanks & Regards,
    Shravan

    Hi Shravan,
    I'm not a developer but I do know that you can use an event handler pushing the resource name and date in custom fields.
    Another way is to use a 3rd-party tool like
    FluentPro Audit Tool.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Custom field's text not getting displayed in standard report

    Hi All,
    I have a requirement like this .
    There is a Custom field which we have added in a standard FICO report ie S_PL0_86000030 ( G/L Account - Balances ).
    The custom field is added through a report painter , while seeing the config of report painter the custom field is showing the selection text , but when we run this transaction S_PL0_86000030 , the technical name of that field appears in the selection screen .
    For example if the field is ' matnr'  then we give the text as 'Material Number' . Then in the screen this field is getting displayed as Matnr instead of Material Number.
    Please suggest me on this.
    Thanks,
    Sumit

    In transaction GRR2
    Insert->
    selection parameters ->
    take the variable type as >Tesxt varaible for selection parameter
    chosse >material no.
    hope ths helps
    Bhanu

  • Custom field not getting displayed in SUS PO item level

    HI all,
    We are using SRM 5.0, ECC6.0 and ECS scenario.
    As per SAP note 762984, we have enhanced the structures such as :
    INCL_EEW_PD_ITEM_CSF_SUSPO
    INCL_EEW_PD_ITEM_CSF
    and have added a record in the following place in SPRO:
    Supplier Relationship management-> Supplier self service->Make field control settings for tables.
                  | Item   | Display | Z.PO.ITM.VIEW
                  | Item   | Change  | Z.PO.ITM.EDIT
    But we are unable to display the field in the SUS screen.
    We had also referred to the following blog :
    /people/yeusheng.teo/blog/2008/01/05/ordering-unit-vs-order-pricing-unit-in-srm-sus
    but had no success.
    Please let us know if we did something wrong or are we missing something.
    Also please let us know if BSP changes are really necessary to do this as neither in the SAP note nor in the above mentioned blog, there is any mention about this.
    Regards
    Kishan

    Hi Bharadwaj,
    Thank you for your inputs. I executed the program but it didn't display the field.
    But I was able to rectify it by re-creating the steps mentioned in the blog (see original post). I had missed giving correct positions to the custom field.
    Regards
    Kishan

  • Solman 7.1 - CRM WebClient UI - custom field mandatory on status change

    Hi
    I've got a question and I'm not sure if it's possible.
    Basically i have created a custom field in CRM WebClient UI and I have added this field to my Z configuration. This works fine.
    Now, I'm wanting to make an error to appear if this field is blank (hasn't been filled in) when the status of the transaction type changes to a specific status.
    i.e. if "custom field" is BLANK when SMTM changes to Closed, then error appears
    I know the field can be made mandatory, but this particular custom field won't be filled out straight away. Therefore I want the check to occur when the document is closed. Can this be done via PPF Conditions? Or is ABAP/enhancement the only way?
    Thanks
    Shaun

    Hi,
    For customizing crm web ui, you must need AET or EEWB tools. Best Practices for SAP CRM Web UI Customization - CRM - SCN Wiki
    but try by using the standard sap note  1772650 - ST710:You can save a message even though mandatory fields are not filled in. which can set certain warning message for custom fields or not and the other relevant  1931783 - Incident can be saved without filling mandatory fields
    Please check.
    Thanks
    Jansi

  • Search on the custom field in Product doesn't work

    Hello everyone!
    Lately I was configuring additional custom field for product header and succeed. Then I wanted to add this field as a search criteria for product search and I followed help on help.sap.com and note 1026956. Here are the steps I did:
    1. I've extended structures CRMT_PRIL_QUERY_ADVSEARCH_PROD and CRMT_PRIL_QUERY_ADVSEARCH_IOBJ with my custom attribute.
    2. I went to Master Data->Products-> Basic Settings ->Add Attributes to Search Structure and added my custom attribute there.
    3. Then I found out that it's not enough and I should perform additional steps not included in note and help. I did these steps suggested by Shanthala Kudva in thread [Can't enable the extendable set type attributes in product search UI|Can't enable the extendable set type attributes in product search UI;.
    After that I was able to configure UI and see the search criteria, but when I try to search using custom field I get error message: "Search criteria PRODUCT_ANKER.ZCAT_NUMBER in scenario CL_CRM_PRSEARCHSCENARIO_GETLST not included in tool/filter"
    How to find out the reason of this behavior? Did I miss something in configuration?
    P.S. Set type called ZPRODUCT, attribute ZCATNUMBER. In structures appended component called ZCAT_NUMBER with component type ZCATNUMBER. In table CRMC_PRSEA_ATTR the record has the attributename ZCAT_NUMBER, attribute_id ZCATNUMBER. Maybe I messed up with that?
    Regards,
    Alex.

    Hi Alexander,
    I know this is an old post, but currently i am facing the same issue of not being able to see my custom fields in the BSP Component Workbench.
    I tried to follow all steps maintained in SAP Note # 10269656 & 1541480, but no luck.
    Can you please tell me what do you mean by "Should not add the extended attributes directly to Search Structure, as SAP expects the attributes to be in APPEND structure"? Can you please let me know how the values are to be maintained in the Search structure table "CRMC_PRSEA_ATTR", which is also accessed using the IMG Meanu path "Master Data -->  Products --> Basic Settings --> Add Attributes to Search Structure"
    Appreciate your help.
    Suresh Karri

  • In T-Code: MIRO ; how to add custom fields in Table Control

    In MIRO
    in PO Reference tabstip i want to add 2 custom fields ( say PO segment Invoice number and vechecle names i have to populate ).
    How to do dis ,
    any BADIs or any EXITS ????
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Regards,
    Ramesh.
    Edited by: Alvaro Tejada Galindo on Dec 29, 2009 11:24 AM

    ok

  • How to add custom fields in BADI  Subscreen.

    Hi Friends,
    I have to include some custom fields in MFBF tcode.(In make-to-order tab page).
    To do that I have used RM_HR_INTEGRATION  BADI definition  and created implementation for this. In the provided subscreen I tried to add custom fields but it asks access key . I donu2019t know , how to proceed further. Your help is needed.
    Or kindly provide me solution to achieve my requirement.
    Thanks in Advance,
    senthil.

    Hi Venky,
    We can see the documentation in
    se18 -> badi -> LE_SHP_TAB_CUST_HEAD -> display -> documentation button above the definition name
    in the first pop-up of documentation..go to the end which says 'Further notes'
    Further notes
    Documentation on BAdI Interface LE_SHP_TAB_CUST_HEAD
    click on this and we have a detailed description of each method defined in the badi
    Hope it helps
    Regards
    Byju

Maybe you are looking for