SYSFAIL Error in SMQ2 - Transfer of material from R/3 to CRM

Hi,
We are using standard BDOC to transfer material from R/3 to CRM. BDOC Type is PRODUCT_MAT, Queue name is R3AD_MATERIA<Material No>.
There are some queues which are struck in SMQ2. There are no struck queues in R/3. The struck queue has the status SYSFAIL and when I double click, it shows Message - Error in Mapping (Details: transaction SMW01)
I checked transaction - SMW01. The queue name which is in SYSFAIL status is not coming up in SMW01.
I do not understand whereelse I can see the detailed error message.
This error does not occur for all articles.
As I don't have sufficient knowledge in CRM and BDOCs, any pointers regarding the issue will be very much helpful.
Thanks and Regards,
Lakshmi

Hi Lakshmi,
Please follow as below:
SMWP-Middleware Monitoring Cockpit- This transaction gathers a wide set of information about the status of the Middleware & Downloads in both the CRM system, the R/3. All statuses should normally be green but there may be some circumstances which stop this occurring. Expand the section Generation Information which refers to the generation of BDoc Types. Where ever you see error you can right click and Select Analysis Tool then right click and check the error.The log shows the error.
SMQ2- Select a Queue and select Display. Queues connected to R/3 start with a queue name of R3A/D.
Double click on the Status field i.e SYSFAIL. Reason will be shown.In your case it is u201CError in Mapping (Details: transaction SMW01)u201D. Then Continue and select a queue and select Display.You can see the Individual BDocs are beoing displayed.
SMW01- give Bdoc Type as " Product_mat". If it is not displaying then I request you to check if all the objects are generated properly.This may also happen if the objects are not properly generated.Use tx-Genstatus. That will give you a list of error objects to be generated.
Regards...
Arup

