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

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • 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

  • 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

  • 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

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

  • Cannot see my attached doc in file attachment list

    Hi all,
    I used the code below to attach a doc to a pernr. After attaching a PDF document to pernr 00070845, I goto transaction PA20/PA30 to see the attachment list. However, I cannot manage to see the doc in the attachment list. Idoublle check that table SOOD (SAP Office: Object Definition) contains the added entry but table SRGBTBREL(Relationship in GOS Environment) did not have the entry. What could be the problem here in the codes?
    "Construct upload structure from xstring
    This part of code is meant ONLY for .PDF file type
    IF wa_document_type = 'PDF'.
        WHILE wa_stringlength <> -1.
          CLEAR: wa_xbuf, wa_contents_hex.
          wa_stringlength = STRLEN( wa_datastring ).
          IF wa_stringlength >= 510.
            wa_xbuf = wa_datastring(510).
            wa_datastring = wa_datastring+510.
          ELSE.
            wa_xbuf = wa_datastring.
            wa_stringlength = -1. "end condition
          ENDIF.
          <contents_hex> = <xbuf>.
          APPEND wa_contents_hex TO wt_contents_hex.
        ENDWHILE.
    ENDIF.
      "Find proper folder for uploading
      CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET' DESTINATION 'NONE'
       EXPORTING
        OWNER                       = ' '
         region                      = 'B'
       IMPORTING
         folder_id                   = wa_folder_id
       EXCEPTIONS
         communication_failure       = 1
         owner_not_exist             = 2
         system_failure              = 3
         x_error                     = 4
         OTHERS                      = 5
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      wa_document_data-obj_name = 'MESSAGE'.
      wa_document_data-obj_descr = wa_filename.
      wa_document_data-obj_langu = 'E'.
      "Upload the document
      CALL FUNCTION 'SO_DOCUMENT_INSERT_API1' DESTINATION 'NONE'
        EXPORTING
          folder_id                        = wa_folder_id
          document_data                    = wa_document_data
          document_type                    = wa_document_type
       IMPORTING
         document_info                    = wa_document_info
       TABLES
        OBJECT_HEADER                    = wt_object_header
        OBJECT_CONTENT                   = wt_object_content
         contents_hex                     = wt_contents_hex
        OBJECT_PARA                      = wt_object_para
        OBJECT_PARB                      = wt_object_parb
       EXCEPTIONS
         folder_not_exist                 = 1
         document_type_not_exist          = 2
         operation_no_authorization       = 3
         parameter_error                  = 4
         x_error                          = 5
         enqueue_error                    = 6
         OTHERS                           = 7
      IF sy-subrc = 0.
        COMMIT WORK.
      ENDIF.
      wa_obj_rolea-objkey = lo_stru_input_param-pernr.
      wa_obj_rolea-objtype = 'BUS1065'.
      wa_obj_roleb-objkey = wa_document_info-doc_id(34).
      wa_obj_roleb-objtype = 'MESSAGE'.
      CALL FUNCTION 'BINARY_RELATION_CREATE' DESTINATION 'NONE'
        EXPORTING
          obj_rolea            = wa_obj_rolea
          obj_roleb            = wa_obj_roleb
          relationtype         = 'ATTA'
          FIRE_EVENTS          = 'X'
        IMPORTING
          BINREL               =
        TABLES
          BINREL_ATTRIB        =
       EXCEPTIONS
         no_model             = 1
         internal_error       = 2
         unknown              = 3
         OTHERS               = 4
      IF sy-subrc <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      COMMIT WORK.
    Edited by: Siong Chao on Nov 15, 2010 11:03 AM
    Edited by: Siong Chao on Nov 15, 2010 11:05 AM

    Hi Siong,
    as I remember I faced rough the same problem.
    Solution for me was to use an explicit transaction management and only one COMMIT WORK.
    Block before upload (logic from program SAPLSO33 PAI: USER_COMMAND_0100)
      DATA:
        lr_transaction_mgr   TYPE REF TO  if_os_transaction_manager,
        lr_transaction       TYPE REF TO  if_os_transaction,
        lr_os_ps             TYPE REF TO  if_os_persistency_manager
      TRY.
          CALL METHOD cl_os_system=>init_and_set_modes
            EXPORTING
              i_update_mode     = oscon_dmode_direct
              i_external_commit = oscon_false.
          lr_transaction_mgr = cl_os_system=>get_transaction_manager( ).
          lr_transaction = lr_transaction_mgr->create_transaction( ).
          TRY.
              CALL METHOD lr_transaction->start.
            CATCH cx_os_transaction_mode.
              lr_transaction->set_mode_update( oscon_dmode_update_task ).
              lr_transaction->start( ).
          ENDTRY.
        CATCH cx_os_error cx_os_system_error INTO lr_except.
          CALL METHOD lr_except->get_longtext
            EXPORTING
              preserve_newlines = abap_false
            RECEIVING
              result            = lv_except_text.
          CALL METHOD lr_except->get_source_position
            IMPORTING
              program_name = lv_except_prog
              include_name = lv_except_incl
              source_line  = lv_except_line.
          WRITE: / iv_file, lv_except_text, 'in', lv_except_prog, '/', lv_except_incl, lv_except_line.
          cv_errlvl = 1.
          RETURN.
      ENDTRY.
    Block after linking with BINARY_RELATION_CREATE:
      TRY.
          lr_os_ps = cl_os_system=>get_persistency_manager( ).
          CALL METHOD lr_os_ps->set_update_mode
            EXPORTING
              i_mode = oscon_dmode_direct.
          CALL METHOD lr_transaction->end.
        CATCH cx_os_error cx_os_system_error INTO lr_except.
          CALL METHOD lr_except->get_longtext
            EXPORTING
              preserve_newlines = abap_false
            RECEIVING
              result            = lv_except_text.
          CALL METHOD lr_except->get_source_position
            IMPORTING
              program_name = lv_except_prog
              include_name = lv_except_incl
              source_line  = lv_except_line.
          WRITE: / iv_file, lv_except_text, 'in', lv_except_prog, '/', lv_except_incl, lv_except_line.
          CALL METHOD lr_transaction->undo.
          IF cv_errlvl EQ 0.
            cv_errlvl = 1.
          ENDIF.
          RETURN.
      ENDTRY.
      COMMIT WORK.
    On undesirably sy-subrc use lr_transaction->undo.
    Regards, Hubert
    Edited by: Hubert Heitzer on Nov 15, 2010 12:40 PM

  • AS02 -ATTACHMENT LIST ALV

    Hi gurus,
    ı have a problem. I need to find the table of the alv shown clicked on the
    Services for object/attachment list.
    I know some of the fields come fromm   "SOOD" table.
    Now my problem is that how ı related this table with ANLA-ANLN1.
    Do you have any idea?
    Thanks in advance.....

    Keys used in constructor of cl_gos_manager class when lauching transactons like AS02 are (put a break-point in it to check yourself)
    - OBJKEY = bukrs + anln1 + anln2
    - OBJTYPE = 'BUS1022'
    With this data you can use FM and methods or database tables of packages SGOS*.
    Regards,
    Raymond

  • FD03 attachment list

    Hi All ,
    My requirment is to pull data from the dropdown
    'Attachment list ' field into the report using TC : FD03 , which is for customer general data . i would like to know which table-fields we can retrieve this from....?
    Document Title , Document Type and link with customer KNA1
    Thxs,
    Piroz

    Hi Guys
    Problem solved, Thread is closed
    Regards
    Moderator message : It is not mandatory to put comments while closing old threads (unless it add some value). This brings old questions to the top of current list.
    Edited by: Vinod Kumar on Oct 17, 2011 9:49 AM

  • Extract Attachment list from FDO3

    Hi Experts
    How can I extract the attachment list from FD03 and based on the attachment list where can I get the data of change note pad , I have a requirement to extract the change note for the customer by created on as a parameter ie when I highlight the attachment and click the pencil icon it is displaying the note I need that information?
    can anyone tell me which table or function module it is present ?
    urgent issue
    regards
    Piroz

    Hi Guys
    Problem solved, Thread is closed
    Regards
    Moderator message : It is not mandatory to put comments while closing old threads (unless it add some value). This brings old questions to the top of current list.
    Edited by: Vinod Kumar on Oct 17, 2011 9:49 AM

  • 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

  • Attachment list in FB03 using methods/FM's..

    hi,
    I have a requirement to replicate the derivation of the 'Attachment List' for an accounting document in transaction FB03.
    Is there any standard FM available for the same???
    The approach that i have tried out is, i debugged the standard SAP code for the transaction. I noticed some methods being used. now here too there is a problem, the method "GET_NEIGHBOURS" of class "CL_SREL_LIST_BROWSER" which is being used in the SAP code is a protected method. is there any way i can access the method "GET_NEIGHBOURS" in my program????
    Pls help me out.
    Cheers,
    Raghav.
    I need to access the method 'GET_NEIGHBOURS'

    no replies!!!

