Gos_manager- start_service_direct - VIEW_ATTA

Hi all,
I use the gos manager. (view_atta)
CALL METHOD gos_manager->start_service_direct
        EXPORTING
          ip_service       = 'VIEW_ATTA'
          is_object        = s_borident
        EXCEPTIONS
          no_object        = 1
          object_invalid   = 2
          execution_failed = 3
          OTHERS           = 4.
In the popup I can delete the documents.
Is it possible to hide the delete button in the popup? The user should only look at the available documents.
regards

Hi,
I am not sure if you can hide the options. But definitely you can disable the delete option.
Check below code. When you create the object pass ip_mode = D "Display
    CREATE OBJECT gos_manager
      EXPORTING
      is_object = obj
      ip_mode   = 'D'
      ip_no_commit = ' '
      EXCEPTIONS OTHERS = 1.
Thanks,
Vinod.

Similar Messages

  • Short dump while using method start_service_direct in GOS

    Hi Friends
    I am trying to create attachments for a business object from custom program.
    I have create attachment and view attachments list push buttions on the screen.
    when I try to create attachment, program dumps with message 'SET_HANDLER_HOBJ_NULL'
    but it is working fiew with view attachments.
    Please let me know if any of you have idea on this!
    Here is my code:
    CREATE OBJECT MANAGER
    EXPORTING
    IP_NO_COMMIT = 'R'
    EXCEPTIONS OTHERS = 1.
    ENDIF.
    OBJ-OBJTYPE = 'VBRK'.
    OBJ-OBJKEY = '1233454545'
    WHEN 'ATTACH'. " when create attachments button is pressed
    CALL METHOD MANAGER->START_SERVICE_DIRECT
    EXPORTING
    IP_SERVICE = 'CREATE_ATTA'
    IS_OBJECT = OBJ
    EXCEPTIONS
    NO_OBJECT = 1
    OBJECT_INVALID = 2
    EXECUTION_FAILED = 3
    OTHERS = 4.
    WHEN 'LIST' . " When list attachments button is pressed
    CALL METHOD MANAGER->START_SERVICE_DIRECT
    EXPORTING
    IP_SERVICE = 'VIEW_ATTA'
    IS_OBJECT = OBJ
    EXCEPTIONS
    NO_OBJECT = 1
    OBJECT_INVALID = 2
    EXECUTION_FAILED = 3
    OTHERS = 4.
    please help
    Regards
    Sathya.S

    'CREATE_ATTA'  is the problem in the method call, use  'PCATTA_CREA' as IP_SERVICE
    Found in another thread: Use 'PCATTA_CREA' as IP_SERVICE
    CALL METHOD manager->start_service_direct(
    EXPORTING
    ip_service = 'PCATTA_CREA'
    is_object = borident
    EXCEPTIONS
    no_object = 1
    object_invalid = 2
    execution_failed = 3
    OTHERS = 4 ).

  • Generic Object Services - restrict toolbar functions?

    Hello,
    When I create a URL link to an object, there is always a 'delete' button in the toolbar of the attachment list. Apparently, there are no authorization checks being made and everyone can delete this link.
    Is it possible to remove this button from the toolbar? Or at least making sure that not everyone can delete the link?
    Thanks!

    Hi,
    I think you are using CL_GOS* class for this. then
    module call_gos_attachment output.
    "<< I have created a authorisation object and
    " and called here if user have only display or change
    " access then the ip_mode will get value passed
    " accordingly
      if ( sy-tcode eq c_yars2 or sy-tcode eq c_yars3 ).
          i_borident-objtype = 'YARS_ATTA'.
          i_borident-objkey = yarshdr-docno.
          create object gos_manager
            exporting
               is_object            = i_borident
               it_service_selection = i_services
               ip_no_commit         = ' '
            exceptions
               object_invalid       = 1.
        else.                                " Display Mode
          i_borident-objtype = 'YARS_ATTA'.
          i_borident-objkey = yarshdr-docno.
          create object gos_manager
            exporting
               is_object            = i_borident
               it_service_selection = i_services
               ip_mode              = 'D'      "<<<<<< Check for display mode
            exceptions
               object_invalid       = 1.
        endif.
    endmodule.                               " Call_gos_attachment Output
    or if this suit your need then
        create object gos_view
          exporting
            ip_mode = 'D'.                     " <<<<Display Mode
    * Start GOS Service for attachement view
        i_viewobj-objtype = 'YARS_ATTA'.
        i_viewobj-objkey = yarshdr-docno.
        call method gos_view->start_service_direct
          exporting
            ip_service = 'VIEW_ATTA'
            is_object  = i_viewobj.
    This i have done it for one of the custom Generic object, i think this one will help you out.

  • Display GOS without click on 'Service for Object' button

    Please try the following step to figure out.
    1) VA03
    2) At header of report (on the left hand side of 'Display S/O SysB SDI xxxxxxxxx:Overview' ) has a button called 'Services for Object' (GOS)
    3) Click on that then it will popup icon menu set.  <--- Want this to be displayed when access VA03 by no need to click the button in 2)
    My requirement is I want this popup to be displayed suddenly after I access VA03 (no need to click on the Services for Object button anymore).
    <b>
    Could you please provide me any solution, function, example, similar case, etc. (based on 4.6c)?</b>
    Thank you all expert in advance.. I'll be here to provide you more information that need.

    I found the solution yet. Let me drop a note to be a memorandum.
    (1) Insert code into the last line of form <u>USEREXIT_READ_DOCUMENT</u> within report <u>MV45AFZZ</u>
    PERFORM UNITEXIT_READ_DOCUMENT.
    <b>*{   INSERT
    *[Display Attachment Service Automatically]
        DATA: lo_myobject  TYPE REF TO cl_gos_manager,
              lo_container TYPE REF TO cl_gui_custom_container,
              ls_object    TYPE borident.  "BOR Identifier
          ls_object-objkey  = vbak-vbeln.
          ls_object-objtype = 'BUS2032'.
          CREATE OBJECT lo_myobject.
          CALL METHOD lo_myobject->start_service_direct
                      EXPORTING ip_service   = 'VIEW_ATTA'
                                is_object    = ls_object
                                io_container = lo_container
                      EXCEPTIONS OTHERS          = 2.
    *[Display Toolbox]
        CALL METHOD lo_myobject->DISPLAY_TOOLBOX
                    EXPORTING  is_object       = ls_object
                               io_container    = lo_container
                    EXCEPTIONS OTHERS          = 2.
    *}   INSERT</b>
    ENDFORM.
    (2) Try open VA03 and insert attachment at Service for Object.
    (3) Reopen VA03, attachment list displayed suddenly.
    <i>Reference Source# SAP Library, search 'Starting Only One Service Directly'.</i>
    <b>NOTE:</b> You can use another relevant object by SE24 -> CL_GOS_MANAGER

  • Attachments Icon in Standard Transaction like VA22

    Hi Folks,
    In standard T-code VA22, there is a provision for including attachments. This Icon is available at the Top Left Corner of the screen. This Icon is generally not available for all the users. You have to add a Parameter ID: SD_SWU_ACTIVE   X       Activate Workflow Box in VA22 to the user profile to get this icon in the screen. How to activate this same kind of functionality in your Z program.I want this icon and same functionality to be implemented in my custom program to add/view/delete attachments. Any pointers to this will surely help.
    JLN

    you have to use an object of the class CL_GOS_MANAGER.Refer to the program below :
    *& Report  ZGOS_SCREEN
    REPORT  zgos_screen.
    CONSTANTS :
    objtype TYPE borident-objtype VALUE 'ZGOS'.
    TYPES :
    BEGIN OF exclude_type,
    fcode LIKE rsmpe-func,
    END OF exclude_type.
    DATA :
    manager TYPE REF TO cl_gos_manager,
    obj TYPE borident,
    ok_code TYPE syucomm,
    fcode   TYPE syucomm,
    exclude_tab TYPE STANDARD TABLE OF exclude_type,
    exclude_wa  TYPE exclude_type.
    *TOOLBAR : Display GOS toolbar in screen
    *DIRECT  : Call GOS services directly from screen
    PARAMETERS : toolbar RADIOBUTTON GROUP gr1 DEFAULT 'X',
                 direct  RADIOBUTTON GROUP gr1.
    START-OF-SELECTION.
      CALL SCREEN '0100'.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE status_0100 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
      SET TITLEBAR 'ZGOS'.
      IF manager IS INITIAL.
        obj-objtype = objtype.
        SELECT SINGLE name FROM trdir INTO obj-objkey
        WHERE name = sy-repid.
    *With GOS toolbar
        IF toolbar = 'X'.
          REFRESH exclude_tab[].
          CLEAR : exclude_tab,exclude_wa.
          MOVE 'ATTACH' TO exclude_wa-fcode.
          APPEND exclude_wa TO exclude_tab.
          MOVE 'LIST' TO exclude_wa-fcode.
          APPEND exclude_wa TO exclude_tab.
          SET PF-STATUS 'MAIN' EXCLUDING exclude_tab.
          CREATE OBJECT manager
            EXPORTING
             IO_CONTAINER     =
             IS_BC_OBJECT     =
              is_object        = obj
             IT_SERVICE_SELECTION =
             IO_CALLBACK      =
             IP_START_DIRECT  = space
             IP_NO_INSTANCE   = space
              ip_no_commit     = 'R'
             IP_MODE          = 'E'
            EXCEPTIONS
              object_invalid   = 1
              callback_invalid = 2
              OTHERS           = 3
        ELSE.
          SET PF-STATUS 'MAIN'.
          CREATE OBJECT manager
         EXPORTING
             IO_CONTAINER     =
             IS_BC_OBJECT     =
             is_object        = obj
             IT_SERVICE_SELECTION =
             IO_CALLBACK      =
             IP_START_DIRECT  = space
             IP_NO_INSTANCE   = space
           ip_no_commit     = 'R'
             IP_MODE          = 'E'
         EXCEPTIONS
           object_invalid   = 1
           callback_invalid = 2
           OTHERS           = 3
        ENDIF.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE user_command_0100 INPUT.
      fcode = ok_code.
      CLEAR ok_code.
      CASE fcode.
        WHEN 'ATTACH'.
    *Call Create Attachment Service from toolbar
          CALL METHOD manager->start_service_direct
            EXPORTING
              ip_service         = 'PCATTA_CREA'
       IS_BC_OBJECT       =
              is_object          = obj
       IO_CONTAINER       =
       IP_CHECK_AVAILABLE =
    IMPORTING
       EP_AVAILABLE       =
            EXCEPTIONS
              no_object          = 1
              object_invalid     = 2
              execution_failed   = 3
              OTHERS             = 4
        WHEN 'LIST'.
          CALL METHOD manager->start_service_direct
             EXPORTING
               ip_service         = 'VIEW_ATTA'
       IS_BC_OBJECT       =
               is_object          = obj
       IO_CONTAINER       =
       IP_CHECK_AVAILABLE =
    IMPORTING
       EP_AVAILABLE       =
             EXCEPTIONS
               no_object          = 1
               object_invalid     = 2
               execution_failed   = 3
               OTHERS             = 4
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  exit-processing  INPUT
          text
    MODULE exit-processing INPUT.
      fcode = ok_code.
      CLEAR ok_code.
      CASE fcode.
        WHEN 'BACK' OR 'EXIT' OR 'CANC'.
          SET SCREEN 0.
          LEAVE SCREEN.
      ENDCASE.
    ENDMODULE.                 " exit-processing  INPUT

  • Display attachment with GOS-Service direct

    Hello,
    In my application i´am using the generic object services by starting the service "view attachment-list" directly (in a 4.6C System).
    In transaction FB03 it is possible to show the original scanned document from the opt. archive in the  attachment list .
    The accounting will now be able to see the attachment in the payment proposal list (F110) . I created this in report ZFZALI20 (copy from RFZALI20) in the code below. This works fine for document type 'KN' (FI), but not for type 'RN' (MM).
    Then  the attachment list is empty first. But when I start transaction FB03 in a parallel task and refresh or start the attachment again with a double click in F110, then the attachment appears right.
    Is there any solution for this phenomenon.
    Regards,
    Fred
    FORM anlagenliste.
    data: go_myobject type ref to cl_gos_manager.
    data:
    lo_container type ref to cl_gui_custom_container,
    ls_object type borident.
    create object go_myobject.
    concatenate gt_item_main-bukrs gt_item_main-belnr  gt_item_main-gjahr
                                                 INTO ls_object-objkey .
    ls_object-objtype = 'BKPF'.      " BOR-Objekttyp
    ls_object-logsys = 'ITAIS3'.     " Log. System des ITA-Viewer
    Aufruf Service
    call method go_myobject->start_service_direct
    exporting ip_service = 'VIEW_ATTA'
               is_object = ls_object.
           io_container = lo_container.
    ENDFORM.                    " anlagenliste

    Hi Raja,
    the coding in my program look like this:
    data:
    ref_cust_cont   type ref to cl_gui_custom_container,
    ref_gos_manager type ref to cl_gos_manager,
    wa_object       type borident.
    if ref_cust_cont is initial.
      custom container
        CREATE OBJECT ref_cust_cont
        EXPORTING
        container_name = 'CUST_CONT'.
      GOS-manager
        CREATE OBJECT ref_gos_manager.   
    endif.
    wa_object-objkey  = lv_key.   "1
    wa_object-objtype = 'ZTEST'.
    starting the service direct
        CALL METHOD ref_gos_manager->start_service_direct
          EXPORTING
          ip_service = 'VIEW_ATTA'
          is_object = wa_object
          io_container = ref_cust_cont
        EXCEPTIONS
          no_object        = 1
          object_invalid   = 2
          execution_failed = 3
          OTHERS           = 4
    Now the attachment-list of the new object '2' (objectkey) should be shown... so the same procedure starts again:
    wa_object-objkey  = lv_key.   "2
    wa_object-objtype = 'ZTEST'.
    starting the service direct
        CALL METHOD ref_gos_manager->start_service_direct
          EXPORTING
          ip_service = 'VIEW_ATTA'
          is_object = wa_object
          io_container = ref_cust_cont
        EXCEPTIONS
          no_object        = 1
          object_invalid   = 2
          execution_failed = 3
          OTHERS           = 4
    Now the ALV should show the attachment list of object "2" but it doesn´t. It also doesn´t help when i´m using the method PUBLICATION_CHANGED after the method-call START_SERVICE_DIRECT!
    May be you have a code sample for me?!
    Regards
    chris

  • Starting a GOS-Service direct

    Hello,
    In my application i´m using the generic object services by starting the service "view attachment-list" directly (in a 4.6C System).
    For the first call the service works fine, but how should i do by changing the published object? In this case i need e refresh of the alv because of the changed object - but i can´t find a method to do this! Also i can´t find a method to destroy the alv-control...
    Maybe you can help me!
    Thanks,
    Christof
    The program-steps look like this:
    data:     ref_cust_gos      type ref to cl_gui_custom_container,
         ref_gos_manager type ref to cl_gos_manager,
         wa_object     type borident.
    CREATE OBJECT ref_cust_gos
      EXPORTING
        container_name              = 'CUST_CONT'.
    CREATE OBJECT ref_gos_manager.
    wa_object-objkey = '1'.          
    wa_object-objtype = 'ZTEST'.     
    CALL METHOD ref_gos_manager->start_service_direct
      EXPORTING
        ip_service       = 'VIEW_ATTA'
        is_object        = wa_object
        io_container     = ref_cust_gos  
    CALL METHOD ref_gos_manager->unpublish.
    wa_object-objkey = '2'.          
    wa_object-objtype = 'ZTEST'.     
    CALL METHOD ref_gos_manager->start_service_direct
      EXPORTING
        ip_service       = 'VIEW_ATTA'
        is_object        = wa_object
        io_container     = ref_cust_gos

    Hi Raja,
    the coding in my program look like this:
    data:
    ref_cust_cont   type ref to cl_gui_custom_container,
    ref_gos_manager type ref to cl_gos_manager,
    wa_object       type borident.
    if ref_cust_cont is initial.
      custom container
        CREATE OBJECT ref_cust_cont
        EXPORTING
        container_name = 'CUST_CONT'.
      GOS-manager
        CREATE OBJECT ref_gos_manager.   
    endif.
    wa_object-objkey  = lv_key.   "1
    wa_object-objtype = 'ZTEST'.
    starting the service direct
        CALL METHOD ref_gos_manager->start_service_direct
          EXPORTING
          ip_service = 'VIEW_ATTA'
          is_object = wa_object
          io_container = ref_cust_cont
        EXCEPTIONS
          no_object        = 1
          object_invalid   = 2
          execution_failed = 3
          OTHERS           = 4
    Now the attachment-list of the new object '2' (objectkey) should be shown... so the same procedure starts again:
    wa_object-objkey  = lv_key.   "2
    wa_object-objtype = 'ZTEST'.
    starting the service direct
        CALL METHOD ref_gos_manager->start_service_direct
          EXPORTING
          ip_service = 'VIEW_ATTA'
          is_object = wa_object
          io_container = ref_cust_cont
        EXCEPTIONS
          no_object        = 1
          object_invalid   = 2
          execution_failed = 3
          OTHERS           = 4
    Now the ALV should show the attachment list of object "2" but it doesn´t. It also doesn´t help when i´m using the method PUBLICATION_CHANGED after the method-call START_SERVICE_DIRECT!
    May be you have a code sample for me?!
    Regards
    chris

  • View attachment list in ECC6

    Hi,
    I am trying to assign the GOS service for the Z transaction using a ehancment spot in PBO . Problem is I am getting the GOS service enabled for the transaction. But when I click on
    "View Attachment list" service, it is given short dump in ECC6 where as in 4.6c not. IIt shows the followin dump.
    SET HANDLER: Reference to handler object cannot be NULL.
    The current ABAP program "CL_GOS_TOOLBOX_VIEW===========CP" had to be
    terminated because it has
    come across a statement that unfortunately cannot be executed.
    When specification a handler for an event in the SET HANDLER statement,
    the reference "IS_SERVICE-SERVICE" to the handler instance cannot be NULL.
    Program CL_GOS_TOOLBOX_VIEW===========CP
    Include CL_GOS_TOOLBOX_VIEW===========CM004
    Row 69
    Module type (METHOD)
    Module Name DISPATCH_SERVICE
    =============================================
    I am using the following code.
    data: lo_container type ref to cl_gui_custom_container,
    ls_object type borident.
    ls_object-objtype = 'ZRECON'.
    ls_object-objkey = gs_rec_all_scr-reconobj.
    case ok_code.
    when 'ATTACH'.
    call method go_myobject->start_service_direct
    exporting
    ip_service = 'CREATE_ATTA'
    is_object = ls_object
    io_container = lo_container.
    when 'LIST'.
    call method go_myobject->start_service_direct
    exporting
    ip_service = 'VIEW_ATTA'
    is_object = ls_object
    exceptions no_object = 1
    object_invalid = 2
    execution_failed = 3
    others = 4.
    endcase.
    The short dump given at
    call method go_myobject->start_service_direct
    Thanks a lot for ur suggestions.
    Zakir.

    Solved Question

  • GOS- Attachment List Inactive

    Guys, looking for your  help.
    My issue is, we have a Custom Transaction for PR. We have implemented the GOS functionality for the screen.
    We are able to attach documents and save the same to KPRO ( SAP Office).
    Documents are fine and sitting pretty there.
    Problem is when i leave the transaction and comeback again to the same document, the 'Attachment list' link in the GOS menu is grayed out. where in the attachments are saved in the Content repository.
    Any solution to this issue would be highly appreciated.
    Thanks
    Vinodh Balakrishnan

    Hi,
    I think you are using OO for this functionality. then
      select * from sgosattr where name ne 'VIEW_ATTA'
                               and name ne 'PCATTA_CREA'.
        i_service-sign = 'E'.
        i_service-option = c_eq.
        i_service-low = sgosattr-name.
        append i_service to i_services.
      endselect.
    * then call gos manager
        if v_tmode eq 'C'.            " Create or Change Mode
          i_borident-objtype = 'Y_ATTA'.
          i_borident-objkey = yhdr-docno.
          create object gos_manager
            exporting
               is_object            = i_borident
               it_service_selection = i_services
               ip_no_commit         = ' '
            exceptions
               object_invalid       = 1.
        else.                                " Display Mode
          i_borident-objtype = 'Y_ATTA'.
          i_borident-objkey = yhdr-docno.
          create object gos_manager
            exporting
               is_object            = i_borident
               it_service_selection = i_services
               ip_mode              = 'D'
            exceptions
               object_invalid       = 1.
        endif.
    aRs

  • GOS - Attachment - Link is not deleting from SRGBTBREL

    I have created custom transaction and this have option to attach desktop files (ie Word, Xls, PPT, PDF) etc into this transaction. For this i am using class CL_GOS_MANAGER.
    After the attachment sometimes users will delete the attachments from attachment list.
    My problem is some attachment links are not deleted completely  from SRGBTBREL (Link Table) . Because of this next time users displaying the attachment list still the deleted entries are showing in the list.
    If users double clock  it is giving a error message "Document does not exist" ( message class SO and message Number 006) .
    Any body come across this kind of scenario?
    Given below is the code for deleting the attachments
    * Object creation of GOS View
        create object gos_view
          exporting
            ip_mode = 'D'.                     " Display Mode
    * Start GOS Service for attachement view
        i_viewobj-objtype = 'YATT_ATTA'.
        i_viewobj-objkey = yatthdr-docno.
        call method gos_view->start_service_direct
          exporting
            ip_service = 'VIEW_ATTA'
            is_object  = i_viewobj.
    a®s.
    Edited by: a®s on Feb 18, 2008 3:20 PM

    Mylene,
    Thanks for your info. I already saw this note. Please share if you any info how we can delete the SRGBTBREL links completely using class  CL_GOS_MANAGER?
    I already run the program RSGOSRE01 (suggested in the note 569123) But nothing is shown. But the document showing in the SRGBTBREL links it have attachment
    For example , the following are the links from SRGBTBREL
    BRELGUID                         RELTYPE      INSTID_B
    475E7A046A581C0EE1000000A3F331A3 ATTA         FOL27000000000004EXT32000000033688
    475E828FD2561C0DE1000000A3F331A3 ATTA         FOL27000000000004EXT32000000033775
    476515A0A02A0E78E1000000A3F331A3 ATTA         FOL27000000000004EXT32000000034502
    47651683A02A0E78E1000000A3F331A3 ATTA         FOL27000000000004EXT32000000034503
    Here the last link still showing in the table , but i find there is not attachment
    47651683A02A0E78E1000000A3F331A3 ATTA         FOL27000000000004EXT32000000034503
    Any more Info?
    Edited by: a®s on Feb 19, 2008 8:58 AM

  • Problem with GOS view attachment list in SAP Upgrade

    Hi,
    The view attachment list is working fne in 4.6c for the Z  transaction. When I run the same transaction in ECC6, I am getting the 'GOS View Attachment List' icon, but when I click on
    this icon, it is given short dump in ECC6 where as in 4.6c it is working fine. It shows the followin dump in ECC6.
    SET HANDLER: Reference to handler object cannot be NULL.
    The current ABAP program "CL_GOS_TOOLBOX_VIEW===========CP" had to be
    terminated because it has
    come across a statement that unfortunately cannot be executed.
    When specification a handler for an event in the SET HANDLER statement,
    the reference "IS_SERVICE-SERVICE" to the handler instance cannot be NULL.
    Program CL_GOS_TOOLBOX_VIEW===========CP
    Include CL_GOS_TOOLBOX_VIEW===========CM004
    Row 69
    Module type (METHOD)
    Module Name DISPATCH_SERVICE
    =============================================
    When I click on SET HANDLER statement, control leads to method DISPATCH_SERVICE in class CL_GOS_TOOLBOX_VIEW.
    =============================================
    I am using the following code.
    data: lo_container type ref to cl_gui_custom_container,
    ls_object type borident.
    ls_object-objtype = 'ZRECON'.
    ls_object-objkey = gs_rec_all_scr-reconobj.
    case ok_code.
    when 'ATTACH'.
    call method go_myobject->start_service_direct
    exporting
    ip_service = 'CREATE_ATTA'
    is_object = ls_object
    io_container = lo_container.
    when 'LIST'.
    call method go_myobject->start_service_direct
    exporting
    ip_service = 'VIEW_ATTA'
    is_object = ls_object
    exceptions no_object = 1
    object_invalid = 2
    execution_failed = 3
    others = 4.
    endcase.
    The short dump given at
    call method go_myobject->start_service_direct
    Thanks a lot.
    Zakir.

    Hi,
    I am facing the same issue. Can somebody help me to fix this issue?
    Thanks,
    Geetha

  • Deleting and Retrieving Attachments - GOS

    Hi All,
    Want to Know about attachments with GOS:
    1) How is the attachment stored?
    2) Where it is stored?
    3) Whether it is possible to retrieve the same attachment and delete the 
        attachment?
    Helpful answers are appreciated.
    Thanks,
    Bhaskar

    Hi,
    as i know the GOS Objects are store with the tools of SAP Office (objects in folders similar to attachments of your sap inbox).
    To retrieve and delete the attachments, you have to us fm/reports of package SGOS. There is a report RSGOSRE01 which shows how to delete attachments (and therefore, how to retrieve attachments).
    To create attachments, you can use the fms of function group sgosds.
    To list attachments, you may use method start_service_direct with export-paramenter ip_service = 'VIEW_ATTA' of class cl_gos_manager.
    I hope that will help you.

  • Retrieve GOS Attachment

    Hi All,
    I am developing a program to retrieve the GOS attachment from PO attachment and send to the vendor through email. Kindly advise me to resolve this problem because I have no idea how to retrieve the attachment from the GOS table.
    Many thanks and best regards,
    Ting Wei Hong

    Hi,
    There is a class CL_GOS_MANAGER. Use that.
    See here for an example:
    data: o_gos type ref to cl_gos_manager.
      data: o_att type ref to cl_gos_attachments.
      data: ls_borident type borident.
      ls_borident-objkey = gs_data-vgbel.
      ls_borident-objtype = zcl_word=>co_busobject_worddocument.
      free o_gos.
      create object o_gos
        exporting
          ip_no_commit = space.
      call method o_gos->start_service_direct
        exporting
          ip_service       = 'VIEW_ATTA'
          is_object        = ls_borident
        exceptions
          no_object        = 1
          object_invalid   = 2
          execution_failed = 3
          others           = 4.
      if sy-subrc <> 0.
        message 'Geen bijlagen aanwezig. Toolbox wordt getoond' type 'S'.
        o_gos->display_toolbox( is_object = ls_borident ).
      else.
        message 'Bijlagen aangepast' type 'S'.
      endif.

  • Purchase order attachments

    Hi Experts,
    While creating Purchase order,there is an option to attach files or documents.Now the requirement is
    to develop a report.Once the purchase order is given as input, then the list of documents attached to
    the purchase order are to be displayed and once clicks on the document, the document has to be opened.
    Please suggest me any classes are availbale to know how many documents are attached to PO and how to read those documents.
    Thanks in advance.
    S.Gangireddy

    Hi,
    please have a look to the cl_gos_manager class. To view an attachment you can use a code something like:
    DATA: go_myobject  TYPE REF TO cl_gos_manager.
    CREATE OBJECT go_myobject.
    CALL METHOD go_myobject->start_service_direct
    EXPORTING
    ip_service   = 'VIEW_ATTA'
    is_object    = ls_object
    io_container = lo_container.
    Hope this helps,
    kind regards,
    Dirk

  • Read attachment exists or not

    Hii All..
    I have one Zprog with attachment option.
    to display attachment in report  i m using class CL_GOS_MANAGER and method START_SERVICE_DIRECT.
    my requirment is if attachment file exists change icon .
    so how to read attachment file exists or not?
    Thanks in Advance
    Regards
    Vshal

    You have to use the same method CL_GOS_MANAGER=>START_SERVICE_DIRECT, informing parameter IP_CHECK_AVAILABLE:
       call method lr_manager->start_service_direct
           EXPORTING
               IP_SERVICE = 'VIEW_ATTA'
              IP_CHECK_AVAILABLE = 'X'
          IMPORTING
             EP_AVAILABLE = lv_available.
    This way the service will not be launched and you will know whether there are attachemnts or not.

Maybe you are looking for

  • IPhoto spinning ball - at the end of my rope

    I can't get iPhoto to load. Every single thing I've tried results in the spinning ball of death. I've tried: rebuilding the library creating a new library on another drive using iPhoto Library Manager rebuild restoring the picture library from a back

  • SOLUTION MANAGER- alert doesn't exist or not accesible now

    I execute transaction solution_manager and I chose productive system in the User defined Alert I created alert "Erroneous Fax & e-Mail (client 300)" and I copy in the Alert long name MTE name which I obtained form rz20 source monitoring system and ..

  • How do you recharge your wireless keyboard

    how do you recharge your wireless keyboard?

  • Inherit Singleton class?

    hi there, We are learning Java at University and are supposed to develop a program to manage an art exhibition. The art exhibition is limited to 100 Objects (paintings and sculptures). Every object has a name, a value, an insurance, etc. and type spe

  • How do i change my password if i no longer have access to old email address

    I have an iphone 4 that I have used for last 2 or 3 years. I recently upgraded to 7.1.1 I need to upgrade an app, I only use the phone occaisionally and cannot remember the password for the App store but I still have the screen unlock PIN number. I c