Partner Function text

Hi BW Gurus,
I need to load transaction data to infoobject ship to, Ship to info object is in Sales ods.I need to load the partner function text for this Ship to info object.
The logic is:
we need to take  the sales doc number from vbak for order type = 'X' sales org = 'Y ' and Dist channel - 'Z'.
sales doc item number from vbap.
To get the partner function text we need to give the vbeln (sales doc number) and parvw (partner function ) in the table vbpa.
now take the ADRNR field which is the address field from vbpa and pass this field in table ADRC and try to pull the names from ADRC table.
i tried to write this logic using Function module, but i am not sure where iam wrong . please let me know the changes i should do .
FUNCTION zbw_shipto_partfunc.
""Local interface:
*"  IMPORTING
*"     VALUE(I_REQUNR) TYPE  SRSC_S_IF_SIMPLE-REQUNR
*"     VALUE(I_DSOURCE) TYPE  SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
*"     VALUE(I_MAXSIZE) TYPE  SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
*"     VALUE(I_INITFLAG) TYPE  SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
*"     VALUE(I_READ_ONLY) TYPE  SRSC_S_IF_SIMPLE-READONLY OPTIONAL
*"  TABLES
*"      I_T_SELECT TYPE  SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
*"      I_T_FIELDS TYPE  SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
*"      E_T_DATA STRUCTURE  XYZ OPTIONAL
*"  EXCEPTIONS
*"      NO_MORE_DATA
*"      ERROR_PASSED_TO_MESS_HANDLER
FUNCTION MODULE FOR SHIP TO PARTNER FUNCTION
  TABLES: vbak,vbap,vbpa,adrc.
  DATA: l_s_select TYPE srsc_s_select.
  STATICS: s_s_if TYPE srsc_s_if_simple,
counter
  s_counter_datapakid LIKE sy-tabix,
cursor
  s_cursor TYPE cursor.
ranges: l_r_vbeln    for Vbpa-vbeln,
          l_r_posnr    for Vbpa-posnr.
  DATA: BEGIN OF t_vbak OCCURS 0,
         vbeln LIKE vbak-vbeln,
         END OF t_vbak.
  DATA: BEGIN OF t_vbap OCCURS 0,
        vbeln LIKE vbap-vbeln,
        posnr LIKE vbap-posnr,
        END OF t_vbap.
  DATA: BEGIN OF t_vbpa OCCURS 0,
        vbeln LIKE vbpa-vbeln,
        posnr LIKE vbpa-posnr,
        parvw LIKE vbpa-parvw,
        adrnr LIKE vbpa-adrnr,
        END OF t_vbpa.
  DATA: BEGIN OF t_adrc OCCURS 0,
       addrnumber LIKE adrc-addrnumber,
       name1 LIKE adrc-name1,
       name2 LIKE adrc-name2,
       name3 LIKE adrc-name3,
       name4 LIKE adrc-name4,
       END OF t_adrc.
  IF i_initflag = sbiwa_c_flag_on.
    CASE i_dsource.
      WHEN  'ZBW_SHIPTO_NAME'.
      WHEN OTHERS.
        IF 1 = 2. MESSAGE e009(r3). ENDIF.
this is a typical log call. Please write every error message like this
        log_write 'E'                  "message type
                  'R3'                 "message class
                  '009'                "message number
                  i_dsource   "message variable 1
                  ' '.                 "message variable 2
        RAISE error_passed_to_mess_handler.
    ENDCASE.
    APPEND LINES OF i_t_select TO s_s_if-t_select.
Fill parameter buffer for data extraction calls
    s_s_if-requnr    = i_requnr.
    s_s_if-dsource = i_dsource.
    s_s_if-maxsize   = i_maxsize.
Fill field list table for an optimized select statement
(in case that there is no 1:1 relation between InfoSource fields
and database table fields this may be far from beeing trivial)
    APPEND LINES OF i_t_fields TO s_s_if-t_fields.
  ELSE.                 "Initialization mode or data extraction ?
    IF s_counter_datapakid = 0.
      LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = 'vbeln'.
        MOVE-CORRESPONDING l_s_select TO l_r_vbeln.
        APPEND l_r_vbeln.
      ENDLOOP.
      LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = 'posnr'.
        MOVE-CORRESPONDING l_s_select TO l_r_posnr.
        APPEND l_r_posnr.
      ENDLOOP.
  OPEN CURSOR WITH HOLD s_cursor FOR
  SELECT vbeln
       FROM vbak     WHERE vbeln in l_r_vbeln
                       and
                     auart EQ 'X' AND
                   vkorg EQ 'Y' AND
                   vtweg EQ 'Z'.
SELECT vbeln
       FROM vbak   into table T_Vbak WHERE vbeln in l_r_vbeln
                       and
                     auart EQ 'X' AND
                   vkorg EQ 'Y' AND
                   vtweg EQ 'Z'.
      SELECT vbeln
                   posnr
           FROM vbap INTO TABLE t_vbap
           FOR ALL ENTRIES IN t_vbak
                               WHERE  vbeln EQ t_vbak-vbeln.
         SELECT vbeln
                   posnr
                   parvw
                   adrnr FROM vbpa
              INTO TABLE t_vbpa
                               FOR ALL ENTRIES IN t_vbap
                               WHERE vbeln EQ T_vbap-vbeln
                                and
                               parvw EQ 'ABC'.
      FETCH NEXT CURSOR S_CURSOR
               APPENDING CORRESPONDING FIELDS
               OF TABLE E_T_DATA
               PACKAGE SIZE S_S_IF-MAXSIZE.
    IF SY-SUBRC <> 0.
      CLOSE CURSOR S_CURSOR.
      RAISE NO_MORE_DATA.
    ENDIF.
    S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
  ENDIF.              "Initialization mode or data extraction ?
      LOOP AT t_vbpa.
        READ TABLE t_vbpa WITH KEY vbeln = t_vbap-vbeln
                                 posnr = t_vbap-posnr
                                 BINARY SEARCH.
        IF sy-subrc EQ 0.
        ELSE.
          READ TABLE t_vbpa WITH KEY vbeln = t_vbap-vbeln BINARY SEARCH.
        ENDIF.
