How to Clone Service Ticket in BSP

Hi, all my friends:
I want to add one button called 'CLONE' in the view SrvTHead.
when user click on it. copy the current Service Ticket (Case#) to create new Serivce Ticket.
How to copy all BOL objects from original to new Service Ticket.
Thanks,
Zhang

Hi Daniel,
I do not think that oneorder copy is available via BOL. But SAPSDN77 is right about a PPF action: SAP delivers a standard COPY_DOCUMENT action, that you could either customize to appear in your action menu, or even invoke programmatically from a custom button, handled in DO_HANDLE_EVENT method of your view/component controller.
To illustrate the second option, I have pasted necessary logic into a simple SE38 report, attached below (2 parts); you may need to remove COMMIT WORK statement when reusing this sample code, because Interaction Center framework already takes care of commit.
I hope this helps you.
Kind regards
Walter
REPORT zu01_clone_oneorder.
INCLUDE crm_object_kinds_con.
PARAMETERS:
  pa_guid             TYPE        crmt_object_guid DEFAULT 'DF53056D081A97F1A8B2001422B138BE'.
DATA:
  lv_order_guid       TYPE        crmt_object_guid,
  lr_appl_object      TYPE REF TO object,
  lv_application_log  TYPE        balloghndl,
  lr_container        TYPE REF TO cl_swj_ppf_container,
  lr_action           TYPE REF TO cl_action_execute,
  lv_new_header_guid  TYPE        crmt_object_guid,
  lt_objects_to_save  TYPE        crmt_object_guid_tab.
lv_order_guid = pa_guid.
TRY.
  set source order
    CLASS ca_doc_crm_order DEFINITION LOAD.
    lr_appl_object ?= ca_doc_crm_order=>agent->create_persistent(
                        i_crm_obj_guid = lv_order_guid
                        i_crm_obj_kind = gc_object_kind-orderadm_h ).
    IF lr_appl_object IS NOT BOUND.
      WRITE: 'could not find source order'.
    ELSE.
    set target process type: could be obtained from source order
      CREATE OBJECT lr_container.
      lr_container->set_value( element_name = 'PROCESS_TYPE'
                               data         = 'ZKF5'        ).

Similar Messages

  • How to transfer service ticket data from ECC6.0 to CRM 7.0 using LSMW?

    how to transfer service ticket data from ECC6.0 to CRM 7.0 using LSMW?
    Plz suggest me any BAPI or IDOC for that ..
    thanks in Advance .

    You have to convert your long string to a table of shorter strings.
    There may be other ways, but one possibility is to use a loop to process you string.
    while (there is something left)
       put the next e.g. 1024 characters in a new row of your table
    endwhile
    If you need to reconstruct your string from the table, don't use simple concatenation since it will remove blanks at the end of lines. Believe me (from experience) sooner or later this will happen.
    Instead you need to either set the subsections of your long string, or insert from the end of your table and keep shifting the contents (probably less efficient) right

  • How to send Service Ticket from CRM to Solution Manager.

    Hi all,
    at present we are creating service tickets relevant to SAP operations in our CRM instance and we plan to continue to do so.
    We also would like to forward these created service tickets to the Solution Manager Service Desk.
    There is functionality in Solution Manager to bind into an external service desk. However I believe this is only really relevant to binding in another Solution Manager - in any case, there is seemingly very little documentation about this available.
    Has anyone ever done this - sending service tickets from CRM to Solution Manager Service Desk? If so, could someone please let me know where I can find the documentation on that. Any help is much appreciated.
    Cheers,
    Wolfgang

    Hi,
    Use "Rule Modeler" for sending emails and also maintain "IF" condotions there.
    Regards,
    Ankush

  • How to upload Service Ticket in CRM

    Hi Group,
    I have a requirement to upload a bulk file consisting of all Service Ticket information into CRM system.
    The file consists of details as under:
    <b>Category, subcategory , Service Ticket #,  Issue classification , Status,  Creation time and date, last updated info</b> and etc.,
    But, my concern is that, I could not find any <b>BAPI</b> for doing this upload of issues into the system. Nor I am not able to get any function module to get the place holders for all the above details into the System.
    I would appriciate if you provide me with the details of some <b>BAPI/ Function Modul</b>e to achieve this task.
    So please kindly provide your valuable answers on this.
    thanks in advance.
    Regards,
    Vishnu.

    As i suggested you have to use LSMW and use the IDocOption. In this case the IDOC mesage is CRMXIF_ORDER_SAVE_M
    Then as you said you have a leagacy file , which you can specify in the LSMW steps and define the Mapping between the File fields and IDoc Segement fields.
    And once this is done , the LSMW will take care of reading file and mapping and will create the Idoc .  ONce that is done , the ALE Layer will pick this Idoc and carry the Inbound Processing ( calling FM IDOC_INPUT_CRMXIF_ORDER_SAVE_M ).
    Hope this helps

  • How to check Category is filled or not in Service ticket?

    I have requirement to check the category field (CAT_GUID) is filled with value or not.
    I would like to check this category field in the Badi zOrderSave of service ticket.
    How I can accomplish this issue?
    Your reply is appreciated.
    Banu

    Hi Banu,
    I understood that you have to check Category field.
    Please, "se"nd m"e an "e"mail" with a print screen highlighting the information that u need.
    caiqueescaler hotmail com
    Regards,
    Caíque Escaler
    Edited by: Caíque Escaler on Jun 23, 2010 8:34 PM

  • How to get Contract Account Number in Service Ticket

    Hi Experts,
    How to get Contract account number in Service Ticket, we are working in ISU environment. when i create the service ticket the contract account number is there in Business agreement number field in service tiket.
    Can anyone tell me how to retrieve that field.
    Answer will be appreciated.
    Praveen

    check tables tfk_buag_ref and fkkvkp

  • How to determine the support team in service ticket

    Hi all,
    can u guide me how to determine the support team in service ticket,
    when ticket is created from customer system.is there any another way other than organizational structurel settings.
    Thanks and regards,

    Hi Venu,
    You can get it done by development to determnie the support team , other tan org model settings
    1.Develop the z table which will allow to maintain Sold to Party, Component, Support team
    2. Implement the Badi for which will read the sold to party and component from the ticket and look in to ztable and fetch the corresponding support team and audate the support team feald in ticket.For this to take help of ur Abaper
    3. For this to call the BADI have to confgure the actions with method call.
    If u have any query revert
    Regards,
    Basha.

  • How do we Define Multilevel Catagorization for Service Ticket

    Hi Experts,
    Can Any one Help on
    How do we define Multi Level Catagorization For Service Tickets in IC WEB Clients for CRM 5.0.
    Cheers !!
    Dan.

    Hi
    You can user multi level categorzation using the category modler PCUI application.
    you can access transaction code crmc_pcuitools tcode from GUI and type ERMS CAT* and execute then you will get the category modler pcui screen . then you can create the new schema for  your service ticket transaction which can be view in ic webclient 5.0 .
    category modler will provide the option of creating the schema where you define the node and subnodes and you can assign the subject profile under the application level and codes can be assigned to each of the label you define for your dropdown values which will be appeared  in the ic webclient service ticket transaction type.
    categoru modler schema once defined needs to be activated inorder to see the dropdown values in the multilevel categorization fields of ic webclient service ticket view header . you need to give the future date and time  in order to activate the schema .
    after defining the schema and activating you can see the dropdown field labels in the ic webclient what you have defined in the category schema.
    upto 4 levels only categorization can be maintained or allowed in schema.
    please reward points if helpful
    Regards
    Dinaker vikas

  • How to identify the follow up relationship between two service ticket

    Hi Folks,
    How to identify the follow up relationship between two service ticket ?
    Please help me on this...
    Regards,
    Shashi K, Reddy

    Hi Pepe !
    Thank you for the answer, but I dont find this structure ET_DOC_FLOW.....
    Please let me know is that structure is correct ......
    Regards,
    Shashi K, Reddy
    shashikumarreddy at gmail dot com

  • How to Navigate from Confirm Account to Creation of Service Ticket

    Dear Expert,
    My client does not want to create a interaction record after account confirmation. They want to go directly to Service Ticket creation.
    I am using CRM 6.0 SP05.
    Could you guide me through the steps for that?
    Which customizing steps need to be done?
    Thank you very much in advance.
    Best reagrds
    Ahmed Hadi
    Edited by: Ahmed Hadi on Dec 15, 2009 2:43 PM
    Edited by: Ahmed Hadi on Dec 15, 2009 2:44 PM

    Hello Ahmed,
    I discuss the pros and cons of this strategy a bit in my book, "Mazimizing Your SAP CRM Interaction Center", but you can also find the basic info in this blog, "[Everything you need to know about the Interaction Record in the CRM Interaction Center|/people/gert.tackaert/blog/2008/09/04/everything-you-need-to-know-about-the-interaction-record-in-the-crm-interaction-center]".
    There is a BADI (CRM_IC_IARECORD) that can be used to suppress the creation of the Interaction Record. SAP does not recommend to actually supress the creation of the Interaction Record (as it is needed for various out of the box reporting and analytics options, as well as for maintaining object links and other features). Rather, you might want to simply use Intent-Driven Interaction with the Rule Modeler to automatically navigate to the Service Ticket screen after some UI event like BP confirm or IBase confirm (or whatever other even you want). If necessary you could also remove IR link for the NavBar.
    Best regards,
    John

  • How to fill appointment details during service ticket creation?

    Hi experts,
    I have a requirement wherein I need to populate a specific appointment type details i.e. <b>APPT_TYPE</b>(ex:ZCREATE, TICKET_CREATE..etc) for a service ticket when the <b>service ticket</b> is being <b>created.</b>
    Although it can be done by CRM configuration, I want to do it through ABAP only.
    Service tickets are being created in <b>ICWebClient</b>.
    <b>Reward points assured for helpful answers.</b>
    Regards,
    Amit
    Message was edited by:
            Amit Kumar

    Hi,
    To achieve this, create an action in which you will place your code that is only triggerred once (you will need to decide what is the start condition for this new action)
    It will need to do 2 things to set the information you want:
    <i>1. Use function module CRM_ORDER_MAINTAIN to set the appointment data
    2. Call method REGISTER_FOR_SAVE in class CL_ACTION_EXECUTE to ensure the new information is saved onto the service ticket.</i>
    I have done this with other information setting on the service ticket during creation and it works fine.
    Why are you not using config to do this ? Is it a special calculation for the date that is not catered for in configuration ??
    Cheers
    Colin.

  • How to stop the sla time of a service ticket

    Hello Folks,
    Is there a way to stop or pause the sla counting time of a service ticket?
    I have a scenario, where I get a service ticket, and I have to stop the sla counting time, because I need a response from a third person, not involved at that time.
    I´m using webclient, and my guess, is, there something realted to status, sla and actions, but not sure about.
    Could somebody give me some advise or a clue about it?
    Answers will be rewarded.
    thanks in advance,
    Luiz David

    Hi Luiz,
    Status needs to be selected in the conditions. Follow the below steps
    1. Select the actions in conditons
    Goto   Spro -->  IMG --> CRM --> Action --> Actions in transactions --> Change actions and conditions  --> Define conditions
    and click on your action profile and open the action
    2. Go to the start conditions tab and click on the edit conditions
    3. Click on the condition definition space and expand the container in the change condition pop-up box
    4. Double click on the status table and choose the new user status in the constant field
    5. Select the operator as not equal to
    Hope it helps
    Regards,
    Madhu

  • Category field in Service Ticket

    Hi all,
    CRM 5.0 ICWC
    How/where can we see the categroy field in the ICWC service ticket.
    Scenario : e mail service ticket will have category E-mail and Telephonic call service ticket will have TEL as the categroy .
    CRM Online has the Category filed in the Service ticket transaction type Header.
    Please help!
    Full marks for good answer!
    Regards
    Raj

    Hi Micha ,
    I was able to add category to my Z_CRM_IC BSP application,now i have the runtime repository also defined for this .
    I am currently trying out this
    SrvTHead.htm
    -->BTActivity  ->BTHeader.htm
    <crmic:dropdownListBox
    id                = "category"
    width             = "100%"
    table             = "<%= BTCATEGORY %>"
    nameOfKeyColumn   = "CATEGORY"
    nameOfValueColumn = "TXT30"
    selection         = "//BTActivity/Category"
    disabled          = "<%= BTActivity->GET_I_CATEGORY( ) %>" />
    it throws process errors:
    Method "GET_I_CATEGORY" is unknown or PROTECTED or PRIVATE.
    any suggestions.
    Regards
    Raj

  • Service Ticket view cannot be displayed

    Hi Experts,
    In the Web IC, when I try to click on the "Service Ticket" button from the navigation bar, I see the following error:
    Cannot display view ICCMP_BTSHEAD/BTSHeader of UI Component ICCMP_BTSHEAD
    An exception has occurred Exception Class  CX_BSP_INV_ATTR_NAME - BSP exception: An attribute with the name "BTCCODELOGSYS" is not defined 
    Method:  CL_BSP_PAGE_BASE=>IF_BSP_PAGE~SET_ATTRIBUTE 
    Source Text Row:  16
    Actually half of the screen is displayed and the top half is not displayed, but blank.
    Can anyone please tell me where I can add the attribute 'BTCCODELOGSYS".
    Thanks,
    John

    Hi,
    Open the SharePoint Central Administration,
    go to Application Management --> Manage Web Applications
    Click to select the web application that hosts your list (eg. SharePoint - 8080)
    At the Ribbon, select the General Settings and select Resource Throttling
    Then, you can see the 5000 List View Threshold limit and you can edit the value you want.
    Click OK to save it.
    Check this blog for more information:
    http://blogs.msdn.com/b/dinaayoub/archive/2010/04/22/sharepoint-2010-how-to-change-the-list-view-threshold.aspx
    Hope it could help
    Cheers, Hemendra-MCTS "Yesterday is just a memory,Tomorrow we may never see"

  • Date rules not copied into service ticket

    We are implementing a SAP CRM 2007 Service scenario with the IC Webclient.
    When creating a service ticket, a product is assigned and a service contract is automatically determined. This service contract contains a Service Profile and an Reaction Scheme.  All date types are copied into my service ticket but I am missing my durations for the items it seems like they are not assigned to the bussiness transaction. This is not what I am expecting because the item, contract, response profile and Service profile are determined.
    when creating the same type of service transaction in CRMD_ORDER and assigning the product the contract is determined and all durations are determined and assigned, based on the contract.
    Has anyone encountered this problem or a clue how to solve this
    regards,
    Remko

    Hello Buijink
    By default the service ticket only shows the dates and not the durations of your date profile.
    You will have to use the UI config tool to add Durations to service ticket.
    Here's how:
    1. Tcode BSP_WD_CMPWB - BSP WD Component Workbench
    2. Component ICCMP_BTDATE > Display
    3. Views > ICCMP_BTDATE/Dates > Configuration
    4. Click on "Show Available Fields" you will see "Blocks" folder, expand that and you will see BTDatesDurations.
    5. Copy configuration to your role config key and add BTDatesDurations.
    Once you add BTDatesDurations you will be able to see durations on service ticket.
    Regards
    Rupesh Patil

Maybe you are looking for

  • How to use external timebase for Two Edge Separation measurement with PCIe 6351

    Hi I am working with PCIe 6351 x series DAQ card. counter measurements. Here i need to measure the time/no edges between two edges. Falling to Raising of two signals. I got the measurement with internal time base. here i need to synchronize the measu

  • Exception while reconciliation with child table attributes

    I developed scheduler task that take information about users and create reconciliation event with multi valued field "Roles" that consist of "Role" field and "App" fields. Primary reconciliation work fine and resource added to user, but when i update

  • HELP!!! manually managaing music/video for IPOD classic PROBLEM

    i set my ipod to manually manage music/video because i want to save space on my computer, etc. so i made that my setting and i applied it and everything. so i unchecked everything in my library. and when i add a song to my library, i check it, so it

  • Added songs not in library, show up in lib search though. ***?

    Using iTunes 11.0.1.12 on Win 7 Pro. After upgrading to iTunes 11 I started having the following issue: when I add songs to library, whether through drag-n-drop or from top menu, the songs gets copied to library folder but is not visible in library.

  • NSeries Gallery's Album

    Good Day, I have hundreds of pictures in my computer that I want to store on my phone's micro sd. I am using a memory card reader for this. Using the old 6600 phone, if I want a group of photos to be in an album, I'll just create a folder and put all