Problem in "View Attachment list"

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 in advance.

Solved Question

Similar Messages

  • 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

  • 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

  • How to create GOS view attachment list in ECC6

    Hi,
    I created Z transaction. I have to create View attachment List to this transaction. How to create GOS view attachment list in ECC6. can anybody send sample code on this.
    Thanks in advance.
    Zakir.

    Hi all,
    I've following problem with class CL_GOS_ATTACHMENTS.
    Transaction IE01/02/03 (create/change/display equipment) starts and instantiate GOS manager, and related BAdI are called.
    Then, when I choose one of available service, CL_GOS_ATTACHMENTS is instantiated, and inside that class a new GOS manager is instantiated, inspite of already existing instance.
    As a result, related BAdI are called twice, but unfortunately second time some SY variables are not correctly filled, particularly SY-TCODE and SY-MODNO are both empty.
    I've develop a workaround so that when sy-tcode is filled I save it somwhere, and when it's empty I filled it from saved value, does anyone know any other solution??
    Many thanks
    Regards
    m@x

  • Problem inView Attachment List in ECC6

    For creating View Attachment List, I code like below.
    data  ls_object type borident.
    ls_object-objtype = 'ZRECON'.
        ls_object-objkey = gs_rec_all_scr-reconobj.
        create object go_myobject
        exporting is_object = ls_object
        ip_no_commit = 'R'
       exceptions others = 1.
    It shows an error 'ZRECON is inactive or does not exist'.
    Where we should create ZRECON -
    how?
    Thanks in advance.
    Zakir.

    Solved Question

  • Why did my calendar view suddenly change? Using iOS 7.1 and I've been using this version for a few weeks with no problem with my calendar. Now the view has changed and I can't view a list mode without seeing the month too

    Why did my calendar view suddenly change in iCal? I've been using ios7 fôr a few weeks now with no problems. Suddenly, without any updates or anything, the calendar view changed and I can no longer view it as a list without having the entire month seen as well.

    Hey Gattypyle,
    Thanks for the question. You simply need to go back to Day/Week view, then tap the list-view icon once more.
    Calendar at a glance - iPhone
    http://help.apple.com/iphone/7/#/iph3d110f84
    View a list of events. In month view, tap to see a day’s events. In day view, Tap the to view a list of events.
    Thanks,
    Matt M.

  • In Attachement List Services for Objects White Screen when I Display a Note

    Hi Expert,
    Need your assistance.
    I am trying to view a note in Vendor Master data but no information provided and I can only see white screen. Below are the steps that I performed:
    1. Go to FK03
    2. Open a Vendor
    3. Click the Services for Objects
    4. Attachement List
    5. Select a Note
    4. Display it
    5. Pop up window appreared and no information occurred. Only White screen
    Is there's a missing configuration, plugin, or data in my SAP system/workstation?
    I tried to login to other PC and it worked.
    Just wondering what is missing on my computer.
    Your response will be helpful.

    Hey,
    I have the exact same problem as you have described. I also used my ipod as a watch but starting from today, whenever I unlock it the screen turns white until a reset is done. Even a factory reset through itunes didn't fix it.
    Have you found any solution?
    Bah, this is annoying.
    //Gubbar

  • Loading TXT documents in attachment list

    Hi,
    I have got a program that loads documents from a directory against the relevant PO so they appear in the attachment list when viewing the PO. My problem is for TXT documents when I try to open them they open with internal SAP editor rather than notepad. This would be okay but it does not open with correct alignment. Am I able to control what application is used to open the txt attachment and if so how?
    your help would be much appreciated and I am happy to provide further details if required.
    Thanks,
    Neera.

    I should add that I'm using Eclipse , and as such my web service seems to be self contained in my workspace for Eclipse. The structure is
    EclipseWorkspace -> myProject -> projectNamespace -> *.java
    I thought I could place my *.txt files inside the namespace directory with my Java files. I have also tried placing the *.txt file in the project directory, still no luck.

  • Problem with PDF Attachment (from GOS)

    Hi Experts,
    Below is the code in a ZFM. We are trying to get GOS attachments and the same are to be sent to SAP Inbox through Workitem. When we executed, the attachment is being shown but couldn't be opened.  It's throwing an error as 'The file has been damaged'.
    As per my understanding, we are getting PDF file into lt_object_content_l and we are trying to convert that to binary file and send the same to SAP_WAPI_ATTACHMENT_ADD.
    FUNCTION ztest_service_atta.
    *"*"Local Interface:
    *"  IMPORTING
    *"     REFERENCE(IV_WORKITEMID) TYPE  SWW_WIID OPTIONAL
    *"     REFERENCE(IV_PERNR) TYPE  PERSNO
    *"     REFERENCE(IV_REINR) TYPE  REINR
    *"  EXPORTING
    *"     REFERENCE(ES_ATT_ID) TYPE  SWR_ATT_ID
    *"  EXCEPTIONS
    *"      ATTACH_FAILED
      DATA: gs_att_header TYPE swr_att_header.
      DATA: ls_lpor TYPE sibflporb,
      lt_lpor LIKE TABLE OF ls_lpor,
      ls_option TYPE obl_s_relt,
      lt_option TYPE obl_t_relt,
      ls_rol_op TYPE obl_s_rolt,
      lt_rol_op TYPE obl_t_rolt,
      ls_links TYPE obl_s_link,
      lt_links TYPE obl_t_link,
      ls_folder TYPE soodk,
      ls_object TYPE soodk,
      ls_obj_hd TYPE sood2,
      lt_object_content_l TYPE TABLE OF solisti1,
      ls_object_content_l TYPE solisti1,
      lt_obj_cont TYPE TABLE OF soli.
    * Work areas
      DATA: lwa_doc_data        LIKE sodocchgi1,
            lwa_document_data   LIKE sofolenti1,
            lv_document_id      TYPE sofolenti1-doc_id,
            lwa_links           LIKE LINE OF lt_links,
            lwa_object          TYPE borident,
            ev_binfile TYPE xstring.
      FIELD-SYMBOLS <p> TYPE x.
      ls_lpor-instid = '000011110000000123'.
      ls_lpor-typeid = 'BUS2089'.
      ls_lpor-catid = 'BO'.
      APPEND ls_lpor TO lt_lpor.
      ls_option-sign = 'I'.
      ls_option-option = 'EQ'.
      ls_option-low = 'ATTA'.
      APPEND ls_option TO lt_option.
      ls_rol_op-sign = 'I'.
      ls_rol_op-option = 'EQ'.
      ls_rol_op-low = 'GOSAPPLOBJ'.
      APPEND ls_rol_op TO lt_rol_op.
      CALL METHOD cl_binary_relation=>read_links
        EXPORTING
          is_object           = ls_lpor
          it_relation_options = lt_option
          it_role_options     = lt_rol_op
        IMPORTING
          et_links            = lt_links.
    * Process the attachment list
      LOOP AT lt_links INTO ls_links.
        lv_document_id = ls_links-instid_b.
    * Read the data
        CALL FUNCTION 'SO_DOCUMENT_READ_API1'
          EXPORTING
            document_id                = lv_document_id
          IMPORTING
            document_data              = lwa_document_data
          TABLES
            object_content             = lt_object_content_l
          EXCEPTIONS
            document_id_not_exist      = 1
            operation_no_authorization = 2
            x_error                    = 3
            OTHERS                     = 4.
      ENDLOOP.
      LOOP AT lt_object_content_l INTO ls_object_content_l.
        ASSIGN ls_object_content_l TO <p> CASTING.
        CONCATENATE ev_binfile <p> INTO ev_binfile IN BYTE MODE.
      ENDLOOP.
      IF ev_binfile IS NOT INITIAL AND iv_workitemid IS NOT INITIAL.
        gs_att_header-file_type       = 'B'.
        gs_att_header-file_extension  = 'PDF'.
        gs_att_header-language        = 'EN'.
        gs_att_header-file_name       = 'Scanned Atta.PDF'.
        CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'
          EXPORTING
            workitem_id = iv_workitemid
            att_header  = gs_att_header
            att_bin     = ev_binfile
            do_commit   = 'X'
          IMPORTING
            att_id      = es_att_id.
        IF es_att_id IS INITIAL.
          RAISE attach_failed.
        ENDIF.
      ENDIF.
    ENDFUNCTION.
    Can somebody please tell me if I went somewhere wrong. What I feel is, it's because of the PDF file being 255 chars. As I have got the PDF file but not OTF, how can I convert that ot be of 132 chars. Whatever, is the problem due to this reason only?
    Can somebody please tell me where I have gone wrong. Your help is highly appreciable.
    Thanks

    Solved. Instead of converting object_content, I got contents_hex also and converted that as below:
    CALL FUNCTION 'SO_DOCUMENT_READ_API1'
          EXPORTING
            document_id                = lv_document_id
          IMPORTING
            document_data              = lwa_document_data
          TABLES
            object_content             = lt_object_content_l
            contents_hex               = lt_hex_cont
          EXCEPTIONS
            document_id_not_exist      = 1
            operation_no_authorization = 2
            x_error                    = 3
            OTHERS                     = 4.
      LOOP AT lt_hex_cont INTO ls_hex_cont.
        ASSIGN ls_hex_cont TO <p> CASTING.
        CONCATENATE ev_binfile <p> INTO ev_binfile IN BYTE MODE.
      ENDLOOP.

  • Attachment List in Generic Object Services disabled

    I want to attach documents to a work centre (transaction CR02, business object BUS0011). This has been configured so that the document will reside in the content management server and will be accessed using Archivelink. I can successfully store the doc using trasnaction OAWD, and can then retrieve the doc using transaction OAOR. The links are correctly created in table TOA03.
    However, when I try and view the docs from the Generic object services button for transaction CR02 the "Attachment List" link is greyed out.
    I've just set this up for invoices (object BKPF) so can't understand why this hasn't worked for work centres. 
    I've implemented the interface IFARCH21 for BUS0011, and this hasn't resolved the issue.
    Any ideas?
    Thanks
    Richard

    Richard,
    Your using the wrong object, I don't have access to an SAP system right now, so I can't tell you what the correct object is, but when it's configured correctly in OAC3 it will not be grey out.  Best thing to do it see what the object the program is publishing.  This is what GOS is looking for.  IFARCH21 is not the answer, unless your using workflow

  • Archive link : user defined document name in attachment list

    Hi
    I have created a content repository (OAC0), document type and had linked the doc n content rep with an SAP business object.
    I am able to attach documents to business object using archive link feature.
    If I attach more than one documents to an SAP business object, for same document type, all the documents are displayed with same name in the attachment list.
    Is there any way by which I can show the original document name as selected by user?
    Thanks in advance.
    Regards
    Ruhi Hira

    hi i have this problem myself all I know is that the original names are used for the following document types
    HRIBENEFIT PREL FAX 0053 -
    HRIBESCHKI PREL FAX 0021 2
    HRICERTIFI PREL FAX 0024 -
    HRICOLFOTO PREL FAX 0002 -
    HRICONTRAC PREL FAX 0016 -
    HRICONTRAD PREL FAX 0016 -
    HRIDATASEC PREL FAX 0002 -
    HRIDATES PREL FAX 0019 10
    HRIDIPLOMA PREL FAX 0022 +
    HRIEMPFOTO PREL FAX 0002 -
    HRIEVALUAT PREL FAX 0025 -
    HRIHEALTHI PREL FAX 0013 -
    HRIMASTERD PREL FAX 0002 -
    HRIPERAPPR PREL FAX 0019 10
    HRIREFEREN PREL FAX 0023 -
    HRIRESUME PREL FAX * -
    HRISOCIALS PREL FAX 0013 -
    HRISTUDID PREL FAX 0013 -
    HRITAXCARD PREL FAX 0012 -
    HRIVL PREL FAX 0010 +
    HRIWORKPER PREL FAX 0016 -
    read this thread:
    Link:[A couple of things regarding GOS and ArchiveLink for attaching Business Doc;
    i hope this wiil help you a least a little bit

  • When i use view as list in finder and open a folder with many files i cant right click with mouse without selecting or highlighting a file....i just want to right click to paste an item or create a new folder...what can i do?

    When i use view as list in finder and open a folder with many files i cant right click with mouse without selecting or highlighting a file....i just want to right click to paste an item or create a new folder...what can i do?

    Thx for that im gonna try it....but is there a way to do it without using toolbar or cmd-c...? i mean using only the mouse?why does it have to highlight the file even though i click a bit next to it....?using icon view i can right click next to the folder and i wont have a problem but with list view that i prefer using it will highlight the whole row.....and i dont find free space to right click cause i got many files

  • Attachement List - Table Name

    Dear All,
    we are using the attachment list in the sales order that can be reached via "Services for Objects". We are then archiving all order confirmations and they are then displayed in this attachement list. I now want to crate a report that shows me all orders where this attachements are missing. The problem is that I do not find the table where I can see the link from the archived object to the sales order.
    Can somebody help me with that?
    Thank you very much.
    best regards,
    Markus

    Hi Markus,
    Through Generic Object Services icon, you can store the documents using Archive link (via Store Business Document) or GOS (via Create Attachment).
    Refer to the link below. It explains the relationship between the tables for both scenarios.
    http://wiki.sdn.sap.com/wiki/display/PLM/SAPContentManagement-LinkbetweenSAPObjectsand+originals
    Follow the option which you are using to attach the documents.
    Cheers
    Amit

  • Services for Objects Attachement List Display Note not Viewable

    Hi Experts!
    Good day! I'm trying to display a note in FK03 (related to Services for Objects - Attachment List) and I only see white screen pop up window. No message and text information. When I tried to use another PC I can successfully view it.
    Is there's a plugin that I may need to install?
    Your help will be greatly appreciated.

    Hi Marty
    It is my understanding that the IXOS licensing is based on users retrieving of documents not necessarily the viewer so the licensing implications of having non-IXOS viewers accessing documents using the generic archivelink viewer is still likely to result in licensing implications if an audit is conducted at any stage.
    The transaction for specifying the viewer is the OAA3 and OAG4.
    Regards,
    Athol

  • View as icon vs. view as list

    If I select "view as icon" for a finder window, it applies that setting to all the windows. Is there a way to "view as icon" in one folder, for example, and to "view as list" in another window. I remember being able to do this in 10.4 on my old laptop.
    Thanks,
    Ralph

    Hey all,
    I'm a long time Mac user, way back before OSX. I responded to another thread on a similar subject. It's kind of a long post, but you might find it interesting/helpful. Basically, how an old Mac user approaches the 10.5 Finder (which I've grown to really like, btw).
    Here's the thread link...
    http://discussions.apple.com/thread.jspa?threadID=1766829&tstart=60
    Here's the post I put up there...
    "Re: Global Finder Window Problems..."
    This is actually the default viewing system in 10.5 (newly opened folders automatically adopting the view of any previously opened folder). I little weird at first, but read on for my take on why I think 10.5 is much nicer than 10.4 and preceding OXSs.
    I started using Macs in the pre-OSX days, so was used to the completely dependable and always predictable "spatial" Finder of OS9 and down. Spatial meaning, folders all opening in new windows with every window position, view setting, icon position, even scroll bar (if there is one) remembered without exception. Also, no browser mode at all.
    So I tried to recreate the old OS9 default folder view in 10.4... First, create a desktop folder, set to icon view, turn off Toolbar/Sidbar, which causes nested folders to open in their own new window. Great! Now all folders within created within that folder adopt that view, right? They do, but not if you drag one to the desktop, at that point the Toolbar/Sidebar magically reappears. It also reappears if you navigate to the same folder via Dock's cascading menu system (assuming you've placed a hard drive or folder there). Another 10.4 oddity...if you have Finder set to open at the top level "Computer" when activated from it's Dock icon, it would never remember icon size and position. Sometimes even forgetting window size/position (at least my install of 10.4 did this). On and on....life with the forgetful, stubborn OSX Finder.
    However, 10.5 is fantastic at remembering folder view settings. Only thing is, that's not turned on by default. Instead, the default behavior is for folders to adopt the previous folder view setting. This is actually not a bad thing if you prefer to use the browser style navigation the Finder offers. You alter a view setting, list view for example, browse a while, then change it to icon, continue browsing, etc, etc... Thats 10.5's default behavior. To make a specific folder remember a view state, all you have to do is set the view you want, open the Show View Options and check the Always Open In... check box. Now, it will very dependably remember it's view state.
    Personally, I've always had my own ideas about how the Finder should behave, and have suggested them to Apple. I've always thought there should be a separate Finder/Browser app that boots up from the Dock Finder icon. It always opens with the Toolbar/Sidebar on (ie: all folders are navigated to via a single browser window). You set it to some browser friendly view (ie: list, column), and it retains that view state as you browse no matter what view settings you may have set for an individual folder. That's the Finder/Browser. To see unique pre-folder view settings, you open the hard drive icon from the Desktop. It opens with the Toolbar/Sidebar off (ie: all folders open in new windows). You could consider this to not even being the "Finder application". Just think of it as "manually looking at the contents of the hard drive". As you drill down, opening new windows, you can create view states which are always remembered when opened via double click the hard drive from the Desktop.
    I attempted to created this behavior in 10.4, but the Finder was just forgetful enough, and stubborn enough, not to cooperate fully (see explanations above). However, in 10.5 it works beautifully. I first set the Finder Preferences to open "Computer", opened the Finder via the Dock icon and set it to Column view. From re-boot to re-boot, this set up is remembered exactly, even the window size and position. This is great for browser navigation.
    For "manually exploring" (or as some referred to as "spatial"), you must first tell every window on your hard drive to "Always Open In...." whatever you want you default state to be (other wise it will just open in the state in whatever the most resent folder was opened in). I created a script for this with the settings as...Toolbar/Sidebar off & icon view. I then ran the script on the entire drive, and all sub-folders. Over time, I've changed the settings of folders I want to open differently (mainly list as apposed to icon), making sure I open the View Options and rechecking "Always open in..." to whatever adjustment I made. My drive is in great order now and remembers every view detail. Any windows I don't mess with default to a completely predictable "Icon View".
    So 10.5 gives me the best of both worlds. Very reliable spatial (ie: old fashion manually opening window after window....handy for dragging files around the hard drive), and super streamlined browsing...good for navigating to and opening files quickly.
    My 3 cents...sorry for the long post.
    --Robb

Maybe you are looking for