Attaching documents using object services

Hello,
Are there any performance/sizing guidelines for utilizing the object services function to attach documents to service orders, notification, equipment, etc?
Our users would like to do this, and I am concerned about performance.
chris

Hi Chris,
from the document point of view I do not know any restrictions which lead to a loss in performance if you attach more documents to a service order or something else.
Best regards,
Christoph

Similar Messages

  • Link IDoc to FI document using Object Services

    We are using a custom IDoc to post financial documents to the R/3 system. There is a requirement to determine the IDoc number that created the accounting document as happens automatically with Incoming Invoices (object type BUS2081).
    I'd like to form the link between the IDoc and the Financial document using Generic Object Services so that the Relationships functionality in transaction FB03 can be used. Does anyone know how I can form the link between the IDoc and the Accounting document when posting the document? We use BAPI_ACC_DOCUMENT_POST to post the Accounting document.
    Thanks in advance for any help.
    Regards,
    JB

    call function 'BDS_BUSINESSDOCUMENT_CREA_URL'
          exporting
            logical_system = logical_system
            classname      = classname_select
            classtype      = classtype_select
            client         = sy-mandt
            object_key     = objkey_select
          tables
            uris           = i_uris
          exceptions
            error_kpro     = 1
            internal_error = 2
            others         = 3.
        if sy-subrc <> 0.
          message id sy-msgid type sy-msgty number sy-msgno
                  with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        endif.
    for logical_system use FM OWN_LOGICAL_SYSTEM_GET to get your logical system name.
    class name= BKPF
    classtype = BO
    object_key = <companycode><doc number><year> e.g 011000001234562007
    in uris talbe pass the urls to be created.
    Raja

  • Storing documents using Object Services

    Hello,
    Does anybody know how to activate the Menu Entry 'Store Business Document' ?
    Thank you ,
    Aranka

    Hi Chris,
    from the document point of view I do not know any restrictions which lead to a loss in performance if you attach more documents to a service order or something else.
    Best regards,
    Christoph

  • Attach Documents using Generic Object Services

    With reference to Manual Bassani's SDN Contribution of code examples on how to attach documents using Generic Object Services - we have found that since implementing ECC 6 the following code no longer works (at the end of page 9):
    CALL CREATE ATTACHMENT SERVICE FROM TOOLBAR
    WHEN 'ATTACH'.
    CALL METHOD MANAGER->START_SERVICE_DIRECT
    EXPORTING
    IP_SERVICE = 'CREATE_ATTA'
    IS_OBJECT = OBJ
    EXCEPTIONS
    NO_OBJECT = 1
    OBJECT_INVALID = 2
    EXECUTION_FAILED = 3
    OTHERS = 4.
    It is necessary to use IP_SERVICE = 'PCATTA_CREA' to get this to function correctly.
    The original document can be found at [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3]

    Check the Naimesh Patel Blog he explain very well
    http://help-abap.blogspot.com/2009/02/generic-object-services-gos-toolbar.html

  • How to Upload documents using Gateway Service in SAP UI5?

    Hi Team,
    How to upload documents using Gateway Service in UI5 app.
    This is Attachment Functionality.using Gateway Service in Controller.JS/View.JS.
    Thanks in Advance.
    Regards,
    Satya

    Hi,
    I suggest you use the search function on scn/google...
    Anyways, here are some usefull links:
    How To Upload and Download Files Using SAP NW Gateway SP06
    Uploading files to SAP using HTML5 /AJAX/Gateway media links with real-time progress bar
    Kind regards,
    RW

  • How do I edit a scanned document using Adobe services?

    how do I edit a scanned document using Adobe services?

    To edit a document you will need Acrobat Pro.

  • How to attach document using Generic Object Service

    Hi all,
    How can i create attachment to the parked invoice using Generic Object services? i want function modules which are used to do it.
    Actually I want to do this from the business object method. I am having word document as one of the workitem step. once i get this document I need to attach this document to the parked invoice so that users can see that document by view object list.
    Its urgent.
    thanks.

    Hello,
    Check your configuration of document type assignement to required business document - object type, Archivelink table, content repository in OAC3 transaction.
    Goto respective business document > Click on GOS > Create > Store business document - Here you can see defined document type with desctiption. Double click on this the assign your document to this business document. Save it.
    This will help in attaching the document to your required business document.
    To verify you can check the archivelink table or by transaction OAAD.
    Hope this will help you.
    -Thanks,
    Ajay

  • 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

  • Authorization Object for using Object Services

    Can you tell me how to limit a users authorization to create or delete attachements using the object services functionality?  We'd like to control the addition and deletion of the attachments.  Is there a specific authorization object for this functionality?
    Thank you, Julie

    Hi julie;
    I hope that following are the solution for you problem. Check wheather this is helpful to you or not.
    Authorization Object C_DRAW_BGR (Authorization Group)
    The following table shows authorization object C_DRAW_BGR. This authorization object allows you to limit access to individual documents.
    Fields      Possible Values      Description
    BEGRU (Authorization group)      0000 - ZZZZ      Used to restrict the authorizations for document maintenance further.
    Authorization object C_DRAW_BGR can be used to restrict access to individual documents. It works like a simple on/off switch. If the check of object C_DRAW_BGR is fine, the user's authorization can be further restricted by checking C_DRAW_TCD (check only based on the document type) or C_DRAW_TCS (check of the
    combination of document type and status). At the fifth level there is a BADI called DOCUMENT_AUTH01, which you can use to design your own authority check.
    Authorization Object C_DRAW_DOK (Document Access)
    The following table shows authorization object C_DRAW_DOK. This authorization object controls which original data of a specific document type there are access authorizations for.
    Fields      Possible Values      Description
    ACTVT (Activity)      52 53 54 55 56 57      Change application start Display application start Display archive application Change archive application Display archive Store archive
    DOKAR (Document type)            Here you enter the document type that access to original data is allowed for.
    Authorization Object C_DRAD_OBJ (Object Link)
    The following table shows authorization object C_DRAD_OBJ. This object controls which users can process which document info records, based on a combination of activity, object, and status.
    Fields      Possible Values      Description
    ACTVT (Activity)      01 02 03 06      Create Change Display Delete
    DOKOB (Object)            You must enter the data base table for the objects here (for example, MARA for material record).
    STATUS (Document status)
    if useful rewards points.           
    Regards,
    nitin
    Edited by: nitin bhagat on Feb 18, 2008 6:23 AM

  • When attaching documents using GOS send them with workflow

    Hello experts,
    I have a scenario. We have to attach documents to SAP application using GOS. These documents can be edited also.
    Now second part is that when we attach the document or edit the document, the document should be send with the work item "when we attach the document".
    The first part of the scenario is completed and working fine. The second part of the scenario is causing problem. I have checked the various options but none of them are proving helpful.
    There is an option in GOS toolbar to send the documents through workflow but that also asks for the related workflow.
    I was trying to create an event for GOS object which can trigger the workflow automatically when the attachment are created and edited but can not go further with it as not so strong in workflow.
    I request you to kindly help me either in creating this event which will trigger the workflow (whole process) or any other method to do the same.
    Thank you all in advance.

    Hello Andrés,
    Thank you for replying. The main problem is starting the workflow. For that I need to create an event and that is my biggest trouble. I have seen the object IFSAP already. There are no events in it and as such I have created my custom object as super type.
    So I need to create the event from scratch.
    Hope my requirement is clear.
    Thank you.
    Edited by: Apoorv Lohani on Feb 3, 2012 7:54 AM

  • Create Attachment through Generic Object Services (BC-SRV-GBT)

    Hello experts,
    I have one question about a storing of document in this functionality. As you know there are several ways of storing a document to some object.
    1. Using the menu: "Create - Create Attachment"
    2. Using the menu: "Create - Store  Business Document"
    In the first case the document will be saved in SAP Database (Please correct me if I mistake). In the second case an optical archive must be connected to the SAP System.  Can I use an optical archive in the first case?
    PS. When I use the second way I don't see the name of document in the Attachment List. If use  "Create - Create Attachment" - it is OK.
    Thanks advance for any help.
    Your faithfully,
    Alekseev Aleksandr
    Edited by: Aleksandr Alekseev on May 5, 2008 6:05 AM

    Hi Friend,
      You have posted your query in wrong forum.
      Pls post your query in BPM and Workflow Forum.

  • Unable to checkin a document using 'CHECKIN_UNIVERSAL" service through java

    Hi All,
    I am trying to checkin a document through java code and following is my code part for the same( UCM 11g)
    But whenever i run this code part, it throws the following exception
    intradoc.common.ServiceException:csUnableToCheckin,<null>!csUnabletoExecMethod,populateMissingDocumentValues
    Can anyone help me with this?
    Code part
    private void checkinDoc()
    File f=new File("D:/testfolder/BPEL.pdf");
    System.out.println(" absolute path :"+f.getAbsolutePath());
    String filePath = f.getAbsolutePath().replace("\\", "/");
    checkedOutDataBinder.putLocal("IdcService", "CHECKIN_UNIVERSAL");
    checkedOutDataBinder.putLocal("dDocTitle","test");
    checkedOutDataBinder.putLocal("dDocAuthor", "weblogic");
    checkedOutDataBinder.putLocal("dDocType","Document");
    checkedOutDataBinder.putLocal("dSecurityGroup","public");
    checkedOutDataBinder.putLocal("doFileCopy", "1");
    checkedOutDataBinder.putLocal("primaryFile", filePath);
    checkedOutDataBinder.putLocal("xCollectionID", "425180507509000004");
    checkedOutDataBinder = executeService(checkedOutDataBinder,
    "weblogic");
    private DataBinder executeService(final DataBinder binder,
    final String userName) throws DataException, ServiceException
    // obtain a connection to the database
    Workspace workspace = getSystemWorkspace();
    // check for an IdcService value
    String cmd = binder.getLocal("IdcService");
    if (cmd == null)
    throw new DataException("!csIdcServiceMissing");
    // obtain the service definition
    ServiceData serviceData = ServiceManager.getFullService(cmd);
    if (serviceData == null)
    throw new DataException(LocaleUtils.encodeMessage(
    "!csNoServiceDefined", null, cmd));
    // create the service object for this service
    Service service = ServiceManager.createService(serviceData.m_classID,
    workspace, null, binder, serviceData);
    // obtain the full user data for this user
    UserData fullUserData = getFullUserData(userName, service, workspace);
    service.setUserData(fullUserData);
    // binder.m_environment.put(REMOTE_USER, userName);
    ServiceException error = null;
    try
    // init the service to not send HTML back
    service.setSendFlags(true, true);
    // create all the ServiceHandlers and implementors
    service.initDelegatedObjects();
    // do a security check
    service.globalSecurityCheck();
    // prepare for the service
    service.preActions();
    // execute the service
    service.doActions();
    // do any cleanup
    service.postActions();
    // store any new personalization data
    // service.updateSubjectInformation(true);
    //service.updateTopicInformation(binder);
    catch (ServiceException e)
    error = e;
    e.printStackTrace();
    finally
    // Remove all the temp files.
    service.cleanUp(true);
    workspace.releaseConnection();
    // handle any error
    if (error != null)
    // throw new ServiceException(error.m_errorCode, error
    // .getMessage());
    return binder;
    }

    I have been running into the same exception, albeit with UCM 10g:
    Content item 'xxx' was not successfully checked in. Unable to execute service method 'populateMissingDocumentValues'. (System Error: Runtime error: java.lang.NullPointerException
    at collections.CollectionMetaHandler.validateMetaDataDates(CollectionMetaHandler.java:771)
    at collections.CollectionMetaHandler.fillInUndefinedMeta(CollectionMetaHandler.java:806)
    at collections.CollectionUserHandler.setUndefinedMetaData(CollectionUserHandler.java:1353)
    at collections.CollectionUserHandler.populateMissingDocumentValues(CollectionUserHandler.java:1275)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:617)
    at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:293)
    at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
    at intradoc.server.Service.doCodeEx(Service.java:490)
    at intradoc.server.Service.doCode(Service.java:472)
    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1360)
    at intradoc.server.Service.doAction(Service.java:452)
    at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1201)
    at intradoc.server.Service.doActions(Service.java:447)
    it seems to have something to do with the xCollectionID.
    If I don't set this, it works fine (checking in and out, checking in new revision). If I set it I can check in a new item using CHECKIN_NEW but I am unable to use CHECKIN_UNIVERSAL to check in a new revision.
    Any pointers would be appreciated.
    Edited by: Jaap on 6-jun-2011 2:41
    Edited by: Jaap on 6-jun-2011 3:09

  • Attaching documents using plsql package FND_WEBATTACH

    I'm trying to attach a file from standard package FND_WEBATTCH to the Customer screen,
    can any one help me how to attach a file using plsql procedure??
    I could able to do the same from application but when I'm trying to attach a file using Add_Attachment procedure in FND_WEBATTCH package it displays my record in applications but when I click on view document button . I'm getting error
    Its very urgent
    I'll appreciate if someone will get back to me as soon as possible
    Thanks in advance

    Hi
    Please verify with the BASIS Person in your team to Verify whether the authorization object is correctly defined in the system.
    <b>The authorization object to check here is ->
    S_SRMGS_DC</b> This refers to Records Management: Authorization for Documents.
    Here is the documentation of the this authorization object.
    Definition
    This authorization object refers to documents (as collections of versions and variants). The term document covers documents, records, record models, file plans, and notes.
    Defined fields
    ACTVT
    Entries in this field restrict the authorization to particular activities. Enter the activity numbers of the activities that are to be allowed.
    Notes:
    Authorization for the activity Create is only effective if you assign the same authorization for versions, variants, and attribute values.
    Authorization for the activity Delete is only effective if you assign the same authorization for versions and variants (do not assign delete authorization for attribute values).
    Authorizations for the activities Search and Transport refer to the document with all its associated versions and variants.
    Authorizations for the activities Close Consolid. Unit Processing and Open Consolid. Grp Processing refer to the document with all its associated versions and variants.
    SPS_ID
    Entries in this field restrict authorization to a particular element type. Enter an element type ID.
    SRM_MODEL
    Entries in this field restrict the authorization to records of a particular record model. Enter the unique ID of a record model.
    DOCUMENTID
    Entries in this field restrict the authorization to a particular element. Enter the unique document ID.
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

  • Error while uploading document using Link Service

    Hi
    I have created a webcenter portal application ( in jedeloper 11.1.1.4) with Link service integrated.(Database and UCM connections are intact)
    But when i click on link to new->document and click on Upload it gives a popup error saying connection to the server has failed, even though the connection exists.
    I find that the document is checked in to the UCM even after the error was thrown, and once i re-run the application it shows up the link in the dialog.
    Am i missing any configurations to be done?
    Thanks

    hi
    what is your solman version? chk the sap note
    [ Note 1401196 - Work Centers: attachment not saved in Incident Management|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1401196]
    might be this helps,
    [Message No: SKWF_SDOKERRS119|Message No: SKWF_SDOKERRS119]
    jansi

  • Prinitng iwork document using objective c

    Please help in order to resolve the printing issue that i am facing while coding in objective c.
    I want to print any file like (*.pages,*.numbers,*.keynote)
    but i am not able to print these files using PMPrinterPrintWithFile function of objective c
    I am able to print other files like *.txt,*.jpeg,*.png, *.pdf.
    when I try to print iwork document like *.pages file with PMPrinterPRintWithFile, it returns a status as 1028
    when I am printing other files like *.pdf,*.txt it is printed easily with status 0
    and one more point I am not able to find out the MimeType of files like *.pages,*.number,*.keynote
    the MIMETYPE object gets NULL value when i fetch it using the below code.
    The Code I am using :
        #import "Cocoa/Cocoa.h"
        int main(int argc, char *argv[])
        NSPrintInfo *printInfo = [[NSPrintInfo alloc] init];
        PMPrintSession myPrintSession= (PMPrintSession)[printInfo PMPrintSession];
        PMPrintSettings printSetting= (PMPrintSettings)[printInfo PMPrintSettings];
        PMPageFormat pageFormat=(PMPageFormat)[printInfo PMPageFormat];
        OSStatus err = PMCreateSession(&myPrintSession);
        OSStatus status;
        CFURLRef fileURL =(CFURLRef) [NSURL fileURLWithPath:@"filename example *.*"];
        NSString* filePath=@"filename ex *.*";
        NSString* FullPath=[filePath stringByExpandingTildeInPath];
        NSURL * url= [NSURL fileURLWithPath:FullPath];
        NSURLRequest* fileUrlRequest = [[NSURLRequest alloc] initWithURL:url];
        NSError* error = nil;
        NSURLResponse* response = nil;
        NSData* fileData = [NSURLConnection sendSynchronousRequest:fileUrlRequest
        returningResponse:&response error:&error];
        NSString * MIMETYPE= [response MIMEType];
        [fileUrlRequest release];
        NSLog(@"MIMETYPE %@",MIMETYPE);
        PMPrinter thisPrinter= "printername";
        status = PMPrinterGetMimeTypes(thisPrinter, printSetting,&mimeTypes);
        if(status==noErr)
              status= PMPrinterPrintWithFile(thisPrinter, printSetting, pageFormat,     
            (CFStringRef)MIMETYPE, fileURL);
              NSLog(@" value :%@",MIMETYPE);
              NSLog(@"%i",status);
              NSLog(@"=======Printer %@=======", PMPrinterGetName( thisPrinter) );
              [printInfo release];
          return 0;
        return NSApplicationMain(argc,  (const char **) argv);

    Thank you for your reply. This code helps me to open my local document
    MicrosoftWordDocument *activeWordDoc= [wordApp activeDocument];
    [activeWordDoc openFileName:@"file://localhost/Users/ramesh/Desktop/test.doc"
                         confirmConversions: FALSE
                                   readOnly: FALSE
                           addToRecentFiles: FALSE
                           passwordDocument: @""
                           passwordTemplate: @""
                                     Revert: FALSE
                              writePassword: @""
                      writePasswordTemplate: @""
                              fileConverter:MicrosoftWordE162OpenFormatDocument97];
    Can you please tell me how to observe when user saves that document

Maybe you are looking for