Attachments in service orders - location

Hi!
Is there any way of retrieving the documents attached to service orders in one place?
Kind regards,
Borut

Hi,
Check the attachment view under service order in web ui, get the detail of bsp component view's.
In on_new_focus of the attachment view you can find how attachments are stored w.r.t service order ( by looking at the bol relation).
Once you know the bol relation, you can fire "service order" bol query and get the list of attachments via above relation.
Cheers,
Sumit Mittal

Similar Messages

  • 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

  • Service Order Creation through Sales Order...

    Hello,
    I got one requirement it is , we need to copy the account assignment (WBS element ) from sales order line item to service order line item . Morever same wbs element should be used to create automatic settlement rule in service order.
    This should also work even if user changes the WBS element later. i.e, updated WBS element should again update service order and settlement rule automatically.
    I tried to use Exit MV45AFZB and routine USEREXIT_MOVE_FIELD_TO_COBL, but still i am not able to see the data in service order Location tab, Object tab.
    I checked the table ILOA, its not getting updated when creating Service order via sales order.
    I am not able to see any fields value coming on Service order screen when creating through sales order.
    Regards,
    Sujeet Mishra

    Hi ARC,
    Here the issue is that, Sales Order is getting created but while sending the Order num. to Webpage through web service then rasing below Exception.
    Runtime Error UNCAUGHT_EXCEPTION
    Except. CX_SOAP_CORE
    Date and Time 07.05.2008 20:13:24
    ShrtText
    An exception that could not be caught occurred.
    What happened?
    The exception 'CX_SOAP_CORE' was raised but was not caught at any stage in the
    call hierarchy.
    Since exceptions represent error situations, and since the system could
    not react adequately to this error, the current program,
    'CL_SOAP_TRANSPORT_EXTENSN_ROOTCP', had to
    be terminated

  • How to get the Attachment ID for Service order in CRM

    Hi Guys,
    I need to delete the attachments in Service order; can I use the FM CRM_ICSS_DEL_ATTACH_OF_OBJECT?
    This FM required in Attachment ID as input, could you please any one help me.
    Thanks,
    Gourisankar.

    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.

  • Requirement to add new field in Location Tab of Service order

    We have a requirement in which it is needed to add anew field in Location Tab of Equipment and Service order. For Equipment part , we have added the field via Enhancement ITOB0001 and activating the field via "Set View Profile for Technical Objects".
    But for Service order part, we are not able to add the new field in the Location tab , please suggest how can we achieve this.

    Hi Deepika,
    If you are not particular about having it in Location tab use Screen-Exit provided in the Enhancement IWO10018 to add an additional tab to host your custom fields. as under:
    ABAPer will be able to readily follow these steps
    Steps will be,
    1. Create a Data type to capture the your custom values. (SE11)
    2. Include your Zfield (with this datatype) through in the include structure CI_AUFK of the Order Header table (AUFK)
    3. Create a project with Tcode CMOD and assign the enhancement above (IWO10018)
    4. Go to Components and Click on Screen Exit
    5. Here Go to Screen-painter (Blue Arrow named Layout) , Create your Field screen-box, field Text field and field Input field. In the field input field Name you should use the above Zfield details (table-field)
    6.Activate the project CMOD and come-out.
    Run IW31, you will see an additional tab like shown above. But here the field is nothing.
    We haven''t told the system what is to be filled here.
    For this in continuation to the above steps between 5 and 6, insert this step.
    5a. Write your code in Function Exits : EXIT_SAPLCOIH_018 and  EXIT_SAPLCOIH_019  of the same enhancement (IWO10018.)
    Code to be written in exit 18:
    move-corresponding COCI_AUFK_IMP to AUFK.
    Code to be written in exit 19:
    move-corresponding aufk to COCI_AUFK_exp.
    After this exercise your Z-field will be visible in the Enhancement Tab as shown in the picture in the beginning. Now your values will be saving to AUFK table.
    So, this is completely an ABAPer job.
    Hope this information helps you.
    Jogeswara Rao K

  • Functional location to Service order

    Guys
    Is it possible whenever a functional location is created, through background i want to generateone service order aganist the functional location.
    For this any BADI or User Exit is there ?
    Ravikumar

    Ravi,
    Yes, I would use the PERFORM YOUR_FORM ON COMMIT syntax to ensure the functional location is created before the order is created.
    If this doesn't work, then you could either use a batch program to create the service order, or use a synchronous workflow task.
    Either way it will require ABAP programming
    PeteA
    [www.pjas.com]

  • Service order creation using bapi with repair order number

    Hi experts,
    Pls suggest me a BAPI to create a service order for those repair orders where a PGR has been done(for return delivery type : LR).
    The plant should be 0260 with storage location wh01 and item category ZRRE
    Creation of a service order with repair order type SM03 is not allowed in iw31.
    thanks and regards,
    Vijayb.

    Hi prakash,
    Thank u for the BAPI
    But an error is being displayed saying that the REFURBISHMENT ORDERS CANNOT BE PROCESSED USING BAPI.
    ERROR DURING PROCESSING OF BAPI METHODS.
    This is while u pass the order type as either ZM03 or SM01or SM02 or SM03.
    pls help me on that.
    thanks and regards,
    Vijayb.

  • Service order-Error during account assignment

    HI experts,
    I am facing a problem in CRM when saving Service Orders.
    Issue:No account assignment found for this service process
    An error has occurred in the system XXX while copying the document
    Message no. CRM_ORDER_MISC 020
    Diagnosis
    Errors occurred while transferring the document into another system.To view the error messages,see the enclosed log.
    Transmission log
    No account assignment found for this service process (Notification E CRM_SRV_LOG_EXT_OLTP 008)
    Actually,We have a problem about service order,how to integration with WBS element.
    We can see Account assignment in service order item from GUI,but search help is nothing.
    Account assignment is missing in UI.
    If anyone know it,please share with me.
    Thank you.

    Hi Fan Ding,
    1. Would you please check the Controlling integration settings in CRM and ECC systems.
    Most importantly, Replicate service characteristics relevant to controlling
    Assigning cost centres to service org units
    Establishing controlling type, controllin glevel and scenarios
    Assigning plant and storage location to service org units
    etc.,
    2. Please check whether Sales/Service organization assigned to Billing unit and in turn the Billing Unit is assigned to company code or not.
    Regards,

  • Assiging wbs element as settlment receiver in service order settlement

    Hi PM CS Experts.
    We are using scenarios of creation of service order from sales order. So whatever cost we incurred for service order settling to sales order via settlement rule - settlment receiver is Sales order i.e. SDI. We are using settlement profie XX which have default object type for settling SDI.   While releasing the service order the settlement rule created with settlement receiver is SDI.
    Now for different business scenarios, we are settling service order cost to WBS. Now we want to create a settlemetn rule for WBS, settlement receiver will be WBS element,  while saving the service order.  What configuration, master data or processes we have to follow for this.
    please reply on this.
    regards
    abhay

    Sales Order line item have account assignment WBS element. From this sales order line, a service order will be created.   So our idea is whatever cost booked to service order should be settled to wbs element instead of sales order.  
    also in location tab of service order, the wbs element from sales order is not inherrited in account assignment section.  Why this we are not knowing. Have you have any idea for this.
    regards
    abhay

  • Consume components that are consigned in service order

    Dear CS gurus,
    Always wanted to know if this was possible:
    Current scenario
    1. We need to track materials (spare parts to repair machines) that are moved to specific customer locations. In order to do that, we are using consignment fill-up (via SD).
    NOTE: We cannot use SLoc to track these stock because there are just too many locations to track and a more feasible way is to use the consignment method.
    2. Since those items are actually spare parts to repair machines (the machines are our asset), we will make a service order (internal work order) to capture cost of repair. We need to indicate the materials that we will use in the Components tab. Since those materials are consigned to customer's site, we won't find those items in the warehouse.
    As far as I know, we cannot consume stock that are consigned ... only those in the warehouse.
    The current practice is to perform a Consignment pick-up (via SD) to bring the stock from consignment back to warehouse first. Then create the service order and maintain the materials to be used in the Components tab.
    My question:
    1. Is there anyway to actually consume the consignment stock instead of having duplicate steps as mentioned above?
    2. If not, is there a better solution for the above scenario?

    Hi
    If you consume spares against a Service order, system will automatically book the cost to that order.
    1. Move the spares to the Customer site (Consignment stock)
    2. Create a Service order when the spares are consumed
    3. issue the spares against the service order MB11, 261W mvt.
    4. Confirm the time
    Labour and Material cost will be booked against the Service order.
    Hope this is your requirement.
    I Do not agree with your statement "If I were to use MIGO to "consume" the material, I would not be able to collect the cost for the repairs of the machine."
    Babu

  • CRM 5.0 - IC WebClient - Service Ticket vs Service Order Navigation

    Hi Gurus
    Have any of you experts out there used the Badi: Navigation to Service Ticket and Service Order.
    This Badi is located at: SPRO->IMG->Customer Relationship Management
    ->Interaction Center Webclient->Business Transactions->Service Ticket
    ->Business Add-Ins (Badi)s.
    We are using Service Tickets only, yet when searching in the Inbox we locate our Service Ticket Transactions, when we select the Transaction it opens in Service Order view, not Service Ticket view.
    My understanding is that this Badi can resolve the issue, does anyone have an example of the code they've used in this Badi to force navigation to the Service Ticket.
    This is highly critical to our implimentation, therefore maximum points for the right answer
    Many Thanks
    Panduranga

    Hi Panduranga ,
    Here is a method in BADI.
    pay attention that's only one BADI can be active so deactivate default BADI.
    method IF_EX_CRM_ICWC_SERVICE_NAV~NAVIGATE.
        case iv_process_type.
         when 'TSVO'.                                           "#EC NOTEXT
    * navigate to Service Ticket
           rv_navigation_link = 'ServiceToSrvTHead'.            "#EC NOTEXT
           return.
         when 'ZTSV'.                                           "#EC NOTEXT
    * navigate to Service Ticket
           rv_navigation_link = 'ServiceToSrvTHead'.            "#EC NOTEXT
           return.
    *    when 'WRS1'.                                           "#EC NOTEXT
    * navigate to WebRequest
          when others.
    * navigate to "normal" Service Order
            rv_navigation_link = 'ServiceToServHeader'.         "#EC NOTEXT
            return.
        endcase.
    endmethod.
    Good Luck
    Eli Steklov
    <b>Please Reward Points if it Helps </b>

  • Defective Parts removal in Service Order

    Hi,
    Customer's defective product is being repaired. For every part consumed for repair, a faulty part is removed from the product. The faulty parts have to be returned to the customer and customer will pay for the Service Charges and Parts consumed. How do I take the faulty parts into stock?
    Is it ok to enter the Part in the components tab page of the Service Order with a negative qty (Movement Type 262) so that it is automatically taken into stock after Service Confirmation?
    Request suggestions.
    Thanks.
    Raj

    Thanks Pete. I have a few more queries!!
    u2022     In case I am taking the faulty Parts into a different Storage Location, do you still suggest I go for Split Valuation and customized MT?
    u2022     How do I ensure all faulty parts go into stock (for every part consumed, there will be a faulty part removed)? Would you suggest I go ahead with the 'negative qty' approach?
    u2022     Also, different opinion prevails with regards to valuation of these faulty parts. Should it be treated at zero value or at the same Moving Average Price bearing in mind that Parts are billed to customer? In my case, Service Charges for Repair and Parts billing have to be separate i.e., separate monthly invoicing
    u2022     In case of Parts billing, would it be appropriate to go the SD way (create a Sales Order, Delivery, PGI, Billing document)? This way, I am ensuring stocks of faulty parts are also reduced in inventory.
    As all above queries are of the same process, I have bundled them in one msg. Request guidance please.
    Thanks again for your time.
    Raj

  • Iw32 service order - store business document disabled

    Hello,
       in transacion IW32 I select the object service toolbar - create. I would to select store business document but it is not enable. How can I enable it? Which is the right ObjectType to set?
    Thanks.

    Hello Frighetto Antonio,
    very pleased to have a reply from you. but i was looking for any standard SAP Object link to attach documents from DMS for IW31 OR IW32 Transaction ie.. create service order.
    i could not find any unfortunately, what is the alternative that you followed to do this,
    did you attached documents from the left hand icon   Service for Objects Tab, from where also we can attach documents for any transactions.
    Can you please tell me if any document is attached with the help of this Tab, is there any search option to find the files attached,
    is there a link between this attachments and the SAP DMS or archive link.
    thanks and regards
    Priya s

  • Third party Service Order

    Dear Experts ,
    I need to do a third party service order .
    But in the system i can either use itemcategory D or S.
    Also I cannot define a new Item category
    Can anyone pls tell me how 2 do  it ?
    regards
    anis

    Dear Experts ,
    The scenario that i am wanting to map is thus :
    I have a few customers ( customer master records already exist )  , who are my dealers . We perform a certain service activities like getting our sign board installed & interiors to be done in our defined way at the dealer location .
    These activities although performed at  customer location , are paid for by us . Also i need to keep track of wat service is being provided at what customer location .
    Hence any service that i procure needs to be associated with that specific customer master .
    In third Party order ( Item category S ) i have a field of customer already available  where i can enter that specific customer number & also get the reports for the same .
    But i want to use service masters available in the system . This is not possible without using item category D.
    How can i achieve both the things?
    I cannot make separate addresses using mean for all those customers as it wud be duplication of  data & create confusion .
    Can there be a way out ?
    Regards
    Anis

  • Where do i can get the service order attachment details

    Hi Guys,
    I am developing a report, which it needs to delete the attachments for the particular service order, in which details i can the service order attachment details.
    Thanks,
    Gourisankar.

    Dear Gourisankar,
    Did you get any help or solve this issue since i face the same problem and i could not find a solution

