Service order delete?

Hi all,
I created a Service Order and make status as <b>release</b> at item level so it is available in billing due list.
Now we have such a configuration that once i released the item i can not change status again.
Now i want to delete the order but system is not allowed me to change.
Pls any body tell me how to delete this order?
Regards
jayesh

Hi.
I used the function module CRM_ORDER_DELETE.
CALL FUNCTION 'CRM_ORDER_DELETE'
  EXPORTING
    IT_OBJECTS_TO_DELETE        = IT_OBJECTS_TO_DELETE
    IV_UPDATE_TASK_LOCAL        = 'X'
  IV_NO_CHECK                 = FALSE
  IV_NO_BDOC_SEND             = FALSE
  IV_CHECK_ONLY               = FALSE
  IMPORTING
    ET_DELETED_OBJECTS          = ET_DELETED_OBJECTS
    ET_EXCEPTION                = ET_EXCEPTION
CHANGING
  CV_LOG_HANDLE               =
EXCEPTIONS
   SINGLE_DELETION_ERROR       = 1
   DELETION_ERROR              = 2
   NO_AUTHORITY                = 3
   DOCUMENT_NOT_FOUND          = 4
   OTHERS                      = 5.
But, I can delete the service order.
What did you do ?

Similar Messages

  • Service Order Deletion problem

    We have a service order created three weeks ago and released.  It is now disapeared from the system mysteriously.   We are aware that we have completed the order and released.  The only log that we have is on the external system that retrieve this information.  We have no trace whatsoever on SAP side whether this record is created or deleted.  Even if we deleted, we can only set the flag but NOT physically removed.   If there is an archive job that is looking for the deletion flag to remove from the table, is there a way that we can retrieve or find out how this record is being removed? such as job name or so?
    Thanks,
    Tai

    Thanks all.   I've talked to our BASIS team and we used SM13 to look back and the transaction that was failed last month.  This is the only history that we can track for the problem.  Luckly we found that order sitting to be processed.
    Thanks,
    Tai

  • Restrict Deletion of Components from Service Order

    Hello All,
    I noticed that I am able to delete the components from the Components tab of a Service Order even after I have completely issued the components.
    Is there a possible way to prevent deletion of components that have already been issued..?
    I think I can use the Business Transaction RMKL in the system status GMPS. But I guess this will prevent deletion of those components which have not been issued to the service order.
    What would be the best way to prevent deletion of components that have already been issued...?
    Thanks
    Jensibo

    Hello All,
    I don't know if you all received the last reply I posted against this thread... coz I am not able to find it in the thread. I had asked for your comments on any repercussions that may occur because of this config.
    Anyway, the thing is, I followed Narashiman's suggestion and although I did not use the exact config he pointed me to, I used the config in the following nodes:
    1.) Production --> Shop Floor Control --> System Modifications --> Define System Message Attributes
    2.) Production Planning & Process Industries --> Process Order --> System Modifications --> Define System Message Attributes
    and added an entry: Application Area = CN, Message No. = 750-Component & item & was already withdrawn and Category = E.
    Having done this, the system did display the "Component & item & was already withdrawn" message when I tried to delete a component that was issued to a service order, but it did not delete the component from the service order. I was able to save the service order with the issued component still in the components tab.
    Narashiman,
    to specifically respond to your latest reply, I did find the node you pointed me to. But the trouble was that it did not have an entry for CN750 in it. When I tried to add an entry, the system did not let me do so and displayed the error message "Please specify a legal value".
    So I went around opening each system message control node and finally found the two that I mentioned earlier that did work for me.
    Thanks
    Jensi

  • IMP: How to delete the service order

    Hey Experts,
    Can you tell me how to delete the service order which was created in IW31..? or we have any Functions Module to delete the service order?
    and one more question is I have more than 100 service order in the table ,but it will display only 50 order when i execute this Functions Module BAPI_ALM_ORDERHEAD_GET_LIST
    can you tell me how to solve this problem...?
    Thanking you in advance,
    Regards
    J Sarathi

    This is what the BAPI_ALM_ORDERHEAD_GET_LIST documentation says
    "You can use this method to determine a list of orders according to a list of selection criteria. The number of hits that are produced for the person calling up the list, can be specifically reduced; without further parameter transfers, the first 50 hits are displayed. A complete list of the hits is stored internally. If you call up the selection again within a Logical Unit of Work (LUW) without changing the selection parameters, but with other refurbishment parameters, then you receive further partial quantities of the selection result, as specified by you."
    and for deletion
    check whether you can set any deletion status through the fm BAPI_ALM_ORDER_MAINTAIN
    Also check the business objects BUS2007, BUS2088

  • How can we restrict users from marking service orders as deleted

    Hi,
    Please guide me :
    Is it possible to restrict users (who are having authorization of marking service orders as deleted) from marking some service orders as deleted, if they have not created these service orders?
    In other words, requirement is : only the person creating the Service Order should be authorized to delete.
    Please guide.
    Thanks and Regards

    There are many BADI and EXITS available, you have find the appropriate place to put your code.
    USER - EXITS
    CNEX0013  Order: Cust. enhancement: Default item category comp. assgmt
    CNEX0026  Customer enhancement for general inspection of material
    CNEX0027  Customer enhancement: Plant, storage loc. finding for comp.
    IWO10004  Maintenance order: Customer check for order completion
    IWO10005  Maintenance order: Cust.-specif. determination of profit ctr
    IWO10006  Maint. order: Fcode exclusion through cust. enhancement
    IWO10007  Maint.order: Customer enhancement - permits in the order
    IWO10008  Cust. enhancement: Determination of tax jurisdiction code
    IWO10009  PM Order: Customer Check for 'Save' Event
    IWO10010  Maint. order: Cust. enhancement for determining WBS element
    IWO10011  Maint. order: Customer enhancement for component selection
    IWO10015  Maintenance order: F4 Help for user fields on operation
    IWO10016  PM Order: Cust. enhancement to check operation user fields
    IWO10017  Determine external order number by customer logic
    IWO10018  Maintenance order: User fields on order header
    IWO10020  Maintenance order: Automatically include task list
    IWO10021  Automatic task list transfer when creating order from notif.
    IWO10022  Determine calendar from user exit
    IWO10023  Service order: Change header data for advance shipment doc.
    IWO10024  Service order: Changes to items for advance shipment
    IWO10025  PM/SM order: Finding responsible cost center
    IWO10029  Inclusion of bill of material in PM/SM order
    IWO10030  Preset Fields for Event Object
    IWO10031  Hide personnel number in PM/SM order
    BADI
    Name of a BAdI Definition
    ARC_PM_ORDER_CHECK
    ARC_PM_ORDER_DELETE
    ARC_PM_ORDER_PREPROCESSING
    ARC_PM_ORDER_WRITE
    ARC_PM_QMEL_CHECK
    ARC_PM_QMEL_DELETE
    ARC_PM_QMEL_PREPROCESS
    ARC_PM_QMEL_WRITE
    IWO1_ORDER_BADI
    IWO1_PREQ_BADI
    IWO1_SCREEN_MODIFY
    IWO1_TL_INTEGRATION
    IWO1_TL_INTEGRATION2
    Edited by: Manish  Bisht on Jul 11, 2009 9:27 AM
    Edited by: Manish  Bisht on Jul 11, 2009 9:28 AM

  • Delete the attachments in Service orders

    Hi Guys,
    I am developing a report, which it needs to be delete the attachments from the CRM service order, could you please suggest, is any FM/BAPI for the same.
    Thanks,
    Gourisankar.

    Hi,
    User below code, it will work.
    REPORT zcrm_service_order_delet_attch.
    TABLES
    TABLES:crmd_orderadm_h.
                               TYPES DECLARATION
    TYPES: BEGIN OF t_crmd,
             guid TYPE crmt_object_guid,
             object_id TYPE crmt_object_id_db,
             date TYPE crmt_posting_date,
             object_type TYPE crmt_subobject_category_db,
           END OF t_crmd.
    TYPES: BEGIN OF t_crmd_final,
             object_id TYPE crmt_object_id_db,
             date TYPE crmt_posting_date,
             sucess TYPE i,
             failure TYPE i,
             total TYPE i,
           END OF t_crmd_final.
                           Internal Tables                               *
    DATA: i_crmd TYPE STANDARD TABLE OF t_crmd,
                    w_crmd TYPE t_crmd,
          i_object_no TYPE STANDARD TABLE OF crmt_icss_object_guid,
                   w_object_no TYPE crmt_icss_object_guid,
          i_attch TYPE STANDARD TABLE OF crmt_icss_att_info,
                    w_attch TYPE crmt_icss_att_info,
          i_crmd_final TYPE STANDARD TABLE OF t_crmd_final,
                    w_crmd_final TYPE t_crmd_final,
          ls_crmt_object_guid TYPE crmt_object_guid_tab,
          i_return_objects  TYPE crmt_return_objects.
    DATA: lt_ios         TYPE skwf_ios.
    DATA: ls_io          TYPE skwf_io.
    DATA: l_docbusobj    TYPE sibflporb.
    DATA: l_sucess       TYPE i.
    DATA: l_failure      TYPE i.
    DATA: l_tot_final    TYPE i.
    DATA: l_lines        TYPE i.
                           CONSTANTS                                     *
    CONSTANTS:
    c_typeid(10)     TYPE c VALUE 'BUS2000116',
    c_catid(2)       TYPE c VALUE 'BO',
    c_object_type(1) TYPE c VALUE 'P'.
    Selection-Screen
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-s01.
    SELECT-OPTIONS: so_date FOR crmd_orderadm_h-posting_date OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
    Start-of-selection
    START-OF-SELECTION.
      PERFORM getdata.
      PERFORM delete_attach_save_order.
      PERFORM display_output.
    write: u_line(100)
    skip.
      WRITE: /05 'Total number of attachments deleted',
              75  l_tot_final.
    *&      Form  getdata
    FORM getdata .
      SELECT guid
             object_id
             posting_date
             object_type INTO TABLE i_crmd
                                 FROM crmd_orderadm_h
                                 WHERE posting_date IN so_date.
    ENDFORM.                    " getdata
    *&      Form  delete_attach_save_order
    FORM delete_attach_save_order .
    *Fetching the attachments for GUID.
      LOOP AT i_crmd INTO w_crmd.
        CLEAR: i_attch, i_object_no.
        MOVE: w_crmd-guid TO w_object_no-object_guid.
        APPEND w_object_no TO i_object_no.
        CALL FUNCTION 'CRM_ICSS_GET_ATTACHMENTS'
          TABLES
            it_object_guid     = i_object_no
            et_attachment_list = i_attch.
    *Deleting the attachment for GUID.
        DESCRIBE TABLE i_attch LINES l_lines.
        LOOP AT i_attch INTO w_attch.
          l_docbusobj-instid = w_crmd-guid.
          l_docbusobj-typeid = c_typeid.              "'BUS2000116'.
          l_docbusobj-catid  = c_catid.                "'BO'.
          ls_io-objtype = c_object_type.              "'P'.
          ls_io-class   = w_attch-att_class.          "'CRM_P_ORD'.
          ls_io-objid   = w_attch-objkey.
          APPEND ls_io TO lt_ios.
          CALL METHOD cl_crm_documents=>delete
            EXPORTING
              business_object = l_docbusobj
              ios             = lt_ios.
          IF sy-subrc = 0.
            l_sucess = l_sucess + 1.
          ENDIF.
    *Saved the service order after deleting the attachment.
          APPEND w_crmd-guid TO ls_crmt_object_guid.
          CALL FUNCTION 'CRM_ORDER_SAVE'
            EXPORTING
              it_objects_to_save   = ls_crmt_object_guid
              iv_update_task_local = 'X'
            IMPORTING
              et_saved_objects     = i_return_objects
            EXCEPTIONS
              document_not_saved   = 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.
        ENDLOOP.
    *Moving the data to inter table to display the output.
        IF l_lines EQ l_sucess.
          MOVE: w_crmd-object_id TO w_crmd_final-object_id.
          MOVE: w_crmd-date TO w_crmd_final-date.
          MOVE: l_sucess    TO w_crmd_final-sucess.
          MOVE: l_failure   TO w_crmd_final-failure.
          MOVE: l_sucess    TO w_crmd_final-total.
          APPEND w_crmd_final TO i_crmd_final.
    *Clearing the internal tables and variables.
          CLEAR: i_attch,
                 w_crmd,
                 l_sucess,
                 l_failure,
                 ls_crmt_object_guid,
                 l_docbusobj,
                 lt_ios,
                 i_object_no,
                 l_lines.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " delete_attach_save_order
    *&      Form  Display_output
    FORM display_output .
      IF NOT i_crmd_final IS INITIAL.
        WRITE: /5 'Order Number',
               20 'Creation date',
               35 'success Records',
               55 'Fail Records',
               75 'Total Records'.
      ENDIF.
      LOOP AT i_crmd_final INTO w_crmd_final.
        WRITE: /5  w_crmd_final-object_id,
               20 w_crmd_final-date,
               35 w_crmd_final-sucess,
               55 w_crmd_final-failure,
               75 w_crmd_final-total.
        l_tot_final = l_tot_final + w_crmd_final-total.
      ENDLOOP.
      CLEAR : w_crmd_final.
    ENDFORM.                    " Display_output

  • Set deletion flag for service orders

    Hi
    How do I mass update service orders and notifications to set the deletion flag.
    I tried with IW72 but no luck Please help.
    Thanks
    Kumar

    Hi,
    You can use batch recording to assign DLFL status to work orders,
    This is the program code
                          0000     T     IW32                                                                               
    SAPLCOIH              0101     X                                                                               
    0000           BDC_CURSOR                                                                                CAUFVD-AUFNR
                          0000           BDC_OKCODE                                                                                /00
                          0000           CAUFVD-AUFNR                                                                                4000488
    SAPLCOIH              3000     X                                                                               
    0000           BDC_OKCODE                                                                                =LVMS
                          0000           BDC_CURSOR                                                                                CAUFVD-AUART
    SAPLCOIH              3000     X                                                                               
    0000           BDC_OKCODE                                                                                =BU

  • Job nfs-server.service/start deleted to break ordering cycle [SOLVED]

    I have the following entries in my journal:
    Found ordering cycle on rpc-statd-notify.service/start
    Found dependency on nfs-server.service/start
    Found dependency on rpc-gssd.service/start
    Found dependency on nfs-client.target/start
    Found dependency on rpc-statd-notify.service/start
    Breaking ordering cycle by deleting job nfs-server.service/start
    Job nfs-server.service/start deleted to break ordering cycle starting with rpc-statd-notify.service/start
    and nfs-server does not start. So it would seem that the nfs services are starting in the wrong order. Could some kind person explain why and tell me how to fix this?
    Apart from following the arch wiki for nfs I don't believe that I have changed anything.
    Thanks
    Andrew
    Last edited by fdservices (2014-08-11 07:14:05)

    Thanks for the quick reply.
    So I just need to install this new file:
    # /etc/systemd/system/nfs-client.target.d/DefaultDependenciesFalse.conf
    [Unit]
    DefaultDependencies=False
    Andrew

  • Authorization of marking service orders as deleted

    Hi,
    Please guide me :
    Is it possible to restrict users (who are having authorization of marking service orders as deleted) from marking some service orders as deleted, if they have not created these service orders?
    In other words, requirement is : only the person creating the Service Order should be authorized to delete.
    Please guide.
    Thanks and Regards

    What do you mean for Service Order ?  If it is part of marketing documents, then you may use Document Owner Authorizations.
    I am afraid you posted your question to the wrong forum.  Here is SAP Business One System Administration forum.  Dedicate to SAP Business One System Administration.  Please close the thread and post on the proper one.
    Thanks,
    Gordon

  • IW32: Assignments deleted from service order after editing operation number

    Dear SAP gurus,
    I have a problem with a service order containing muiltiple operations.
    When I change the order in IW32 and I edit the operation number of only one operation, the assignments of ALL the operations and suboperations are deleted.
    Can anyone tell me if it's normal behaviour to delete assignments from operations when they are edited? Or is there a way to avoid this (apart from not editing the operation positions)?
    Thanks in advance and kind regards,
    Jermey!

    The assignments are deleted whenever one of the operations is edited. This can be:
    - changing the operation position to reorder the operations;
    - deleting one of the operations;
    - making changes in the component list of one of the operations.
    The result is always the same: all the assignments of all the operations are deleted.
    The problem seems to be a lot bigger than it appeared at first. We asked SAP for support and they are trying to solve the problem right now. It seemes that the MRS add-on causes the assignments to disappear.
    Update:
    SAP created a note to resolve this problem. It's note number 1255589.
    Anyway, thanks for your responses.
    Kind regards,
    Jermey
    Edited by: Jermey Krul on Sep 30, 2008 11:34 AM

  • How to prevent the replication of service order from CRM to R/3

    Hi,
    I create a service order and it displays in SMW01. Does it mean that system tries to replicate it from CRM to R/3?  I have deleted the subscription in SMOEAC while publication of BUS_TRANS_MSG can't be deleted. Is there any other configuration affecting the replication from CRM to R/3?
    BR,
    ROBERT

    Hi Robert,
    The replication to R/3 will not happen if you dont have a R/3 site maintained in smoeac. This itself should be enough as it wont know which R/3 should the data be transferred to. Hence the data will not get replicated to R/3.
    The bdoc that you see in SMW01 does not mean that data will get replicated. it just indicates what has been created in CRM.
    Thanks,
    Abishek

  • Purchase price for components in service orders

    Dear Fellow SAPPERS,
    I did not find any separate forums for service management nor did I find anything for plant maintenance. As a result I have to post it in this forum since SM/CS uses lot of settings from SD. If you do not find this relevant, please point to appropriate forum for my post.
    Now the problem,
    When users are entering components which are externally procured in the service order compoenent tab, the price is picking up automatically from the purchase inforecord. For some materials which are stocked and real materials we want it this way. But the client is also using generic materials like nuts, bolts, impellers etc where the purchase price is specific to the service order.
    When the users are putting in a real price, the price from the purchase inforecord is overwriting the price the user entered. Then they need to reenter the price which if they forget, the purchase requisition gets a wrong price. We want to stop this overwriting of price from inforecord for certain materials.
    How is this possible? We are exploring the function module CO_ZF_MAT_INFORECORD_READ where the price gets fixed from inforecord. Is modifying the funtion module the only way?
    Thanks in advance for any help.
    Andy.

    Hello,
    Its not that easy unfortunately. The users started complaining about this behavior many months after go live. Before that the indicator Info record update was already checked in the PO. Since these materials are generic with few materials, most of the info records are already created. Now when I delete the inforecords, I get an error message inside the service order that the inforecords are deleted. So I cannot go and delete the inforecords.
    This needs to be done by a program. Anybody has experience modifying the function module CO_ZF_MAT_INFORECORD_READ by implicit enhancement?? Also any links explaining all the features / functionality of implicit enhancement.

  • Any way to add 'Actions' tab on Service order Item level in ICWeb?

    Hello,
    We are implementing Service orders under CRM2007 Interaction Center.
    When we access the Service Orders through backend (t-code CRMD_ORDER), we see an 'Actions' tab on the Item Level which captures all the actions executed at Item Level. This tab is not available from the UI.
    Is there any way to add it to the UI? Note that it is available from both backend and UI at Header level but only from backend at the Item level.
    Thanks,

    Hi Deepali,
    I checked the TCODE CRMD_ORDER, there are buttons like AVAILABILITY CHECK on the item level.
    When you say it is an Item view on the Web UI, I believe it is a Table View.
    In Table Views you will have ON CLICK ACTION buttons next to the Row Selectors.
    For most of the views it will be available by default.Identify the Web UI component and open it through BSP_WD_CMPWB.Select the view and open the context node class and check if there is a method
    GET_OCA_T_TABLE.
    This method will have the code like this, for the buttons
      ls_one_click_action-id      = 'DELETE'.
      ls_one_click_action-icon    = 'delete.gif'.
      ls_one_click_action-text    = ''.
      ls_one_click_action-tooltip = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_IC_APPL/DELETE' ).
      ls_one_click_action-active  = 'X'.
      APPEND ls_one_click_action TO rt_actions.
    If your component also has these things, then you can simply add the ACTIONS column using Configuration Tool else you need to add this column by coding, redefine the method GET_OCA_T_TABLE and add the buttons.
    You need to explicitly create event handlers for the button click actions.
    Mostly,it should be available to you by default as it is available in SAP GUI.
    Regards,
    Masood Imrani S.

  • Contract determination in service order for PPR items

    Hi Experts,
    Contract data is not being determined for some items in service order. All these items are assigned to product list in service contract using product range or PPR.
    1) PPR is created with the type "sales contract"
    2) In the categories section assigned the relevant category ID's
    3) PPR is assigned to the service contract under product list.
    4) Service order is maintained for contract determination 'D'  - determination both at header and item level
    5) When a service order is created I see that expected items are not showing the contract data.
    Any suggestions - any specific setting I am missing
    I found a SAP note for same problem in previous versions of CRM. (5.0 to 5.1)
    but we are on BBPCRM 6.0
    Thank you
    Ram

    Hi Shalini
                    i am trying to create a service ticket from WEB IC by confirming Account and Ibase and then creating service request and able to save without error. 
                if i end session and open the service request again in change mode and if delete the ibase, then appeas the message
    "You should run a new contract selection for item 0000000010",  going through OSS notes, but found nothing.
               Contract Determination is set to 'E' : Assign at Item leve : Assign immediately if unique for transaction type ZXXX.
    if i open the service ticket in CRMD_ORDER and go in change mode if i click process action button next to error, this will disappear. but it comes when i assing a ibase to the request, so its working only when i create.
    any sort of help will be appreciated.
    Thanks
    Gopi

  • Inbox Search of Status for Service Order in CRM_IC

    Hi all,
    When I am searching for a Service Order status in Inbox search in CRM_IC in the Result List it is not displaying Service Orders which are in same Status. It is displaying the list of Service Orders with different Status like Open, Inprocess, Not Completed etc., Can any body please........with details.
    Points will be rewarded for currect answer
    Thanks,
    Shrik.

    I have never used this function module before, but looking at the coding, I don't think this will serve your purpose.
    I think it might be better to use method(s) from class CL_CRM_DOCUMENTS.
    Via the GET_INFO method you can retrieve the documents you need and using the DELETE method should delete these object. I did use the GET_INFO method etc. but we haven't deleted any objects. But according to the name of the method, it should DELETE the documents.

Maybe you are looking for

  • Help needed with link in AI

    I am creating packaging artwork file in Illustrator with an embedded link to a jpeg pattern element. However, when I print the layout the embedded link is missing. This also happened on a second file which printed out OK on first 2 tries, then the li

  • MSI R7870 TWIN FROZR 2GDS - cant detect monitor. (no signal/no video input)

    I already post this before, but it seem it being blocked as I didnt have the genuine window. (https://forum-en.msi.com/index.php?topic=162310.msg1189334#msg1189334) Fine by me. Now I alrdy have a genuine window and the problem still occur. I already

  • Redrawing a logo for LOW resolution

    Greeting, can someone send me some tutorials about how can I redraw or how should I think if I'm making a logo design for low resoltuion use, or for small dimensions. ex: for spoons, small badges, etc

  • Printer for cardstock?

    Can anyone recommend a printer for thick cardstock? I am planning to make custom bicycle playing cards and I want to print directly onto the card.  what I am looking for: a printer that loads paper from the top, front or rear doesn't matter as long a

  • Alt tags on Javascript

    Hi I have a random image javascript generator but I need to get each image to have an alt tag (the same for each image is fine). Can anybody help please my code is attached: