GOS problem
hi,
i have implemented generic object services in an HR transaction. In an PAI-user exit
i do the following:
CASE innnn-infty.
WHEN '2001'.
gf_pakey-pernr = innnn-pernr.
gf_pakey-subty = innnn-subty.
gf_pakey-objps = innnn-objps.
gf_pakey-sprps = innnn-sprps.
gf_pakey-endda = innnn-endda.
gf_pakey-begda = innnn-begda.
gf_pakey-seqnr = innnn-seqnr.
ls_object-objkey = gf_pakey.
ls_object-objtype = 'ABSENCE'.
CREATE OBJECT lo_myobject
EXPORTING
is_object = ls_object
IP_NO_COMMIT = 'X'.
so i create an GOS for objecttype 'ABSENCE'. well, thats working fine, BUT: i can only attach a 'business document'.....when i try to add a NOTE or an 'normal' attachement (first option in pull-down menu of GOS), the document is saved, but when i enter the record again it is not there anymore ! the 'business document' is saved their, and i can find it.
any ideas ?
regards; Martin
hi,
i still have this problem and i have to go to production very soon.
does anybody know something about that ?
reg, Martin
Similar Messages
-
Problem with PDF Attachment (from GOS)
Hi Experts,
Below is the code in a ZFM. We are trying to get GOS attachments and the same are to be sent to SAP Inbox through Workitem. When we executed, the attachment is being shown but couldn't be opened. It's throwing an error as 'The file has been damaged'.
As per my understanding, we are getting PDF file into lt_object_content_l and we are trying to convert that to binary file and send the same to SAP_WAPI_ATTACHMENT_ADD.
FUNCTION ztest_service_atta.
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(IV_WORKITEMID) TYPE SWW_WIID OPTIONAL
*" REFERENCE(IV_PERNR) TYPE PERSNO
*" REFERENCE(IV_REINR) TYPE REINR
*" EXPORTING
*" REFERENCE(ES_ATT_ID) TYPE SWR_ATT_ID
*" EXCEPTIONS
*" ATTACH_FAILED
DATA: gs_att_header TYPE swr_att_header.
DATA: ls_lpor TYPE sibflporb,
lt_lpor LIKE TABLE OF ls_lpor,
ls_option TYPE obl_s_relt,
lt_option TYPE obl_t_relt,
ls_rol_op TYPE obl_s_rolt,
lt_rol_op TYPE obl_t_rolt,
ls_links TYPE obl_s_link,
lt_links TYPE obl_t_link,
ls_folder TYPE soodk,
ls_object TYPE soodk,
ls_obj_hd TYPE sood2,
lt_object_content_l TYPE TABLE OF solisti1,
ls_object_content_l TYPE solisti1,
lt_obj_cont TYPE TABLE OF soli.
* Work areas
DATA: lwa_doc_data LIKE sodocchgi1,
lwa_document_data LIKE sofolenti1,
lv_document_id TYPE sofolenti1-doc_id,
lwa_links LIKE LINE OF lt_links,
lwa_object TYPE borident,
ev_binfile TYPE xstring.
FIELD-SYMBOLS <p> TYPE x.
ls_lpor-instid = '000011110000000123'.
ls_lpor-typeid = 'BUS2089'.
ls_lpor-catid = 'BO'.
APPEND ls_lpor TO lt_lpor.
ls_option-sign = 'I'.
ls_option-option = 'EQ'.
ls_option-low = 'ATTA'.
APPEND ls_option TO lt_option.
ls_rol_op-sign = 'I'.
ls_rol_op-option = 'EQ'.
ls_rol_op-low = 'GOSAPPLOBJ'.
APPEND ls_rol_op TO lt_rol_op.
CALL METHOD cl_binary_relation=>read_links
EXPORTING
is_object = ls_lpor
it_relation_options = lt_option
it_role_options = lt_rol_op
IMPORTING
et_links = lt_links.
* Process the attachment list
LOOP AT lt_links INTO ls_links.
lv_document_id = ls_links-instid_b.
* Read the data
CALL FUNCTION 'SO_DOCUMENT_READ_API1'
EXPORTING
document_id = lv_document_id
IMPORTING
document_data = lwa_document_data
TABLES
object_content = lt_object_content_l
EXCEPTIONS
document_id_not_exist = 1
operation_no_authorization = 2
x_error = 3
OTHERS = 4.
ENDLOOP.
LOOP AT lt_object_content_l INTO ls_object_content_l.
ASSIGN ls_object_content_l TO <p> CASTING.
CONCATENATE ev_binfile <p> INTO ev_binfile IN BYTE MODE.
ENDLOOP.
IF ev_binfile IS NOT INITIAL AND iv_workitemid IS NOT INITIAL.
gs_att_header-file_type = 'B'.
gs_att_header-file_extension = 'PDF'.
gs_att_header-language = 'EN'.
gs_att_header-file_name = 'Scanned Atta.PDF'.
CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'
EXPORTING
workitem_id = iv_workitemid
att_header = gs_att_header
att_bin = ev_binfile
do_commit = 'X'
IMPORTING
att_id = es_att_id.
IF es_att_id IS INITIAL.
RAISE attach_failed.
ENDIF.
ENDIF.
ENDFUNCTION.
Can somebody please tell me if I went somewhere wrong. What I feel is, it's because of the PDF file being 255 chars. As I have got the PDF file but not OTF, how can I convert that ot be of 132 chars. Whatever, is the problem due to this reason only?
Can somebody please tell me where I have gone wrong. Your help is highly appreciable.
ThanksSolved. Instead of converting object_content, I got contents_hex also and converted that as below:
CALL FUNCTION 'SO_DOCUMENT_READ_API1'
EXPORTING
document_id = lv_document_id
IMPORTING
document_data = lwa_document_data
TABLES
object_content = lt_object_content_l
contents_hex = lt_hex_cont
EXCEPTIONS
document_id_not_exist = 1
operation_no_authorization = 2
x_error = 3
OTHERS = 4.
LOOP AT lt_hex_cont INTO ls_hex_cont.
ASSIGN ls_hex_cont TO <p> CASTING.
CONCATENATE ev_binfile <p> INTO ev_binfile IN BYTE MODE.
ENDLOOP. -
Problem GOS read_links of "follow-on" BKPF document
Hello,
I have problem reading GOS links ( with CL_BINARY_RELATION=>read_links or any similar methods/FMs ) of FI document (type BKPF).
In SRGBTBREL table there are also no entries for this BKPF document (in INSTID_A).
BUT I can see attachments + notes in FB03 Attachment list for this document.
After debbuging FB03 Attachment list I have found, that BKPF document does not have directly attached files, even though I can see them in FB03. Because it is "follow-on document" for invoice (which have some attached files), and there is also WF and PO in relationship browser (they have also another attachments, seen in FB03).
FB03 GOS attachment list prepares all these objects (document,invoice,WF,PO..) and reads attachments for all of them.
My question - how to read these links / attachments when I know only BKPF document in my program? Do I have to somehow programaticaly search for previous objects (invoice, PO, WF..) and after it read their attachments? I Thought that it is done automaticaly by CL_BINARY_RELATION=>read_links)...
Problem is on 731 release.Ok, I answer to myself with what I found so far:
In FB03 attachments are obtained from bussines objects:
BKPF (document itself) - can be read by read_links, but in my case I have none attachmens on BKPF directly
BUS2081 (invoice) - can be read by read_links, but need use BKPF-AWKEY = RBKP-BELNR & GJAHR as key
I also found unreleased function FB_DOC_GET_GOS_LINKS which helped me a lot to understand where attachments come from.
In my case it was all from BUS2081 invoice. Few attachments directly attached in GOS (read by read_links method) and rest were attached on content server (can be read for example with ALINK_RFC_DOCUMENTS_GET). -
Upload Gos Document Problem?
Hi friends.I wrote this code.I want to download gos attachment from computer . Where is problem? thansk for all replies.
Data : Lv_Instid_b Like Srgbtbrel-Instid_b.
Data : Lt_Folder Like Soodk Occurs 0 With Header Line ,
Lt_Object Like Soodk Occurs 0 With Header Line .
Data : Lt_Folder Like Soodk Occurs 0 With Header Line .
Data : Lt_Sood1 Like Sood1 .
Data : Gt_Objcont_tab Like Soli Occurs 0 With Header Line .
Lv_Instid_b = 'FOL30000000000004EXT34000000000091'.
Move : Lv_Instid_b+0(3) To Lt_Folder-Objtp ,
Lv_Instid_b+3(2) To Lt_Folder-Objyr ,
Lv_Instid_b+5(12) To Lt_Folder-Objno .
Move : Lv_Filetype To Lt_Sood1-File_ext ,
'ATTA' To Lt_Sood1-Objnam ,
'Eee1' To Lt_Sood1-Objdes ,
5 To Lt_Sood1-Objpri .
CALL FUNCTION 'SO_DOCUMENT_INSERT'
EXPORTING
PARENT_ID = Lt_Folder
OBJECT_HD_CHANGE = Lt_Sood1
DOCUMENT_TYPE = 'EXT'
IMPORTING
DOCUMENT_ID = Lt_Object
TABLES
OBJCONT_TEXT = Gt_Objcont_tab.Hi friends.I wrote this code.I want to download gos attachment from computer
If you want to download GOS file then you need to use fm SO_OBJECT_DOWNLOAD instead of SO_DOCUMENT_INSERT
and in sap we have standard program to do this
Please check RSSOUPDL
a® -
Problems starting tcode from swo1-object via gos (so_sendobj)
Hi,
working with gos around some swo1-object, i got the problem to start a transaction which is called from an object method: the transaction starts but the wished details of that item do not appear as expected.
When I start the test environment within tcode SWO1, and at first, I create an instance from this object giving it the right key (for the wished item) then i succeed in starting the bespoken transaction from within that method showing me the details for that item.
In the last days, I have read and learned a lot about the possibilities and interdependences of the gos mechanism using many of the hints and advices which were given here in the forum in the past. But I'am not able to achieve the wished effect via gos (send object with note) from within our application.
My guess, we need to start an instance of the object before we can show details for the wished item. In the normal case, the application shows at the left windows with containers/trees for search filters and items and within the main window on the right the details for that item. Starting this transaction a popup-window appears (showing the standard filter) where you can give the wished item no.
As I remarked, starting all these things from within the swo1 environment everything is functioning as expected...
Is there anybody who has made a similar experience and can give me some advice what we have to do to succeed in?? Is there any function module of kind SWU..., SWE... SWO... or something else which is to be called in front of that task???
I forgot to mention that within our application, there is the correct? built up of the gos-object via class cl_gos_manager constructing the needed object and the needed key, so when calling the gos-action, the bypassed sap user finds the link in the inbound position and will be directed to the correct transaction with the side effects described before.
Wish you all together a happy new year.
Kind regards
ChristianMy freind ,
in the Bussiness Objects migatration there is no select-options like
sending range of data or the multiple selections.
for this we need separate loop structure where in we can send the multiple data and everytime it calls the BAPI Obect evertime individaully ,
if you want the you have to define one new BOR object (Custom bapi)...then rignt one function module for select-options and attach it to you method in the BAPI .
So that your BAPI calls in the SAP function Module for range of data .
Reward points if it is usefull ....
Girish -
Problem about using GOS to store business document!
Hi Everyone,
I am using Generic Object services toolbar to archive document.
When I attach thru Create Attachment button and display by clicking on the attachments list, it is showing Creator name and the
real name of document .But If I attach thru Store Business document and display it thru attachment list, Creator name and the document name is blank. But client want to see the creator name also in the display.
Any one has idea about this?We need to have a document's name (i.e. name of the uploaded file) displayed in the "Attachment list" of GOS,We also need to be able to retrieve this file name programmatically via a function call or a class method .
Any Your help is much appreciated.
Thanks,
lexianHello Sachin:
Thank you very much!
Now I will tell you the procedure:
For example,enter tocode ME53,via Generic Object Services(GOS) menu path "Create -> Store business document", Then upload a document from my pc.
If what my offer is not correct ,Please tell me.
Thanks a lot!
lexian!
Edited by: le xian on Dec 3, 2010 2:47 AM -
Problem with GOS view attachment list in SAP Upgrade
Hi,
The view attachment list is working fne in 4.6c for the Z transaction. When I run the same transaction in ECC6, I am getting the 'GOS View Attachment List' icon, but when I click on
this icon, it is given short dump in ECC6 where as in 4.6c it is working fine. It shows the followin dump in ECC6.
SET HANDLER: Reference to handler object cannot be NULL.
The current ABAP program "CL_GOS_TOOLBOX_VIEW===========CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
When specification a handler for an event in the SET HANDLER statement,
the reference "IS_SERVICE-SERVICE" to the handler instance cannot be NULL.
Program CL_GOS_TOOLBOX_VIEW===========CP
Include CL_GOS_TOOLBOX_VIEW===========CM004
Row 69
Module type (METHOD)
Module Name DISPATCH_SERVICE
=============================================
When I click on SET HANDLER statement, control leads to method DISPATCH_SERVICE in class CL_GOS_TOOLBOX_VIEW.
=============================================
I am using the following code.
data: lo_container type ref to cl_gui_custom_container,
ls_object type borident.
ls_object-objtype = 'ZRECON'.
ls_object-objkey = gs_rec_all_scr-reconobj.
case ok_code.
when 'ATTACH'.
call method go_myobject->start_service_direct
exporting
ip_service = 'CREATE_ATTA'
is_object = ls_object
io_container = lo_container.
when 'LIST'.
call method go_myobject->start_service_direct
exporting
ip_service = 'VIEW_ATTA'
is_object = ls_object
exceptions no_object = 1
object_invalid = 2
execution_failed = 3
others = 4.
endcase.
The short dump given at
call method go_myobject->start_service_direct
Thanks a lot.
Zakir.Hi,
I am facing the same issue. Can somebody help me to fix this issue?
Thanks,
Geetha -
Problem in displaying GOS documents in Web Dynpro
Hi,
Requirement is to display attached documents of business objects (PR, PO) in Web Dynpro.
I am able to do this successfully but there is an issue with Office 2007 documents. Office 2007 documents are getting corrupted.
I am using following logic for reading the attached documents:
1. Called cl_binary_relation=>read_links method to get the document list.
2. Called SO_DOCUMENT_READ_API1 to get the content and details of documents.
3. Called SCMS_BINARY_TO_XSTRING to convert document content to XString.
4. Called SDOK_MIMETYPE_GET to get mime type for document so that I can bind it with FileDownload UI element.
After doing the analysis, I found that SO_DOCUMENT_READ_API1 is not returning correct file content and extension type for Office 2007 documents. Instead of '.docx' it is returning '.doc' and also the document content is not proper as I check by hard coding the mine type for .docx.
Please let me know, is there any other FM for reading document content or am I missing something?
Regards,
Vikram RawalHi,
I had the same problem...
Maintain the office 2007 extension from maintenance view V_TOADD (SM30)
for example
xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
docx application/vnd.openxmlformats-officedocument.wordprocessingml.document
then associate these extensions to your archive object maintenance view TOAVE.
Regards,
Ivan -
Problem in displaying GOS document in Web dynpro
Hi,
Requirement is to display attached documents of business objects (PR, PO) in Web Dynpro.
I am able to do this successfully but there is an issue with Office 2007 documents. Office 2007 documents are getting corrupted.
I am using following logic for reading the attached documents:
1. Called cl_binary_relation=>read_links method to get the document list.
2. Called SO_DOCUMENT_READ_API1 to get the content and details of documents.
3. Called SCMS_BINARY_TO_XSTRING to convert document content to XString.
4. Called SDOK_MIMETYPE_GET to get mime type for document so that I can bind it with FileDownload UI element.
After doing the analysis, I found that SO_DOCUMENT_READ_API1 is not returning correct file content and extension type for Office 2007 documents. Instead of '.docx' it is returning '.doc' and also the document content is not proper as I check by hard coding the mine type for .docx.
Please let me know, is there any other FM for reading document content or am I missing something?
Regards,
Vikram RawalHey Vikram Rawal,
maybe you can help me i also want to display attached documents of bussiness objects (material). When i call cl_binary=>read_links the table where the results should be is empty.
I hope you can help me.
Regards
Alexander Diring -
Problem with attaching file to Sales Order
Hello,
In my company we have the possibility to attach files to sales orders, e.g. pdf files with the printing details.
These files are added by the GUI user, this works fine.
Now we have an extra order creation stream in which a pdf file has to be added to the SO without user interaction.
I found a helpful link ( /people/rammanohar.tiwari/blog/2005/10/10/generic-object-services-gos--in-background )
This program creates URL links with no problem, but the file generation is not implemented yet.
I tried to add the file functions to his sample report but still have one problem. The file is uploaded, but not reported as a PDF file in sap. If I select the created attachment SAP allows only the saving of the attachment. After saving the created file is a good PDF file, it opens with PDF-viewers.
Why does SAP not know this is a PDF file and report it as such (and open the pdf viewer when selected).
Thanks, Frank.
source-code:
REPORT zzfb_brc .
* 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.
* I took this program and removed all the parts for adding URL's and
* notes.
* 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 'BUS2032', "SO
p_bo_id LIKE obl_s_pbor-instid DEFAULT '0000757830', "example number
* Object_b
p_docty LIKE obl_s_pbor-typeid DEFAULT 'MESSAGE' NO-DISPLAY,
p_msgtyp LIKE sofm-doctp DEFAULT 'EXT' NO-DISPLAY,
* Relationship
p_reltyp LIKE mdoblrel-reltype DEFAULT 'ATTA'.
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,
ls_doc_content TYPE soli-line.
* Create an initial instance of BO 'MESSAGE' - to call the
* instance-independent method 'Create'.
swc_create_object lo_message 'MESSAGE' lv_message_key.
* Upload the pdf file, for now from the frontend, in the future from
* the server.
DATA:
* dsn(40) TYPE C VALUE '/usr/sap/trans/convert/1.pdf', "server location
l_lines TYPE i. "filelenght
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'c:t1.pdf'
filetype = 'BIN'
IMPORTING
filelength = l_lines
TABLES
data_tab = lt_doc_content.
* no exceptions, the file is there in this example
break brouwersf.
** the coding for the server input, for later
*OPEN DATASET dsn FOR INPUT IN BINARY MODE.
*IF sy-subrc <> 0.
* EXIT.
*ENDIF.
*READ DATASET dsn INTO ls_doc_content.
*WHILE sy-subrc EQ 0.
* APPEND ls_doc_content TO lt_doc_content.
* READ DATASET dsn INTO ls_doc_content.
*ENDWHILE.
*CLEAR ls_doc_content.
*CLOSE DATASET dsn.
* 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'.
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.
swc_set_element lt_message_container 'DocumentSize' l_lines.
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
is_object_b = lo_is_object_b
ip_reltype = p_reltyp.
* Check if everything OK...who cares!!
COMMIT WORK.Hi,
Welcome to the SDN Forums!!!
You need to supply the PC file extension in the container element 'DOCUMENTTYPE'.
swc_set_element lt_message_container 'DOCUMENTTYPE' p_msgtyp.
In your case change the above statement as below:
swc_set_element lt_message_container 'DOCUMENTTYPE' 'pdf'.
<b>OR</b> change the default value of p_msgtyp to 'PDF'.
Cheers,
Ramki Maley.
Please reward points if the answer is helpful.
For info on awarding points click on this link: https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm
Message was edited by: Ramki Maley -
Create event in GOS obj to trigger workflow while attaching data with GOS
Hello experts,
It is a little bit urgent.
I have a scenario. We have to attach documents to SAP application using GOS. These documents can be edited also.
Now second part is that when we attach the document or edit the document, the document should be send with the work item "when we attach the document".
The first part of the scenario is completed and working fine. The second part of the scenario is causing problem. I have checked the various options but none of them are proving helpful.
There is an option in GOS toolbar to send the documents through workflow but that also asks for the related workflow.
I was trying to create an event for GOS object (Z object not a subtype of any other object) which can trigger the workflow automatically when the attachment are created and edited but can not go further with it as am not so strong in workflow. I ahve just created the event. Do I need to write some code for the event?
I request you to kindly help me either in creating this event which will trigger the workflow (whole process) or any other method to do the same.
Thank you all in advance.Hello Arghadip,
Thank you for replying so early. The table point is very helpful but about the batch job I do not get it. I think the second option is good trigerring event on updation of table. But again I do not know how to do it as I have customized object so have to create the event from the scratch and that, sir, is my main problem.
Kindly help.
Thank you -
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.
-
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. -
Oracle 10g Express Edition, Installation Problem
After run
# /etc/init.d/oracle-xe configure
Oracle Database 10g Express Edition Configuration-------------------------------------------------This will configure on-boot properties of Oracle Database 10g ExpressEdition. The following questions will determine whether the database shouldbe starting upon system boot, the ports it will use, and the passwords thatwill be used for database accounts. Press <Enter> to accept the defaults.Ctrl-C will abort.
Specify the HTTP port that will be used for HTML DB [8080]:8080
Specify a port that will be used for the database listener [1521]:1521
Specify a password to be used for database accounts. Note that the samepassword will be used for SYS, SYSTEM and FLOWS_020100. Oracle recommendsthe use of different passwords for each database account. This can be doneafter initial configuration:Confirm the password:
Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:y
Configuring Database...Starting Oracle Net Listener.Starting Oracle Net Listener.Starting Oracle Database 10g Express Edition Instance.
//error msg gos here
Failed to start Oracle
Net Listener using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr and Oracle Express Database using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus.
in the orcale-xe service, some message shows:
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/lsnrctl: relocation error: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/../lib/libclntsh.so.10.1: symbol semtimedop, version GLIBC_2.3.3 not defined in file libc.so.6 with link time reference
OS: Linux RH9
is that glibc version's problem? mine is glibc_2.3.2
how to make it?
thank u .Hello,
I have the same problem on RH9.
[root@phpsrv init.d]# ./oracle-xe start
Starting Oracle Net Listener.
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/lsnrctl: relocation error: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/../lib/libclntsh.so.10.1: symbol semtimedop, version GLIBC_2.3.3 not defined in file libc.so.6 with link time reference
Starting Oracle Database 10g Express Edition Instance.
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus: relocation error: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/../lib/libclntsh.so.10.1: symbol semtimedop, version GLIBC_2.3.3 not defined in file libc.so.6 with link time reference
Failed to start Oracle Net Listener using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr and Oracle Express Database using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus.
Regards,
Pavel Kucera -
Authorization for generic object services - GOS - payroll data
Is there anyway to restrict what people see via GOS? I can't see any authorisations behind it except S_OC_ROLE. Seem users can view payroll details of a workflow agent in the workflow logs(view with technical details). Its a wild shot that an end user will find this information in the container tab but it look like a massive security flaw.
I will be interested to know if others have the same problem and how they resolved it.
ThanksThis issue relates to authorisations. Depending on infotypes available to the user, they will be able to view data relating to the info type.
I will now have to review all authorisations to ensure there is no unauthorised access.
Maybe you are looking for
-
R/3 users Authntication to LDAP?
Hello, I have configured the LDAP Conenctor using Tx LDAP from R/3 4.7 running on AIX Server to MS-ADS LDAP Server. After making all the settigns i have run the report RSLDAPSYNC_USER for synchronizing the users between R/3 amd LDAP. Then the Users a
-
CD installation disk download link not working
I'm trying to download the CD installation disk for the WRT400N. The disk came with the router but the glue on the label got on the disk and makes it almost unreadable. Can someone check that link to see why the .iso file is only a couple of bits in
-
Displayed data in User Details vs. Information entered in User Profile
Hello All, I am running Portal 7.0 SPS13. In my Users Profile tab "Additional Information" I entered: Organizational Unit: NIS Position: Consultant Department: <is greyed-out / not editable> In my Users Details tab "Company" I only see: Job Title:
-
Mail 2.1.3 won't work
I'm totally exhausted trying to figure out this problem... Every few weeks, my Mail 2.1.3 fails... I can receive emails, but when I go to push SEND or REPLY or FORWARD... nothing happens. If I type, it starts overlapping and mixing up the words, like
-
Hi, Need help in understanding the functionality of catlog tab in transaction code IA07 ? It is visible in component overview. Regards, Meghana