Show Minimal Master in CRM iframe

Hello,
I've got a SharePoint 2013 (online) and a Dynamics CRM (online). I want to show a document library within a customer in an iframe. For this I have to allow framing. No problem.
The problem is I want to have a minimal.master in the IFrame at CRM but if I go to the SharePoint itself I want to use the seattle.master.
I have inserted a JavaScript that sets css styles for several controls (display:none). According to a request parameter the JavaScript code takes effect. This works realy fine.
Now the SharePoint itself causes trouble. If I want to click on "Edit Properties" in the context menu of a document an exception is thrown. In the sharing.js the code "window.top" is used. This can't work in an iframe.
So I see just two options
1. edit default code of SharePoint. I don't like it and I don't know how, because it is the online version
2. Tell the sharepoint to use another masterpage if a request parameter is true
Or does anyone knows another solution? How could it work?

Nobody got an answer?
A solution could be hiding the unnecessary context menu entries. For example in CRM in only want to be able to use the entries:
- Edit properties
- View properties
- Delete
Does anybody knows how to do?
Actually I am using the following code (from http://www.learningsharepoint.com/2013/07/08/hideremovecustomize-callout-actions-in-sharepoint-2013/):
SP.SOD.executeFunc("callout.js", "Callout", function () {
var itemCtx = {};
itemCtx.BaseViewID = 'Callout';
itemCtx.Templates = {};
itemCtx.Templates.Footer = function(itemCtx) {
var calloutID = GetCalloutElementIDFromRenderCtx(itemCtx);
var itemId = GetCurrentItemId(itemCtx);
var customFooter = [];
var itemEditLink = "<a href=/sites/accounts/196/Forms/EditForm.aspx?ID=" + itemId + "&IsDlg=1>Edit Properties</a>&nbsp;";
customFooter.push('<span id=' + StAttrQuote(calloutID + '-ecbMenu') + 'class="js-callout-actions js-callout-ecbActionDownArrow">');
customFooter.push(itemEditLink);
customFooter.push(RenderECBinline(itemCtx, itemCtx.CurrentItem, itemCtx.CurrentFieldSchema));
customFooter.push('</span>');
return Callout.GenerateDefaultFooter(calloutID, customFooter.join(''));
itemCtx.ListTemplateType = 101;
SPClientTemplates.TemplateManager.RegisterTemplateOverrides(itemCtx);
Unfortunately the does not work properly. If I open the link in a new tab everything is fine but it is not opened in the iframe.
Can anybody help?

Similar Messages

  • Product master in CRM and R/3

    Hi Gurus,
    can anybody make my understanding clear regarding  the difference of product master in CRM and R/3. any links to know more on it will also help.
    Thank you in advance.
    Regards,
    sasmita

    Hi Sasmita,
    Here are some of inputs will help for undersatnding:
    <b>The CRM product master is a collection or arrangement of various settypes which contain specific data.</b>
    Pre-defined settypes are delivered (e.g. basic product data; conversion of unit of measure)
    Enhancement of the product master with own settypes is possible
    Settypes correspond to database tables
    Attributes correspond to your product characteristics.
    <b>Attributes can be summarized with the help of set types</b>
    In the system there are standard set types which are always available. However, you can also create and implement user-defined set types, to depict marketing data, for example.
    The usage of set types can be restricted (e.g. certain set types only allowed for products of type product) Distribution chain-dependent set types can be created.
    A set type is only permissable for a product when the set type is assigned to the category to which you then assign the product. To assign a set type to a category, use the function Edit categories and hierarchies.
    You can assign a set type to several product categories within a category hierarchy. However, each set type can only be assigned within one hierarchy. In doing so, a multiple assignment of a set type to one and the same product (over contrasting categories) is prevented.
    A product can be assigned to several categories, as long as these are within different category hierarchies. A product can also be assigned to only one category per hierarchy.
    The assignment to the base hierarchy R3PRODSTYP is vital, so that basic data set types are available, for example.
    R3PRODSTYP depicts the product types present in the R/3 system.
    Customer product numbers can be assigned. This Customer product ID is stored in the relationships
    Global Trade Item Number (GTIN)
    Customer-own checks can be defined before a product can be saved. Enhancements &#61614; Consistency check
    <b>Transaction :
    COMMPR01-Maintain Products
    COMMPR02-Mass Maintenance for Inactive Products
    COMM_HIERARCHY-Maintain Categories and Hierarchies
    COMM_ATTRSET- Maintain Set Types and Attributes
    Tables:</b>
    Product (active)               COMM_PRODUCT
    Product (inactive)               COMM_IPRODUCT
    Product description          COMM_PRSHTEXT
    Category hierarchy               COMM_HIERARCHY
    Category                    COMM_CATEGORY
    Set types                    COMC_SETTYPE
    Attributes                    COMC_ATTRIBUTE
    Relationships               COMM_IL_*
    COMM_PRODUCT      : Product header and administration data.
    COMM_CATEGORY    : Category
    COMM_HIERARCHY   : Category Hierarchy
    COMM_PR_FRG_REL :
    COMM_FRGTYPE       :
    COMC_SETTYPE       :
    COMC_PRODUCT      : General Product Settings
    COMC_R3_FIELDS    : Assignment of R/3 material master fields to CFOP
    COMM_CFGMAT       :  Basic Data for Materials
    Hope this will help.
    Regards,
    Arjun
    <b>Pl. Do reward the points</b>

  • How to download Delivering Plant of R/3 Customer Master in CRM BP

    Hi,
    We have successfully downloaded the Plants from ECC to CRM  using the object  DNL_PLANT  which has successfully created BP's for PLants in CRM with BP Role=Plant and have updated the mapping in table  CRMM_LOCMAP.
    Now I want that the Delivering Plant mantained in ECC Customer Master Data (XD02 -> Sales Area Data -> Shipping Tab -> Delivering Plant Field) to be updated in the CRM Business Partners as BP Relationship.
    The BP(Customer BP) should be updated as a BP Relationship "ZPLANT - Has Plant" with BP(BP of the Plant in CRM). This is not happening.
    Can you please tell me the Steps to be performed in both CRM and ECC side to bring the ECC Delivering PLant as Relationship in CRM ?
    Is the Delivering Plant change in ECC Customer Master Data does not gets captured in the  BUPA_MAIN  BDoc ?
    When we change the Delivering Plant in ECC Customer Master Data, a BUPA_MAIN Bdoc  gets triggered  but when we look into the Bdoc we can not find the changed information of the Delivering Plant. I am not usre if this behaviour is right or not.
    There is an OSS Note - 493947 which is quite old and talks about creating a Customer each for all the Plants in ECC and creating a Partner Function for Plant in the Customer Master Data. I am not sure if this process is still to be followed    Or     SAP has given some stadard settings to bring ECC Delivering Plant mantained in Customer Master to CRM.

    To my knowledge oss note 493947 is still relevant
    Edited by: Anders Brock-Faber on Apr 6, 2009 1:06 PM

  • JDev 101304 - Drag&Drop the detail, and show the master as a column

    Hello everybody:
    1.- I have a MASTER_TABLE, and DETAIL_TABLE.
    2.- I want to display these tables as one af:table component. I want to show the master's label rather than the foreign key.
    3.- Is there a way to achieve this with drag and drop only? I have read some threads, and the people create views to do this.
    4.- I want to to this using only the default BC4J ViewObjects and links (i.e. the DetailTableView2 nested in the MasterTableView1 in the Data Control Palette).
    Thnks in advance.
    Alex.

    Hi Frank:
    1.- I'm agree with you, this layout is confuse, that is why I'm trying to do it as a simple column extra in the detail table, not as a hideShow implementation.
    2.- If there is not a solution with wizards, do you have any suggestion to do it in another way?
    3.- I try to do this with a method, I send the foreign key and the method filters the VO and returns the description.
    4.- The problem is that only works once, when I run the page, If I navigate to another page, and return to the main page, does not show any desc of the master table.
    any suggestions?
    Thnks
    Alex.

  • Can we Delete the Product/Material  from Product Master in CRM

    Hi Gurus,
    I want to delete some test products from Product master, I don't see any link for delete there in product master transaction.
    Can we Delete the Product from Product Master in CRM??
    Thanks in Advance.
    Regards,
    Manoj Tiwari

    Try this:
    *& Report  ZVB_PRODUCT_DELETE          (release CRM 4.0 SP03)          *
    *&         Instructions are in OSS Note #427332                        *
    report  zvb_product_delete line-size 300.
    const, include
    include com_product_const001.
    include com_product_const003.
    include com_product_const009.
    include com_product_const011.
    include com_settype_attribute_const03.
    tables:  comm_iproduct,                                     "#EC NEEDED
             comm_product.
    constants:
           gc_program type programm value 'COM_PRODUCT_DELETE_SINGLE'.
    data:  gv_product_guid type comt_product_guid,
           gv_prty  type comt_product_type,
           gv_syslog(70)  type c,
           lv_mobile_active  type comt_boolean,
           lv_delete  type comt_boolean value 'X'.
    data:  lt_settypes      type  comt_frgtype_tab_ext,
           lt_status_guid   type comt_prd_status_guid_tab.
    data: begin of lt_products occurs 0,
             product_id   like comm_product-product_id,
             product_guid like comm_product-product_guid,
          end of lt_products.
    Screen User query
    selection-screen comment /1(60) text-006.
    selection-screen skip 2.
    select-options: s_prid for comm_product-product_id.
    *parameters: p_prid type comt_product_id   obligatory,
    parameters: p_prty type comt_product_type obligatory default '01',
                p_logs type comt_logsys       obligatory,
                p_objf type comt_product_object_family,
                p_send  as checkbox modif id 001 default on,
                p_usage as checkbox modif id 001 default off,
                p_test  as checkbox default 'X'.
    at selection-screen output.
      perform check_mobile_download
          changing lv_mobile_active.
      if lv_mobile_active is initial.
        loop at screen.
          check screen-group1 = '001'.  "disable field p_send, p_usage
          screen-active = '0'.
          modify screen.
        endloop.
      endif.
    start-of-selection.
    perform check_authority.
    Write syslog entry
    concatenate 'Rep. ' sy-repid ': ' p_prid(30) '/' p_prty '/' p_logs
            into gv_syslog.                                    "#EC NOTEXT
    call 'C_WRITE_SYSLOG_ENTRY'
       id 'TYP' field ' '
       id 'KEY' field 'C00'
       id 'DATA' field gv_syslog  .
    inactive product are not supported here
    select * from comm_iproduct
            where product_id    = p_prid
            and   product_type  = p_prty
            and   object_family = p_objf
            and   logsys        = p_logs.
    endselect.
    if sy-subrc = 0.
       write: / text-001, text-005.
       exit.
    endif.
    read products according to the selection criteria
      select * from comm_product
             into corresponding fields of table lt_products
             where product_id    in s_prid
             and   product_type  = p_prty
             and   object_family = p_objf
             and   logsys        = p_logs.
      if sy-subrc ne 0.
        write: / text-010.
        exit.
      endif.
      loop at lt_products.
      read product and enqueue
        perform product_enqueue
             using lt_products-product_id
                   p_prty
                   p_logs
                   p_objf
             changing gv_product_guid
                      gv_prty.
        check not gv_product_guid is initial.
        if p_usage = on.
          perform check_usage
                  using gv_product_guid
               changing lv_delete.
        endif.
        check lv_delete = on.
        check p_test = space.
      first delete the component of the IBase
        perform delete_ibasecomponent
             using gv_product_guid.
        perform delete_extensions
             using gv_product_guid
                   lt_settypes.
        perform delete_settypes
             using gv_product_guid
                   lt_settypes
          changing lt_status_guid.
        perform delete_interlinkages
             using gv_product_guid.
        perform delete_pme_data                      "multivalue attributes
             using gv_product_guid.
        perform delete_decoupled_data                "long text, longmatnr,
             using gv_product_guid.                  "ibase prodvar,...
        perform delete_status
             using lt_status_guid.
        perform delete_favorites
             using gv_product_guid.
        perform delete_clear_case
             using gv_product_guid.
        if p_send = 'X'.
          perform send_deletion_to_mw
               using gv_product_guid.
        endif.
        delete from comm_product     where product_guid = gv_product_guid.
        delete from comm_producth    where product_guid = gv_product_guid.
        delete from comm_product_idx where product_guid = gv_product_guid.
        delete from comm_prwb_user_2 client specified
               where client = sy-mandt and last_object = gv_product_guid.
        call function 'BAPI_TRANSACTION_COMMIT'
          exporting
            wait = 'X'.
        write: / text-001, lt_products-product_id, text-004.
      endloop.
    *&      Form  product
    form product_enqueue
       using   iv_prid  type comt_product_id
               iv_prty  type comt_product_type
               iv_logs  type comt_logsys
               iv_objf  type comt_product_object_family
      changing ev_pguid type comt_product_guid
                          ev_prty type comt_product_type.
      data ls_product type  comt_product.
      call function 'COM_PRODUCT_GUID_GET'
        exporting
          iv_product_id    = iv_prid
          iv_product_type  = iv_prty
          iv_logsys        = iv_logs
          iv_object_family = iv_objf
          iv_show_popup    = 'X'
        importing
          ev_product_guid  = ev_pguid
        exceptions
          not_found        = 1
          wrong_call       = 2
          internal_error   = 3
          others           = 4.
      if sy-subrc <> 0.
        write: / text-001, space, iv_prid.
        write:   text-003.        "Product not found
        exit.
      else.
        write: / text-001, space, iv_prid.
        write:   text-002.        "Product found
      endif.
      call function 'COM_PRODUCT_READ_SINGLE'
        exporting
          iv_product_guid = ev_pguid
          iv_enqueue_mode = ' '
        importing
          es_product      = ls_product
        exceptions
          not_found       = 1
          wrong_call      = 2
          foreign_lock    = 3
          enqueue_failed  = 4
          others          = 5.
      if sy-subrc <> 0.
        if sy-subrc > 2.
          write: / text-001, space, iv_prid.
          write:   text-007. "Product enqueued
          exit.
        else.
          message id sy-msgid type sy-msgty number sy-msgno
             with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          exit.
        endif.
        exit.
      endif.
      ev_prty = ls_product-product_type.
    special authotirty check (with considering the assigned
    categories)
    call function 'COM_PRODUCT_CT_AUTHORITY_CHECK'
       exporting
         iv_auth_act     = '06'
         iv_product_guid = ev_pguid
       exceptions
         no_authority    = 1
         wrong_call      = 2
         internal_error  = 3
         others          = 4.
    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.                               " product
    *&      Form  delete_extensions
    form delete_extensions
         using iv_product_guid type comt_product_guid
               et_settype      type comt_frgtype_tab_ext.
      data:  lv_db_tab        type ddobjname,
             lv_subrc_pr_guid like sy-subrc,
             table_name_ref   type ref to data,
             lt_extension     type comt_frgtype_tab_ext,
             ls_extension     type comm_frgtype_ext.
      field-symbols: <table_name> type any,
                     <field_name> type any.
      check not iv_product_guid is initial.
    delete extensions e.g. COMM_PRFREEATTR, CRMM_PR_TAX, COMM_PR_UNIT,
                           COMM_PR_SHTEXT,COMM_PR_GTIN, comm_prprdcatr,..
      perform load_extensions
              using  iv_product_guid
           changing  lt_extension
                     et_settype.
      loop at lt_extension into ls_extension.
        lv_db_tab = ls_extension-frgtype_tab.
        check not lv_db_tab is initial. "CRM_CAT_SAT & CRM_CAT_PUR
      does table exist ?
        call function 'DDIF_NAMETAB_GET'
          exporting
            tabname   = lv_db_tab
          exceptions
            not_found = 1
            others    = 2.
        check sy-subrc = 0.
      Due to any reason (I don't know why) sometimes we have product_guid
      and sometimes we have frg_guid as name of the key field.
        create data table_name_ref type (lv_db_tab).
        assign table_name_ref->* to <table_name>.
        assign component 'PRODUCT_GUID' of structure <table_name>
               to <field_name>.
        lv_subrc_pr_guid = sy-subrc.
        if lv_subrc_pr_guid = 0.
          delete from (lv_db_tab)
                 where product_guid = iv_product_guid.
        else.
          delete from (lv_db_tab)
                 where frg_guid     = iv_product_guid.
        endif.
      delete history of extension table
        concatenate ls_extension-frgtype_tab 'H' into lv_db_tab.
        create data table_name_ref type (lv_db_tab).
        assign table_name_ref->* to <table_name>.
        assign component 'LOGSYS' of structure <table_name>
                                  to <field_name>.
        check sy-subrc = 0.
        call function 'DDIF_NAMETAB_GET'
          exporting
            tabname   = lv_db_tab
          exceptions
            not_found = 1
            others    = 2.
        check sy-subrc = 0.
        if lv_subrc_pr_guid = 0.
          delete from (lv_db_tab)
                 where product_guid = iv_product_guid.
        else.
          delete from (lv_db_tab)
                 where frg_guid     = iv_product_guid.
        endif.
      endloop. "  end of loop for all extensions
    endform.                    " delete_extensions
    *&      Form  delete_settypes
    form delete_settypes
         using iv_product_guid   type comt_product_guid
               it_settypes       type comt_frgtype_tab_ext
        changing et_status_guid  type comt_prd_status_guid_tab.
      data: ls_reldesc type  coms_pr_org_rel,
            lt_reldesc type  comt_pr_org_rel_tab,
            lt_reltab  type  ref to data,
            ls_settype type  comt_settype_ext,
            ls_table   type  tabname,
            ls_status_guid   type crmt_object_guid.
      field-symbols:
           <fs_reltab>   type any table,
           <fs_relrow>   type any,
           <fs_settype>  type comt_frgtype_guid,
           <fs_setguid>  type comt_frg_guid,
           <fs_statguid> type crmt_object_guid.
    memorise product status guide
      ls_status_guid = iv_product_guid.
      append ls_status_guid to et_status_guid.
    load description of relation tables
      call method cl_com_product_org_type=>comc_pr_org_link_read_all
        importing
          et_pr_org_rel = lt_reldesc
        exceptions
          no_desc       = 0.
    for all relation types (e.g. comm_pr_frg_rel, comm_pr_frg_rod)
      loop at lt_reldesc into ls_reldesc.
      read product/settype relations
        create data lt_reltab type (ls_reldesc-link_table_ttyp).
        assign lt_reltab->* to <fs_reltab>.
        call function ls_reldesc-func_rel_read_pr
          exporting
            iv_product_guid = iv_product_guid
          importing
            et_rel          = <fs_reltab>
          exceptions
            wrong_call      = 1
            not_found       = 2
            others          = 3.
        check sy-subrc = 0.
      for all links...
        loop at <fs_reltab> assigning <fs_relrow>.
          assign component 'FRAGMENT_TYPE' of structure <fs_relrow>
                                                     to <fs_settype>.
          assign component 'FRAGMENT_GUID' of structure <fs_relrow>
                                                     to <fs_setguid>.
          assign component 'STATUS_OBJECT' of structure <fs_relrow>
                                                     to <fs_statguid>.
          read table it_settypes with key frgtype_guid = <fs_settype>
                                 into ls_settype.
          check sy-subrc = 0.
        settype table
          delete from (ls_settype-frgtype_tab)
                 where frg_guid = <fs_setguid>.
        history table
          concatenate ls_settype-frgtype_tab 'H' into ls_table.
          delete from (ls_table)
                 where frg_guid = <fs_setguid>.
        memorise settype status guide
          if not <fs_statguid> is initial.
            ls_status_guid = <fs_statguid>.
            append ls_status_guid to et_status_guid.
          endif.
        endloop. "of links
      relation table (e.g. comm_pr_frg_rel)
        delete from (ls_reldesc-link_table)
               where product_guid = iv_product_guid.
      history table
        concatenate ls_reldesc-link_table 'H' into ls_table.
        delete from (ls_table) where product_guid = iv_product_guid.
      endloop. " of relation types
    endform.                    " delete_settypes
    *&      Form  delete_interlinkages
    form delete_interlinkages
         using iv_product_guid type comt_product_guid.
      constants: cv_db_name(8)  type c value 'COMM_IL_',
                 cv_suffix_h(2) type c value '_H'.
      data: lt_ilinks   type  comt_il_data_tab,
            lt_reltype  type  comc_il_reltype_tab with header line,
            lv_ddictype type  dd02v-tabclass,
            lv_dbname        type  comt_structure.
    CHECK p_objf IS INITIAL.
    first we have to read all ILs where the productguid is sourceguid
      refresh lt_ilinks.
      call function 'COM_IL_API_WHERE_USED'
        exporting
          iv_objectguid   = iv_product_guid
          iv_objtype      = gc_bus_objtype_bus1178
          iv_direction    = 'S'
        importing
          et_interlinkage = lt_ilinks.
      check not lt_ilinks[] is initial.
      delete adjacent duplicates from lt_ilinks comparing reltype.
    read ilinkage customizing
      select * from comc_il_reltype into table lt_reltype
         for all entries in lt_ilinks where reltyp = lt_ilinks-reltype.
    delete interlinkages
      loop at lt_reltype.
        if lt_reltype-streltyp ne space.
          concatenate cv_db_name lt_reltype-streltyp into lv_dbname.
        else.
          concatenate cv_db_name lt_reltype-reltyp   into lv_dbname.
        endif.
      delete data
        call function 'DDIF_NAMETAB_GET'
          exporting
            tabname   = lv_dbname
          importing
            ddobjtype = lv_ddictype
          exceptions
            not_found = 1
            others    = 2.
        check sy-subrc = 0 and lv_ddictype = 'TRANSP'.          "#EC NOTEXT
        delete from (lv_dbname) where sourceguid = iv_product_guid.
      delete history
        check lt_reltype-change_doc = 'X'.
        concatenate lv_dbname cv_suffix_h into lv_dbname.
        call function 'DDIF_NAMETAB_GET'
          exporting
            tabname   = lv_dbname
          importing
            ddobjtype = lv_ddictype
          exceptions
            not_found = 1
            others    = 2.
        check sy-subrc = 0 and lv_ddictype = 'TRANSP'.          "#EC NOTEXT
        delete from (lv_dbname) where sourceguid = iv_product_guid.
      endloop.
    endform.                    "delete_interlinkages
    *&      Form  delete_pme_data
    form delete_pme_data
         using iv_product_guid type comt_product_guid.
    delete multivalue attributes from PME
      data: lt_pmemap  like standard table of comm_pme_prd_map,
            ls_pmemap  like comm_pme_prd_map.
      select *  into table lt_pmemap
                from comm_pme_prd_map
                where crm_object_guid = iv_product_guid.
      check sy-subrc = 0.
      loop at lt_pmemap into ls_pmemap.
        call function 'CRM_SCE_DB_KB_DELETE'
          exporting
            iv_kbid = ls_pmemap-kbid.
      endloop.
      delete comm_pme_prd_map from table lt_pmemap.
    endform.                    "delete_pme_data
    *&      Form  send_deletion_to_mw
    form send_deletion_to_mw
         using iv_product_guid type comt_product_guid.
      data:  cv_function_module like  rs38l-name
                  value 'CRM_PROD_SEND_DELETION_MESSAGE'.       "#EC NOTEXT
      data:  lt_product_guid  type comt_product_s_tab with header line.
      lt_product_guid-product_guid = iv_product_guid.
      append lt_product_guid.
      call function 'FUNCTION_EXISTS'
        exporting
          funcname           = cv_function_module
        exceptions
          function_not_exist = 1
          others             = 2.
      check sy-subrc = 0.
      call function cv_function_module
        exporting
          it_product_guid = lt_product_guid[]
          iv_test_only    = space
        exceptions
          internal_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.                    " send_deletion_to_mw
    *&      Form check_mobile_download
    form check_mobile_download
      changing ev_mobile_active type comt_boolean.
      data:
            cv_db_tab   type ddobjname value 'SMOMARA'.
      data: lv_lines    type i value 0.
      clear ev_mobile_active.
      call function 'DDIF_NAMETAB_GET'
        exporting
          tabname   = cv_db_tab
        exceptions
          not_found = 1
          others    = 2.
      check sy-subrc = 0.
      select count( * ) into lv_lines
        from (cv_db_tab) up to 10 rows.                     "#EC CI_NOWHERE
      if lv_lines > 0.
        ev_mobile_active = on.
      endif.
    endform.                    " check_mobile_download
    *&      Form check_authority
    form check_authority.
      tables:  t000, comc_pr_tool_reg.                          "#EC NEEDED
    check productiv system - report must not be executed
      select single * from t000 client specified             "#EC CI_CLIENT
                      where mandt = sy-mandt.
      if t000-cccategory = 'P'.
        message e807(com_product) .
        leave.
        leave to transaction '    '.
      endif.
    Check authority for product delete
      call function 'COM_PRODUCT_AUTHORITY_CHECK'
        exporting
          iv_auth_act    = '06'
        exceptions
          no_authority   = 1
          wrong_call     = 2
          internal_error = 3
          others         = 4.
      if sy-subrc ne 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      MESSAGE e808(com_product).
        leave.
        leave to transaction '    '.
      endif.
    Additional step: registration
      select single * from comc_pr_tool_reg
             where program_name = gc_program
             and   user_name    = sy-uname
             and   exec_date    = sy-datum.
      if sy-subrc ne 0.
        message e809(com_product).
      endif.
    endform.                    " check_authority
    *&      Form  delete_decoupled_data
    form delete_decoupled_data
         using iv_product_guid type comt_product_guid.
      include com_product_const018.
    Deleting decoupled and customer requested data (long_text, longmatnr,
      upload registry, ibase product variants coming from R/3,
      archive verify registry). Documents like PDF,XLS,DOC,JPG stored in
      Content Management will not be deleted
    load BADI implementations
      class: cl_exithandler definition load.
      data:  exit_obj type ref to if_ex_com_product_delete.
      call method cl_exithandler=>get_instance
        exporting
          exit_name              = gc_badi-com_product_delete
          null_instance_accepted = on
        changing
          instance               = exit_obj.
    call BADI implementations (User Exit)
      call method exit_obj->delete_extra_data
        exporting
          iv_product_guid = iv_product_guid.
    endform.                    " delete_decoupled_data
    *&      Form  load_extensions
    form load_extensions
         using iv_product_guid type  comt_product_guid
      changing et_extension    type  comt_frgtype_tab_ext
               et_settype      type  comt_frgtype_tab_ext.
      data: lt_prd_cat      type  comt_prod_cat_rel_tab,
            ls_prd_cat      type  comt_prod_cat_rel,
            lt_cat_frg      type  comt_prcat_frag_rel_tab,
            ls_cat_frg      type  comt_prcat_frag_rel,
            lt_settype_guid type  comt_frgtypeguid_tab,
            ls_settype_guid type  comt_frgtype_guid,
            lt_settype      type  comt_frgtype_tab_ext.
      refresh et_extension.
    read categories assigned to product
      call function 'COM_PROD_CAT_REL_READ_WITH_PR'
        exporting
          iv_product_guid = iv_product_guid
        importing
          et_set          = lt_prd_cat.
      loop at lt_prd_cat into ls_prd_cat.
      read allowed settypes for categories
        call function 'COM_PRCAT_FRAG_REL_READ'
          exporting
            iv_category_guid  = ls_prd_cat-category_guid
          importing
            et_prcat_frag_rel = lt_cat_frg
          exceptions
            wrong_call        = 1
            others            = 2.
        check sy-subrc = 0.
        refresh lt_settype_guid.
        loop at lt_cat_frg into ls_cat_frg.
          ls_settype_guid = ls_cat_frg-frgtype_guid.
          append ls_settype_guid to lt_settype_guid.
        endloop.
      read settype defintions
        call function 'COM_SETTYPE_READ_MULTIPLE'
          exporting
            it_settype_guid = lt_settype_guid
          importing
            et_settype      = lt_settype
          exceptions
            nothing_found   = 1
            others          = 2.
        if sy-subrc =  0.
        only settypes
          et_settype[] = lt_settype[].
          delete et_settype[] where
            ( prod_comp_type = gc_prod_comp_type-extension or
              prod_comp_type = gc_prod_comp_type-simple_extension ).
        only extensions
          delete lt_settype[] where
            ( prod_comp_type ne gc_prod_comp_type-extension and
              prod_comp_type ne gc_prod_comp_type-simple_extension ).
          et_extension[] = lt_settype[].
        endif.
      endloop. " end of product categories
    endform.                    " load_extensions
    *&      Form  delete_status
    form delete_status
      using it_status_guid type comt_prd_status_guid_tab.
      data:
        lt_status like crm_jsto_pre occurs 0,
        ls_status type crm_jsto_pre,
        ls_status_guid type crmt_object_guid.
      loop at it_status_guid into ls_status_guid.
        ls_status-objnr = ls_status_guid.
        append ls_status to lt_status.
      endloop.
      call function 'CRM_STATUS_DELETE_MULTI'
        tables
          objnr_table = lt_status.
    endform.                    " delete_status
    *&      Form delete_favorites
    form delete_favorites
         using iv_product_guid type  comt_product_guid.
      call function 'COM_PRODUCT_DELETE_FAVORITES'
        exporting
          iv_object_guid = iv_product_guid.
    endform.                    " delete_favorites
    *&      Form delete_clear_case
    form delete_clear_case
         using iv_product_guid type  comt_product_guid.
      data:   ls_customizing type comc_product,
              lv_clear_case_guid type comt_clear_case_guid.
    Is cusotmizing-flag INACTIV_PROD activated ?
      call method cl_com_product_general=>comc_product_read_all
        importing
          es_prod_general = ls_customizing
        exceptions
          not_found       = 1
          others          = 2.
      check ls_customizing-inactive_prod = on.
      select single clear_case_guid from comm_clear_targ        "#EC *
               into lv_clear_case_guid
               where object_guid = iv_product_guid  "active
                 and object_class = 'PROD'.
    normaly two entries for active and inaktive product version
      delete from comm_clear_targ
               where clear_case_guid = lv_clear_case_guid
                 and object_class = 'PROD'.
      delete from comm_clear_stack
             where guid = lv_clear_case_guid
               and application = 'PROD'.
    endform.                    "delete_clear_case
    *&      Form check_usages
    form check_usage
         using iv_product_guid type  comt_product_guid
      changing ev_delete type comt_boolean.
      include sbal_constants.
      data:  cv_function_module like  rs38l-name
                  value 'COM_PRODUCT_USAGE_CHECK'.              "#EC NOTEXT
      data:  ls_product  type comt_product,
             lt_product  type comt_product_tab.
      data:  ls_logheader     type bal_s_log,   "Kopfdaten des Protokolls
             lv_loghandle     type  balloghndl.
      data:  ls_msg_filter type bal_s_mfil,
             ls_log_filter type bal_s_lfil,
             lt_msg_handle type bal_t_msgh,
             ls_log_handle type bal_s_logh,
             ls_msg_handle type balmsghndl,
             ls_msg        type bal_s_msg,
             ls_string     type string.
    does CRM function exist
      call function 'FUNCTION_EXISTS'
        exporting
          funcname           = cv_function_module
        exceptions
          function_not_exist = 1
          others             = 2.
      check sy-subrc = 0.
    create log handle
      ls_logheader-aldate    = sy-datum.
      ls_logheader-altime    = sy-uzeit - 10.
      ls_logheader-aluser    = sy-uname.
      ls_logheader-alprog    = sy-repid.
      call function 'BAL_LOG_CREATE'
        exporting
          i_s_log                 = ls_logheader
        importing
          e_log_handle            = lv_loghandle
        exceptions
          log_header_inconsistent = 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.
      ls_product-product_guid = iv_product_guid.
      append ls_product to lt_product.
    call usage checks
      call function cv_function_module
        exporting
          it_product   = lt_product
          iv_loghandle = lv_loghandle.
    filter settings
      ls_log_handle-sign   = 'I'.
      ls_log_handle-option = 'EQ'.
      ls_log_handle-low    = lv_loghandle.
      append ls_log_handle to ls_log_filter-log_handle.
    get messages
      call function 'BAL_GLB_SEARCH_MSG'
        exporting
          i_s_log_filter = ls_log_filter
          i_s_msg_filter = ls_msg_filter
        importing
          e_t_msg_handle = lt_msg_handle
        exceptions
          msg_not_found  = 1
          others         = 2.
      check sy-subrc = 0.
      ev_delete = space.
      write: / text-001, text-008.
    read messages
      loop at lt_msg_handle into ls_msg_handle.
        call function 'BAL_LOG_MSG_READ'
          exporting
            i_s_msg_handle = ls_msg_handle
          importing
            e_s_msg        = ls_msg
          exceptions
            log_not_found  = 1
            msg_not_found  = 2
            others         = 3.
        check sy-subrc = 0.
        message id ls_msg-msgid type ls_msg-msgty number ls_msg-msgno
            with ls_msg-msgv1 ls_msg-msgv2 ls_msg-msgv3 ls_msg-msgv4
            into ls_string.
        write: /, ls_string.
        clear ls_msg.
      endloop.
    endform.                    " check_usages
    *&      Form  delete_ibasecomponent
          text
         -->P_GV_PRODUCT_GUID  text
    form delete_ibasecomponent using p_product_guid.
      data: lv_guid22 like sysuuid-c22,
            ls_comp   type  ibas_dat1.
      tables: ibin.
      break pvho.
      call function 'GUID_CONVERT'
        exporting
          iv_guid_x16            = p_product_guid
        importing
          ev_guid_c22            = lv_guid22
        exceptions
          no_unicode_support_yet = 1
          parameters_error       = 2
          others                 = 3.
    find the component
      select * from ibin
             where objnr = lv_guid22.
        clear ls_comp.
        ls_comp-instance = ibin-instance.
        ls_comp-ibase = ibin-ibase.
        call function 'IBASE_COMP_DELETE'
          exporting
            i_comp              = ls_comp
          exceptions
            data_not_consistent = 1
            ibase_locked        = 2
            not_succesful       = 3
            others              = 4.
        if sy-subrc eq 0.
          call function 'IBASE_SAVE'.
        endif.
      endselect.
    endform.                    " delete_ibasecomponent

  • ** How to show the master query group for once in Report??

    Hi
    I've developed a master-detail groups at a report
    The master one has it's repeating frame and the detail one has another repeating frame and put at another page at the layout.
    The porblem is that the master one is shown (the same record) in pages for times equal to the number of the detail records which is own for that master record!
    Example:
    if the master record has got three details then the master data will be show for three times (three pages) at run time and then the page number 4 will show the three detail records.
    How to make the master data to be shown only for once (page number 1 only) and then show the detail three records at the next page (page number 2) at run time???

    Hi,
    the question back is, what you've done for this. At default the master record is only shown once. Could it be, that the master-fields are inside the repeating frame for the details?
    Regards
    Rainer

  • Using the APD to update material master in CRM

    Does anybody know if it is possible to update material master records in CRM from BW using the Analyses Process Designer with target CRM?
    I would prefer to know this before creating a custom data target adapter in the CRM SPRO, writing all the required function modules and then finding out that it does not work.
    Thanks,
    József.

    Which direction??
    Inbound/Outbound
    Inbound : IDOC_INPUT_MATMAS01

  • Report to show Vendor Master Change

    Hello Experts,
    Is there any SAP standard report which can show the new vendor details  created and the changes that are made to vendor master data.
    I know about <b>S_ALR_87012089</b>. But, it is showing only the changes made to the vendor master with Old and New values. If the new vendor is created it is showing with  <b>**Created***</b> but <b>the actual values are not shown!!!!</b>.
    But, i want to see the data instead of  that message when new Vendor Master is created. <b>How can we modify the existing one ?</b> or <b>Is there any other standard report which does this ?</b>

    Hi,
    http://help.sap.com/saphelp_45b/helpdata/en/01/a9b61b455711d182b40000e829fbfe/content.htm
    Check the above link
    Regards,
    Sridevi

  • Possibilities to replicate R3 vendor master to CRM

    We are working with SAP ECC and at them moment we are installing CRM 4.0 Best Practices. Replication of customers from R3 to CRM is working but we face a problem with vendor master records:
    In R3 we have setup sales representatives as vendor master records (account group EMPL). In R3 every sold to customer must have 1 sales rep linked as a partner function. In CRM we need to have the same situation.
    Does somebody know what configuration/steps we have to follow to be able to replicate a vendor master record and a sold to-sales rep partner function be able to CRM?
    Another example is forwarders (also vendor master records) that we have to link as a business partner to our ship to's.
    Your help is very much appreciated!
    Kind regards,
    Angélique Heutinck

    Have a look at OSS note 883162, there is a config guide linked and that is what we have used.

  • Iphoto shows correct thumbnail but does not show master photo or shows wrong master photo

    iPhoto has been working fine for me for 2 years.  But yesterday I started noticing problems with the photos when scrolling thru all the photos in an event.
    When viewing the event, I can see all of the correct thumbnails for the photos in the event.  But when I open the individual photos, some photos look fine, but others don't display at all (if I had added faces in the photo the frames for the faces show up on a black background).  If I swipe to scroll through the photos, the correct photo is displayed for less than a second and then is replaced by the last photo and gets either stretched or shrunk to be the same size as the photo that should be displayed.  If I view the actual file in the Finder, the master image looks perfectly fine.
    I have tried repairing and rebuilding the database and neither one fixed the problem.
    My software is up to date also.
    I would like to export all of the photos from iPhoto to a different directory and just manage them myself, but I can't find an export feature in iPhoto. 
    Anyone having the same issues with iPhoto or know of a way to easily export the photos?  Or can I just move the masters to a directory outside of iPhoto?

    You have tried repairing and rebuilding, but have you also tried to recreate the thumbnails from the same First Aid  panel?
    Or rebuilding using iPhoto Library Manager?
    I would like to export all of the photos from iPhoto to a different directory and just manage them myself, but I can't find an export feature in iPhoto.
    To export your photos from iPhoto read Terence Devlin's user tips on this page:
    https://discussions.apple.com/community/ilife/iphoto?view=documents
    The "Export" command is in iPhoto's "file" menu. You will want to export the original files and the edited versions.
                     Exporting From iPhoto
                     How to Access Files in iPhoto

  • How do I show the master and version copy of a pic seperately?

    I have downloaded the trial of Aperture 2, and seem to like what I see so far. I'm having a little trouble
    learning a few things though. I wish I had a real book to study, but I know this software is so new.
    Here is my problem, when I first started using the program, whenever I chose an image from the browser, and started editing in the viewer, a second copy was imediately put next to the master copy in my browser after i was finished. I like this because as i scrolled through my browser I was able to see
    both copys side by side, same pic number, master and edited version.
    Now in certain projects when i scroll through the browser I only see the edited version without the master sitting right next to it. I must have clicked on something, but I can't figure out how to get both side by side again in the browser. So far the only way I can see some of the masters in the project is by hitting the M key or going to toolbar, and clicking on show master, but I can't see the master by itself in the browser. Sorry if i'm confusing anyone, but if anyone can help I would really appreciate it. Thank you. Tommy

    Thanks, sekoya, dave, and DY,
    I tried what Dave said and it worked, but it's kind of weird, in one project when I edit it does create
    the new version, but puts a stack box around it. Ian different project it just shows 2 seperate picture with the same numbers, but not highlighted for a stack.
    I really appreciate the info, I know this is probably kind of petty, but I hate being stumped by things like this.
    So how would I be able to show just masters in the browser without having to dig through the versions first? Again, this forum has always been very helpful to me in the past. Thanks to anyone who helps. Tommy

  • Need of Tables for th BP Master in CRM

    Dear Friends,
    i need of your help in finding out the proper tables in CRM for the BP Master -- Sales Area data(Region, Sales District, Sales Office, Business Partner Code, Business Partner  Name
    Thanks & Regards
    ARUN

    Hi,
    you can check with "BUT * " realated to Business partner.
    and FM's are also there with "BUPA*".
    Thanks & Regards,
    Madhavi

  • How to show incoming mails in CRM Interaction Center?

    Experts,
    how can we show incomming ele. letter  for m.-direction of CRM USER in Interaction center.
    An example: I am interaction center agent. I am sending a correspondence to my client. In my user (SU01) i have saved my direction.
    The client receives my e m a i l with my e m. direction saved in SU01. He answers.
    Now, I want this m. to go to my interaction center inbox. What do I have to do?
    Hoping for help,
    Cristina

    hi christina,
    If i understand you correctly (plz correct me if i'm wrong)
    You want the incoming mails to appear in the agent's inbox.for this you will have to assign either one common e mail id (for eg: heldesk at company.com) which will be shown to the customer in his e mail inbox.
    Similarly when he replies back to this e mail the e mail will be visible to all the agents in their Agent inboxes.(Standard practice)
    If you are working on CRM 5.0 this can be acheived as follows:
    1.Take BASIS help for creating the common e mail ID
    2.maintain the settings
    IMG>ICWC>Agent Inbox>Settings for Asynchronous Inbound Processing>Define Receiving E-Mail Addresses/Fax Numbers
    3Map Item Attributes to Inbox Attributes
    follow C-78 SAp best practices to set it up
    hope this helps
    Regards
    Raj

  • Command-tab does not show minimized window

    Hello, use command-tab to cycle through all the open apps, and I stop on one that I want to display. However, if that app is minimized, nothing happens. Not too convenient. Is there a way to automatically show the minimized window when I select it w/ command-tab? (this is how windows works and I prefer it this way)
    thanks

    Greetings from a System Leopard user.
    I've not yet upgraded to System Snow Leopard, but I'm running across unbelievable messages and applications that are required to allow CMD+Tab to work right under System Snow Leoperd. Is this a big joke or what?
    There are at least 5 $hareware/commercial (but not public domain) apps that are required to restore the use of CMD+Tab for System Snow Leopard users.
    Using System Leopard, CMD+Tab works perfectly. But reading various messages threads it looks like Apple programmers have disallowed CMD+Tab to work properly in System Snow Leopard. Why?
    Any Apple Employee, anywhere:
    If this is all true, that CMD+Tab has turned into a convoluted mess, then why have Apple engineers disallowed normal use of CMD+Tab?
    If this is true about CMD+Tab, is it because Microsoft Vista programmers sneaked onto the property and diddled with the System Snow Leopard source code?
    Apple employee, the most acceptable reason for not upgrading to System Snow Leopard is software application compatibility, but if global functions are intentionally convoluted in System Snow Leopard, please explain the Apple decision process vis a vis CMD+Tab, and the reasons this condition has been allowed to fester.
    Thanks much!

  • How to communicate between Flex and JSP and show the result in an Iframe

    Hi all
    I am trying to send some data from flex to one HTTPService and trying to show the same response jsp in an Iframe. But unfortunately i am unable to get the responce Jsp's url to set as a source for iframe.
    let me explain you clearly...I have a mxml where i am having a text box and a button in the left panel and in the right panel i am having an Iframe to display jsp. So once user enters some value in the text box and clicks button then HTTPservice's send method will be called with text box's content as an arguement. So i can fetch that value from request object in jsp and display the value in jsp. So the problem here is i want display that result jsp in my Iframe. I know that , we need that result jsp URL to display in Iframe . But as i am sending POST request to HTTPservice, i am not able to get the result jsp's URL in flex side.
    So i need help desperately from great minds.So anyone of you can give me some suggestions!!!!
    Regards

    Hi all can some one please give a solution ...Any suggestions would be greatly appreciated

Maybe you are looking for

  • Error message 4000 when trying to burn a cd in itunes

    I am having problems burning a cd in itunes. I am getting the error message the attempt to burn a disc failed. An unknown error occurred  (4000). Can someone tell me how I can fix this problem.  Please note that I have looked up other ways to solve p

  • Tried opening iTunes but keep getting Error 7 (Windows error 1114)

    Tried to open iTunes and cannot ~ error 7 (Windows error 1114) not installed properly. Do I uninstall and re-install? Will I lose my library?

  • Import, Eject and Refesh not working on iTunes 7.6

    I updated to iTunes 7.6 today and now i iTunes won't import and eject cd automatically. I now have to eject cd manually, i then have to close itunes and re-open it as it doesnt auto refresh when a new cd is put in. it worked ok before i updated. I ha

  • Callin Parameters from a .VBS to Powershell

    I'm using the following code to call a .ps1 file from a .vbs script. I need to pass a total of 5 parameters from the .vbs to the .ps1. For some reason I am only able to pass 3. I'm very weak in .vbs so please let me know if there is anything wrong wi

  • Transaction Launcher " server could not be found" error

    Hi Gurus, i have created a transaction launcher and maintain all necessary connectivity settings required, but now when i execute this transaction launcher link in CRM webui screen , it processes and throws error" firefox could not find server at "my