How can I sort the partner table (ICCMP_BTPARTNER/PartnerTable)?

Hi all,
we run a crm 5.0 system and are currently in a change of release to version 7.0. In 5.0 the sort order of the partner table within a serviceticket can be controlled by customizing (Customer Relationship Management -> Basic Functions -> Partner Processing -> Define Partner Determination Procedure -> User Interface Settings).
In 7.0 these settings seem to be ignored. The sortation is by the technical id of the partner function. Is there any new customizing for that? Or is there no sortation supported?
Same issue is within the dropdownlistbox of the partner functions in ICCMP_BTPARTNER/AddView. I want to sort the dropdownlistbox as well.
Thanks for your help.
Best regards.
Ben

Done.
I realized it with two methods...
CALLED in WD_CREATE_CONTEXT
METHOD read_customzing_for_sortation.
Variablen
  DATA: lr_gdc           TYPE REF TO if_crm_ui_data_context.
  DATA: lr_serviceticket TYPE REF TO if_bol_bo_property_access.
  DATA: lr_entity        TYPE REF TO cl_crm_bol_entity.
  DATA: ls_ui_settings   TYPE comc_partner_uis.
  DATA: lv_proc_type     TYPE crmt_process_type.
  DATA: lv_det_proc      TYPE comt_partner_determ_proc.
  DATA: lt_partner_fct   TYPE TABLE OF crmc_partner_pdp.
  DATA: ls_partner_fct   TYPE crmc_partner_pdp.
Daten zurücksetzen
  CLEAR: gt_partner_sort_cust.
Globalen Datenkontext ermitteln
  CLEAR: lr_gdc.
  TRY.
      lr_gdc ?= cl_crm_ui_data_context_srv=>get_instance( iv_controller = me ).
    CATCH cx_root.
  ENDTRY.
  CHECK lr_gdc IS BOUND.
Aktuelles Serviceticket ermitteln
  CLEAR: lr_serviceticket, lr_entity.
  CALL METHOD lr_gdc->get_entity
    EXPORTING
      name  = if_iccmp_global_data_cont_con=>gdc_currentserviceticket
    RECEIVING
      value = lr_serviceticket.
  CHECK lr_serviceticket IS BOUND.
  lr_entity ?= lr_serviceticket.
  CHECK lr_entity IS BOUND.
Vorgangstyp ermitteln
  CLEAR: lv_proc_type.
  TRY.
      lr_entity = lr_entity->get_related_entity( 'BTOrderHeader' ).
      CHECK lr_entity IS BOUND.
      CALL METHOD lr_entity->get_property_as_value
        EXPORTING
          iv_attr_name = 'PROCESS_TYPE'
        IMPORTING
          ev_result    = lv_proc_type.
    CATCH cx_root.
  ENDTRY.
  CHECK lv_proc_type IS NOT INITIAL.
Partnerschema ermitteln
  CLEAR: lv_det_proc.
  SELECT SINGLE part_determ_proc
           FROM crmc_proc_type
           INTO lv_det_proc
          WHERE process_type EQ lv_proc_type.
  CHECK lv_det_proc IS NOT initial.
Customizing für Partnerschema auslesen
  CLEAR: ls_ui_settings.
  SELECT SINGLE *
           FROM comc_partner_uis
           INTO ls_ui_settings
          WHERE determ_proc EQ lv_det_proc.
Partnerfunktionen in Sortierreihenfolge der Tabelle hinzufügen
  APPEND ls_ui_settings-header_fct_1 TO gt_partner_sort_cust.
  APPEND ls_ui_settings-header_fct_2 TO gt_partner_sort_cust.
  APPEND ls_ui_settings-header_fct_3 TO gt_partner_sort_cust.
  APPEND ls_ui_settings-header_fct_4 TO gt_partner_sort_cust.
Im Customizing können nur die ersten vier Partnerfunktionen angegeben werden, restliche Partnerfunktionen nachlesen
  CLEAR: lt_partner_fct.
  SELECT * FROM crmc_partner_pdp
     INTO TABLE lt_partner_fct
          WHERE determ_proc EQ lv_det_proc.
Partnerschema durchgehen und ggf. fehlende Partnerfunktionen hinzufügen
  LOOP AT lt_partner_fct INTO ls_partner_fct.
    READ TABLE gt_partner_sort_cust FROM ls_partner_fct-partner_fct TRANSPORTING NO FIELDS.
    IF sy-subrc NE 0.
      APPEND ls_partner_fct-partner_fct TO gt_partner_sort_cust.
    ENDIF.
  ENDLOOP.
ENDMETHOD.
and
CALLED in DO_PREPARE_OUTPUT
METHOD sort_partner_table.
Variablen
  DATA: lr_sorted_collection TYPE REF TO cl_bsp_wd_collection_wrapper.
  DATA: lr_entity            TYPE REF TO cl_crm_bol_entity.
  DATA: ls_partner_sort_cust TYPE comt_partner_fct.
  DATA: lv_partner_fct       TYPE crmt_partner_fct.
Daten zurücksetzen
  CLEAR: lr_entity, lr_sorted_collection.
