Using GOS to store business document on the content server

Hello All,
BACKGROUND
We use content server to store business documents via ArchiveLink.  The process to store a business document is via Generic Object Services menu path "Create -> Store business document". 
ISSUE
When document is stored in such a way, the actual name of the document is not displayed in the "Attachment list" of the GOS menu nor is it stored on the content server.  What we see instead in the "Attachment list" is a description of the Archive object (TOASP-objecttext) for all documents that we store. 
NEED HELP
We need to have a document's name (i.e. name of the uploaded file) displayed in the "Attachment list" of GOS.  We also need to be able to retrieve this file name programmatically via a function call or a class method. 
Any help is greatly appreciated.
Gene.

1. In GOS attachment list i can able to see the attachment name (without extension) may be you need to check your layout using change layout (its may hidden)
2. For getting attachment name programatically try this way
  i_object-typeid = 'BUS2012'.
  i_object-catid  = 'BO'.               
  i_object-instid = yatthdr-docno.       " Document Number
  refresh : i_brel, i_link.
* Get Attachment List
  append 'ATTA' to i_brel.
  if not i_brel is initial.
    select *
      from srgbtbrel
      appending corresponding fields of table i_link
      for all entries in i_brel
      where
        instid_a eq i_object-instid and
        typeid_a eq i_object-typeid and
        catid_a  eq i_object-catid and
        reltype  eq i_brel-reltype.
  endif.
  wa_filter-send_info = ' '.
  wa_filter-no_content = 'X'.
  loop at i_link into ls_link.
    clear : wa_doc_data.
    wa_fol_cont-doc_id = ls_link-instid_b.
    call function 'SO_DOCUMENT_READ_API1'
      exporting
        document_id                = wa_fol_cont-doc_id
        filter                     = wa_filter
      importing
        object_header              = wa_obj_hdr    
        document_data              = wa_doc_data
      exceptions
        document_id_not_exist      = 1
        operation_no_authorization = 2
        others                     = 3.
You can find the File Name in the WA_OBJ_HDR