Maybe you are looking for

  • Need HTML code to call template from an existing web template

    Hi all, Can someone help me with a HTML code which can call another web template from a field of a table. I have a web template which includes table as web item.The template when executed displays the data of query view in the form of table.One of th

  • Lost Song Info

    OK, here's my situation: I have Windows XP. I realised that no album artwork was showing on my iPod nano, even though it was on iTunes (most up-to-date version). This was because the error with the "Chkdsk" thing kept appearing. After I ran that, not

  • Open CS5 Documents in Earlier Versions (CS2, CS3, CS4)

    I am currently working on some documents in CS5. Others need to access these files but they are not on CS5. Is there a way to save down the files from CS5 so they can use them in the earlier versions? Or is there another way besides saving down that

  • HTML5 audio tag problem iOS 3.2.2

    Hi everyone, We've been developing web based applications for the iPad in HTML5 and we have come across a problem in that mp3 files play on an endless loop, when we only want them to play once. We've tested audio file playback with m4a files and have

  • Memory usage Adobe Photoshop Elements 9 - How many images are too many?

    My wife and I are having a discussion about the memory allocation of Adobe PSE 9. We run both of our profiles logged in on a 27" iMac top end from May, 2010, with 12 GB of RAM. She had a number of pictures open (let's say 20 - 25) that she was workin