Neue, sortierte Collection initialisieren
  CREATE OBJECT lr_sorted_collection.
Vor der Sortierung nach Customizing einmal nach Partnernummer sortieren, damit zweite Sortierung später korrekt ist
  me->typed_context->btpartner->collection_wrapper->sort( iv_attr_name  = 'PARTNER_NO'
                                                          iv_sort_order = if_bol_bo_col=>sort_ascending
                                                          iv_stable     = abap_true ).
Partner-Sortier-Customizing durchgehen
  LOOP AT gt_partner_sort_cust INTO ls_partner_sort_cust.
Partnertabelle durchgehen
    CLEAR: lr_entity.
    lr_entity ?= me->typed_context->btpartner->collection_wrapper->get_first( ).
    WHILE lr_entity IS BOUND.
  Partnerfunktion ermitteln
      CALL METHOD lr_entity->get_property_as_value
        EXPORTING
          iv_attr_name = 'PARTNER_FCT'
        IMPORTING
          ev_result    = lv_partner_fct.
  Wenn Partnerfunktionen gleich, dann Entität in neue, sortierte Collection schreiben
      IF lv_partner_fct EQ ls_partner_sort_cust.
        lr_sorted_collection->add( lr_entity ).
      ENDIF.
  Nächsten Eintrag
      lr_entity ?= me->typed_context->btpartner->collection_wrapper->get_next( ).
    ENDWHILE.
  ENDLOOP.
Neue, sortierte Collection an Stelle der alten Collection setzen
  me->typed_context->btpartner->collection_wrapper->clear( ).
  me->typed_context->btpartner->collection_wrapper->set_collection( lr_sorted_collection ).
ENDMETHOD.

