Generic Object Services for a Z program
Hello all!
I need to create a Z application for displaying master material data, related batchs, associated QA, and PP data, all in one screen.
I need to have the Object Services Toolbox in the top of my screen just like in Material Master appears, for using it to attach files, notes, etc, being in this environment.
I have read about first I need to create a BO in SW01, and then to call some methods in class CL_GOS_MANAGER.
Does anyone have experience or any idea for do that?
thank you very much,
Ibrahim
Slight modification, check that a number has been entered in the field before you put the toolbox on the screen.
report zrich_0001 .
parameters: p_qmnum type VIQMEL-qmnum.
at selection-screen output.
<b>check p_qmnum <> space.</b>
call function 'SWU_OBJECT_PUBLISH'
exporting
objtype = 'BUS2038' "Maint notification
objkey = p_qmnum
* CREATOR = ' '
* METHOD = ' '
* TABLES
* CONTAINER =
exceptions
objtype_not_found = 1
others = 2.
start-of-selection.
I tested this with a valid notification, I created an attachment in IW22, then ran this program, entered the number, hit enter, went into the toolbox, and my attachement was there.
Regards,
Rich Heilman
Similar Messages
-
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. -
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 -
Generic Object Services for Custom Object Type
I would like some advice please. I am not an ABAP Developer but I would like to enable the generic object services for transaction PP01 for a custom object type.
I have searched for information, which suggests that the object needs to be published using the function module SWU_OBJECT_PUBLISH so that it is available in the Business Object Repository. If this is correct, please could someone tell me (in simple terms) how I can do this (with the assistance of an ABAP developer)?
My colleague did some debugging which seemed to suggest that in order for the generic object services to be available, the field OBJTYP needs to be populated in table T778O. Is this correct? If so, how should this be done?
Your advice would be greatly appreciated.
Regards
CorinneHi,
i'm also looking for the solution you have asked for.
if you know how to do it please reply me with the solution.
Thanks,
suresh -
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 MB21
Dear friends,
I would like to have GOS toolbar for Material Reservation - Tcode - MB21/22/23. Since this is not available in standard I have used implicit enhancement for creating instance of the class CL_GOS_MANAGER when the reservation is created(MB21) and then pass the key(reservation number) once the reservation number is available using set_id_of_published_object method of class CL_GOS_MANAGER. I have used the code mentioned in the below link. I can see the GOS toolbar in the MB21 screen and able to attach documents as well. But the problem is I am not able to view them in MB22/23 even though I instantiate CL_GOS_MANAGER with the key(reservation number). I think apart from instantiating the object and passing the key we need to do some more code to be able to view the documents in the change and display tcodes. Let me know what i am missing.
http://help.sap.com/saphelp_nw04/helpdata/en/c4/3fe63659241157e10000009b38f889/frameset.htmDear friends,
I would like to have GOS toolbar for Material Reservation - Tcode - MB21/22/23. Since this is not available in standard I have used implicit enhancement for creating instance of the class CL_GOS_MANAGER when the reservation is created(MB21) and then pass the key(reservation number) once the reservation number is available using set_id_of_published_object method of class CL_GOS_MANAGER. I have used the code mentioned below. I can see the GOS toolbar in the MB21 screen and able to attach documents as well. But the problem is I am not able to view them in MB22/23 even though I instantiate CL_GOS_MANAGER with the key(reservation number). I think apart from instantiating the object and passing the key we need to do some more code to be able to view the documents in the change and display tcodes. Let me know what i am missing.
Set object Key
la_obj-objtype = 'BUS2093'.
la_obj-objkey = rkpf-rsnum.
IF rkpf-rsnum IS NOT INITIAL and go_manager is not initial.
CALL METHOD go_manager->set_id_of_published_object
EXPORTING
is_object = la_obj.
else.
CREATE OBJECT go_manager
EXPORTING
is_object = la_obj
ip_no_instance = 'X'
EXCEPTIONS
OTHERS = 1.
endif. -
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.
-
Configuring KPRO for generic object services
Hello,
I have a requirement where I have to configure KPRO as the storage for generic object services. We are using the generic object services for materials and hence using the Business object BUS1001. Please let me know of how to do the same or if we have any documents for configuring the Generic object services and KPRO please provide me the same.
Regards
NilanjanHi,
i reply to the question you posted in my thread:
I solved the request without using Kpro. Kpro ist just a more comfortable way in managing documents. But using ArchiveLink and GOS is all you need if you just want to upload documents and view them in a linked transaction. I would be able to give you a better help if you would give a short introdcution in what you plan to do in detail.
kind regards Matthew -
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 -
Generic Object Services - View Attachments disabled for non admin user
Hi,
I am using SAP 4.7 and the attachments created using table TOA01 - archive link are visible to an administrator user through Generic Object Services toolbox while same View Attachments option appears disabled for other non admin users.
Kindly help !Hi Neha,
I'm sorry I don't have answer to your question but I wonder if you could help me.
I'm looking at OSS note 530792 to configure GOS 'create attachment' option to copy the attachments to the archive server. currently, these are written to the SAP office tables SOC3, SOFFCONT1, etc and I want to use the archivelink and SAPHTTP and copy to the archive storage.
Have you successfully managed to configure your system since you mentioned TOA01?
In the same GOS menu I've activated the 'Business document' option and can copy these to the archive server by correctly configuring OAC2 and OAC3.
I'll really appreciate of you could please share your knowledge.
Thanks.
Soyab -
Indicator for Generic Object Services
We are planning to use the Generic Object Services functionality to
attach Word, Excel or PDF files to existing documents in SAP. Our plan
is to use this in Accounts Receivable. The issue we have is when we
are looking at the open items for a customer using transaction FBL5N
there is no way to know which open item has attachments. Once you've selected an open item, you can view any attachments but this does not help. I posted an OSS notes and they replied "We regret to inform you that the function you require is not included inthe SAP standard system." Does anyone know how I pursue this to have SAP develop this functionality?
Thank You,
Sue RademacherWhile this is probably answered best in the ABAP forum, by doing a search on Generic Object Services in all forum categories, I found a number of answers about enhancements with this functionality. Re: How to link proces modeling to execution of services are found in this forum thread.
Marilyn -
Enable Generic Object Service (GOS) for CS01-CS03
Hi Gurus,
¿how I can enable GOS service in CS01-CS03 to use attachments, Workflow, notes, etc.?
Thanks.Hi,
Go through following links which will help you get details about GOS :
Generic Object Services (GOS)
http://wiki.sdn.sap.com/wiki/display/SI/FrequentlyaskedquestionsaboutGenericObjectServices+(GOS)
Hope this helps.
Regards,
Tejas -
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 -
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 -
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
Maybe you are looking for
-
After updating my iPod to iOS 6.0.1 and 6.1 my gps mount does not work anymore. It used to work perfectly. Have checked with a TomTom app if satelites are connected and it has good connection but navigation app does not work. All advices given in the
-
Dear all, am deleting the obsolete rman backups using the following command : rman allocate channel for maintenance type disk; delete obsolete for channel type disk; release channel; am running this inside the script ...this script is getting stucked
-
I have big problems with geo positioning in Google Maps (and other apps) with my Swedish 3G 2.1 iPhone. Most of the time it works fine and my positions is found quick and easy. On some places, the positioning is WAY OFF. For example, at my home the p
-
Verify Authorization for a differnt UserID
Hi all, Hope you are all doing great. I need some help from the experts. My question is that I am storing UserID in a Table Field as input from end users. I have to make sure that the entered Userid (not the current end user) has a authorizati
-
Please help with simple esle code
Hi all Please can someone tell what I am doing Wrong with tis code. I just can not see it Please Help Me Craig void ShippAddressjCheckBox_actionPerformed(ActionEvent e) { if (ShippAddressjCheckBox.setSelected(true )); CopyAddress1(); else (ShippAddre