ENDLOOP.
          IF sy-subrc EQ 0.
            SELECT SINGLE addrnumber NAME1 NAME2 NAME3 NAME4 FROM adrc
into T_ADRC
             WHERE addrnumber EQ t_vbpa-adrnr.
                ENDIF.
      ENDIF.
       loop at t_ADRC.
       Clear E_t_data.
      e_t_data-ADDRNUMBER = T_ADRC-ADDRNUMBER.
      e_t_data-NAME1 = T_ADRC-NAME1.
      e_t_data-NAME2 = T_ADRC-NAME2.
      e_t_data-NAME3 = T_ADRC-NAME3.
      e_t_data-NAME4 = T_ADRC-NAME4.
      move-corresponding T_ADRC to e_t_data.
      append e_t_data.
    endloop.
ENDFUNCTION.
when i check this in RSA3 i am not getting any records.please let me know what changes should i do in the code.
My data structure in R/3 contains these fields
ADDRNUMBER
NAME1
NAME2
NAME3
NAME4.
should i change and add any other fields for this.

Hello Pratik,
Firstly, there are multiple Function Modules to create BP in CRM.
BAPI_BUPA_CREATE_FROM_DATA seems to be the simplest one to me to create BP.
In order to insert long text, you can refer to following sample code:
DATA: notes type string,
            lt_lines TYPE comt_text_lines_t,
            ls_header              TYPE thead,
            ls_longtexts           LIKE LINE OF lt_longtexts.
    CALL FUNCTION 'CONV_TEXTSTRING_TO_ITF'
      EXPORTING
        iv_textstring = notes
      IMPORTING
        et_itf        = lt_lines.
    ls_header-tdid     = 'Z001'.           " This will be the long text ID defined in the Text Determination Procedure for BP
    ls_header-tdspras  = 'EN'.
    ls_header-tdname   = partner_no.
    ls_header-tdobject = 'BUT000'.
    ls_longtexts-data-lines = lt_lines.
    CALL FUNCTION 'SAVE_TEXT'
      EXPORTING
        header          = ls_header
        insert          = 'I'
        savemode_direct = 'X'
      TABLES
        lines           = ls_longtexts-data-lines
      EXCEPTIONS
        id              = 1
        language        = 2
        name            = 3
        object          = 4
        OTHERS          = 5.
    IF sy-subrc = 0.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = 'X'.
    ENDIF.
Hope this helps.
Thanks
Vishal