Similar Messages

  • Transfer of material from sales order stock to subcontractor

    Iam having subcontracting operation in routing. But i am not able to transfer of material from sales order stock to subcontractor when i do 541 movement

    Dear Mayuresh,
    You cannot move Sales Order assigned material directly to Sub contracting Vendor stock.
    For doing so firstly unassign the Sales order stock by transaction MB1B & movement type 411E.
    After this you can provide the stock to the vendor by transaction MB1B & movement type 541O.
    Other way is to create account assigned Purchase Orders. Thereafter create virtual sub contractor storage location in your plant. Transfer your Sales Order assigned material to these Virtual locations so that you can see the stock provided to the vendor. Now during Goods Receipt of the finished goods you can consume the material by movement type 543E.
    Regards,
    Subha.

  • Transfer the material from one plant(non valuated) to another plant valuat

    Hi All,
    How to transfer the material from one plant(non valuated) to another plant valuated.
    Which Goods Movement type we required to use.
    Regards,
    Amit Shah

    Hello,
    Please refer the link below. hope it could be a help.
    stock transfer plant to plant
    split valuation
    Regards,
    Jana

  • TRANSFER OF MATERIAL FROM VENDOR TO VENDOR

    Hi *SAP MM GUYS*  Please check my scenario .
    I have send some material to a vendor for subcontracting jobbwork.
    after as he is delaying the work I want to send the material to another vendor.The first vendor has no problem with this.So how to transfer the material from vendor to vendor.Please give me detailed explanation.
    Awaiting your reply
    Veer

    Dear,
    Case1) Process flow IF material is Excisable:
    Do 542 of material
    Reconcile the challan with that dpcument
    Complete the challan
    Do 541 for second vendor
    Raise the s/c Challan
    Case 2) Process flow if material is non excisable
    Do 542 of material
    Do 541 to the second vendor
    OR u can do
    542 in MB1B wherein u can put the vendor where u want material to be sent.
    Regards,
    SNB

  • Material description is missing when replicating material from R/3 to CRM

    Hi Experts,
    I am facing middleware error.
    I have replicated a material from R/3 to CRM system.
    I am able to see all the details in CRM except the material description in CRM.
    The material i have replicated from R/3 to CRM has a description in R/3 but the same description is missing in CRM and it is showing blank.
    Please help me to solve this.
    Thanks

    Hi,
      Go to the COMM_PRSHTEXT see the table entries is there are not. Pass product GUID in this table and check.
    Regards
    Srinu

  • Transfer Business Partner from R/3 to CRM

    Hi All,
    Can any one pls help me how to transfer business partner from R/3 to CRM system? If it can be done through ALE pls explain me the detailed step how to do it like wht message type should be used etc. If there are some other way pls let me know.
    Thanks
    Sathish

    Check them out:
    Replication of BPs from CRM to R/3
    downloading partner functions from R/3 to CRM
    Data exchange between R/3 and CRM 5.2
    delete bank details for a BP in CRM 5.0, it doesn't get deleted from R/3
    Reward Points if useful.

  • Transfer of material from R/3 to APO, Problem in Integration model

    Hi
    I have created Integration model for Transferring material from R/3 to APO.
    While  activating the model, it is giving error  with status as i..e. SYSFAIL
    On clicking the status, I am getting the following message
    "Logical system R3CON does not assigned to Business System Group"
    ?Where to locate the BSG in  R/3 and assign before transferring  matl to APO
    i require the steps&help  to solve the problem.
    Thanks in advance to all members for the help.
    Srikanth

    Dear Srikant ,
    Pls check you have followed the below steps in the same sequence for R3 and APO
    <u>CIF Settings in R/3</u>
    Check ALE settings or activate ALE settings          
    •Define the logical system               <b>BD54</b>
    •Assign logical system to a client               <b>SCC4</b>
    Set the RFC destination               <b>SM59</b>
    <i>Assign target system and queue type          <b>CFC1</b></i>
    Maintain the SAP APO release               <b>NDV2</b>
    Activate BTEs for SAP APO integration          <b>BF11</b>
    User parameters for CIF               <b>CFC2</b>
    <u>CIF Settings in APO</u>
    Check ALE settings or activate ALE settings          
    • Define the logical system               <b>BD54</b>
    • Assign logical system to a client          <b>SCC4</b>
    Set the RFC destination                <b>SM59</b>
    Set up business system group     
    –Create BSG                <b>/SAPAPO/C1</b>
    –Assign logical systems to BSG          <b>/SAPAPO/C2</b>
    Maintain distribution definitions               <b>/SAPAPO/CP1</b>
    User parameters for CIF               <b>/SAPAPO/C4</b>
    You have got stuck up somewhere in R3 setting , which I have marked in italic font i.e.<i>Assign target system and queue type          CFC1</i>
    I hope this will solve your problem .
    Thanks ,
    Digambar

  • Authorisation for transfer of material from group of plants to another.

    Hi experts
    We need to control mvt of goods from group of plants to another group of plants by the same user. The group of plants may be combination of multiple plants or single plant also. Transaction to be checked is MB1B with 541/412 mvt. Basically this requirement is to check transfer of exempted material to Non-exempted material from the point of VAT implication. Can any body share your thought.
    rgds
    Raghu Shetty

    Hi,
    i still have some concerns about the creating new materials solution because we have to create the following relevant things:
    SD: condition record
    MM: infor record
    PP: new BoM
    we have 25 materials which will change profit center, there're a lot extra works we need to do.
    Is there any other way we can try?
    Regards

  • Automatic transfer of material from unrestricted to transit

    Hi,
    I have transferred the material from 1 sales order to another sales order by Mov type- 413-E by MB1B. Ideally it should transfer to sales oder but when I checked the stock in MB52, I can not see the stock against that SO.
    But this stock automatically got transferred to transit.
    Can u please tell me how it could possible. Rather there is a another mov type 558-E to transfer material from stock to transit.

    Hi,
    Thanks for your reply.
    I have checked the movement type in MB51 it is showing the same as 413-E.
    As I suppose to reverse or cancel it by MBST but somebody already has made the GRN against it and that stock came again in Unrestricted of that Sales order to which I have transferred.
    Regards,
    Chetan

  • Industry error while doing replication of customer from R/3 to CRM

    Hi,
    We have production system already implemented and going for roll out for another company both R/3 & CRM.
    We have generated conditional objects while doing roll out phase. From then we are getting this error.
    Problem:
    Customers are not getting replicated to CRM. And in SMW01 the error log says
    "Industry 300 not defined for industry system SAPS
    Validation error occurred: Module CRM_BUPA_MAIN_VAL, BDoc type BUPA_MAIN."
    Since we are going for roll out we have done initial load of all conditional objects
    like 'DNL_COND_A002' etc.
    After running we did checked in R3AM1 - everything was DONE - in green colour.
    But in SLG1 - Display log - there are several entries in Red colour.
    Message text says -
    "It is not possible to change client-independent Customizing objects
    Diagnosis:
    Change of client-independent Customizing objects is not permitted in the client in which the transfer of data for table T682 is executed.
    System response:
    As table T682 contains client-independent Customizing, data transfer is interrupted.
    Procedure for System Administration
    Provide users with the appropriate authorization to execute data transfer in a client in which changes to client-independent objects is permitted."
    Now queues are pilled up with the industry error and don't know how to correct these errors.
    Please help.
    Regards,
    Dhanraj Dange

    Hi pankaj,
    Step 1:After completing Initial Download tranfer of data takes place from R/3 to CRM system in the form of Customers or employess.
    Bulk data will be flown in the first step.
    I f there are any errors ,we solve the errors and replicate them manually by using CRMM_BUPA_map.
    Step2:There are few customers which are created daily in SAP SD or R/3 and these customers are transfered from R/3 to CRM .
    So my question is  Is this b'cos of Delta Download or Bcoz of some other Reason.
    If so "Is there any specific name for this.
    Regards,
    divya

  • Error in pulling customer master data from R/3 to CRM

    Hi,
    I am trying to pull customer data from R/3 to CRM with different SHIP-TO partner. In this case, the VAT REG. NO. is different from its country ISO code, so when i try to execute in tcode R3AR2 and R3AR4, I was encountered error message in tcode 'SMW01' saying "ISO CODE <code> IS NOT CORRECT IN THE VAT REGISTRATION NUMBER".
    Is there anyone knows any recent updates from SAP that might solve this problem?
    Please help.
    Thanks.

    Hello,
    it seems your customizing of ERP and CRM is different in this area.
    Please try a new initial load for all the customizing objects which may be responsible:
    DNL_CUST_BASIS
    DNL_CUST_BASIS2
    DNL_CUST_BASIS3
    DNL_CUST_BASIS5
    DNL_CUST_BASIS6
    DNL_CUST_BNKA
    DNL_CUST_KTOKD
    DNL_CUST_PRC
    DNL_CUST_PROD0
    DNL_CUST_PROD1
    DNL_CUST_PROD3
    DNL_CUST_SPROD
    DNL_CUST_TVAST
    DNL_CUST_TVFS
    DNL_CUST_TVKN
    DNL_CUST_TVLS
    We do every week a new load of this objects using a background job.
    Alternativly you could investigate which customizing object is the correct one and only load this.
    After this new load retest your scenario.
    Best regards
    Manfred

  • Error while replicating customer master data from R/3 to CRM

    Hi gurus,
    I am working on replication of customer master data from R/3 to CRM. It was working fine till date. But Now I am not able to replicate because in Inbound queue (in CRM 5.0) I get the status SYSFAIL for queue name R3AI_DNL_CUST_ACGRPB. When I checked SYSFAIL it shows  "Incorrect parameter with CALL FUNCTION"
    Kindly help regarding it.
    regards,
    vimal

    Hello Vimal,
    Please refer 552435 and see if this helps.
    Please reward points.
    regards,
    Muralidhar Prasad.c

  • 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

  • SYSFAIL Error in SMQ2

    Hi All
    I am trying to do an Initial Load on the Customizing Object DNL_CUST_BASIS5 to download the Country realted customizing settings from ECC 6.0 to CRM 2007.
    The load failed with queue in SMQ2 in SYSFAIL state. The error is GUID_FOR_LOGSYS_CHANGED.
    A few weeks earlier, I donwloaded the same object. I did not face any issues.
    Thanks in advance
    Best Regards
    Ram Sushanth

    Hi Ram,
      Make sure you have same logical system name and GUID in below tables
         In ECC  -
    >  CRMPRLS
         In CRM -
    >  CRMMLSGUID
       If GUID is not matching, delete the entry from table CRMMLSGUID and restart the load.  Entry will create in the table CRMMLSGUID, when first initial load triggers. Below note specifies the same.
         Note 765018 - Problems with logical system during data exchange
    NOTE: You should never do this in Production.
    Regards,
    Bhanu

  • New Sysfail Error during PR Transfer. FM BBP_REQUISITION_GETDETAIL not foun

    Hello Friends,
    We have moved onto the Production system and while transferring the first PR in the Prod system from ECC 6 to SRM (5.0 PL14) I am getting "sysfail" type error in outbound queue in ECC. The error details are "Function Module BBP_REQUISITION_GETDETAIL not found".
    No trace exists in SRM system. (SMQ2 or SLG1). And all the connections between the 2 systems are working fine.
    What can be the reason for this issue. Is it an SRM issue or ECC issue. (the FM exists only in ECC).
    Any inputs would be of great help.
    Thank you in advance.
    Hussain.

    Hi Muthu,
    Can you please elaborate what exactly yu meant by logs on EPRTRANS table.
    What else (Logs etc) can be checked on ECC side.
    Regards
    Hussain

