Creating smartform from attachment list of service object

Hi,
   How can i create a smartform containing attachment list from generic object services(active workflow Box) in tcode VA02, Also let me know in which table this attachment lists are stored.
Thanks,
   JP

I found following Solution:
I copied the following classes and changed them in some way to fit my requirements:
1.CL_GOS_ATTACHMENTS
2.CL_GOS_SRV_ATTACHMENT_LIST
3.CL_LIST_BROWSER
Changes to the Classes:
1.Type of the attribute GO_INSTANCE changed to ZCL_GOS_ATTACHMENTS.
   Changed method INIT_BROWSER:
go_browser ?=
    zcl_list_browser=>zcreate_browser( cl_browser=>gc_list_browser ).
2.Type of the attribute GO_ATTACHMENT_LIST changed to ZCL_GOS_ATTACHMENTS
3. Copied Method CREATE_BROWSER of Class CL_BROWSER to ZCREATE_BROWSER:
method zcreate_browser.
  case ip_btype.
    when gc_list_browser.
      *create object ro_browser type zcl_list_browser.*
    when gc_tree_browser.
      create object ro_browser type cl_tree_column_browser.
    when others.
      raise exception type cx_sobl_browser
        exporting
          gp_error = cx_sobl_browser=>gc_wrong_type
      exit.
  endcase.
endmethod.
Modified the code of method ___DISPLAY to my needs.