Similar Messages

  • Problem about using GOS to store business document!

    Hi Everyone,
        I am using Generic Object services toolbar to archive document.
       When I attach thru Create Attachment button and display by clicking on the attachments list, it is showing Creator name and the
    real name of document .But If I attach thru Store Business document and display it thru attachment list, Creator name and the document name is blank. But client want to see the creator name also in the display.
      Any one has idea about this?We need to have a document's name (i.e. name of the uploaded file) displayed in the "Attachment list" of GOS,We also need to be able to retrieve this file name programmatically via a function call or a class method .
    Any Your help is much appreciated.
    Thanks,
    lexian

    Hello  Sachin:
             Thank you very much!
             Now I will tell you the procedure:
             For example,enter tocode ME53,via Generic Object Services(GOS) menu path "Create -> Store business document", Then upload a document from my pc.
            If what my offer is not correct ,Please tell me.
           Thanks a lot!
         lexian!
    Edited by: le xian on Dec 3, 2010 2:47 AM

  • GOS: create store business document

    Hi experts,
    when using GOS to attach a document (create store business document), the system enables me to attach the corresponding documents. The thing is that once created the attachment, if you display list, the documents attached can not be distinguished because there isn't any description. All the attachments show as description the document types customized.
    Is there any possibility of adding a description so that the user can display the documents attached and know which is the subject without being necessary to open all the attachments one by one.
    Best regards

    I also am interested in this.  Also, the user ID of who created the attachment is BLANK.

  • GOS - Store Business Document

    Hello,
    For a maintanance work order, I want to store a document at GOS -> Create - > Store Business Document in transacion IW32.
    Is there any standard FM available to achieve this ?
    Regards,
    Anand

    See the following example:
    PARAMETERS: p_key TYPE swo_typeid OBLIGATORY,
    p_type TYPE swo_objtyp OBLIGATORY,
    p_file TYPE c LENGTH 100 OBLIGATORY,
    p_desc TYPE so_obj_des OBLIGATORY.
    DATA: ls_fol_id TYPE soodk,
    ls_obj_id TYPE soodk,
    ls_obj_data TYPE sood1,
    ls_folmem_k TYPE sofmk,
    ls_note TYPE borident,
    ls_object TYPE borident,
    lv_ep_note TYPE borident-objkey,
    lv_offset TYPE i.
    DATA: it_objhead TYPE STANDARD TABLE OF soli,
    it_content LIKE STANDARD TABLE OF soli,
    wa_content LIKE soli.
    ls_object-objkey = p_key.
    ls_object-objtype = p_type.
    TRY.
    OPEN DATASET p_file FOR INPUT IN BINARY MODE.
    WHILE sy-subrc = 0.
    READ DATASET p_file INTO wa_content.
    APPEND wa_content TO it_content.
    ENDWHILE.
    CLOSE DATASET p_file.
    CATCH cx_sy_file_access_error.
    MESSAGE 'Error reading file' TYPE 'E'.
    ENDTRY.
    CALL FUNCTION 'SO_CONVERT_CONTENTS_BIN'
    EXPORTING
    it_contents_bin = it_content[]
    IMPORTING
    et_contents_bin = it_content[].
    CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
    EXPORTING
    region = 'B'
    IMPORTING
    folder_id = ls_fol_id
    EXCEPTIONS
    OTHERS = 1.
    ls_obj_data-objsns = 'O'.
    ls_obj_data-objla = sy-langu.
    ls_obj_data-objdes = p_desc.
    lv_offset = STRLEN( p_file ) - 3.
    ls_obj_data-file_ext = p_file+lv_offset(3).
    ls_obj_data-objlen = LINES( it_content ) * 255.
    CALL FUNCTION 'SO_OBJECT_INSERT'
    EXPORTING
    folder_id = ls_fol_id
    object_type = 'EXT'
    object_hd_change = ls_obj_data
    IMPORTING
    object_id = ls_obj_id
    TABLES
    objhead = it_objhead
    objcont = it_content
    EXCEPTIONS
    active_user_not_exist = 35
    folder_not_exist = 6
    object_type_not_exist = 17
    owner_not_exist = 22
    parameter_error = 23
    OTHERS = 1000.

  • Services for Object - Store Business Documents (issue with XLSX files)

    Hi,
    We are using the Services for Object > Store Business Document to be able to drag and drop files into (for example) Sales Inquiry, Sales Order, Sales Quotations etc.
    Within OAC2 we have set up the global document types and these have been linked to the relevant Object Types and Content Repositories in OAC3.  We have also set up the Content Repository as Document Area 'ARCHLINK'.
    The ArhciveLink Basic Settings in OAG1 have the 'Always Copy Document Class from Document Type' set under Storage Settings.
    The issue we are having is with XLSX document types.  When we drag and drop the XLSX documen type using the Store Business Document the file is stored against the Sales Order but when you come to view the attachments MS Excel opens but an error message appears saying 'Excel cannot open the file '******' because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file'?
    We have reviewed SAP notes 1925897, 1739026 and 1145885 however non appear to give me a clear answer as to why this is happening?
    I have found that if we unselect the option 'Always Copy Document Class from Document Type' in OAG1 then we can open the XLSX files.
    As we have a significant amount of documents attached to various objects, what would be the implications of making this change agianst existing records and new records?
    Any advice on this issue would be greatly appreciated.
    Gary B

    Hi David,
    No joy I'm afraid!!
    I added entry 'xlslx' with the relevant MIME Type, Application and Description into table TOADD for the ArchiveLink settings and also this entry was already in tables SDOKMIME and SDOKFEXT for KPro.
    I then following the process via the Services for Object within VA12 (Change Inquiry) to then Create > Store Business document > Select the relevant Document Type > Drag and Drop the XLSX file into the empty box.
    I then saved the record and tried to view the attachement but I am still getting the same message  'Excel cannot open the file '******' because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file'?
    Our client is on componet SAP_BASIS release 701 Support Level 0014 and Support Package SAPKB70114 and I can see that note 1237688 is for SAPKB70112?
    Regards
    Gary

  • RFC/FM to store Business document in Purchase Order from external system

    Hi All,
    I have been going through various threads for suitable solution, but could not find one which can meet our requirements. Appreciate, if you could share your expertise for the following requirement.
    Requirement: One of our external system is going to create/change Purchase Orders in SAP using  standard BAPI's (BAPI_PO_CREATE1,BAPI_PO_CHANGE etc.,). During this process, they would like to attach supporting documents (.pdf, .jpeg, .xls etc) as 'store business document' for the same PO. As per our current configuration, we can attach the documents as dialog user from ME22N/ME23N transaction and attached documents are stored in our IXOS/ Archive server.
    Is there any standard BAPI/FM (RFC) available to achieve above requirement?. And what are the parameters we need to pass in the FM to attach or delete documents.
    System Details: SAP ERP ECC6 & Netweaver 7.0
    Kind Regards
    Kumar
    Edited by: Kumar Guntha on Sep 4, 2009 7:15 AM
    Edited by: Kumar Guntha on Sep 4, 2009 7:17 AM

    Hi Friends
    Any sugestions?
    Regards
    Kumar

  • Activate the Content Server for purchasing

    Hello,
    I want to activate Content Server for PR/PO/RFQ?RFQ/SES/GR/SA/Contract.
    Followed the below mentioned step:
    1.  Configured the "Content Server" using transaction OAC0
    2. Created new document class using t-code OAD2
    3. Created / Activated new document type and associate the document class (T-code OAC2)
    4. Link Object type / Document Type / Content Repository and Link table (t-code OAC3)
    But still unable to see the "Store Business Document" navigator enabled in the Services for Object icon for PO (ME21N/ME22N/ME23N)
    Can anybody tell me if some thing i've missed out here?
    Thanks in advance

    Sap R/3 4.6C - CS630 (patch-lvl15)
    We do not use SapDB or MaxDB to store the document on the content server, we store the documents directly in the file system.
    Our Content servers run on win2003 servers.
    In my company we've currently got 15 different content servers in 10 countries.
    We've got one content server and one cache server at each location for one SAP system. One physical server has 2 content servers and 1 cache server. One for our SAP production system and one for our SAP Quality test system. They use the same cache server (first we created 2 cache servers, but it was not possible for SAP to destuingish between the two, so both cache servers got used by both SAP systems)
    We have also implemented a couple of add-ons:
    1. Conversion and viewserver (by Seal AG). conversion server converts office documents to pdf when documents are released. Currently use only 2 conversion servers, planning to increase when the volume gets larger.
    Viewserver adds stamps on pdf-files when you view or print a document.
    2. Document Distribution Manager (by CENIT AG). Makes it easy to schedule prefill of cache. Also possible to move documents from one storage category to another. And Rules for transfering documents from one site to another can be made (Ex. "not allowed to move files larger than 20 MB between <certain> sites")
    Perhaps I could be of assistance?
    BUT, anyway, the reason I post this is because I have problems upgrading my CS630 (lvl15) to CS640 (lvl6).
    Asked SAP via an OSS, and they said it was like a regular patching (stop webservice, copy *.dll files, and restart webservice). But when I try this, I can't get contact with the content server via CSADMIN in SAP. I get "HTTP error: 500 Internal Server Error"

  • Redirecting documents to seperate Content Server

    Hi all,
    We have set up a seperate content server to store attachments to business activity documents. Currently our systen is set up to save the documents to the content server in the CRM box's web AS. How can I redirect the documents to the new server. How can I verify the documents are being saved to it. I have completed all the installation steps in the "Content Server for Win 6.30 Installation guide". I am using CRM 3.0

    Hello,
    Table SOFFCONT1 attachments are stored that are recorded in the database logic of sap. That is if the id of the document not find it in this table means that you are storing away in a content server.
    I've gotten crm attachments the content stored on a server.
    The first thing I have done is create a content server-class CRM. OAC0 in, then I created the category AOCT taking the content. CSADMIN and I found that the content is running.
    In transaction SKPR08 BDS_POC1 class I have assigned to the Z-server content that I created. and in all kinds of CRM type I have assigned the new Z category I created.
    After the transaction SBDSV2 I created a new record with BUS1006 in this case because it was a contact in CRM and I have given the document class Z BDS_ATTACH the category of content.
    The object (BUS) is obtained by a trace of the transaction and SWELS - SWEL (with some modification from the transaction in which I attach the document).
    In SBDSV1 I've got to bus1006 BDS_LOC1 class.
    And with that I have solved the problem.
    Edited by: chuso100 on Apr 28, 2010 1:28 PM
    Edited by: chuso100 on Apr 28, 2010 1:29 PM

  • Netwearver WAS version 640 of the content server for PLM DMS

    Hi,
    We have SAP R/3 4.7 version & have implemented PLM-DMS with content server on WAS620.We are contemplating to use distributed content server for our requirement. Has anyone used multiple content servers? if so, could you please share your experiences.
    Also, if anyone has anyone upgraded the content server to version 640, i would like you to share your experiences with me.
    Thanks,
    Viji
    [email protected]

    Sap R/3 4.6C - CS630 (patch-lvl15)
    We do not use SapDB or MaxDB to store the document on the content server, we store the documents directly in the file system.
    Our Content servers run on win2003 servers.
    In my company we've currently got 15 different content servers in 10 countries.
    We've got one content server and one cache server at each location for one SAP system. One physical server has 2 content servers and 1 cache server. One for our SAP production system and one for our SAP Quality test system. They use the same cache server (first we created 2 cache servers, but it was not possible for SAP to destuingish between the two, so both cache servers got used by both SAP systems)
    We have also implemented a couple of add-ons:
    1. Conversion and viewserver (by Seal AG). conversion server converts office documents to pdf when documents are released. Currently use only 2 conversion servers, planning to increase when the volume gets larger.
    Viewserver adds stamps on pdf-files when you view or print a document.
    2. Document Distribution Manager (by CENIT AG). Makes it easy to schedule prefill of cache. Also possible to move documents from one storage category to another. And Rules for transfering documents from one site to another can be made (Ex. "not allowed to move files larger than 20 MB between <certain> sites")
    Perhaps I could be of assistance?
    BUT, anyway, the reason I post this is because I have problems upgrading my CS630 (lvl15) to CS640 (lvl6).
    Asked SAP via an OSS, and they said it was like a regular patching (stop webservice, copy *.dll files, and restart webservice). But when I try this, I can't get contact with the content server via CSADMIN in SAP. I get "HTTP error: 500 Internal Server Error"

  • How can I get INSTID_B for the documents which are stored using Store Business Document functionality

    Dear experts,
    I had activated the functionality of Store Business document and successfully stored documents in external server.
    My client have a custom function module which is used to send emails.In that FM they used SO_DOCUMENT_READ_API1, SO_DOCUMENT_SEND_API1 function modules.They passed Instance Ident(SRGBTBREL->INSTID_B)(eg: FOL33000000000004EXT39000000000026) as export parameter to the FM 'SO_DOCUMENT_READ_API1' and get the attachment details and content.
    Here my problem is I do not have entries in the table SRGBTBREL for the documents which are stored using the Store Business Document functionality and without INSTID_B I am unable to use the FM 'SO_DOCUMENT_READ_API1' to get the document details and content. Please help me to find INSTID_B for documents which are stored using Store Business Document functionality or please let me know if there is any other way to use FM 'SO_DOCUMENT_READ_API1' for documents which are stored using Store Business Document.
    Thanks in advance.
    Regards,
    Kiran

    Hi Kiran,
    You can use the following method to get the information. For example if you want to get BO documents for a customer
    CALL METHOD cl_binary_relation=>read_links
       EXPORTING
         is_object           = ls_lpor
         it_relation_options = lt_relat
       IMPORTING
         et_links            = lt_links.
    then fill  ls_por-instid with a customer number (KUNNR), ls_por-typeid = 'KNA1' and ls_por-catid = 'BO'.
    Table  lt_relat should contain a line option  for each document type (for example 'I' 'EQ' 'NOTE', 'I' EQ 'ATTA', 'I' EQ 'URL', ...
    In table lt_links you will get your information.
    Maybe some other methods of class CL_BINARY_RELATION may also solve your issue.
    Regards,
    Klaus

  • GOS - Store business document - creator name

    Hi All,
    I am attaching archive documents to BUS2081 - Invoice.
    I am doing it thru FBD3 transaction.
    I am using Generic Object services toolbar to attch the document.
    When I attach thru Attachment button and display by clicking on the attachments list, it is showing Creator name as my ID.
    But If I attach thru Store Business document and display it thru  attachment list, Creator name is blank. But client want to see the creator name also in the display.
    Any one has idea about this? I am not able to understand whether it is capturing my ID or not when I attach thru Store business document.
    Your help is much appreciated.
    Thanks,
    Bhavani

    Hi Seema,
    I had a look at this weblog. This is if I have to implement the functionality from Background.
    But I am attaching a document by using Storebusiness document link in the GOS toobar via frontend.
    This is late archiving.
    At this point of time if I display the attachments, it is not showing the creator name for the documents attached via the link "Store Business document" . But if I attach through "create attachment" it is displaying the creator name.
    I am wondering why it is not taking creator name, did I miss any configuration part?

  • Using Store Business Document on parked FI documents

    When an FI document is parked the Store Business Document is not active. I have searched for config where this can be turned on, but I can not find anything. Is there a way to store atachments to an SAP document before it is posted? We are using ArchiveLink with FileNet on the backend to store the attachments. Thank you.

    Hello Ben
    You can Link A document Created in SAP DMS to your FI Document ( Invoice ), Provided it is standard Object Provided by SAP. Ther is standard object available such as Material, BOM, PO,  PR, SO etc which you can link to a document in DMS.
    I think you will have to do developement for this.
    please visit this URL for your reference
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/b2/c043a66fab11d1949500a0c92f024a/content.htm
    With regards
    Mangesh Pande

  • Generic Object services : Store business Document in VA03

    Hello Everybody,
    I  want to store business document in VA03, using SAP archive link.
    To get service object toolbox I had been added SD_SWU_ACTIVE = X for my user.
    Now the Toolbox appears, but the Store Business Document function is not activated.
    Could you explain to me, how to activate this functionnality for this document type (BUS2032) ?
    Regards.

    Hi Kenneth,
    For the Store Business Document option appear at GOS buttom:
    1) Check that in the OAC3 entry with Bussines Object are 'X' at field 'S' (Status)
    2) The Bussines Object are generates on SWO1 transaction.
    Can you upload any document to the repository to slant OAAD transaction??
    Best Regards

  • Store business document inactive in transaction CJ20N

    Hi,
    The option "Store Business Document" is inactive in the transaction CJ20N.
    I saw a couple of forums that said that I have to create an archive link for this but I don't know for example what "Object Type" I can use for this in the transaction "OAC3" or what steps I have to follow to enable this option.
    Thanks for the help!

    Hi,
    I think that I figure it out how can I activate the "store business document" using your comments and this forum:
    Activate GOS business application for object PREL
    Now, my question is, could I use any TOA0# table when I'm creating an object type in the transaction OAC3?
    I saw that in my system I have the tables TOA01, TOA02 and TOA03 created but these tables contains entries.. is ok if I use for example TOA01 for the "Object type" that I have to create?
    Thanks for the help!
    Carlos

  • CHiP BSSP_ATTACHMENTS store business document

    I added the CHiP BSSP_ATTACHMENTS to my custom web dynpro application.  I got it to work, but the attachments attach to the content server.  We want the attachments to go to the archive server (i.e. IXOS).  To do this manually, you would to the GOS menu and choose 'Store business document'.  I believe the CHiP is using the GOS menu item 'Attach' which stores to the content server (SAP database).
    Anyone know how I can tell the CHiP to store to the archive server instead?
    Thanks.

    Hello,
    For your requirement, you should have ArchiveLink configuration...
    Below are the step you should perform for Late Document Archiving
    > Create Document Type and assign document class in transaction OAC2
    >> Assign Content Repository, Link table to your Business object type and document type in transaction OAC3.
    After this you can perform Late document archiving in FB32 transaction with help of GOS = Generic object service.
    Steps in GOS - Select Create > Click on Store Business document >> Select your document type and attach required image. This will help in storing incoming or outgoing documents for your business transactions in archive server through content repository assigned to document type.
    Note: Above works if Archive Infrastructure in place & connected to SAP system. If not then directly you can attach the incoming and outgoing documents to your business transaction so that all the attachment will be stored in SAP database.
    Hope this information will help you.
    -Thanks,
    Ajay

Maybe you are looking for