Similar Messages

  • Customer Master Partner Functions

    Hello,
    We are looking for standard extractor on Customer Master Partner Functions, which is based on table KNVP. Also extractor on Partner Functions Text from table TPART.
    I searched in SAP HELP with no result.
    someone has an idea?
    Thanks,
    Maya

    Shalom Maya,
    Normally, the fastest way to look for a datasource is to search help.sap.com.
    In this case if seems like for KNVP there is no standard extraction, so might need to create your own generic extractor.
    Take a look at the following posting (It might help you achieve your requirement):
    Re: Partner functions (R/3 table KNVP)
    Bye,
    Gilad

  • New Partner Function in CRM (Solution Manager Service Desk)

    Hi CRM Gurus!,
      Even if this problem is present in my Solution Manager Service Desk I'm creating this thread here in CRM Forum because I thin'k I need the experience of one CRM Expert. Í´ve created this question in Solution Manager Forum also but I hadn´t solved my problem yet.
    We add the partner function called "Additional Partner", but I don't know why in the tab "Partners" in the CRM transaction we want to add a new partner but in the partners combo the new one does not appear in the list.
    The procedure that I did was: I created a new business partner function and I added this new function to my partner determination procedure, then in SPRO: "Define Partner Determination Procedures" -> I set the option "Only Functions Assigned in Procedure". 
    These are the values. fro my new function:
    Function: ZSLFN004
    Text: Additional Processor
    Abbrev.: ZAMS
    Function Cat.: 0008 Person Responsible
    Usage: CRM Customer Relationship Managem.
    Relatshp Cat: CRMH06 Is Responsible BP For
    The partner functions in my procedure are:
    00000001 Sold-To Party (CRM)
    00000046 Approved by (CRM)
    SLFN0001 System Administrator (CRM)
    SLFN0002 Reported by (CRM)
    SLFN0003 Support Team (CRM)
    SLFN0004 Message Processor (CRM)
    ZSLFN004 Additional Processor (CRM)
    But in the transactions when I try to add a new partner in the partners tab only the follow functions appears in the combo:
    00000001 Sold-To Party (CRM)
    00000046 Approved by (CRM)
    SLFN0001 System Administrator (CRM)
    SLFN0002 Reported by (CRM)
    SLFN0003 Support Team (CRM)
    SLFN0004 Message Processor (CRM)
    I don't know why my ZSLFN004 is not listed in the combo.
    By the way, my function was created as a copy of SLFN0004.
    Any help would be appreciated.
    Regards
    Gustavo Balboa

    Hi Vishant,
      Thanks for your answer, but some one in the Solution Manager forum gave me the answer few minutes ago :). The problem was that in some transaction types (I don't know wich ones or if it aplies to all) the category 0008 - Person Responsible can only appear once, my partner function was a copy of the function SLFN0004 - Message Processor and that function is defined with the category 0008, so I had 2 partner functions defined in the category 0008.
    To solve the problem I just adjust my Z function and put the category 0016 - Service Team and let the relationship empty. Then the partner function is now showing in the combo at partners tab.
    Again, thanks anyway for the time that you take to answer my question.
    Regards
    Gustavo Balboa

  • Rule Modeler - Automatic assignment Partner Function based on PC of IBASE

    Hi Experts,
    I have the following requirement. The IC Agent when receiving a call has to create a Service Ticket (Service Order). By creating the Service Ticket the responsible Service Partner has to be assigned to solve the service incident based on the Postal code of the IBase (Installed Base).
    The following steps I have done:
    1. I have created the Service-ID Z_RE_RULE_EXEC (Rule Invocation) with the following properties:
        CONTEXT               Context
        DEF_ROUTING    Default Routing
        LOG_LEVEL        Logging Level
        POLICY                Root Policy
    2. Under Repository I have defined a new context: Z_TICKET_ASSIGMT with the following properties:
    Context Properties: No Customizing
    Authorization Groups: No Customizing
    Attributes: 
    Name: ZPOST_CODE1_IB
    Show Attribute: Flag marked
    X Path Expression: /parts/currentIbase/ComponentAddress/POST_CODE1/text()
    Fact Gathering Service: FG_IC_REF_OBJ
    Attrib. Ext. Class: CL_CRM_ERMS_ATXT_TEXT_NCAT
    Actions:
    Action-ID: Z_PARTNER_ID
    Show Action: Flag marked
    Action Service ID: DD_AH_PARTNER_ID
    Action Parameters:
    Parameter-ID: PARTNER_ID
    Display Mode: O
    Inp Spt Class: CL_CRM_DD_F4_BP
    Afterwards I created the Rule Policy: Z_PRUEBA2 with the condition that if the Postal Code of the IBase is 08030 or 08035
    the Partner Function ID 56 has to be assigned to the Service Ticket. I have released the Rule Policy afterwards.
    Into the standard Service Manager Profile SAP_ORDERROUTING I have added the created
    Service-ID Z_RE_RULE_EXEC with the following properties:
    CONTEXT:     Z_TICKET_ASSIGMT
    LOG_LEVEL:     0
    POLICY:     Z_PRUEBAS2
    Now I want to test the rule policy by entering with the ROle SAP_CRM_UIU_IC_MANAGER (IC Manager) but I can not see any possibility to do that. So my questions is how I can test the rule policy Z_PRUEBAS2? Do I have to assign the Service Manager Profile to the IC Center Agent Role?
    Best Regards
    Oliver

    Solution: Problem solved. Error was the name of the attribute. It has to be POST_CODE1_IB
    and not ZPOST_CODE1_IB.

  • Partner function update using CRM_PARTNER_MAINTAIN_SINGLE_OW

    Hi Experts,
    Can some one pls help me with some working code/sample to update a partner function value in CRM Order. I tried the below code but it doesnt seems to be working.
    Appreciate your help on this.
        call function 'CRM_ORDER_READ'
          exporting
            it_header_guid       = lt_guid
            iv_mode              = 'C'
          importing
            et_orderadm_h        = it_orderadm_h
          et_sales             = it_sales
          et_orderadm_i        = it_orderadm_i
          et_orgman            = it_orgman
          et_shipping          = it_shipping
          et_partner           = it_partner
          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.
        if sy-subrc <> 0.
    Implement suitable error handling here
        endif.
          clear wa_orderadm_h.
          read table it_orderadm_h into wa_orderadm_h index 1.
         lv_ref_guid = it_orderadm_h-guid.
          call function 'CRM_PARTNER_GET_CONTROL_INF_OW'
            exporting
              iv_ref_guid          = wa_orderadm_h-guid
              iv_ref_kind          = 'A'
            importing
              es_partner_control   = ls_partner_control
            exceptions
              determination_failed = 1
              others               = 2.
          if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          endif.
          move-corresponding ls_partner_control to es_partner_control.
    Common fields for both create and change *****
          import lv_qplant to lv_werks2 from memory id 'QUOTA_PLANT'.
          select single partner_no
            from crmm_locmap
            into w_partner
           where ext_locno = lv_werks2. "wa_quota_so_items_return-werks2.
    Partner_com parameter
          ls_partner_com-ref_guid = wa_orderadm_h-guid.
          ls_partner_com-ref_kind = 'A'.
          ls_partner_com-partner_no = w_partner.
          ls_partner_com-display_type = 'BP'.
          ls_partner_com-no_type = 'BP'.
    Find whether create or change is required
          read table gt_partner into wa_partner with key partner_fct = '00000035' ref_kind ='A'.
          if sy-subrc eq 0.
            ls_partner_com-kind_of_entry = 'C'.
            ls_partner_com-partner_fct = '00000035'.
            ls_ip_fields-fieldname = 'DISPLAY_TYPE'.
            append ls_ip_fields to lt_ip_fields.
            ls_ip_fields-fieldname = 'KIND_OF_ENTRY'.
            append ls_ip_fields to lt_ip_fields.
            ls_ip_fields-fieldname = 'NO_TYPE'.
            append ls_ip_fields to lt_ip_fields.
            ls_ip_fields-fieldname = 'PARTNER_FCT'.
            append ls_ip_fields to lt_ip_fields.
            ls_ip_fields-fieldname = 'PARTNER_NO'.
            append ls_ip_fields to lt_ip_fields.
            call function 'CRM_PARTNER_MAINTAIN_SINGLE_OW'
              exporting
                iv_ref_guid           = wa_orderadm_h-guid
                iv_ref_kind           = 'A'
                is_partner_com        = ls_partner_com
                iv_populate_mode      = 'X'
                iv_check_partner_only = ' '
                is_partner_control    = es_partner_control
                iv_external_call      = 'X'
              changing
                ct_input_field_names  = lt_ip_fields
              exceptions
                error_occurred        = 1
                others                = 2.
            if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            endif.

    Reply to an old post but still can be helpful to someone in need
    *& Report  ZUPDATE_TRANSACTION_PF
    REPORT  zupdate_transaction_pf.
    *======================================================================*
    *  Variable declaration for ALV                                        *
    *======================================================================*
    TYPE-POOLS: slis.     " Type pool required for ALV
    TYPES: BEGIN OF gs_output,
              extid             TYPE ib_extid,
              prodid            TYPE comt_product_id,
              msg_type          TYPE bapi_mtype,
              message           TYPE bapi_msg,
              layout            TYPE slis_t_specialcol_alv,
           END OF gs_output.
    DATA: gt_output             TYPE TABLE OF gs_output,
          gs_output             TYPE gs_output,
          gt_fieldcat           TYPE slis_t_fieldcat_alv,
          gt_color_green        TYPE slis_t_specialcol_alv,
          gt_color_red          TYPE slis_t_specialcol_alv,
          gt_color_yellow       TYPE slis_t_specialcol_alv,
          gt_layout             TYPE slis_layout_alv,
          lt_header_guid        TYPE crmt_object_guid_tab,
          ls_header_guid        TYPE crmt_object_guid,
          lt_partner            TYPE crmt_partner_external_wrkt,
          ls_partner            TYPE crmt_partner_external_wrk,
          lt_guid               TYPE crmt_object_guid_tab,
          lt_guid_single        TYPE crmt_object_guid_tab,
          lt_req_obj            TYPE crmt_object_name_tab,
          ls_req_obj            TYPE crmt_object_name,
          lt_partner_update     TYPE crmt_partner_comt,
          lt_partner_com        TYPE crmt_partner_comt,
          ls_partner_com        TYPE crmt_partner_com,
          lt_input_fields       TYPE crmt_input_field_names_tab,
          ls_input_fields       TYPE crmt_input_field_names,
          lv_partner_fct        TYPE crmt_partner_fct,
          lv_partner_no         TYPE bu_partner,
          lv_trans_no           TYPE crmt_object_id_db,
          lt_return             TYPE STANDARD TABLE OF ddshretval,
          ls_return             LIKE LINE OF lt_return,
          lv_guid               TYPE crmt_object_guid.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE block1.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (36) forpf.
    PARAMETERS: p_pf TYPE comt_partner_fct OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (36) frombp.
    PARAMETERS: p_frombp TYPE but000-partner  OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (36) tobp.
    PARAMETERS: p_tobp TYPE but000-partner OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (36) fortrans.
    SELECT-OPTIONS: p_trans FOR lv_trans_no MATCHCODE OBJECT crm_order_object_id.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE block2.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (36) fortest.
    PARAMETERS: p_test AS CHECKBOX.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b2.
    INITIALIZATION.
      fortrans = 'Transaction Number'.
      forpf = 'Partner Function'.
      frombp = 'From Business Partner'.
      tobp = 'To Business Partner'.
      fortest = 'Test Run, Check Only'.
    *======================================================================*
    *  AT SELECTION-SCREEN                                                 *
    *======================================================================*
    AT SELECTION-SCREEN.
      FIELD-SYMBOLS:
        <sscrfields> TYPE sscrfields.
      DATA:
      lv_answer   TYPE char1,
      lt_options  TYPE TABLE OF rfc_db_opt,
      lt_fields   TYPE TABLE OF rfc_db_fld,
      lt_func_det TYPE TABLE OF tab512.
      CHECK sy-ucomm EQ 'ONLI'.
    AT SELECTION-SCREEN ON p_trans.
      CHECK sy-ucomm EQ 'ONLI' OR sy-ucomm EQ 'SJOB'.
      IF p_trans IS INITIAL.
        MESSAGE e398(00) WITH 'Please enter the transaction numbers'.
      ENDIF.
    AT SELECTION-SCREEN ON p_pf.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_pf.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
        EXPORTING
          tabname           = 'CRMC_PARTNER_FT'
          fieldname         = 'PARTNER_FCT'
        TABLES
          return_tab        = lt_return[]
        EXCEPTIONS
          field_not_found   = 1
          no_help_for_field = 2
          inconsistent_help = 3
          no_values_found   = 4
          OTHERS            = 5.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF lt_return[] IS NOT INITIAL.
        READ TABLE lt_return[] INTO ls_return INDEX 1.
        p_pf = ls_return-fieldval.
      ENDIF.
      CHECK sy-ucomm EQ 'ONLI' OR sy-ucomm EQ 'SJOB'.
      IF p_pf IS INITIAL.
        MESSAGE e398(00) WITH 'Please enter the partner function'.
      ENDIF.
    AT SELECTION-SCREEN ON p_frombp.
      CHECK sy-ucomm EQ 'ONLI' OR sy-ucomm EQ 'SJOB'.
      IF p_frombp IS INITIAL.
        MESSAGE e398(00) WITH 'Please enter the business partner id to be changed'.
      ENDIF.
    AT SELECTION-SCREEN ON p_tobp.
      CHECK sy-ucomm EQ 'ONLI' OR sy-ucomm EQ 'SJOB'.
      IF p_tobp IS INITIAL.
        MESSAGE e398(00) WITH 'Please enter the new business partner id'.
      ENDIF.
    *======================================================================*
    *  START-OF-SELECTION                                                  *
    *======================================================================*
    START-OF-SELECTION.
      PERFORM init_alv_col_color.
      PERFORM update_transactions.
    END-OF-SELECTION.
      PERFORM create_report.
    *&      Form  create_fieldcat
    *       text
    FORM create_fieldcat.
      PERFORM add_fld USING: 'EXTID'     'Order ID'        '20' 1,
                             'PRODID'    'Product ID'         '20' 2,
                             'MSG_TYPE'  'MSG Type'            '8'  9,
                             'MESSAGE'   'Message Description' '100' 10.
    ENDFORM.                    "CREATE_FIELDCAT
    *&      Form  add_fld
    *       text
    *      -->P_FIELDNAME  text
    *      -->P_SELTEXT_M  text
    *      -->P_OUTPUTLEN  text
    *      -->P_COL_POS    text
    FORM add_fld USING p_fieldname
                       p_seltext_m
                       p_outputlen
                       p_col_pos.
      DATA: ls_fieldcat TYPE slis_fieldcat_alv.
      CLEAR ls_fieldcat.
      ls_fieldcat-fieldname     = p_fieldname.
      ls_fieldcat-ref_fieldname = p_fieldname.
      ls_fieldcat-seltext_m     = p_seltext_m.
      ls_fieldcat-outputlen     = p_outputlen.
      ls_fieldcat-col_pos       = p_col_pos.
      APPEND ls_fieldcat TO gt_fieldcat.
    ENDFORM.                    "add_fld
    *&      Form  create_report
    *       text
    FORM create_report.
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
        EXPORTING
          text = 'Creating output ...'.
    * Get the field headers into an internal table
      PERFORM create_fieldcat.
      gt_layout-coltab_fieldname = 'LAYOUT'.
      gt_layout-colwidth_optimize = 'X'.
      gt_layout-zebra = ' '.
    * Call ABAP/4 Grid Viewer
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_top_of_page = 'TOP-OF-PAGE'
          i_callback_program     = sy-repid
          it_fieldcat            = gt_fieldcat[]
          is_layout              = gt_layout
        TABLES
          t_outtab               = gt_output  " it_sort = gt_sort
        EXCEPTIONS
          program_error          = 1
          OTHERS                 = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " create_report
    *&      Form  init_alv_col_color
    *       text
    FORM init_alv_col_color.
    * Red ALV column
      PERFORM add_field_color USING gt_color_red 'MSG_TYPE' '6' '1' '1'.
      PERFORM add_field_color USING gt_color_red 'MESSAGE' '6' '1' '1'.
    * Green ALV column
      PERFORM add_field_color USING gt_color_green 'MSG_TYPE' '5' '1' '1'.
      PERFORM add_field_color USING gt_color_green 'MESSAGE' '5' '1' '1'.
    * Yellow ALV column
      PERFORM add_field_color USING gt_color_yellow 'MSG_TYPE' '3' '1' '1'.
      PERFORM add_field_color USING gt_color_yellow 'MESSAGE' '3' '1' '1'.
    ENDFORM.                    "init_alv_col_color
    *&      Form  add_field_color
    *       text
    *      -->PT_COLOR   text
    *      -->FIELDNAME  text
    *      -->COL        text
    *      -->INT        text
    *      -->INV        text
    FORM add_field_color USING pt_color TYPE slis_t_specialcol_alv
                               fieldname col int inv.
      DATA: ls_color TYPE slis_specialcol_alv.
      ls_color-fieldname = fieldname.
      ls_color-color-col = col.
      ls_color-color-int = int.
      ls_color-color-inv = inv.
      APPEND ls_color TO pt_color.
    ENDFORM.                    "add_field_color
    * Form  TOP-OF-PAGE                                                 *
    * ALV Report Header                                                 *
    FORM top-of-page.
    *ALV Header declarations
      DATA: t_header TYPE slis_t_listheader,
            wa_header TYPE slis_listheader,
            t_line LIKE wa_header-info,
            ld_lines TYPE i,
            ld_linesc(10) TYPE c.
    * Title
      wa_header-typ  = 'H'.
      wa_header-info = 'Data Migration'.
      APPEND wa_header TO t_header.
      CLEAR wa_header.
    * Date
      wa_header-typ  = 'S'.
      wa_header-key = 'Date: '.
      CONCATENATE  sy-datum+6(2) '.'
                   sy-datum+4(2) '.'
                   sy-datum(4) INTO wa_header-info.   "todays date
      APPEND wa_header TO t_header.
      CLEAR: wa_header.
    * Time
      wa_header-typ  = 'S'.
      wa_header-key  = 'Time: '.
      CONCATENATE  sy-uzeit(2) ':'
                   sy-uzeit+2(2) ':'
                   sy-uzeit+4(2) INTO wa_header-info.   "time
      APPEND wa_header TO t_header.
      CLEAR: wa_header.
    * File Path
      wa_header-typ  = 'S'.
      wa_header-key  = 'File Path: '.
      wa_header-info = ''.
      APPEND wa_header TO t_header.
      CLEAR: wa_header.
    * Test Mode
      wa_header-typ  = 'S'.
      wa_header-key  = 'Test Mode: '.
      IF p_test = 'X'.
        wa_header-info = 'Yes'.
      ENDIF.
      APPEND wa_header TO t_header.
      CLEAR: wa_header.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = t_header.
    ENDFORM.                    "top-of-page
    *&      Form  UPDATE_TRANSACTIONS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM update_transactions .
      SELECT guid INTO TABLE lt_header_guid FROM crmd_orderadm_h WHERE object_id IN p_trans.
      IF sy-subrc EQ 0.
        LOOP AT lt_header_guid INTO ls_header_guid.
          CLEAR: lt_guid, lt_req_obj, lt_partner, lt_input_fields.
          ls_req_obj = 'PARTNER'.
          APPEND ls_req_obj TO lt_req_obj.
          APPEND ls_header_guid TO lt_guid.
          CALL FUNCTION 'CRM_ORDER_READ'
            EXPORTING
              it_header_guid       = lt_guid
              it_requested_objects = lt_req_obj
            IMPORTING
              et_partner           = lt_partner
            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.
          lv_partner_fct = p_pf.
          lv_partner_no = p_frombp.
          SHIFT p_frombp LEFT DELETING LEADING '0'.
          READ TABLE lt_partner INTO ls_partner WITH KEY partner_fct = p_pf partner_no = p_frombp.
          IF sy-subrc EQ 0.
            LOOP AT lt_partner INTO ls_partner WHERE partner_fct = p_pf AND partner_no = p_frombp.
              lv_partner_no = p_tobp.
              CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                EXPORTING
                  input  = lv_partner_no
                IMPORTING
                  output = lv_partner_no.
              REFRESH lt_input_fields.
              CLEAR   ls_partner_com.
              ls_partner_com-ref_guid     = ls_partner-ref_guid.
              ls_partner_com-ref_kind     = ls_partner-ref_kind.
              ls_partner_com-ref_partner_handle = ls_partner-ref_partner_handle.
              ls_partner_com-kind_of_entry = 'C'.
              ls_partner_com-partner_fct  = ls_partner-partner_fct.
              ls_partner_com-partner_no   = lv_partner_no.
              ls_partner_com-display_type = 'BP'.
              ls_partner_com-no_type      = 'BP'.
              ls_partner_com-ref_partner_no = ls_partner-ref_partner_no.
              ls_partner_com-ref_partner_fct = ls_partner-ref_partner_fct.
              ls_partner_com-ref_no_type     

  • Getting a "Business partner not found with partner function type requester"

    Hi There,
    After I add a text item to the shopping cart using the SHOP t-code, I get a message "Business partner not found with partner function type requester" What could be causing this and how can I rectify this problem.
    Please help mas this is an urgent issue.
    Thanks,
    Grace

    Hi Grace,
    First check :
    1- transaction : CRM_OM_BP_INTEGRATE
    select org structure where your user is and check that you have green lights (no missing address....)
    2- Run transaction USERS_GEN
    Select check user
    Is everything correct or does the user need to be repaired ?
    Kind regards,
    Yann

  • Partner function upload-lsmw

    Dear Experts,
    how to upload partner functions by using LSMW. I developed LSMW and if i go to partner function tab there is only one partner function field is available I need to upload 4 partner functions. Can any one help me out in this regard.
    regards,
    siva

    Hello Sivasai Myneni,
    Demo Example 1
    LSMW to Update Customer Master Records with Transaction Recording
    Call Legacy System Migration Workbench by entering transaction code LSMW. Every conversion task is grouped together as
    Project / Subproject / Object structure. Create a Project called LSMW_DEMO and a Subproject as CUSTOMERS and Object as
    CUST_obj as shown in Figure 1.
    Figure 1 Conversion Task with Project, Subproject and Object
    The main screen of LSMW provides wizard-like step-by-step tasks, as shown in Figure 2. To complete your data conversion, you
    need to execute these steps in sequence. Once a step is executed, the cursor is automatically positioned to the next step.
    Note that these steps may look different depending upon your Personal menu settings. You could make step numbers visible by
    ‘Numbers on’ icon or hidden by ‘Numbers off’ icon. You can execute a step by double-clicking on the row. Toggle icon
    ‘Doubleclick=Display’ or ‘Doubleclick=Edit’, makes the step in ‘display’ mode or ‘change’ mode.
    Figure 2 LSMW Wizard – initial screen
    Step 1: Maintain Object attributes
    In this example, you will be updating the customer master records with the help of recording a transaction (XD02). Choose radio
    button Batch Input Recording and click on the recording overview icon to record the R/3 transaction. Enter the Recording name as
    XD02_REC, the description as Customer Master Updates Recording, and the transaction code as XD02.
    Figure 3 Object type ‘Transaction Recording’
    The system calls the transaction code XD02 and prompts you to complete the Change
    Customer transaction, as shown in Figure 4. Enter the key customer information (I entered customer number 1000, sales
    organization 1000, distribution channel 01, and division 00) and choose ‘Sales’ view within ‘Sales area data’. Make changes to
    these three fields (I entered, sales office 1010, sales group 110, and customer group 01) and save the transaction.
    Figure 4 Transaction recording for Transaction Code ‘XD02’
    Once the transaction is completed, R/3 records the flow of screens and fields and saves the information, as shown in Figure 5.
    Figure 5 Transaction recording overview
    Note that the fields are populated with default values. The values you entered when you recorded the transaction are set by
    default.
    Note that if you have more fields in the recording than needed, you can remove them by clicking ‘Remove Screen field’ icon.
    Observe that the transaction-recording process stores field names in a technical format. By pressing the F1 key on individual
    screen fields and then pressing the F9 key, the system displays technical names. You then can replace the technical names with
    descriptive names. Double-click on the field RF02D-KUNNR and enter the name as KUNNR and the description as Customer
    Account Number and remove the default value. (See Figure 6.)
    Figure 6 Field attributes
    Similarly, double-click on all other fields with default values and make appropriate changes. Once you have made changes, the
    recording overview screen looks like what you see in Figure 7.
    Figure 7 Transaction Recording Overview – with screen field attributes
    Save your changes. When you go back to the initial screen, you will see that the initial screen steps have changed. Since you want
    to import data via the BDC method, the Direct Input and IDoc-related steps are hidden, as they are not relevant.
    Step 2. Maintain Source Structures
    Give a name and a description to the source structure (Figure 8).
    Figure 8 Source Structure
    Step 3. Maintain Source Fields
    In this step, you need to list what fields are present in the source structure. The easiest way is to click on ‘Table Maintenance’ icon
    to enter Fieldname, Type and Length for each field as shown in Figure 9.
    Figure 9 Source fields of source Structure
    Note that your input file will have four fields as key fields and you need to update three fields in the system.
    Step 4: Maintain Structure Relations
    Execute a step to ‘Maintain Structure Relations’. (See Figure 10.) Since, there is only one Source and Target Structure, the
    relationship is defaulted automatically.
    Figure 10 Structure Relation
    Step 5: Maintain field mapping and conversion rules
    Field RF02D-D0310 represents that you chose ‘Sales view’ for the customer Master screen accordingly its value should be set to
    X. Keep your cursor on field RF02D-D0310 and click on Constant rule icon to choose the constant value of ‘X’.
    If your source file already has the field value, you choose rule ‘Source Field’.
    Keep cursor on field ‘KUNNR’ and click on ‘Assign Source field’ icon to choose source field CUSTOMER from structure XD02S as
    shown in Figure 11.
    Figure 11 Assign source fields
    Similarly, assign ‘Source Field’ rules to the remaining fields.
    Once all the fields are mapped, you should have an overview screen as shown in Figure 12.
    Figure 12 Field mapping and Conversion rules overview
    Step 6: Maintain fixed values, translations, user-defined routines
    You can also maintain re-usable translations and user-defined routines, which can be used across conversion tasks. In this case,
    that step is not required.
    Step 7: Specify files
    In this step, we define how the layout of the input file is. The input file is a [Tab] delimited with the first row as field names. It is
    present on my PC (local drive) as C:\XD02.txt. (See Figure 13.)
    Figure 13 File attributes
    Create an Excel file (Figure 14) with your data and save it as a Tab-delimited text file on your local drive (C:\) and name it XD02.
    txt.
    Figure 14 Source data in Excel file (saved as Tab delimited file)
    Step 8: Assign files
    Execute step ‘Assign Files’ (Figure 15) and the system automatically defaults the filename to the source structure.
    Figure 15 Assign file to Source Structure
    Step 9: Read data
    In this step, LSMW reads the data (Figure 16) from the source file (from your PC’s local drive). You have the option to read only
    selected rows and convert data values to Internal format.
    Figure 16 Read Data
    Step 10: Display read data
    This step (Figure 17) is optional. If required, you can review the field contents for the rows of data read.
    Figure 17 Display Read Data
    Step 11: Convert data
    This is the step that actually converts the source data (in source format) to a target format. Based on the conversion rules defined,
    source fields are mapped to target fields.
    Step 12: Display Converted data
    Again this is an optional step to view how the source data is converted to internal SAP format (Figure 18).
    Figure 18 Display Converted Data
    Step 13: Create batch input session
    Once the source data is converted in an internal format, you can create a batch session to process updates (Figure 19).
    Figure 19 Create Batch Input Session
    Step 14: Run Batch Input Session
    You can execute the BDC session by Run Batch input session. Executing a batch input session is a standard SM35 transaction for
    managing BDC sessions. Once you have successfully executed the batch input session, the customer master records are updated in
    the system. You can confirm this by viewing the customer master records (XD03).
    Note! Browsing thru these 14 steps, you may get a feeling that this is a very lengthy and time-consuming activity. However, for
    the purposes of demonstration, I have made it detailed. Although it looks lengthy, actually it takes hardly few hours from start-to-
    finish! After playing around with few simple LSMW scripts, you will find it so easy to change and create more complex ones.
    Demo Example 2
    LSMW to Update Customer Master Records with Standard Object
    As an alternative to using ‘Transaction Recording’, you could also use a standard SAP object to update Customer Master Records.
    Business Object ‘0050’ is already pre-defined in the system with standard Batch Input Interface Program ‘RFBIDE00’.
    Create an Object CUST_OBJ within Project as LSMW_DEMO and Subproject as CUSTOMERS as shown in Figure 20.
    Figure 20 LSMW Object with Standard SAP Object
    Note! For the Demo example 2, I will list only those steps that are different from the first demo example.
    Step 1: Maintain Object attributes
    You will be updating the customer master records with the help of Standard Batch Input; therefore, choose radio-button Standard
    Batch/Direct Input as shown in Figure 21. Enter Object ‘0050’ for Customer Master records and default method ‘0000’ and click
    on Save.
    Figure 21 Standard Batch/Direct Input Object Attributes
    Step 4: Maintain Structure Relations
    Sales view of Customer Master is stored in table KNVV. Accordingly, you need to update structure BKNVV. However, in addition,
    the Standard Object ‘0050’ also requires updates to BGR00, BKN00 and BKNA1 structures. (If you do not maintain Structure
    relations for mandatory entries, you might get a message such as ‘Target structure BKNA1 needs a relation to a source structure’.)
    Even though you don’t want to update any fields in these structures, you need to create a relationship with source structures. In
    all, you need to create relationship for four target structures.
    Create relationship between source structures XD02S with these target structures with icon ‘Create Relationship’ .
    Keep Cursor on these four target structures and click on icon ‘Create Relation’ and structure relations are maintained as shown in
    Figure 22.
    Figure 22 Structure Relation
    Step 5: Maintain field mapping and conversion rules
    – Keep your cursor on ‘TCODE’ field and click on ‘Insert Rule’ icon
    Figure 23 LSMW Conversion Rules
    Choose radio button ‘Constant’ (Figure 23) to enter value ‘XD02’ transaction code.
    – Keep your cursor on field ‘KUNNR’ and click on ‘Assign source field’ icon
    Choose source field ‘Customer’ from source structure ‘XD02S’. (See Figure 24.)
    Figure 24 Assign Source fields
    – Similarly, choose source fields for Sales Organization, Distribution Channel, and Division. (See Figure 25.)
    Figure 25 Field Mapping and Conversion Rules
    – Scroll down to structure BKNVV fields and assign source fields to three fields Sales Office, Sales Group, and Customer Group
    (Figure 26).
    Figure 26 Field Mapping and Conversion Rules
    Save and go back to main screen.
    Step 12: Display Converted data
    When you convert data, LSMW automatically converts into the appropriate structure layouts, as required by Standard program
    (RFBIDE00). (See Figure 27).
    Figure 27 Converted data into multiple structures
    Note that if you had only one record in source file, the converted file has four records.
    Earlier, creating this input file, so that the standard interface program can read it, was a big nightmare, the primary reason being
    that it could have multiple record layouts. Even for a simple conversion with one input record, you would have to create this
    complex file with many record layouts. The advantage of LSMW is that it prepares these multi-layout files automatically.
    Step 13: Create batch input session
    Once source data is converted in internal format, you can create a BDC session to process the updates (Figures 28 and 29).
    Figure 28 Create BDC Session
    Figure 29 BDC Session ‘CUST_OBJ’ created
    Regards
    AK

  • Partner general text

    Hello everybody,
    from which table can I read the partner general text ?
    Thankx !
    Luca

    Hi,
    You can't read them directly as they are stored in Pool Tables.
    You need to use function module to read the texts.
    Thanks,
    Ramesh

  • Partner Function Details

    Hi,
    I have some value of partner functions like ZBU ZGEO etc. I want corresponding text for that partner function,means ZBU for BU responsible like this.
    Is there any function module or table which can return me the same?

    Hi Suchandra,
    Check in the following path, It may helps for your issue
    ==> SPRO
    ==> Customer Relationship Management
    ==> Basic Functions
    ==> Partner Processing
    ==> Define Partner Functions
    Execute  and check!!!
    Regards
    Narayana.

  • Partner function search help

    Hi all,
    I have created a field(ZZ_XXX) on VA02 screen.
    I have created dataelement for this field using PARVW as domain.
    For this field i would like to have F4 search help, it should show all available partner functions (ex: sold-to-party, billing,etc....)
    Is there any search helps for this or do i need to create a new one, if so how to create it. I mean by using which table.
    Thanks in advance,
    regards,
    NarsiReddy.

    Please try this:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field_name>
        SELECT partner_fct  FROM <config_tab>
      INTO TABLE SearcH_tab.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield     = 'PARTNER_fct'
          dynpprog     = sy-cprog
          dynpnr       = sy-dynnr
          dynprofield  = ' '
          window_title = text-006
          value_org    = 'S'
        TABLES
          value_tab    = <config_tab>
          return_tab   = ret_tab

  • Creation of partner functions for customer master with LSMW

    Hello,
    I try to create partner functions together with a customer via Batch Input in LSMW.
    Object: 0050, method: 0000, program name: RFBIDE00, program type: B.
    I use the structure BKNVP (Customer master partner functions) to create a new partner and set values for the fields KTONR and PARVW.
    When I start the batch input the fields are filled in correctly in a new dynpro. After the confirmation of these values the dynpro changes back to the partner functions sscreen, but the value for KTONR isn'n being transferred. So I get an error message.
    Is it only possible to update partner functions with that BI or what is going wrong ?
    Thanks in advance and regards
    Alex

    Hi Alex,
    Could you specify what error message you are getting?
    Thanks!
    Rudra

  • Automatic assignment of Partner Function (Dealer) based on Postal Code?

    Hi Experts,
    We are realizing a project in the Bathroom-Product Industry. Responsible for the service to the end-clients are authorized dealer. When creating a service ticket the responsible dealer has to be assigned automatically to the ticket on the basis of the postal code where the IBase (the product) is installed.
    The process is:
    1. The client is calling the Interaction Centre and first the IC Agent has to identify the account and the Installed Base (The     installed base contains the postal code where the product of the client is installed) of this account.
    2. An Interaction Record is created to record this inbound call.
    3. Afterwards a Service Ticket is created as a follow-up Document of the Interaction Record. In the moment of the creation of the Service Ticket the correct dealer has to be assigned automatically to the Service Ticket (as a Partner Function not as a Service Organization) on the basis of the postal code of the installed base.
    I have the following question! Which are the steps to assign automatically a Business Partner Function to a Service Ticket? We also need to create a Z-Table with the postal codes for which every dealer is responsible.
    Example:
    Dealer 1 is responsible for the postal codes: 08040 - 08045 and 08056 - 08059. If a client is calling and his product (Installed Base) is installed in Postal Code 08042 or 08054 the dealer 1 has to be assigned to the service ticket.
    I hope I could make myself clear ;-)? Anybody can give me a hint how to do that? What are the basic steps?

    Slightly similiar, originally being an R/3 customer before implementing CRM our dealer equated to sales office.
    In the CRM Org model (PPOMA_CRM) in the attributes of the sales office we entered the Regions & Postal codes for that dealer (pain in the arse to do) and in CRM the sales office in the org creates a BP.
    We used a org rule for the IR record based on country, region, postal code to determine the appropriate sales org, DC, div, and sales office based onthe zip code.  We created a custom partner function to represent the partner number of the  BP from the org model.  Then we configured a custom relationship "ZORG" "Is partner of sales office" and went into the BP master and assigned the actual dealer number as a partner to BP from the org model that = sales office.  From that we configured a custom access sequence to pull the actual dealer number from the org model office relationships.
    We looked at territory management, but our dealer is an "org BP" and territory management appeared to want to drive to a person BP number.

  • Problem in creation of partner function creation.

    Hi all,
        During customer Master upload using LSMW direct method, Iam getting this problem.
    while creating Sales view using XD01, three partner function VE (Sales Representative), SH (Ship-to party), ZI (Front Office) are getting displayed in the last tab of sales view creation.
    Because of some customizing,value for SH is getting populated automatically. But the values for VE & SH are not getting populated from the flat file.
    But the values are present in the respective field (KTONR) and able to see in the display convert data.
    If I enter the manual value during runtime in LSMW, it accepts the value. Since it involves huge amount of data, manual entry for records is not possible.
    Kindly provide the solution.
    Regards
    Narasingam.B

    This problem can be solved by proper customizing.
    Regards
    Narasingam

  • I can not see all "Divisions" in BP Rel.--Partner Function Assignment

    Hi,
    When I edit "Partner Function Assignment" in BP reliationship such like BUR011("Employee Responsible"),
    I can not see all "Divisions" in list which I can see in configuration via SPRO-->Customer Relationship Management->Master Data->Orgnizational Management->Division Setting->Define Divisions.
    E.g., in configuration, I can see 7 records of divisions from "001" to "007", but in "Partner Function Assignment" of BP relationship, I can only see "002" to "004".
    Do you know why? Thanks a lot!
    Best regards,
    Long

    hi
    that should not be happening,if they are visible in one client then should be there in another too
    do one things try run  this
    hrbc1_atributes_buffer_update
    it will refresh the buffers of your org structure and then you may be able to add this
    also check the check box where it is mentioned that"object determination should be permitted"
    remember it will run only for once after you run this the check box will be unchecked again
    i guess it may solve your probs
    also try to structure your org structure index
    use t code
    crmd_index_om
    and withtin the object type give O
    and execute
    best regards
    ashish

  • Can we view  SH's partner functions in Sales Order?

    Hi All,
    SP has a different SH and FA is assigned to SH in master record. When we create order we can see all the partner functions of SP but we can't see partner functions of SH. User wants to see which FA is assigned to SH. We can only view partner functions of SH in delivery document. Is it possible to view partner functions of SH in sales order as well? Please suggest the ways to configure this setting.
    Thanks!!

    Hi,
    Yes, you can view . Check the Partner determination procedure, include the partner function SH to your partner determination procedure assigned for your sales order.
    Regards,
    Murali

Maybe you are looking for