Similar Messages

  • Disable pushbuttons from Attachment list for Service Object

    Hi,
    I want to disable push buttons for delete and edit from the toolbar of Attachment list from service objects.
    how can this be achieved ?
    thanks in advance.
    Best Regards,
    Vinayaka

    Hi Sandeep,
    I am not totallt getting your point but can suggest following points:
    1. Check whether these object are displaying in DIR's as object links.
    2. If it is there then it shoud be displayed in document data of those objects.
    3. Check that documents are properly checked-in.
    Hope this may help.
    Regards,
    Ravindra

  • Attachment list in Services for Object toolbar

    Does anybody know if there is any user exit or BADI that I can use to filter certain file attachments in Attachment list of Services for Object toolbar.
    For example, in transaction XK03 (Vendor display), Services for Object toolbar, you can see the Attachment list and it will display list of pc file attachments, however, we have a requirement to display only those that met certain criteria, is there any BADI or user exit for this?
    Thanks in advance for your help.

    you can use BADI
    GOS_SRV_SELECT
    for this.
    Regards
    Raja

  • 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

  • Attached files with Services objects in a equipment

    Hi everyone
    I have many attached files in functional locations and equipments, using the attachment list of "Services for objects" (files and URL's).
    Also, we are moving the maintenance structure to other server and the user dont want to lose the attachments.
    Do you know a program(s) or function(s) for downloading the files and upload them again?.
    Do you know if exists a server directory with all files attached in functional locations or equipments?
    Thanks for suggestions.
    RG

    CALL FUNCTION 'SO_OBJECT_DOWNLOAD'

  • Changing the Attachment List of Generic Object Services (GOS)

    Dear Experts,
    i want to add columns to the attachment list of GOS depending of the given objecttype. The data to be displayed is from a customer-append of different TOAXY-tables. I want to use the functionality of the standard attachmentlist, but the type of the displayed table is defined as SGOS_ATTA and cant be reached directly because of the data-encapsulation.
    Is there anybody with experience in changing the attachment list in the above mentioned way?
    Do i have to modify all the used classes of the attachmentlist, or are there any customer-exits/badis that can help me to reach my goal?
    Or should I implement my own service from the scratch?
    I hope you can help me, i searched the web for about 3 days now...

    I found following Solution:
    I copied the following classes and changed them in some way to fit my requirements:
    1.CL_GOS_ATTACHMENTS
    2.CL_GOS_SRV_ATTACHMENT_LIST
    3.CL_LIST_BROWSER
    Changes to the Classes:
    1.Type of the attribute GO_INSTANCE changed to ZCL_GOS_ATTACHMENTS.
       Changed method INIT_BROWSER:
    go_browser ?=
        zcl_list_browser=>zcreate_browser( cl_browser=>gc_list_browser ).
    2.Type of the attribute GO_ATTACHMENT_LIST changed to ZCL_GOS_ATTACHMENTS
    3. Copied Method CREATE_BROWSER of Class CL_BROWSER to ZCREATE_BROWSER:
    method zcreate_browser.
      case ip_btype.
        when gc_list_browser.
          *create object ro_browser type zcl_list_browser.*
        when gc_tree_browser.
          create object ro_browser type cl_tree_column_browser.
        when others.
          raise exception type cx_sobl_browser
            exporting
              gp_error = cx_sobl_browser=>gc_wrong_type
          exit.
      endcase.
    endmethod.
    Modified the code of method ___DISPLAY to my needs.

  • 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

  • Attachment list for business objects is not visible

    Dear all
    I have connected an external server to SAP.
    Created repository and created Doc types (say for ex : ZFIINV,  ZMM DRW) and created entries using tcode OAC3
    now i have assigned my doc type to corresponding Business Objects (BKPF for accounting doc,BUS2105 for purchase requisition ,MKPF for MM related docs)
    now i have created entries for my scanned docs in table TOA01.
    i can search an display these docs which are already placed  there in my content server. but i can not see these documents links entries in the attachment list of corresponding Business objects entries.
    for example in BO : BKPF  attachment list i cant see al the link entries .
    please suggest whether any BO is not published or R/3 application connection to the generic object service is not done?
    thanks sandeep

    Hi Sandeep,
    I am not totallt getting your point but can suggest following points:
    1. Check whether these object are displaying in DIR's as object links.
    2. If it is there then it shoud be displayed in document data of those objects.
    3. Check that documents are properly checked-in.
    Hope this may help.
    Regards,
    Ravindra

  • Error creating document from using list using Document Template

    Hi All,
    I am trying to create a document from sharepoint list and upload it to a document library using item added and item updated event receiver methods. I can create metadata from list update in document library but unable to open the document. The error message
    I get is "we're sorry. we can't open "Filename" because we found a problem with its contents. no error detail available". Please see the below code.
    SPSecurity.RunWithElevatedPrivileges(delegate()
                       try
                           string TemplateUrl = string.Empty;
                           SPWeb web = properties.OpenWeb();
                           web.AllowUnsafeUpdates = true;
                           SPDocumentLibrary olist = web.Lists["NewLibList"] as SPDocumentLibrary;
                           String url = olist.RootFolder.ServerRelativeUrl.ToString();
                           SPFile file = null;
                           file = web.GetFile(olist.DocumentTemplateUrl);
                           if (file != null)
                               SPListItem oItems = properties.ListItem;
                               web.AllowUnsafeUpdates = true;
                               byte[] readStream = file.OpenBinary();
                               SPFile uploadedFile = olist.RootFolder.Files.Add("http://site/subsite/Libraryname/" + properties.ListItemId.ToString() + ".docx", readStream,
    true);
                               SPListItem listitem = uploadedFile.Item;
                               listitem["Firstname"] = oItems["Firstname"];
                               listitem["Lastname"] = oItems["Lastname"];
                               if (uploadedFile.CheckOutType != SPFile.SPCheckOutType.None)
                                   uploadedFile.CheckIn(string.Empty);
                               listitem.Update();
                               uploadedFile.Update();
                               web.AllowUnsafeUpdates = false;
                       catch (Exception ex)
                           EventLog.WriteEntry(EventLogName, ex.Message, EventLogEntryType.Error);

    Hi,
    Please try to use the code below:
    SPSecurity.RunWithElevatedPrivileges(delegate()
    try
    string TemplateUrl = string.Empty;
    SPWeb web = properties.OpenWeb();
    web.AllowUnsafeUpdates = true;
    SPDocumentLibrary olist = web.Lists["NewLibList"] as SPDocumentLibrary;
    String url = olist.RootFolder.ServerRelativeUrl.ToString();
    SPFile file = null;
    file = web.GetFile(olist.DocumentTemplateUrl);
    if (file != null)
    SPListItem oItems = properties.ListItem;
    web.AllowUnsafeUpdates = true;
    Stream readStream = file.OpenBinaryStream(); //file is SPFile type
    SPFile uploadedFile = olist.RootFolder.Files.Add("http://site/subsite/Libraryname/" + properties.ListItemId.ToString() + ".docx", readStream, true);
    uploadedFile.CheckOut();
    SPListItem listitem = uploadedFile.Item;
    listitem["Firstname"] = oItems["Firstname"];
    listitem["Lastname"] = oItems["Lastname"];
    listitem.Update();
    uploadedFile.Update();
    uploadedFile.CheckIn(string.Empty);
    web.AllowUnsafeUpdates = false;
    catch (Exception ex)
    EventLog.WriteEntry(EventLogName, ex.Message, EventLogEntryType.Error);
    If the issue still exists, I suggest you dubug your code and check whether line of code error.
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Missing "creator name" and "created time" on attachment list in ordrer

    Hi all,
    When printing an order (in VA01, 02, 03) with storage mode: archive only, and then display the document in "Displ.Originals", the creator and creation time are blank (in Attachment list pop-up).
    How to complete these fields?
    Regards,
    Misha

    This project was left aside for a while... but it's now finished!
    Thank you for the answers. It was helpful.
    Here is a step-by-step of what I did (using Adobe Acrobat 9.5.1):
    Open PDF document in Acrobat
    Select Forms -> Add or Edit Fields
    Add two text fields: one called "Today" for the date and one called "Printer" for the printer name
    Close the form editing
    Select Advanced -> Document Processing -> Set Document Actions...
    Then select Document Will Print and Edit
    Paste the following code:
    var f = this.getField("Today"); f.value = util.printd("dd mmm yyyy - HH:MM", new Date());
    var pp = this.getPrintParams();
    this.getField("Printer").value = pp.printerName;
    Save your PDF
    Enjoy!
    The date and printer name field will be automatically updated when you print the document!

  • B1isn BO2BO from sql to DI Service object

    Hi,
    I'm trying to transform an object, when the sender object is J.AnySystem type, and the reciever is a DI API of type Service.
    I got to this situation because I'm trying to do initialize one company with all Project service of another Company.
    So I get all objects as J.AnySystem, and my reciever object type is a generated object of service type.
    I have a problem with my xsl file. all messages fail, and I think the problem is because the namespace.
    In the Guid 04, 7.3.3 I see that the sender element is in the namespace of JDBC.
    I think that the recieves element should be with no namespace.
    Can someone help me what is the problem in the xsl?
    below is the XSL, the error message and the message that was passed.
    Thanks,
    Chana
    This is my xsl:
    <xsl:template match="b1im:B1IMessage/b1im:Body/b1im:Payload[./@ObjectTypeId=&apos;Z.J.AnySystem_InitProjectsService&apos;]">
        <!--<xsl:copy-of select="./*"></xsl:copy-of>-->
        <xsl:element name="BS">
          <xsl:attribute name="ServiceCode">
            <xsl:value-of select="/b1im:B1IMessage/b1im:Header/b1im:Receiver/*[local-name()='ObjectType']/@LocalObjectType"/>
          </xsl:attribute>
            <InsertOrUpdate  xmlns:jdbc="urn:com.sap.b1i.adapter:jdbcadapter">
              <Project>
                <Code>665543</Code>
                <Name>665543</Name>
              </Project>
            </InsertOrUpdate>
        </xsl:element>
      </xsl:template>
    And I get this error:
    Exception : java.lang.RuntimeException: Wrong parameter under the path 'Body/BS'
    The message is::
    <?xml version="1.0" encoding="utf-8"?>
    <b1im:B1IMessage xmlns:b1im="urn:com.sap.b1i.sim:b1imessage" xmlns:b1il="urn:com.sap.b1i.sim:b1ilog" xmlns:bfa="urn:com.sap.b1i.bizprocessor:bizatoms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" IPOdispatcher="" MessageId="11012714410554626398C3C30A92058F" BeginTimeStamp="20110131134829" LogOn="true" Validity="true" SubMessageId="1">
    <b1im:Header>...</b1im:Header>
    <b1im:Body>
        <b1im:Payload ObjectTypeId="Z.J.AnySystem_InitProjectsService" ObjectRole="S">
          <Row xmlns="urn:com.sap.b1i.adapter:jdbcadapter">
            <PrjCode>363636</PrjCode>
            <PrjName>363636</PrjName>
            <Locked>N</Locked>
            <DataSource>I</DataSource>
            <UserSign>1</UserSign>
            <U_Account/>
            <U_incomeAccount/>
            <U_SHPrj>N</U_SHPrj>
          </Row>
        </b1im:Payload>
        <b1im:Payload ObjectTypeId="Z.B1.2007_ProjectsService" ObjectRole="R">
          <BS ServiceCode="63">
            <InsertOrUpdate xmlns:b1ie="urn:com.sap.b1i.sim:b1ievent" xmlns:jdbc="urn:com.sap.b1i.adapter:jdbcadapter" xmlns:rfc="urn:sap-com:document:sap:rfc:functions" xmlns:targetxsl="http://TargetXSLPrefixAlias">
              <Project>
                <Code>665543</Code>
                <Name>665543</Name>
              </Project>
            </InsertOrUpdate>
          </BS>
        </b1im:Payload>
      </b1im:Body>
    </b1im:B1IMessage>

    Hi Carlos,
    the problem you suggest is caused every time you run windows xp update (from Ms Web site) procedure or install something for OS (eg: Sdk 1.1).
    To fix you have to:
    1) uninstall DI Server, Server tools, SDK.
    2) delete the SM_OBS_DLL directory (in your temp directory c:\documents and settings\"user"\local settings\temp (check show folders and files on options))
    3) reinstall DI Server, Server tools, SDK.
    That's all.
    Fausto

  • Disabling delete button in service object list fom VA03

    Hi all,
    i want to disable the delete and change button in attachment list of service object list (GOS) IN T CODE  VA03.
    I have found that it can be done by modifying the method  CHECK_STATUS of class CL_GOS_SRV_ATTACHMENT_LIST,
    and then calling it in t code  SGOS.
    i have copied this class to a Z CLASS but unable to modify the method it asks for access key.
    any help is highly appreciated with example.
    thanks,
    pankaj gupta

    Hello,
    The authorizations in GOS has nothing to do with the authorization in
    application level, e.g. in VA03. In standard you can use the new
    authorization object S_GOS_ATT from SAP note: 1293080.
    Otherwise:
    A possible workaround could be the following:
    Without an authorization the attachments are only deletable by the
    owners or by users with sapoffice administrator authorization. If you
    do not give users this sapoffice admin authorization, than only the
    owners are able to delete the attachments. See SAP note: 552127
    (point 3).
    OR due to a modification some functionalities can be restricted.
    For more information you can read the SAP note: 491271.
    Regards,
    David

  • Show originally filename in attachment list (generic object services)

    Hello everybody,
    does anybody know, if it is possible to show the originally filename of a document in the attachment list of generic object services?
    If I add more than one document for the same document type in generic object services, I'm not able to distinguish the documents.
    When I want to save an attachment to local PC, SAP offers me the originally filename as default. Therefore, the filename has to be saved somewhere...
    Thanks for any help or ideas in advance,
    Peter

    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

  • Is there anyway to create a xml file from a list so that xml file is available like an RSS.xml

    Hello
    My objective is to have a xml file created from a list for anonymous access.  The SharePoint RSS feed is a .aspx file not xml, as shown below: 
    _layouts/listfeed.aspx?List=21c2cdaa%2D52f3%2D4057%2Db674%2D45e63ba77e31&View=535eb328%2Db5fb%2D45c5%2D8fe8%2Da130e92afc41
    Also, is there a way to do this so that the xml content has current data like the list.
    Thank you for any insight and direction.

    Hi,
    According to your post, my understanding is that you wanted to create a xml file from a SharePoint list.
    To generate a XML file, we can use the SharePoint Object Model or PowerShell to achieve it.
    Generate a hierarchical XML file from SharePoint list using Client Object Model.
    http://maxderungs.wordpress.com/2012/05/12/generate-a-hierarchical-xml-file-from-sharepoint-list/
    Get SharePoint list items and export them to XML using PowerShell
    http://www.robertkuzma.com/2012/09/get-sharepoint-list-items-and-export-them-to-xml-using-powershell/
    More reference:
    http://www.robertkuzma.com/2010/08/how-to-create-a-custom-xml-output-using-sharepoint-services-3-0/
    http://traceynolte.com/blog/convert-sharepoint-list-to-xml/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Need authorization for business document services attachment list with user status in ps claim for clm2 and clm3

    Dear Friends,
    client wants to restrict the attachment list changing, deletion after the user status sets to close in PS Claims for transaction clm2 and clm3.
    Currently any one can attach documents as GOS and delete even the claim is completed and status is closed.
    How can we restrict all users even who created the claim can not change create and delete attachment list documents once the claim is completed and approved and user status sets to closed.

    HI,
    what is the claim creation transaction in that 01 is for creation 02 is for edit and 03 for display so with the help of basis consultant you can assigned transaction in user's assigned role accordingly.
    But user who is authorize for create claim can not modified or edit once he save the job. this would be limitation.
    Regards,
    Sanjeev

Maybe you are looking for

  • Unit of Measure PCE is not an ISO Code

    Hi MDM Experts, We experienced problems in transferring the Catalog item to the shopping cart. The following error message appears: "Incomplete items in catalog. Only complete items were transferred " I checked SLG1 for the OCI error message and foun

  • To XSL or not to XSL, that is the question

    Hi, I'm still having problems working out which bits of XSL will work or not with BI Publisher. I have an element called tchYr which may have a value of: 'Teaching Year 2008/09 MT Start' 'Teaching Year 2009/10 MT Start' If the second year component i

  • Why wont my windows recognize my network interface?

    When running windows 7 using bootcamp windows wont recognize my network interface and i dont seem to be able to find any drivers for it online. Ive updated bootcamp to 3.2 and still nothing, also my magic mouse stopped working in windows after updati

  • My Mac air will boot up

    I can not get my Mac sir to start

  • Project System Datasource for Tendering process

    Hi , My client wants to see some reports based on contracts/tenders like when contract was floated and when it was closed . Can you please guide me to datasource from where I can get this information. Regards John