GOS - Generic Object Services - Change dynamically the title of attachments
Dear Experts,
how can I change dynamically the title of the single attachment in the attachment-list of cl_gos_manager?
I hope you can help me.
Thanks in advance.
Thanks for reply.
I solved the problem by the following way:
- Function ARCHIV_GET_CONNECTIONS for getting all linked documents
- Showing list in popup with ALV-Grid
- SET HANDLER handle_double_click
- Function ALINK_DOCUMETS_DISPLAY_MIX for viewing selected document on popup
Marco
Similar Messages
-
How to activate GOS (Generic Object Services) in Transaction SU01?
Dear All,
We want (for documentation reason) activate GOS (Generic Object Services) within Transaction SU01 (User Maintenance).
I looked already around for Setup Guidelines, but did not find anything.
Has anybody already acitivated GOS within SU01 and would explain this?
Regards,
MarkusHi Vamshi,
SD_SWU_ACTIVE is the parameter, but it is not for SU01, it is VA02 and VA03 only.
Thanks,
Naga -
How to call GOS(Generic Object service) attachment ( BMP file ) into SAP
How to call GOS(Generic Object service) attachment ( BMP file ) into SAP script
Example: MM02 Service object there attaching the bmp file the same file i need to call script based on the material number
Please provide the procedure and coding.
Thanks in advance
RajuHi,
The following link may be useful to u.
help.sap.com/printdocu/.../BCSRVOBS.pdf -
GOS: Generic Object Services (BC-SRV-GBT)
Hi All,
I have a requirement to implement GOS for our Netting document - object type OIA_BUS001, we need to link a url to our document. And I managed to get the toolbox to appear besides the gui title, using both the FM SWU_OBJECT_PUBLISH and the OO codes that was provided in the SAP help.
But the results is not quite right - in both cases, when I click on the toolbox -> create, all the functions listed, 'Create attachement, 'create note', etc, are greyed out.
Is there something that I'm missing here?
That's not the least of my problems. When (being optimistic here) this ok, I need to find a way on how to update the url in the background....
Appreciate if anybody have some pointers here.
Regards,
NikTry the following code.
/people/rammanohar.tiwari/blog/2005/10/10/generic-object-services-gos--in-background
Report Z_RMTIWARI_ATTACH_DOC_TO_BO
Written By : Ram Manohar Tiwari
Function : We need to maintain links between Business Object and
the attachment.Attachment document is basiclally a
business object of type 'MESSAGE'.In order to maintain
links, first the attachment will be crated as Business
Object of type 'MESSAGE' using Message.Create method.
Need to check if we can also use FM
'SO_DOC_INSERT_WITH_ORIG_API1' or SO_OBJECT_INSERT rather
than using Message.Create method.
REPORT Z_RMTIWARI_ATTACH_DOC_TO_BO .
Include for BO macros
INCLUDE : <CNTN01>.
Load class.
CLASS CL_BINARY_RELATION definition load.
CLASS CL_OBL_OBJECT definition load.
PARAMETERS:
Object_a
P_BOTYPE LIKE obl_s_pbor-typeid DEFAULT 'BUS2012', " e.g. 'BUS2012'
P_BO_ID LIKE OBL_S_PBOR-INSTID DEFAULT '4700000368', " Key PO No.
Object_b
P_DOCTY LIKE obl_s_pbor-typeid DEFAULT 'MESSAGE' NO-DISPLAY,
P_MSGTYP LIKE SOFM-DOCTP DEFAULT 'URL' NO-DISPLAY,
Relationship
P_RELTYP LIKE mdoblrel-reltype DEFAULT 'URL'.
types: BEGIN OF TY_MESSAGE_KEY,
FOLTP TYPE SO_FOL_TP,
FOLYR TYPE SO_FOL_YR,
FOLNO TYPE SO_FOL_NO,
DOCTP TYPE SO_DOC_TP,
DOCYR TYPE SO_DOC_YR,
DOCNO TYPE SO_DOC_NO,
FORTP TYPE SO_FOR_TP,
FORYR TYPE SO_FOR_YR,
FORNO TYPE SO_FOR_NO,
END OF TY_MESSAGE_KEY.
DATA : LV_MESSAGE_KEY type TY_MESSAGE_KEY.
DATA : LO_MESSAGE type SWC_OBJECT.
DATA : LT_DOC_CONTENT type standard table of SOLI-LINE with header
line.
First derive the Attachment's ( MESSAGE )document type.
P_DOCTY = 'MESSAGE'.
CASE P_RELTYP.
In case of URls
WHEN 'URL'.
P_MSGTYP = 'URL'.
In case of Notes / Private Notes
WHEN 'NOTE' OR 'PNOT'.
P_MSGTYP = 'RAW'.
WHEN 'ATTA'.
P_MSGTYP = 'EXT'.
Not implemented as yet...exit
EXIT.
WHEN OTHERS.
....exit
EXIT.
ENDCASE.
Create an initial instance of BO 'MESSAGE' - to call the
instance-independent method 'Create'.
swc_create_object LO_MESSAGE 'MESSAGE' LV_MESSAGE_KEY.
define container to pass the parameter values to the method call
in next step.
swc_container LT_MESSAGE_CONTAINER.
Populate container with parameters for method
swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTTITLE'
'Title, created programatically'.
swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTLANGU' 'E'.
swc_set_element LT_MESSAGE_CONTAINER 'NO_DIALOG' 'X'.
swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTNAME' P_DOCTY.
swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTTYPE' P_MSGTYP.
'DocumentContent' is a multi-line element ( itab ).
In case of URLs..it should be concatenated with &KEY& in the begining.
CASE P_MSGTYP.
WHEN 'URL'.
LT_DOC_CONTENT = '&KEY&http://www.gtservicing.com' .
append LT_DOC_CONTENT.
In case of Notes or Private Notes, get the data from files on appl
server or from wherever(? - remember background).
WHEN 'RAW'.
LT_DOC_CONTENT = 'Hi How r u?' .
append LT_DOC_CONTENT.
In case of File attachments
WHEN 'EXT'.
Upload the file contents using open dataset in lt_doc_content .
Some conversion ( Compress ) might be required.
Not sure at this point
ENDCASE.
swc_set_element LT_MESSAGE_CONTAINER 'DocumentContent' LT_DOC_CONTENT.
swc_call_method LO_MESSAGE 'CREATE' LT_MESSAGE_CONTAINER.
Refresh to get the reference of create 'MESSAGE' object for attachment
swc_refresh_object LO_MESSAGE.
Get Key of new object
swc_get_object_key LO_MESSAGE LV_MESSAGE_KEY.
Now we have attachment as a business object instance. We can now
attach it to our main business object instance.
Create main BO object_a
data: LO_IS_OBJECT_A type SIBFLPORB.
LO_IS_OBJECT_A-INSTID = P_BO_ID.
LO_IS_OBJECT_A-TYPEID = P_BOTYPE.
LO_IS_OBJECT_A-CATID = 'BO'.
Create attachment BO object_b
data: LO_IS_OBJECT_B type SIBFLPORB.
LO_IS_OBJECT_B-INSTID = LV_MESSAGE_KEY.
LO_IS_OBJECT_B-TYPEID = P_DOCTY.
LO_IS_OBJECT_B-CATID = 'BO'.
*TRY.
CALL METHOD CL_BINARY_RELATION=>CREATE_LINK
EXPORTING
IS_OBJECT_A = LO_IS_OBJECT_A
IP_LOGSYS_A =
IS_OBJECT_B = LO_IS_OBJECT_B
IP_LOGSYS_B =
IP_RELTYPE = P_RELTYP
IP_PROPNAM =
I_PROPERTY =
IMPORTING
EP_LINK_ID =
EO_PROPERTY =
*CATCH CX_OBL_PARAMETER_ERROR .
*CATCH CX_OBL_MODEL_ERROR .
*CATCH CX_OBL_INTERNAL_ERROR .
*ENDTRY.
Check if everything OK...who cares!!
commit work. -
Urgent!!! Issue in using GOS(Generic Object Services)
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 -
Rename file title in GOS ( Generic Object Services )
Hi All,
When I use GOS to attached a business document for example in ME22N ( Create PO)
when I display the attachment list, the file will be named/title as "Archive Link document content Storage" which based on the document type text.
Is there any possibilities to change the filename according to the filename???
Any GOS out there ...pls adv.
ThanksAnyone have solution for this?
-
GOS(Generic Object Service) User Restriction
Hi
can any one help me in this issue
how to restric the users in GOS
Thanks
SurendraGOS access is generally provided for dialogue users, if you want to restirct user you can ask your security team to change the user type to OTHER THAN Dialogue in SU01 > logon data.
-
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 -
FB03 GOS (Generic Object Services) not working at header level
Hi all,
We have a problem with transaction FB03 when we try to display attached image documents for Fi documents.
At Header level we have no image.
At post level we can see the attached image.
How can we let the display of image list active from Header level.
Thank you in advance.
Kind Regards
MohammedHi,
I have same problem but in this case only user specific.
2 users with same authorization. First can park the invoice, attach document and can view after document save. Then he post document and able view attachment added during park.
But other user when upload attachment during park document not able to view same attachment when document is posted. Also strange part is when this user upload new attachment during posting other users are not able to see new attachment he has attached during posting.
I dont see any authorization difference in two except parameter values for F02, F03 and FP is different.
Can anybody tell me how this can be resolved?
Thanks,
Bharati -
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 -
Starting Workflow from Generic Object Services in IQS1 Transaction
Hi All,
My requirement is users will create the notification through IQS1 and they will attach the Adobe document through Generic Object service. In the notification Task, they will assign the repsonsible person for that form. Once they released the notification, i need to send a mail to the responsible person. I got the BO (BUS7051) . I created the custom WF and acitivated the BO & WF link. When i selected the Workflow Overview in the Generic Object Serivce, it is saying 'There are no workflows that have already worked with this object'. But when i checked the is worklow log in SWIA, my workflow got triggered.
I would like to know why it was not showing when i selected the same in Generic Object Serivce. How to trigger Workflow throuhg Generic Object Service.
Any info relevant to this, please share with me..
regards,
sasiHi,
For generic object services to find the workflow, the object must be attached to the workitem/workflow or used in the container.
If the object is correctly used in the workflow, it will be visible via GOS.
How did you use the object in the workflow?
Jeroen. -
Generic Object Services (HR Master Overview Screen)
Hi, i need to incorporate the Generic Object Services functionality to the HR Master Data linking it at three levels, namely,
Scenarios
1) GOS at Employee Level
2) GOS at Employee-Infotype Level
3) GOS at PD Object Level.
I've managed to find the solution to Scenario's 1 and 3 while i'm still trying to incorporate scenario 2.
Can someone let me know if there's any User-Exit that gets triggered at the Infotype Overview screen level from transaction PA30?
I couldnt locate an exit that'd get triggered upon calling the overview screen in the HR Master Data transaction (PA30). So is the trouble.
Helpful answers will be rewarded with points
Cheers,
VenkatHi Venkat,
Could you please share the steps on how you got the GOS at Employee Level to work?
Thank you for your help.
Aileen -
Attachments Activating Generic Object Services (GOS) in VA41/VA42 at item level
Hi to All,
I'm trying to manage attachments for sales document at item level.
I've already read this wonderfull post (Activating Generic Object Services Toolbar in SAP Objects) but I didn't understand how manage attachments at item level.
Please, if anyone has ideas of how to achieve it please share solutions.
Thanks & Best Regards,
UmbertoHi again,
Thanks for the answers, they were very helpful,
but the customer isn't happy with the "Store business Documents" and it's Drag n' drop interface.
I'm to develop a new GOS menu item, that will show
a normal Open File dialog, and a following popup
where the user can change the document title shown
in the Attachment list.
ARCHIVOBJECT_CREATE_FILE and ARCHIVOBJECT_GET_TABLE
along with ARCHIV_CONNECTION_INSERT should probably
cover the functionality I need.
I know both the BOR type ID and the object ID is
available to me in the Execute() method of the GOS menu handler I'm overriding, but for the ARCHIV_CONNECTION_INSERT, I'm supposed to supply an AR_OBJECT parameter (I know that this information is stored in the TOAOM table), but I have no clue where to get this information for the current object I'm trying to add an attachment for.
Regards,
Lars Wilhelmsen -
Generic Object Services (GOS) + ArchiveLink against IXOS.
Hi all,
I'm currently working on a project where I'm supposed to extend the Generic Object Services (GOS) Icon with a menu item for storing documents down to IXOS through ArchiveLink, and a functionality for retrieving them / attaching them to an email.
So far, I concluded that I need to create a class, whose superclass is CL_GOS_SERVICE, and at least override the EXECUTE() method with some functionality.
The ARCHIVOBJECT function group contains some (probably)
useful function modules - like ARCHIVOBJECT_CREATE_FILE and ARCHIVOBJECT_GET_BYTES / ARCHIVOBJECT_GET_TABLE.
My problem so far is that I don't see the "connection",
ARCHIVOBJECT_CREATE_FILE takes ARCHIV_ID, DOCUMENT_TYPE
and PATH as arguments (parameters), and returns ARCHIV_DOC_ID - an unique ID to the stored document
But how is the link between the archived document and the business object (i.e. the current object of the transaction I'm in) maintained?
Thanks in advance,
regards,
Lars WilhelmsenHi again,
Thanks for the answers, they were very helpful,
but the customer isn't happy with the "Store business Documents" and it's Drag n' drop interface.
I'm to develop a new GOS menu item, that will show
a normal Open File dialog, and a following popup
where the user can change the document title shown
in the Attachment list.
ARCHIVOBJECT_CREATE_FILE and ARCHIVOBJECT_GET_TABLE
along with ARCHIV_CONNECTION_INSERT should probably
cover the functionality I need.
I know both the BOR type ID and the object ID is
available to me in the Execute() method of the GOS menu handler I'm overriding, but for the ARCHIV_CONNECTION_INSERT, I'm supposed to supply an AR_OBJECT parameter (I know that this information is stored in the TOAOM table), but I have no clue where to get this information for the current object I'm trying to add an attachment for.
Regards,
Lars Wilhelmsen -
Events available in Generic Object Services (GOS)?
Hello everybody
Searched around in SDN and also tried to find something useful in our system (SWO1) but can't find useful information on GOS events so I guess it probably doesn't exist?
I'm searching a way to catch GOS events when someone adds, changes or deletes an attachment (URL) in the generic object services of an object, e.g. for a material master (BUS1001006). I'd like to create a change document for this and based on that to trigger some further processing for one of our interfaces.
Anybody out there knowing how to achieve this?
TIA and best regards,
RenaudThere's a couple of BaDIs with GOS names such as GOS_SRV_REQUEST that might help. Otherwise I'd try using SE30 with lots of logging options set on to trace where you may be able to grab this info from. GOS subscriptions may be another thing to look at.
Jonathan
Maybe you are looking for
-
Can i use one interface to load data into 2 different tables
Hi Folks, Can i use one interface to load data into 2 different tables(same schema or different schemas) from one source table with same structure ? Please give me advice Thanks Raj Edited by: user11410176 on Oct 21, 2009 9:55 AM
-
Base amount for calculating duties in import
hi all, while doing MIGO for imports (ECC 6) , we are capturing excise invoice . in the excise details tab for item , we are getting all the duties ( CVD,ECESS,SECESS ACD ) correctly, but the base amount showing wrong. can any body tell me , how &
-
Hey guys I need a solution for a problem. i need to access outlook from java to send mails from my app. i have tried jintegra and it works but i don't want to buy it. can anyone refer me to api's or tutorials that can help me accomplish the same thin
-
Hi, I have one more quesstion. How can i make a connection to a database, when iam using a queue in a oracle database. I have given my coding at the bottom. I would like to know what i should write in the configuration files. Is there any particular
-
Playbook bridge email viewing suggestions
It would be really nice if you could do the following while viewing bridged email from blackberry: 1) zoom & pan the email text. Sometimes rich text email have fonts so small you almost need a magnifier to view. It's a shame in a pinch-to-zoom enable