Similar Messages

  • How can i sort the RowSet?

    I have the 2 (master and detail) entity objects, and corresponding 2 (master and detail) view objects.
    Then i've generated the entity object class for the master EO, this class has methods of getting/setting EO attributes, and method for getting a row iterator for the detail object:
    /**Gets the associated entity oracle.jbo.RowIterator */
    public RowIterator getDetailEO() {
    return (RowIterator)getAttributeInternal(DETAILEO);
    Also in that entity object class i've created a method which gets the rows of the detail table, that correspond to the master record, and perform different action on these detail rows:
    RowSet detailRowSet = (RowSet)getDetailEO();
    detailRowSet.executeQuery();
    The question is - How can i sort the rows in that detail RowSet, i.e. order them by their Id? I know that sort operations can be performed on the ViewObjects, but i can't get detail VO from this RowSet.
    Is there a method of sorting/ordering rows in the RowSet?

    You can actually have methods in the VO that access details from the master and vice versa - you define the generation of these methods in you ViewLink properties.
    http://download.oracle.com/docs/html/B25947_01/bcquerying010.htm#sthref327

  • How can we transport the partner profiles and Port configurations

    Hi everybody,
    How can we transport the partner profiles and Port configurations. While creating these , system will not ask for Dev class and we cant assign any Transport request number. Then How can we transport these settings?
    Your replies are really apreciable.
    Thanks and Regards,
    Vijay.

    Hi,
    please have a look of the OSS note: 182172
    >>
    The partner profiles are stored in the following tables:
    Table EDPP1: General partner profile
    Table EDP12: Partner profile outbound, additional data NAST
    Table EDP13: Partner profile outbound
    Table EDP21: Partner profile inbound
    Table EDIPHONE: Connection to SAP telephony (optional)
    You can use R3TR TABU to manually set the tables into a Customizing request (as of Release 46, into a SYST-type request).
    <<
    Rgd
    Frédéric

  • How can I sort the words in a document into an alphabetical list?

    How can I sort the words in a document into an alphabetical list? Thanks!

    writer888 wrote:
    How can I sort the words in a document into an alphabetical list? Thanks!
    Copy the words to the Mac's clipboard (Edit menu> Copy)
    Paste into TextEdit 
    Next open the Edit > Find > Find window in Text Edit.
    Highlight a space between two words and Edit menu > copy, paste into the Find field
    Next create a return in the middle of your text and copy that and paste into the Replace field
    Click Replace All.
    Now Edit > Select All and Edit > Copy
    Open a Spreadsheet program with Sort ability and paste into the second column cell from the top
    place a "a" into the top column cell, select the entire colum
    Sort desending order
    Now if you need it out of spreadsheet format, then your going to need to copy just the data cells (not the entire column to avoid problems) and Paste "Special" as unformatted text into a word processing program
    If you need to get rid of the Returns, do the opposite you did in Text Edit, replace the Returns with Spaces
    A chore, but it's rare one needs to sort words into alaphabetical order.
    FYI, I used TextEdit and the free LibreOffice (Spreadsheet and Word Processing) for the above effects.

  • *How can we use the internal table in module pool programming? Clarify plz*

    If we creating a screen using the table having four fields(for e.g.). The screen has the functions of display, modify, delete, save, exit etc for the fields. The front-end of the screen having I/O fields of the table using internal table. How can we declare the internal table in the screen?

    HI,
    Create one WA for your Internal table and then map it to your fields.
    For Example,
    Data : begin of wa,
              name(10),
              age type i,
               end of wa.
    data : it like table of wa with header line.
    Then in screen create input fields with the name, age and ***.
    Then the user entered values are stored in name age and ***.
    then you can manipulate with that values using wa.
    Thanks.

  • How can I  sort the pictures in my gallery into albums?

    How can I sort the photos in my gallery into albums?

    Thank you
    Sandi
    Bark less, wag more - unless you are a Schnauzer

  • How can I sort the bookstore by price?

    Dear all, How can I sort the ibook bookstore by price of the books?

    There is no such option, there are WAY too many books available on the iBookStore to this.

  • How can i use the nested table in form 6i

    how can i use the nested table in the form 6i
    ( i.e i want to insert record into the nestred table field ).
    bye siddharth singh

    Nested tables are not supported in Forms 6i, only simple object tables.

  • How can I update the trigger table?

    I need a insert trigger on a table and also wants to insert the result value in one of its field.
    it gives mutating error........
    so wots the way of updating it? how can i update the same table.

    For example like this (inside the BEGIN/END section of the trigger):
    :NEW.Col2 := :NEW.Col1;
    C.

  • How can i update the ADRT table REMARK field

    How can i update the ADRT table REMARK field
    by using only function modules or BAPI's not by direct update's
    please help me
    i need it urgently

    Hi,
    you can try this code:
        SELECT SINGLE * FROM KNA1 WHERE KUNNR = wa_kunnr.
        IF sy-subrc = 0.
          CLEAR adrct.
          SELECT SINGLE * FROM adrct WHERE addrnumber = kna1-adrnr.
          IF sy-subrc = 0.
            adrct-remark = wa_remark.
            MODIFY adrct.
          ENDIF.
        ENDIF
    best regards,
    Thangesh

  • How can I sort the target list in debug form.

    If I want to select a procedure/function to debug it is very hard to find it if the package contains a lot of procedures. How can I sort the target list. I did not find anything in the preferences. Thanks.

    Sorry, can't be done. You can request this at the SQL Developer Exchange though, so other users can vote and add weight for possible future implementation.
    My suggestion (if you decide to request it): base the order in the dialog on the order inside the navigator tree (location in the source by default, but possible by name or type/name - see tree's context menu).
    Regards,
    K.

  • How can I sort the my podcasts in alphabetical order?

    After the update to iTunes 11.1 my podcasts are all in chaotic order. I can't find anything anymore.
    Even podcasts with nearly the same name are not in the same place.
    Example: Windows Weekly (hi) isn't followed by Windows Weekly (mp3)
    Where or how can I change the sort order ?

    Although the original post is a few weeks old, I suspect that many people are still having the same issue.
    I'm using the List view (the old view), which presents the Podcasts in the Programme-name alphabetical order:
    As G3gator says, "something " needs exterminating!
    Phil

  • HT201317 How can I sort the order of photos in photo stream?

    My photos end up in a chronological order when posted to photo stream. How can I sort them in the order I want them to be viewed?

    Send a feature request to Apple via
    http://www.apple.com/feedback/iphoto.html
    and
    http://www.apple.com/feedback/icloud.html
    OT

  • How can I sort the Pictures in an Album by Name?

    I am updated my Photo App on OSX 10.10.2. All my Albums are imported fine, but how I can sort the Pictures in one Album by name? I just found the option for the Albums.

    Currently you can sort regular albums manually or by date; Smart Albums only by date; see How can you sort Album or Smart Album photos?

  • How can I fill the NRIV table ??

    Hi,
    I want use the following form : USEREXIT_NUMBER_RANGE.
    But I need to fill some information in the NRIV table like new intervals range. How can I access to this table and fill my new information ?
    Thanks in advance for your help.

    Read the sap help on Number Ranges.
    Hint: tx SNRO maintains number ranges.
    Edited by: Matt on Oct 10, 2008 3:07 PM

Maybe you are looking for

  • How  to Activate EAN field in sales order

    Hi Guru's Can anybody give  me the T.code/path  for Activating the EAN field at the sales order level i.e in salesA tab in item overview screen. Thanks&regards, Nagendra

  • How do I load balance TFTP between two servers and a client on the same subnet?

    Hi, I have trawled through several documents and tried umpteen different configs, all to no avail. I have a PXE boot client trying to access a boot file via TFTP from a couple of TFTP servers on the same VLAN/subnet. For HA purposes I want to load ba

  • Process Server Log

    Hi all, is any further configuration necessary to view the Process Server Log in NWA BPM Troubleshooting? When logging on with administrator rights I don't see any entry. What exactly is logged there? All actions related to processes or only the serv

  • Where to pole the Inbound 997 Aknowledgement in the B2B Database

    Hi, I have a requirement to process(through BPEL) the incoming 997 acknowledgment for 810 transactions. I am able to receive the 997 successfully and it is changing the status in B2B reports from "MSG_WAIT for FA" to "MSG_Completed". Now I have creat

  • JSP InputSelect default value

    I would like to preset a default value to be displayed by the input select control. Thanks in advance null