How to delete complaints in CRM?

Hi Experts,
Any idea how we can delete a complaint? Is there any function module or API available that can be resued? Can it be called from a workflow? The business scenario here is-whenever a complaint is created, a mail is send to the approver and if he rejects the complaint, then it should be deleted from the system. This has to be implemented via a workflow. I am only stuck at the last step-deletion of complaint via the workflow.How this can be achieved?
Any pointers?
Thanks and Regards,
Rohit

Hi,
Look at the changing parameter section, there is a structure parameter called CT_ORDERADM_H, this is of type CRMT_ORDERADM_H_COM here you can see the parameter called 'Mode'.
You have to populate the CT_ORDERADM_H accordingly.
Look at the where used list of CRM_ORDER_MAINTAIN, you get to see lot of examples.
Regards,
Kiran

Similar Messages

  • How to Delete the condition record in CRM

    HI,
    Can you please help me how to delete the condition record from condition table in CRM.
    Please explain the usage of FM CRMXIF_CONDITION_SEL_DELETE with examples.
    I have also read the documention of the function module. How to use this FM for custom defined condition table.
    (this is the code given in Documentation)
    DATA-OBJECT_REPRESENTATION         = 'E'
    DATA-SEL_OPT-CT_APPLICATION              = 'CRM'
    DATA-SEL_OPT-OBJECT_TASK                    = 'D'
    DATA-SEL_OPT-RANGE-FIELDNAME        = 'PRODUCT_ID'
    DATA-SEL_OPT-RANGE-R_SIGN                  = 'I'    (Including)
    DATA-SEL_OPT-RANGE-R_OPTION           = 'EQ'
    DATA-SEL_OPT-RANGE-R_VALUE_LOW  = 'PROD_1'
    Thanks
    Shankar

    Hi Shankar,
    I am using the same CRMXIF_CONDITION_SEL_DELETE function module to delete condition record present in CRM.
    But it is giving me below error in the return table of the FM after i run the program. Can you please correct me if I am doing any thing wrong?
    Error in  lt_return: SMW3     CND_MAST_SEL_DEL_EXT_VALIDATE     CND_M_SD
    code:
    ls_range-fieldname = 'PRODUCT_ID''.
    ls_range-R_SIGN = 'I'.
    ls_range-R_OPTION = 'EQ'.
    ls_range-R_VALUE_LOW = '123456'.
    APPEND ls_range TO lt_range.
    MOVE lt_range TO ls_entry-SEL_OPT-range.
    ls_data-SEL_OPT-object_task = 'D'.
    ls_data-SEL_OPT-ct_application = 'CRM'.
    ls_data-object_representation = 'E'.
    CALL FUNCTION 'CRMXIF_CONDITION_SEL_DELETE'
      EXPORTING
        DATA          = ls_date
    IMPORTING
       RETURN        = lt_return
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      IMPORTING
        return = lt_ret.
    Edited by: Saravanaprasad Nadar on Jul 7, 2010 1:27 AM

  • How to create complaints with reference to ECC Billing document (CRM 7.0)

    Hi experts!
    I use ECC 6.0 and CRM 7.0.
    I have to create CRM complaints (ZCLR - CLRP) with reference to ecc billing documents.
    I read the following topics and help:
    1. How to create complaints with referenceto ECC Billing document
    2. Re: How can we transfer billing documents from SAP ERP to CRM 2007?
    3. http://help.sap.com/saphelp_crm70/helpdata/en/46/029ba32e675c1ae10000000a1553f6/frameset.htm
    Made these settings:
    1. Define the Business object type
    Goto SPRO>CRM>Transaction>Settings for Complaints>Integration>Trnsaction Referencing>Define Object types for Transaction reference
    2. Assign Business Object Types to Transaction Types
    Goto SPRO>CRM>Transaction>Settings for Complaints>Integration>Trnsaction Referencing>Assign Business Object Types to Transaction Types
    3. Implement a BADI - CRM_COPY_BADI_EXTERN.Check Implementation CRM_COPY_BADI_BILLDO for more information on the coding for referencing the ECC Billing document.
    Goto SPRO>CRM>Transaction>Settings for Complaints>Integration>Trnsaction Referencing>BAdI: Create Complaint with Reference to External Transaction.
    but still do not know,
    1) if I should pre-replicate billing documents into CRM ?
    2) Or, the system uses the RFC to find these documents in ECC to create reference?
    Please help me.
    Best regards Kostya.
    Edited by: Kostya Khveshchenik on Oct 20, 2010 2:09 PM

    not resolved =(
    Edited by: Kostya Khveshchenik on Nov 19, 2010 8:50 AM

  • How to delete the sales org information from BP Master Data in SAP CRM 5.0

    Hi Guruu2019s
    How to delete the sales org information from BP Master Data in SAP CRM 5.0
    Thanks...
    Mahesh Pasupunuri

    Hello
    There is a report attached to [SAP Note 725857|https://service.sap.com/sap/support/notes/725857] that performs the deletion.
    Regards
    Joaquin

  • How to delete the duplicate email address in BP master data

    Hi,
    When  you get an email ids from the third party vendor and you are loading into CRM BP master data.  how to delete the duplicate email address already exits in the system.  In CRM you can create the same BP with different id.   I would like to know how to delete the email address during importing email addresses from the third party tool.
    During the campaign you are sending email to all your customers, when the customer want to unsubscibe the email address from your list, how to unsubcribe the email address and how to updat the BP master data. 
    If you are sending the email to customer, you are using html or simple text, if the customer wants only html or simple text, how you to specify in the system?
    thanks,
    arul

    Hello Arul,
    welcome to the SDN CRM Development forum.
    1. I think you should clear the data with duplicate E-Mail adresses in the external tool.
    2. Unsubscription could be done by a Marketing Attribute which could be set by using a Target Group which is created by Campaign Automation. Have a look at this Toppic. There is also a Best Practice avaliable at http://help.sap.com/bp_crmv340/CRM_DE/index.htm.
    3. Also HTML or Simple text can be mained in a Marketing Attribute. You have to use different Mail Forms to which are sent to different Target groups.
    Regards
    Gregor

  • Hi. Does anyone know how to delete my guest network from the list of network choices that everyone in the neighborhood sees when picking a network?  Followed helpful suggestions on this site to delete the netwk but it still appears.  Appreciate any help!

    Hi.  I'm trying to make my guest network disappear from the list of network choices that appears to everyone in the neighborhood.  Even though I followed the great suggestions on how to delete the network, it's still appearing in the list that everyone sees.  It has my name and would prefer to get rid of it.
    Please help!  Many thanks!

    Thank you for not only the tip but also especially the research showing that for anybody other that those using Wi-Fi for the first time the network wouldn't disappear.  I wanted it to disappear for everyone so.....I finally solved it by resetting the Airport Extreme to the factory settings and starting over from scratch!  It worked! Yay!!!!!
    So, for everyone that has had this problem (and I've read many of the same complaints in different places on the Internet), you must go into Airport Utility and check the box stating that you want to reset it to the factory settings.  Do not do it with a paper clip and the reset button on the box; I tried that first and it did not work.  You must reset it via the Airport Utility.  Then just start over and you will have the choice to NOT check the box to Enable Guests.  If you want to enable guests, just be sure not to use your name or you're back to the same problem. Apple is so great with everything...wouldn't it have been so easy for them to just put this in the manual somewhere?????  Thanks for all your help.    Hope this helps others!

  • How to delete sales area of an Account in Web UI?

    Hi All,
    I want to delete a sales area associated with an account, (i.e Not entire sales area from Organization structure) just delete the link with account.
    I don't have an option to delete sales area associated with account in CRM Web UI. So we refer some SAP recommendations for deleting sales area and then I got these notes SAP Note 1906379 and 725857.
    From the above mentioned notes I can only perform deleting sales area dependent data, but not the entire sales area link as such from business partner.
    We do not have an ECC system,please suggest me some possible solutions for this issue.
    Thanks!!!!
    Regards
    Mukesh.L

    Hi Aaron Smith,
    It will be great, if you guide us in how to delete the sales area of a business partner from Web UI.
    I had tried SAP Note 1906379 and 725857 but i still can't delete sales area as such from business partner.
    Your response is much appreciated!!!!

  • How to delete the problem-solution in Solution Database

    Dear Sir,
    I need to delete  the problem-solution in Solution Database which is already created in CRM ( IS01). However, I don't know how to delete.
    Please advise.
    Thank you and best regards,

    Dear Sir,
    I need to delete  the problem-solution in Solution Database which is already created in CRM ( IS01). However, I don't know how to delete.
    Please advise.
    Thank you and best regards,

  • How to Delete Messages in Spotlight Search History without Resetting or Syncing!!

    I know there are a lot of individuals dealing with this issue and if you are like me you spend hours searching "how to delete messages in spotlight search history" and it seems like every post either says to reset your phone or sync it! I'm sorry but I did not want to go through the hassle of resetting my phone but I did try to sync it which did nothing so I decided to just mess around with my settings and I believe to have found the answer to everyone's question!!
    This worked for me so I really hope this works for you! Just follow the steps below:
    1. Go to <settings><general><spotlight search><uncheck messages>
    2. Then turn your phone off and wait a minute! Turn your phone back on and off again 2 or 3 more times while waiting a minute in between turning it off!
    3. After you are done doing that go back to step 1 and <check messages>!
    4. Now go to your spotlight search and those messages should be deleted! If they are deleted I would recommend going back to step 1 and <uncheck messages> so you do not have the same problem with messages showing up again in the spotlight search!
    It works for Mail too! Just follow the same steps listed above but uncheck mail instead of messages or do both at the same time!!
    *Here is an extra tip which will remove deleted Mail Messages, just follow the steps below:
    1. Go to <settings><mail, contacts, calendars><your mail account> scroll down and click <advanced> Now click <remove> under the title Deleted Messages and you can choose to have your mail removed After One Day, After One Week, After One Month or Never.
    I hope this post was detailed enough and easy to understand!
    I really hope it works for you like it did for me!
    Good Luck!!!

    I tried this fix and it does not work.
    I have read that this is a problem for a long time - years. Me, personally, I do have emails and texts from the past that are private and were deleted, that I do not want my husband or daughter to read. Many people have this complaint and have had it a long time. Why does Apple not fix it?!?
    Another privacy issue is the iMessage default settings on new devices. We bought a new iPhone for my college-age daughter and received all of her text messages until we noticed it and told her. We did a temporary fix. Then I got a new iPhone and the same thing happened. I had to set up iCloud accts. for each of us so that we each have privacy that cannot be tampered with. We still share our original iTunes account. Why did that have to happen?!? 
    We have been Apple consumers (laptops, iPads, iPods, iPhones) for over ten years (? longer w/just desk top) w/ the same account. These breaches in privacy are upsetting!!  My point here is that these breaches are unacceptable!  The spotlight search issue appears to be unresolved.  FIX THIS APPLE! 

  • How to delete Territory Node.

    Hi Experts,
    Once a territory is created i.e. all the nodes, how can I delete any one node of it? I didn't find any delete button in CRM 5.0.
    Looking for your reply.
    Thanks and Regards
    Rahul

    You need to first delete the Position (employee) assignment from the territory. then save and then you can delete the territory node.
    Thanks
    Avi

  • How to delete layout

    HI ,
    Can anybody tell me how to delete created by users in CRM .
    Actually there are some layouts created in out CRM system in CICO tcode which needs to be deleted .
    But we are unable to find the delete layout opton in CICO tcode
    Thanks in Advance .
    Dhaval Raje.

    Hi
    Dont know much abt CRM & CICO,,
    Try this option...
    GO to SE80 for ur transaction..
    It will display all the screens for CICO..
    Expand on Screen, it displays all screens..
    Select ur User Screen..Right Click and choose delete...
    Hope it will give some idea..
    Thanks
    Praveen

  • How to delete 'crm_order_maintain' FM raised messages in WebUI

    Hi Experts,
       I want to delete messages based on conditions in 'do_prepare_output' method. How to delete 'crm_order_maintain' FM raised messages in WebUI
    Thanks & Regards,
    Nitish

    Hi Dharmakasi,
       Thanks a lot for your reply. I have implemented logic in Badi also. After deleting message in badi even thou  again i am getting error message, transaction in display mode. That's the reason i am deleting error message in bap component. Please find the below badi logic.
    Thanks & Regards,
    Nitish
    * Get Log Handle(s)
         CALL FUNCTION 'CRM_MESSAGES_GET_LOG_HANDLES'
           IMPORTING
             et_log_handle = lt_log_handle.
         LOOP AT lt_log_handle INTO ls_log_handle.
           CALL FUNCTION 'CRM_MESSAGES_SEARCH'
             EXPORTING
               iv_log_handle  = ls_log_handle
             IMPORTING
               et_msg_handle  = lt_msg_handle
             EXCEPTIONS
               appl_log_error = 1
               error_occurred = 2
               OTHERS         = 3.
           IF sy-subrc EQ 0.
             LOOP AT lt_msg_handle INTO ls_msg_handle.
               CLEAR: ls_message.
               CLEAR: ls_msg_info.
               CLEAR: ls_msg.
               CLEAR: lv_ref_object_text.
               CALL FUNCTION 'CRM_MESSAGES_GET_MSG_INFO'
                 EXPORTING
                   is_msg_handle           = ls_msg_handle
    *             IV_GET_CALLER_NAME      =  TRUE
                 IMPORTING
                   es_info                 = ls_msg_info
                   es_msg                  = ls_msg
                   ev_ref_object           = lv_ref_object_text
                 EXCEPTIONS
                   not_found               = 1
                   wrong_context_structure = 2
                   data_error              = 3
                   OTHERS                  = 4.
               IF sy-subrc EQ 0.
                 MOVE-CORRESPONDING ls_msg_info TO ls_message.
                 MOVE-CORRESPONDING ls_msg      TO ls_message.
                 INSERT ls_message INTO TABLE et_message.
               ENDIF.
             ENDLOOP.
           ENDIF.
         ENDLOOP.
         CLEAR: ls_message.
         LOOP AT et_message INTO ls_message WHERE object_name = 'SERVICE_OS'
                                              AND ref_kind    = 'B'
                                              AND msgty       = 'E'
                                              AND msgid       = 'CRM_SERVICE_OS'
                                              AND msgno       = '121'.
           MOVE: ls_message-log_handle TO es_msg_handle-log_handle,
                 ls_message-msgnumber  TO es_msg_handle-msgnumber,
                 ls_message-ref_object TO lv_guid_ref.
           APPEND es_msg_handle TO et_msg_handle.
         ENDLOOP.
    * Reading Item details
         IF lv_guid_ref IS NOT INITIAL.
           CALL FUNCTION 'CRM_ORDERADM_I_READ_OW'
             EXPORTING
               iv_guid        = lv_guid_ref
             IMPORTING
               ev_header_guid = lv_header_guid
             EXCEPTIONS
               item_not_found = 1
               OTHERS         = 2.
           IF sy-subrc EQ 0.
             CALL FUNCTION 'CRM_ORDERADM_I_READ_OB'
               EXPORTING
                 iv_header           = lv_header_guid
               IMPORTING
                 et_orderadm_i_wrk   = lt_orderadm_i
               EXCEPTIONS
                 item_does_not_exist = 1
                 error_occurred      = 2
                 OTHERS              = 3.
             IF sy-subrc EQ 0.
               CLEAR: ls_orderadm_i.
               LOOP AT lt_orderadm_i INTO ls_orderadm_i.
                 REFRESH: lt_osset_n,
                         lt_refobj_n.
                 CLEAR: ls_osset_n,
                        ls_refobj_n,
                        ls_service_os.
                 CALL FUNCTION 'CRM_SERVICE_OS_READ_OB'
                   EXPORTING
                     iv_ref_guid          = ls_orderadm_i-guid
                     iv_ref_kind          = 'B'
                   IMPORTING
                     es_srv_osset_wrk     = ls_service_os
                   EXCEPTIONS
                     entry_does_not_exist = 1
                     error_occured        = 2
                     parameter_error      = 3
                     OTHERS               = 4.
                 IF sy-subrc EQ 0.
                   MOVE: ls_service_os-osset[] TO lt_osset_n[],
                         ls_service_os-ref_guid TO ls_serial-ref_guid.
                   READ TABLE lt_osset_n INTO ls_osset_n INDEX 1.
                   IF sy-subrc = 0.
                     lt_refobj_n[] = ls_osset_n-refobject[].
                     READ TABLE lt_refobj_n INTO ls_refobj_n INDEX 1.
                     IF sy-subrc = 0.
                       MOVE ls_refobj_n-serial_number TO ls_serial-serial_no.
                       MOVE ls_refobj_n-serial_number TO lv_sernum_n.
                       APPEND ls_serial TO lt_serial.
                     ELSE.
                       READ TABLE lt_refobj INTO ls_refobj INDEX 1.
                       IF sy-subrc = 0.
                         MOVE ls_refobj-serial_number TO ls_serial-serial_no.
                         MOVE ls_refobj-serial_number TO lv_sernum_n.
                         APPEND ls_serial TO lt_serial.
                       ENDIF.
                     ENDIF.
                   ENDIF.
                 ENDIF.
               ENDLOOP.
               SORT lt_serial BY serial_no.
               IF lt_serial[] IS NOT INITIAL.
                 LOOP AT lt_serial INTO ls_serial WHERE serial_no EQ lv_sernum_n.
                   CALL FUNCTION 'CRM_STATUS_READ_OW'
                     EXPORTING
                       iv_guid       = ls_serial-ref_guid
                     IMPORTING
                       et_status_wrk = lt_status
                     EXCEPTIONS
                       not_found     = 1
                       OTHERS        = 2.
                   IF sy-subrc EQ 0.
                     READ TABLE lt_status INTO ls_status WITH KEY object_type = 'BUS2000160' " Complaint Item
                                                                  kind = 'B'
                                                                  user_stat_proc = 'CRMCOM_I'.
                     IF sy-subrc EQ 0.
                       IF ls_status-status EQ 'E0004'.
                         lv_comp = lv_comp + 1.
                       ELSE.
                         lv_ncomp = lv_ncomp + 1.
                       ENDIF.
                     ENDIF.
                   ENDIF.
                 ENDLOOP.
                 IF lv_comp GE 1
                AND lv_ncomp LE 1.
                   IF et_msg_handle[] IS NOT INITIAL.
                     LOOP AT et_msg_handle INTO es_msg_handle.
                       CALL FUNCTION 'BAL_LOG_MSG_DELETE'
                         EXPORTING
                           i_s_msg_handle = es_msg_handle
                         EXCEPTIONS
                           msg_not_found  = 1
                           log_not_found  = 2
                           OTHERS         = 3.
                       IF sy-subrc EQ 0.
    * Implement suitable error handling here
                       ENDIF.
                     ENDLOOP.
                   ENDIF.
                 ENDIF.
                 CLEAR: lv_comp, lv_ncomp.
               ENDIF.
             ENDIF.
           ENDIF.
         ENDIF.

  • HT201210 how to delete backup

    how to delete backup when iTune complaint that my iphone backup is corrupted?

    iTunes>Preferences(under the Edit menu in Windows)>Devices...highlight and delete your backup/backups here.

  • How to delete file from client machine

    Hi all,
    we are using the DataBase: oracle:10g,
    and forms/reports 10g(developer suite 10g-10.1.2.2).
    can anybody help me how to delete the file from client machine in specified location using webutil or any
    (i tried with webutil_host & client_host but it is working for application server only)
    thank you.

    hi
    check this not tested.
    PROCEDURE OPEN_FILE (V_ID_DOC IN VARCHAR2)
    IS
    -- Open a stored document --
    LC$Cmd Varchar2(1280) ;
    LC$Nom Varchar2(1000) ;
    LC$Fic Varchar2(1280);
    LC$Path Varchar2(1280);
    LC$Sep Varchar2(1) ;
    LN$But Pls_Integer ;
    LB$Ok Boolean ;
    -- Current Process ID --
    ret WEBUTIL_HOST.PROCESS_ID ;
    V_FICHERO VARCHAR2(500);
    COMILLA VARCHAR2(4) := '''';
    BOTON NUMBER;
    MODO VARCHAR2(50);
    URL VARCHAR2(500);
    Begin
    V_FICHERO := V_ID_DOC;
    LC$Sep := '\';--WEBUTIL_FILE.Get_File_Separator ; -- 10g
    LC$Nom := V_FICHERO;--Substr( V_FICHERO, instr( V_FICHERO, LC$Sep, -1 ) + 1, 100 ) ;
    --LC$Path := CLIENT_WIN_API_ENVIRONMENT.Get_Temp_Directory ;
    LC$Path := 'C:';
    LC$Fic := LC$Path || LC$Sep || LC$Nom ;
    If Not webutil_file_transfer.DB_To_Client
    LC$Fic,
    'TABLE_NAME',
    'ITEM_NAME',
    'WHERE'
    ) Then
    Raise Form_trigger_Failure ;
    End if ;
    LC$Cmd := 'cmd /c start "" /MAX /WAIT "' || LC$Fic || '"' ;
    Ret := WEBUTIL_HOST.blocking( LC$Cmd ) ;
    LN$But := WEBUTIL_HOST.Get_return_Code( Ret ) ;
    If LN$But 0 Then
    Set_Alert_Property( 'ALER_STOP_1', TITLE, 'Host() command' ) ;
    Set_Alert_Property( 'ALER_STOP_1', ALERT_MESSAGE_TEXT, 'Host() command error : ' || To_Char( LN$But ) ) ;
    LN$But := Show_Alert( 'ALER_STOP_1' ) ;
    LB$Ok := WEBUTIL_FILE.DELETE_FILE( LC$Fic ) ;
    Raise Form_Trigger_Failure ;
    End if ;
    If Not webutil_file_transfer.Client_To_DB
    LC$Fic,
    'TABLE_NAME',
    'ITEM_NAME',
    'WHERE'
    ) Then
    NULL;
    Else
    Commit ;
    End if ;
    LB$Ok := WEBUTIL_FILE.DELETE_FILE( LC$Fic ) ;
    Exception
    When Form_Trigger_Failure Then
    Raise ;
    End ;sarah

  • How to Delete the dimension from the cube ?

    Hi ,
    how to Delete the dimension from the cube ?
    i have added the new dimension by assiging one characteristic to that dimension .
    now i  want to delete it ,
    but system saying that   Dimension ZXXX  contains InfoObjects; deletion not possible .
    how to delete it ? any help .
    Thanks

    Make sure you donot have any data in cube. If you have some data in cube, then you will not be able to see Delete option.
    Right click on the cube-->Delete data.
    Then double click on the cube>Goto Edit mode> select the IO under that Dimension> right click> now you will be able to see the Delete option (provided you have deleted all the date from Cube)
    Then right click on Dimension-->Delete
    Regards,
    Pavan

Maybe you are looking for

  • Bt as a whole are a disgrace to humanity

    every single day i check here to see the latest developments in the ongoing hh5 problem. so many people with the exact same problem that has nothing to do with their personal settings. every day the same response: it's not our fault we fixed everythi

  • NEED HELP FAST!! Importing stills into FCP 6

    Hello everyone, I have tried searching for a bit, but time is of the absolute essence. I am down to the wire on a project, and need to do some finishing things. What I need to do is to import still images (from DSLR) into an HD timeline. I am working

  • TV Episodes playing in 4:3

    Hi Everyone! First off, apologies if someone has asked this before! I'm a new mac user, and bought myself a Mac Mini yesterday. I hooked it up to my TV, when I play Itunes downloaded movies, they play in the regular widescreen format, but all the tv

  • Webdynpro for ABAP, Enhancement and change of standard "visible" property

    Hi Is it possible to change the standard Webdynpro element (in cProjects application), so that the original control "Input" from visible property "Visible" is changed to mine Context variable? How to change that default "Visible" flag in standard ele

  • ** PC to Mac OS X Developing

    Hi All I am new to Mac OS I used to develop on a PC I had Internet Information Server, SQL Database and Access Database IDE Visual InterDev. Using ASP and VB, Java to code in. Yes it was some time ago. I used Acces for testing and SQL server for pro