Maybe you are looking for

  • Performance Degradation - High fetches and Prses

    Hello, My analysis on a particular job trace file drew my attention towards: 1) High rate of Parses instead of Bind variables usage. 2) High fetches and poor number/ low number of rows being processed Please let me kno as to how the performance degra

  • After update, my firefox reverted to my old and unusable bookmarks leaving me with numerous lost bookmarks. How do I get them back?

    I recently updated my firefox and when I opened it, all of my bookmarks that I've made over the past several updates are gone. My current page shows bookmarks that I have deleted a long time ago or are no longer working. Even bookmarks that I have sa

  • Do I need to pay $99/year per employee just to test web pages on IOS simulator?

    Hi there, I run a small web development shop with 5 employees. We all bought Xcode through the app store and have been using the iOS simulator to test web pages and troubleshoot problems with our customers sites on iPhones and iPads. I just upgraded

  • How good is the Stock Cooler

    Hi ppl. As u prob know I am building a PC for my friend. It will be a AMD 64 3200 My question is if I bought the retails then how good is the cooler? Also will it come with a Thermal Pad   If I bought the retail could I scrap off the Pad and used The

  • Trees in reports

    Hi all, I'm reporting informations that have a tree-like structure. I bet I'm not the first. In the datamodel, I've created a (non-portable but I'll see later how I can deal with that) SELECT statement containing CONNECT BY and START WITH clause. And