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

Similar Messages

  • 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

  • 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

  • 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

  • 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 ?

  • 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

  • Authorization for "Accept Quotation" Business Transaction in Service Order

    Hello All,
    I need of Authorization Control for doing "Accept Quotation" business transaction in Service Order.
    Process goes as follows.
    Service Order created with Planned cost components with DIP Profile
    Service Quotation got created through DP80
    Then, Accept Quotation will be done in Service Order
    Release of Service Order
    Execution, Billing, etc.,
    Here, I want to control of doing "Accept Quotation" by only authorized people.
    I couldn't find any suitable Authorization Object under I_VORG_ORD under field BETRVORG.
    We can control that business transaction through User status. Is there any other standard object available to achieve this??
    Hope I am clear in my query & looking forward your suggestions.
    Thanks in advance.

    Maheswaran KD
    Sorry, but I can't check at this client as we are not using CS processes.
    Try popping into debug mode using "/H" and put a break-point on "authority-check" before continuing.
    The program should now stop at all authorisation checks. See if any of these are suitable.
    If not, then you may need to use a user-exit or BADI.
    PeteA

  • Authorization for Warranty Maintainance in Service Order

    Hi,
    I am working on CRM 5.0.When user is creating service order at item level under warranty tab, there is option for maintaining the warranty and accounting indicator manually.
    I want to restrict the user from doing it.Can anyone suggest some solution for the same.
    Pls suggest any authorization object instead of Badi's..
    The same should be applicable for PCUI as well.
    Thanks,
    PePe

    Hi,
    If u manage to get related authorization object for fields of warranty tab then also i m not sure with using same object u can control from portal (PCUI).
    Better bet is to create new bliview for u r transaction and hide or make fields read only which u want to restrict.
    Also refer below link for better understanding.
    Authorisation Object to Restrict user  for Manual Wty assignment in Service
    Regards,
    DD's

  • 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 can a service order be marked as statistical?

    The cost in a statistical order is for information only, and one cannot settle such a order.
    Any suggestion would be appreciated.
    VT

    Dear Kapil,  MT, and Ravi
    Thanks for your quick response. However, the reason why I'm asking about statistical order is that I want to use the field in the below picture to filter service order
    http://www.freeimagehosting.net/image.php?e425776b8e.jpg
    http://www.freeimagehosting.net/image.php?f2a35809d9.jpg
    (t-code: KKAI > Selection variant > Change, at Control Data section, see Statistical)
    I wonder where I can maintain the indicator in service order.

  • Archive service notification and service orders

    Hello
    We need to remove few service notification and service orders from the system.These were created by mistake and now we want to remove those orders and notificaiton from the system
    Please explain with required transactions.
    Regards
    Santosh

    Check preconditions for archiving notification :
    1) The notification has been marked as u201Ccompletedu201D in Change Notification.
    To archive notifications, go to transaction SARA. The archiving object for Notification is NM_QMEL.
    Click on the Write button in the initial screen of Archive Administration to start an archive session of archiving notifications.
    RQARCNMA u2013 Archive Notifications
    RQARCNMD u2013 Delete Notifications
    hope that your problem will be solved.

  • Credit block should not prevent service order creation

    An upgrade from 4.7 to  ECC6, without any changes made to the configuration or program change, has lead to the following issue. ECC6 is not creating a service order connected to a sales order, when the customer has exceeded the credit limit. The sales order of custom order type is getting saved with a warning message that credit limit has exceeded. However, earlier in 4.7, the message would not stop creating subsequent service order. What could be different, that prevent ECC6 environment to hold on to service order creation? A subsequent release of the credit block through VKM1 however triggers the service order being created.

    Are you using credit card processing in SAP to get the authorization?
    If you are then the authorization should not block the order.
    Or are you using credit card as a form of payment (without authorization) in which case this needs to be put on the customers account as a payment and then the order entered.
    Where are you holding the credit card details?

  • SRVR(Service Request) and SRVO(Service Order) are not appearing in IC_Agent

    Dear friends,
    We are planning to implement Service Requests and Service Orders in CRM 7.0 Interaction Center
    The Service Transactions(Service Order/Service Request) are available in 'Service Professional' business role but not available in 'IC_AGENT' role.
    The things i have observed
    1. Without the channel the Transaction Type was not appearing in SAP GUI (CRMD_ORDER)
    2. Even after maintaining the Channels the BUS2000223 (Service Request) did not appear in CRMD_ORDER but the SRVO- Service Order transaction type appeared.(BUS2000116 Service Process)
    3. Have maintained the SRVO and SRVR transaction types as dependent transaction types in the 'Business Transaction Profile'; still when clieck on the Service Request or Service Order create I am getting the below error
    'No transaction type is available for creating a transaction'
    Below is the diagnosis
    Diagnosis
    No transaction type is available when creating a transaction. This can be due to the following reasons:
    No transaction type is available according to Customizing
    The user has no authorization for the transaction type
    System Response
    It is not possible to create the transaction.
    Procedure
    Make sure that:
    The transaction type is set up in Customizing
    The user has authorization for the transaction type
    Can you please guide me where the actual issue is
    Regards
    Raj

    Hi Raj,
    As per your quarries and requirement please go through the link, it will help you in understandable way
    http://help.sap.com/saap/sap_bp/BBLibrary/Documentation/C35_CRM701_BB_ConfigGuide_EN_XX.doc
    Please reward points,
    Cheers,
    Sunil

Maybe you are looking for

  • Count number rows in multiple tables from one query

    Hi I was wondering if its possible to have a single query return the number of lines in multiple tables, for example i have the tables foo1 pk_foo1 and foo2 pk_foo2 They are not joined together by any contraints. So the pseudo code for the query woul

  • Upgrade to Photoshop Elements 3.0

    If I upgrade from Photoshop Album (starter) to Photoshop Elements 3.0, Will Elements 3.0 keep my photo tags ?

  • Error in all dashboard in RPM

    Hi there; In RPM I created user TEST and assigned ABAP roles SAP_XRPM_ADMINISTRATOR and SAP_XRPM_USER by transaction SU01. After that I go in portal (USER ADMINISTRATION > IDENTITY MANAGEMENT TAB) and link standard portal role PORTFOLIO MANAGEMENT wi

  • Horrible final video quality in After Effects CS6 when rendering a 1920x1080 video with H.264 format

    I've been using After Effects CS6 on my Macbook Pro for over a year now with no issues. However, today when I exported a video to be rendered in 1920x1080p with H.264 format, I got the worst quality final video I've ever seen. I filmed my video files

  • Saving each layer into a file?

    Hello everyone, I need to take each layer's data and save it into a file. How would I retrieve individual layer's image data? Thanks