Maybe you are looking for

  • Adobe CS 2 Compatibility

    Hi, hi. I'm in pretty much a very tough situation now. I'm an art student and I have a MacBook (stupid choice, I know). Well, this is a prototype machine and it's quickly getting slower by the day. I will definitely have to swich over to the MacBook

  • Export then Import to a different Hyper-V server

    In http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/85dc7d36-491f-4b02-88ac-63c1ed0d94db I described a problem when exporting from a Hyper-V server and trying to import into a different Hyper-V server in a different domain. The

  • Minimum order quantity  in B2C Shop?

    Hi Expects, We are in CRM 7.0 and ECC. Is there anyway i can set minimum order quantity  in B2C web shop ordering process?Is this standard functionality? But in GUI while creating order i am getting warning stating that minimum order quantity is not

  • Additional Field require to flow from SAP Delivery Line to DTR Line to Freight Unit

    Dear All, My scenario is Delivery line Item = DTR Line Item = Freight Unit. For this my requirement is I have added Additional field in ECC Delivery Line Item Table (LIPS) to record BAR Code Number. Now I want this BAR Code Number to flow in DTR Line

  • SG300-10mp Fibre Link aggregation

      Hi, I have 2 SG300-10mp switches which i am trying to create a link redundancy for over the two fibre ports. On the web interface when i go into the LAG settings ports g9 and g10 which are the fibre ones don't show up. How do i create the link aggr