Generic Object Services using WebDynpro ABAP
I am using Web Dynpro for ABAP and would like to access Generic Object Services (GOS) to view attachments or similar functionality for attachments in web dynpro ABAP. How can I access the functionality of attachments from a Web Dynpro application?
Any help is appreciated.
Thanks
Hi,
I assume that you wantted to have the attachements in a mail.
Please check out the Adobe Forms(ie PDF attachements) and Office Control UI elements in WDA.
Regards
Lekha
Similar Messages
-
Generic Object Services using Web Dynpro
I am using Web Dynpro for ABAP and would like to access Generic Object Services (GOS) to view attachments to an SAP Business Object. Using the cl_gos* classes does not work when running WebDynpro as it uses the controls framework.
How can I access the functionality of GOS from a Web Dynpro application?
Regards,
BobHi,
I assume that you wantted to have the attachements in a mail.
Please check out the Adobe Forms(ie PDF attachements) and Office Control UI elements in WDA.
Regards
Lekha -
Create Attachments to Generic Object Services from Webdynpro appliccation
Hi,
I have requirement to Create Attachments to Generic Object Services(GOS) in equipment master (IE03) from webdynpro when a user clicks on upload button and also allow the user to delete the attachments .
Can anyone advice me of any Function Modules or logic to use from Web GUI.
I used below logic from R/3 to create attachments, but from webdynpro this method doesn't work.
DATA lo_attachment TYPE REF TO cl_gos_document_service.
CREATE OBJECT lo_attachment.
CALL METHOD lo_attachment->create_attachment
EXPORTING is_object = ls_object
IMPORTING ep_attachment = lp_attachment
Your inputs are appreciated.
Thanks
Rajesh YaldaHi,
try using the Class CL_GOS_SRV_ATTACHMENT_CREATE with Method EXECUTE_ITS.
best regards,
Michael -
Display and Manage Attachments of Generic Object Services in Webdynpro
Hi All,
I need to have a button in the webdynpro that when a user clicks it will pop up a table that display a list of files already attached to a Generic Object Services(GOS) and also allow the user to delete the attachments and upload new attachments.
Can anyone advice me of any Function Modules or Methods that i can use to achieve those functions (retrive and display attachments in the GOS, delete existing attachment from GOS, upload new attachment to GOS).
Thanks and Regards,
weilongHi
You need to pass parameters as per the code below
****Data Types
CONSTANTS:lc_dokob TYPE dokob VALUE 'KNA1',
lc_dokar TYPE dokar VALUE 'LEG',
lc_dappl TYPE dappl VALUE 'BVO',
lc_sign TYPE c VALUE 'I',
lc_option(2) TYPE c VALUE 'EQ',
lc_docpart(3) TYPE c VALUE '000',
lc_docversion TYPE dokvr VALUE '00',
lc_status TYPE dokst VALUE 'AL',
ls_attc-doknr TYPE doknr,
ls_return TYPE bapiret2,
*****Function Module
CALL FUNCTION 'BAPI_DOCUMENT_DELETE_DIRECT'
EXPORTING
documenttype = lc_dokar
documentnumber = ls_attc-doknr
documentpart = lc_docpart
documentversion = lc_docversion
IMPORTING
return = ls_return.
Thanks
Vishal -
Generic Object Services (GOS) WbDynpro Abap XLSX
Hello Everyone
The Microsoft Office 2007 and 2010 brought new Escel extension (XLSX).
We've developed an WDA program allowing the WEB interface user to add attachment to the GOS of goods receipts.
That part is working fine.
Any attachment done from the web interface can be open without problem by R/3 users.
The problem is when we are trying to open the "XLSX" format from the web interface Excel respond with an error message:
Excel found unreadable contents in file. Do you wish to retrieve the content of the workbook.
If we agree, the fiel is openning without any lost.
If we try to open the same file from R/3 directly, we do not have that error message.
Here is the class and method used to open the file from webdynpro abap:
cl_wd_runtime_services=>attach_file_to_response(
i_filename = u201Cfile nameu201D
i_content = u201Cfile content in the XSTRING formatu201D
i_mime_type = u201CMIME TYPEu201D
i_in_new_window = u201COpen in new windowu201D
i_inplace = 'X'
All suggestion will be higly appreciated.
Regards
dstjThe reason for this is that the GOS property for file extension is 3 characters. The last X in XLSX gets cutoff and the file type is XLS, but has a different mimetype..thus you get that warning.
I found the way to resolve this is to store the filetype in the header information when storing the file in the GoS. Then, when I retrieve the file, I read the header for the key I have saved and assign the mime type accordingly. Kind of a hack, but I looked into this rather deeply some months ago and it was the best solution I could come up with. -
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 -
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 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.
-
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 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 -
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. -
Selection Criterion of Contents Server's Storage Types : Used by Generic Object Services
Hi experts.
I'm considering Contents Server Storage Types of attached files uploaded by Generic Object Services.
I want to adapt Storage Type that can be housekeeped by specifying retention period.
Please give me how to housekeep and how to use the benefits of each Contents Server Types.
Regards,
Taiki ShojiHi Deepak,
I don't use Open Text.
When I attache file, I do following steps.
Select "Service for Object"
->Create
->Create Attachement
->Select attachement file and Open
Regards,
Taiki Shoji -
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 -
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 -
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
Maybe you are looking for
-
As a user of Chrome in linux, there are still some things that are broken. For example, whenever I load a PDF, most of the time the Docs PDF Viewer extension will display it properly. However, there are still times where the PDF doesn't load properly
-
Hi...A neighbor has a iMac G5 and has developed a video/image problem. The iMac boots up and sometimes shows an ok screen for a little time, sometimes not. What emerges is an array of digital black on white graphic line images (maybe I should upload
-
SAP Fiori - Launchpad: Tile Error
Dear Fellow Members, Currently, while using a custom made theme via UI Theme Designer for Launchpad, we fail to load the same custom made theme to individual tiles. Once any tile is launched, it opens up using the default theme. Can someone please su
-
Connection Error iCloud encountered an error while trying to connect to the server
Hi iCloud users For the first time I have experienced errors while attempting to connect to iCloud via my PC. Never had any problems previously. The first error I received was: "Connection Error - iCloud encountered an error while trying to con
-
Replacing internal harddrive - suggestions?
Hi everyone, Are there any internal hard drives you would suggest me purchasing? I've been reading about Western Digital 160gb 7200RPM ATA & Fujitsu 160gb5400RPM ATA, and just to confirm, are these compatable with the macosx 10.4? Any tips would be h