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
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,
JBcall 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 -
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.
chrisHi 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 -
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 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,
SatyaHi,
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 -
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, JulieHi 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 -
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 -
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 -
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?
Thankshi
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 -
ICloud Stored Documents using Preview - Access with iPad
If I upload a PDF to iCloud using Preview, can I access that upload from my iPhone or iPad?
Huh, the issue went away, just as mysteriously as it arrived.
I'm thankful though. -
How to trigger a workflow using generic object services?
Hi Experts,
Let me know on how to trigger a workflow using generic object services.
My requirement is to trigger the FI document reversal document using Object services.
Any info or docs relevant to this, please share with me..
Thanks,
Dinesh.Dinesh,
First of you need to check if the transaction has a BO (in released status) published to use the GOS.
These are the pre-requisites for GOS
http://help.sap.com/saphelp_46c/helpdata/en/94/aa532cddd511d289860000e8216438/content.htm
Once done.. check that you have valid workflow linkages active for this BO.
Now when you click on the 'start workflow' the system will show all relevant workflows for the BO to choose from and to start. -
Hi all.
I have to open ZIP files stored in the Object Services (The attachments at PA30) from the portal.
Right now I have a working program that opens DOCs and PDFs... But I cannot use the same method to achieve this.
The method I´m using is get the document URL, store it in the http response and then use JavaScript to open this URL. This doesn´t work for ZIP and I don´t know why...
... Any ideas??
Thanks in advance.Solved:
The URL has to be complete in this case...
/sap(bD1lcyZjPTA2MA==)/bc/bsp/sap/zhrbsp0007/4AB0BF639BB200D9E1008000AC1603CB is not enought
http://HOST:PORT/sap(bD1lcyZjPTA2MA==)/bc/bsp/sap/zhrbsp0007/4AB0BF639BB200D9E1008000AC1603CB is OK
It was easy, but... You have to find it -
Object Services - What are the space restrictions?
Hi experts -
Our finance team wants to start saving documents in Object Services. Can you tell me the space restrictions, if any?
Many thanks!
MarkHi Mark
If they are using Create Attachment as a storage area, I would strongly suggest they look at configuring ArchiveLink (it should be a greyed out area called Store Business Document in object services) so they can store securely. The GOS create attachment option is not recognised as a secure document storage area and its just designed for adhoc working documents. Its also an area that can be deleted by basis as part of the system cleanup if they run a specific transaction.
They are no hardcoded limitations, but in our experience, the limitations kick in with individual files sizes in excess of 100MB however this will be dependent on the SAP architecture, bandwidth as its largely to do with the file size being so large that the file times out before it can be completed copied to the server.
Regards,
Athol -
Object Services - Adopting attachment from Req to PO
Hi All,
After adding an attachment to a requisition using Object Services, I'd like to bring the attachment forward to the PO during the 'Adopt' process. I know I can add the attachment to the PO using the same process, but is there an automated way? Some configuration?
Thanks!Hi Anil,
Thank you for your response. Any idea when this will happen? Is it contained in a support pack?
Regards,
- Kathy -
Attach Documents to Custom Program Using Generic Object Services
Hi There,
I created Object type ZGOS and used in the custom program, when i try to attach documents it allows and then shows in attachment list.
But When I use that program next time that document attached is not available.
Is there any separate save Class or FM available for saving the document to the specified custom program.
I am using following code in the program,
CLEAR obj.
SET OBJECT TYPE TO 'ZGOS'
obj-objtype = objtype.
SET OBJECT KEY = REPORT NAME
SELECT SINGLE name
FROM trdir
INTO obj-objkey
WHERE name = sy-repid.
CALL GOS MANAGER WITHOUT CONTAINER (WILL BE DISPLAYED IN THE TOOLBAR)
CREATE OBJECT manager
EXPORTING
is_object = obj
EXCEPTIONS
OTHERS = 1.
Thanks in advance.Check the Naimesh Patel Blog he explain very well
http://help-abap.blogspot.com/2009/02/generic-object-services-gos-toolbar.html
Maybe you are looking for
-
Printer spool issue with HP LaserJet 1018
I seem to be having a recurring problem with the HP LaserJet 1018 that I am hoping someone has also had and can help me resolve. When I go to print I get a message that I need to set up a printer (it does not recognize the printer is there). When I
-
AirPort Utility version 6 series continues to be a joke
Topic says it...in order to get to the logging...or syslog settings...or NTP settings, I had to install the 5 version on my Windows 7 Bootcamp....pathetic.
-
I AM NO LONGER ABLE TO ADD SPECIAL EFFECTS TO MY MOVIES
Hi i am making a video using a green screen. I used to be able to double click my video on the project bin and choose a special effect such as romantic or black and white. Now i can no longer do this. It brings up video stabalization, audio and video
-
Jdbc adaptor picking the messages at same time.
hi, there are 5 messages blocked in status Delivering are blocking the 5 JDBC Threads allowed at the Adapter Engine itself. Even if I allow a bigger number of concurrency messages it will not change the real number of simultaneous threads. You need
-
Will there ever be an update to fix the weak signal?
Hello! I am one of those galaxy nexus owners who absolutely love the phone but HATE the weak signal... When I am in an open area, I seem to get pretty good reception on my phone, but everything changes when I go inside a building! I get HORRIBLE rece