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
Similar Messages
-
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 -
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 -
Attach doc from external content server- using Generic Object Service (GOS)
Dear All,
i have intergrated an external content server to SAP using SAP archive link. All the scanned document are there in Content server and corresponding entries are done in SAP.I can search and view document using tcode : OAAD
Please tell me steps for "how to attach a document from external content server using Generic Object Service "
Scenario is : For example when we change any Master records or create a new PO, or do some financial transaction then i need to attach the supporting document which is there in my content server connected to SAP.how do we manual attach a Document in SAP using GOS.
Do we need to do some special configuration to use GOS .please give the steps from initial.
Thanks
sandeepHello,
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 -
How to use Generic Object Services(GOS) for each table control record.
Dear Expert,
I am using generic object services for document attachment but i am facing a problem while attaching document to a table control row. my requirement is to attach separate document for each and every row of table control but i am unable to attach document row wise of the table control.for each row GOS should display corresponding attached document not all the attached document.
Thanks in Advanced
Bhuwan Tiwari
Edited by: BHUWAN TIWARI on Feb 8, 2011 4:16 PM
Edited by: BHUWAN TIWARI on Feb 8, 2011 4:16 PMYou haven't explained what object and object key you're using, nor have you provided any indication of how you implemented the GOS attachment functionality. You need to provide more information to resolve an issue like this.
-
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. -
Urgent!! Issue in using Generic Object Services (GOS)
Hello Friends,
I have created a GOS Business object and i am using this to attach documents at the selection screen of my programs.
The implementation is successfull and working fine. When i execute my program, i can see the GOS Toolbar, i am able to upload document from my PC and view in the attachment list too.
But the issue is, when i end my session, and try to see attachment list by executing the program again, it comes blank with no documents. This means, once i end the session, i am not able to see the attachments that i have created earlier.
Any helpful input will be appreciated and rewarded.
Thanks and Regards,
Vikas Bittera.Hello Vikas
The document has to be uploaded to the <b>BDS </b>(Business Document Service).
I will give you an example how I did this:
1. Create business object 'ZREPORT'. " for attaching documents to reports
2. Call transaction <b>OAER </b>(Business Document Service) with the following parameters:
- Class name = 'ZREPORT' (my business object)
- Class type = 'BO' (business object)
- Objekt key = leave empty or enter name of report (if empty, a popup appears)
- Storage system = 'BDS_DB' (seemed a good choice to me)
3. Execute
4. In the BDS choose tabstrip "<b>Create</b>" (lower left part of screen). Right-click on the <i>Word document icon </i>and choose<i> Import File</i> from the context menu.
As soon as you have uploaded your Word document it is visible in your business object (attachment list). When you display the attachment list and right-click on the document you can directly open it in the BDS.
Regards
Uwe -
GOS(Generic Object Services) for Custom program ?
Hi All,
My requirement is to have GOS option to attach document for Custom program against each record.
Do anybody have faced the same kind of requirement,please let me know how to do.
Bharathi.JHi Bharathi
i to got the same requirement
through manually im attaching the files,notes and URL's
but how to attach through any class
i use CL_GOS_DOCUMENT_SERVICE in that
CREATE_ATTACHMENT method
but it is not attaching the files to my GOS menu
can u help me
Thanks
Surendra -
Generic Object Services for a standard transaction code
Hi,
We have a requirement where we are depreciating the assets (standard transaction ABAA) using a custom BDC program. We need to maintain a history (called audit trail) for the particular asset that has been depreciated using this program. For this audit trail we have been asked to use "Generic Object Services" in transaction code ABAA.
Unfortunately, Generic object services are not available in this transaction code. Can you please suggest me how to create "Generic Object Services" for a particular standard transaction code. Also, we have show the details of custom workflow that handles the approval process in order to depreciate the asset. How to show this workflow details using Generic Object Services. This is a very critical issue, any help will be very help ful.
Please let me know should you require more information on this topic.
Thanks,
AshishHello Ashish,
i dont think activating of GOS will solve ur probs..... GOS wont create a WF item ...... try to get some kind of GOS before u do anything in SAP systems.
u can do like this ......
1 create custom screen where u can enter asset details and store in custom tables....and generate one custom doc.number to track.
2. trigger WF when user submits it for approvals.
3.Upon final approvals.--->run BDC to do postings......
4.Give a Option to attach documents to the parking documents. ( that GOS ).
regards
Prabhu -
How to create a Generic Object Services for a standard tcode.
Hi,
We have a requirement where we are depreciating the assets (standard transaction ABAA) using a custom BDC program. We need to maintain a history (called audit trail) for the particular asset that has been depreciated using this program. For this audit train we have been asked to use "Generic Object Services" in transaction code ABAA.
Unfortunately, Generic object services are not available in this transaction code. Can you please suggest me how to create "Generic Object Services" for a particular standard transaction code. Also, we have show the details of custom workflow that follows the approval process in order to depreciate the asset. how to show this workflow details using Generic Services. This is a very critical issue, any help will be very help ful.
Please let me know should you require more information on this topic.
Thanks,
AshishInstead of copyg the std fm to z, do the following,
1. Go to se37 open FM VIEW_KURGV in display mode.
2. Click on the spiral icon on the top.
3. Then in menu go edit->enhancment options -> show implicit enhancement
4. """""""""""""""""""""" kind of lines will appear in the cde, just rt click on the line at the place u want to insert the code and select
enhancement implementation create.
5. Give apropriate name for thi , it will inset a n place to write your code.
This is an std sap methodology and is supported in upgradde also. -
Bulk uploading to Generic Object Services
Hi there,
We have started using Generic Object Services to attach documents and notes to object (contracts, rental objects, etc) in REFX (Flexible Real Estate).
Is there a way to upload large volumes of notes and attachments to different objects (like LSMW)?
Thanks
JYa Arghdip, please elaborate how to instantiate the object inside the workflow design using GenericInstantiate Method of SYSTEM Business Object.
in my case I am getting required entries in table but even thn I am not able to see workflow overview from Generic Object Services.
Please help.
Regards
Nitin -
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,
PeterRichard,
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 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
RichardRichard,
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 -
Generic Object Services ; create attachment function grey out in Tcode KA03
Hi all,
I would like to know how can I enable create attachment function in GOS toolbar in Tcode KA03.
Currently it was grey out.
However, was tried to use the same function in KS03 and it works.Please help. Thanks!I just found the solution...
SAP note : 961572
Symptom</u>
In the transactions for displaying cost elements (KA03) and changing cost elements (KA02), the 'Services for Object' function does not work correctly, as most Generic Object Services are unavailable.
Other terms
KA03, KA02, SWO1, K_OBJECT_SERVICES_INITIALIZE, BUS1059, BUS1030
Reason and Prerequisites
The problem is caused by a program error.
Solution
Implement the attached program corrections
Then go to Transaction SW01 (Business Object Builder), enter BUS1059 as the object type, click Change, and make the following changes:
Navigate to Methods -> RevenueType.Display, press F2 to select it, and go to the 'ABAP' tab page: Select the 'Transaction' radio button, enter the name as KA03, and click 'Save'
Navigate to Attributes -> Attribute properties, select the 'Mandatory' checkbox, and click 'Save'
Then change the release status by navigating as follows:
Edit -> Change Release Status -> Object Type -> To implemented
Edit -> Change Release Status -> Object Type -> To released
Then double-click BUS1059 (or select using F2) in SWO1 to reach the 'General' tab page, which should appear as follows:
ObjectType BUS1059 Revenue element
Object Name RevenueType
Program RBUS1059
Objtype status generated Saved released -
Connect a Word document instance to Generic Object Services/BDS
Hello all,
how can I manage to get a word document created via the Doc_template step to a certain Business Object (like Business Partner). I tried to trace that but I got lost in generations of codes like archivelink, sap office, knowledge provider etc.) I guess it should not be that difficult as I have the key of the word doc instance and the key of the business partner instance. What I want at last is to have that word document linked via attachments/linked objects or something similar....
Kindest regards from Germany,
MarkusMarkus,
Welcome to the forum!
I have done this sometime ago at a past client site and will see if I can find the code.
If I remember correctly, this involves converting the attachment to an SOFM object (using method CREATESOFM of BO WF_DOC) and then using function module BINARY_RELATION_CREATE to attach it to the BO. The links below will give you more info. Also Google for BINARY_RELATION_CREATE which should give you more links.
Re: Link Workflow Document to BKPF object
<a href="/people/rammanohar.tiwari/blog/2006/03/25/generic-object-services-gos--in-background--part-ii">Generic object services (GOS) - in Background - Part II</a>
http://mailman.mit.edu/pipermail/sap-wug/2005-September/019547.html
Cheers,
Ramki Maley
Maybe you are looking for
-
Hola, por favor ayúdenme a solucionar mi problema porque conecto mi iPod y no lo detecta desde que quise instalar la nueva versión de iTunes 10.5
-
Is it ok to charge your iphone overnight?
Hi. So I charge my iphone 5 overnight. I was wondering if overcharging it could harm the iPhones battery. Please answer :)
-
Macbook Air 2014 Black Screen w cursor after waking from sleep.
I just purchased a brand new macbook air this past week. I noticed within the first day of using that if my machine went into sleep mode, and I hit a key to take it out of sleep mode, it would go to a black screen with my cursor for about 30 seconds.
-
HT4559 How can I use iMessage on my iPad
I tried sending messages using the app I already had and it won't let me send....
-
Hi everyone, Is it possible to use checkbox and select option on the same variable? My requirement is for a variable which is a select option with no intervals, and along with that, I need to put a checkbox in the left hand side of the same field. Pl