UPLOAD OF ATTACHMENT FILES GREATER THAN 100KB FAILS
Attachment/Upload file is failing if the file is more than 50KB. The version i am using is 11.5.8 on Sun solaris. Any ideas???
mlfedv,
It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Visit http://support.novell.com and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)
Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.novell.com/faq.php
If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://forums.novell.com/
Similar Messages
-
Attaching files greater than 100mb
if you purchase the full version of adobe forms central are you able to attach files greater than 100mb
However...the talk of 100MB suggests you don't actually have Acrobat. This is indeed a fixed limit if you are a subscriber to PDF Pack (CreatePDF), and the way around it is to get Acrobat.
-
I am trying to upload a file using JAX-WS webservice which is deployed on the weblogic 10.3.5 server.Even before the code reaches the Service Endpoint lot of time is being spent at the weblogic layer. for files less than 10MB the performance is good but for files greater than 10 MB it takes around 3 mins to complete the request. I did take thread dumps and I see the thread servicing the requests is taking lot of time when executing SAX2DOMEx.characters it consumes around 80 -85 % of time here. Is there anything that I can do to improve the performance here ?
"[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'" id=37 idx=0x90 tid=16848 prio=5 alive, suspended, native_blocked, daemon
at jrockit/vm/Allocator.allocLargeObjectOrArray(JIZ)Ljava/lang/Object;(Native Method)
at jrockit/vm/Allocator.allocObjectOrArray(Allocator.java:349)[optimized]
at jrockit/vm/StringMaker.toString(StringMaker.java:188)[inlined]
at com/sun/org/apache/xerces/internal/dom/CharacterDataImpl.appendData(CharacterDataImpl.java:191)[optimized]
at com/sun/xml/bind/marshaller/SAX2DOMEx.characters(SAX2DOMEx.java:218)[inlined]
at com/sun/xml/bind/marshaller/SAX2DOMEx.characters(SAX2DOMEx.java:209)[optimized]
at com/sun/xml/ws/message/SAX2DOMWriterEx.writeCharacters( .java:108)
at com/sun/xml/ws/util/xml/XMLStreamReaderToXMLStreamWriter.handleCharacters(XMLStreamReaderToXMLStreamWriter.java:153)
at com/sun/xml/ws/util/xml/XMLStreamReaderToXMLStreamWriter.bridge(XMLStreamReaderToXMLStreamWriter.java:114)
at com/sun/xml/ws/message/stream/StreamMessage.writePayloadTo(StreamMessage.java:313)
at com/sun/xml/ws/message/stream/StreamMessage.writeEnvelope(StreamMessage.java:343)
at com/sun/xml/ws/message/stream/StreamMessage.writeTo(StreamMessage.java:321)
at com/sun/xml/ws/message/AbstractMessageImpl.readAsSOAPMessage(AbstractMessageImpl.java:226)
at com/sun/xml/ws/handler/SOAPMessageContextImpl.getMessage(SOAPMessageContextImpl.java:87)
at weblogic/wsee/jaxws/framework/jaxrpc/SOAPMessageContext.getMessage(SOAPMessageContext.java:252)
at weblogic/wsee/security/wssp/handlers/WssHandler.getSecurityContext(WssHandler.java:318)
at weblogic/wsee/security/wssp/handlers/WssHandler.preValidate(WssHandler.java:420)
at weblogic/wsee/security/wssp/handlers/PreWssServerPolicyHandler.processRequest(PreWssServerPolicyHandler.java:25)
at weblogic/wsee/security/wssp/handlers/WssHandler.handleRequest(WssHandler.java:112)
at weblogic/wsee/jaxws/framework/jaxrpc/TubeFactory$JAXRPCTube.processRequest(TubeFactory.java:222)
at com/sun/xml/ws/api/pipe/Fiber.__doRun(Fiber.java:866)
at com/sun/xml/ws/api/pipe/Fiber._doRun(Fiber.java:815)
at com/sun/xml/ws/api/pipe/Fiber.doRun(Fiber.java:778)
at com/sun/xml/ws/api/pipe/Fiber.runSync(Fiber.java:680)
^-- Holding lock: com/sun/xml/ws/api/pipe/Fiber@0x83736a70[biased lock]
at com/sun/xml/ws/server/WSEndpointImpl$2.process(WSEndpointImpl.java:403)
at com/sun/xml/ws/transport/http/HttpAdapter$HttpToolkit.handle(HttpAdapter.java:532)
at com/sun/xml/ws/transport/http/HttpAdapter.handle(HttpAdapter.java:253)
at com/sun/xml/ws/transport/http/servlet/ServletAdapter.handle(ServletAdapter.java:140)
at weblogic/wsee/jaxws/WLSServletAdapter.handle(WLSServletAdapter.java:171)
at weblogic/wsee/jaxws/HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:708)
at weblogic/security/acl/internal/AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic/security/service/SecurityManager.runAs(SecurityManager.java:146)
at weblogic/wsee/util/ServerSecurityHelper.authenticatedInvoke(ServerSecurityHelper.java:103)
at weblogic/wsee/jaxws/HttpServletAdapter$3.run(HttpServletAdapter.java:311)
at weblogic/wsee/jaxws/HttpServletAdapter.post(HttpServletAdapter.java:336)
at weblogic/wsee/jaxws/VerboseHttpProcessor.post(VerboseHttpProcessor.java:39)
at weblogic/wsee/jaxws/JAXWSServlet.doRequest(JAXWSServlet.java:98)
at weblogic/servlet/http/AbstractAsyncServlet.service(AbstractAsyncServlet.java:99)
at javax/servlet/http/HttpServlet.service(HttpServlet.java:820)
at weblogic/servlet/internal/StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic/servlet/internal/StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic/servlet/internal/ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic/servlet/internal/ServletStubImpl.execute(ServletStubImpl.java:183)
at weblogic/servlet/internal/WebAppServletContext$ServletInvocationAction.wrapRun(Lweblogic/servlet/internal/ServletStubImpl;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Ljava/lang/Object;(Unknown Source)
at weblogic/servlet/internal/WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(Unknown Source)
at weblogic/security/acl/internal/AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic/security/service/SecurityManager.runAs(SecurityManager.java:120)
at weblogic/servlet/internal/WebAppServletContext.securedExecute(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Z)V(Unknown Source)
at weblogic/servlet/internal/WebAppServletContext.execute(Lweblogic/servlet/internal/ServletRequestImpl;Lweblogic/servlet/internal/ServletResponseImpl;)V(Unknown Source)
at weblogic/servlet/internal/ServletRequestImpl.run()V(Unknown Source)
at weblogic/work/ExecuteThread.execute(ExecuteThread.java:209)
at weblogic/work/ExecuteThread.run(ExecuteThread.java:178)
at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)I am trying to upload a file using JAX-WS webservice which is deployed on the weblogic 10.3.5 server.Even before the code reaches the Service Endpoint lot of time is being spent at the weblogic layer. for files less than 10MB the performance is good but for files greater than 10 MB it takes around 3 mins to complete the request. I did take thread dumps and I see the thread servicing the requests is taking lot of time when executing SAX2DOMEx.characters it consumes around 80 -85 % of time here. Is there anything that I can do to improve the performance here ?
"[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'" id=37 idx=0x90 tid=16848 prio=5 alive, suspended, native_blocked, daemon
at jrockit/vm/Allocator.allocLargeObjectOrArray(JIZ)Ljava/lang/Object;(Native Method)
at jrockit/vm/Allocator.allocObjectOrArray(Allocator.java:349)[optimized]
at jrockit/vm/StringMaker.toString(StringMaker.java:188)[inlined]
at com/sun/org/apache/xerces/internal/dom/CharacterDataImpl.appendData(CharacterDataImpl.java:191)[optimized]
at com/sun/xml/bind/marshaller/SAX2DOMEx.characters(SAX2DOMEx.java:218)[inlined]
at com/sun/xml/bind/marshaller/SAX2DOMEx.characters(SAX2DOMEx.java:209)[optimized]
at com/sun/xml/ws/message/SAX2DOMWriterEx.writeCharacters( .java:108)
at com/sun/xml/ws/util/xml/XMLStreamReaderToXMLStreamWriter.handleCharacters(XMLStreamReaderToXMLStreamWriter.java:153)
at com/sun/xml/ws/util/xml/XMLStreamReaderToXMLStreamWriter.bridge(XMLStreamReaderToXMLStreamWriter.java:114)
at com/sun/xml/ws/message/stream/StreamMessage.writePayloadTo(StreamMessage.java:313)
at com/sun/xml/ws/message/stream/StreamMessage.writeEnvelope(StreamMessage.java:343)
at com/sun/xml/ws/message/stream/StreamMessage.writeTo(StreamMessage.java:321)
at com/sun/xml/ws/message/AbstractMessageImpl.readAsSOAPMessage(AbstractMessageImpl.java:226)
at com/sun/xml/ws/handler/SOAPMessageContextImpl.getMessage(SOAPMessageContextImpl.java:87)
at weblogic/wsee/jaxws/framework/jaxrpc/SOAPMessageContext.getMessage(SOAPMessageContext.java:252)
at weblogic/wsee/security/wssp/handlers/WssHandler.getSecurityContext(WssHandler.java:318)
at weblogic/wsee/security/wssp/handlers/WssHandler.preValidate(WssHandler.java:420)
at weblogic/wsee/security/wssp/handlers/PreWssServerPolicyHandler.processRequest(PreWssServerPolicyHandler.java:25)
at weblogic/wsee/security/wssp/handlers/WssHandler.handleRequest(WssHandler.java:112)
at weblogic/wsee/jaxws/framework/jaxrpc/TubeFactory$JAXRPCTube.processRequest(TubeFactory.java:222)
at com/sun/xml/ws/api/pipe/Fiber.__doRun(Fiber.java:866)
at com/sun/xml/ws/api/pipe/Fiber._doRun(Fiber.java:815)
at com/sun/xml/ws/api/pipe/Fiber.doRun(Fiber.java:778)
at com/sun/xml/ws/api/pipe/Fiber.runSync(Fiber.java:680)
^-- Holding lock: com/sun/xml/ws/api/pipe/Fiber@0x83736a70[biased lock]
at com/sun/xml/ws/server/WSEndpointImpl$2.process(WSEndpointImpl.java:403)
at com/sun/xml/ws/transport/http/HttpAdapter$HttpToolkit.handle(HttpAdapter.java:532)
at com/sun/xml/ws/transport/http/HttpAdapter.handle(HttpAdapter.java:253)
at com/sun/xml/ws/transport/http/servlet/ServletAdapter.handle(ServletAdapter.java:140)
at weblogic/wsee/jaxws/WLSServletAdapter.handle(WLSServletAdapter.java:171)
at weblogic/wsee/jaxws/HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:708)
at weblogic/security/acl/internal/AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic/security/service/SecurityManager.runAs(SecurityManager.java:146)
at weblogic/wsee/util/ServerSecurityHelper.authenticatedInvoke(ServerSecurityHelper.java:103)
at weblogic/wsee/jaxws/HttpServletAdapter$3.run(HttpServletAdapter.java:311)
at weblogic/wsee/jaxws/HttpServletAdapter.post(HttpServletAdapter.java:336)
at weblogic/wsee/jaxws/VerboseHttpProcessor.post(VerboseHttpProcessor.java:39)
at weblogic/wsee/jaxws/JAXWSServlet.doRequest(JAXWSServlet.java:98)
at weblogic/servlet/http/AbstractAsyncServlet.service(AbstractAsyncServlet.java:99)
at javax/servlet/http/HttpServlet.service(HttpServlet.java:820)
at weblogic/servlet/internal/StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic/servlet/internal/StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic/servlet/internal/ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic/servlet/internal/ServletStubImpl.execute(ServletStubImpl.java:183)
at weblogic/servlet/internal/WebAppServletContext$ServletInvocationAction.wrapRun(Lweblogic/servlet/internal/ServletStubImpl;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Ljava/lang/Object;(Unknown Source)
at weblogic/servlet/internal/WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(Unknown Source)
at weblogic/security/acl/internal/AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic/security/service/SecurityManager.runAs(SecurityManager.java:120)
at weblogic/servlet/internal/WebAppServletContext.securedExecute(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Z)V(Unknown Source)
at weblogic/servlet/internal/WebAppServletContext.execute(Lweblogic/servlet/internal/ServletRequestImpl;Lweblogic/servlet/internal/ServletResponseImpl;)V(Unknown Source)
at weblogic/servlet/internal/ServletRequestImpl.run()V(Unknown Source)
at weblogic/work/ExecuteThread.execute(ExecuteThread.java:209)
at weblogic/work/ExecuteThread.run(ExecuteThread.java:178)
at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method) -
Is there a correlation b/w Error -2048 and MPEG-4 files greater than 2GB?
I am having considerable difficulty in getting any of my DVD/movie files greater than 2GB to upload into my iTunes library. Anyone else having this difficulty? Through another problem, I discovered that iTunes ability to play video is based a thinned-down version of the Apple's QT engine, which prompted me to try and open these files using QT Pro; however, there too, I am getting a peculiar -2048 error suggesting it is not a movie file. The files were created using WONDERSHARE and I am experiencing difficulty with only the files that exceed 2GB in size.
For WONDERSHARE users, here are my relevant settings:
RESOLUTION: 720*400
CODEC: H.264
FPS: 30
KBPS: 2,000 or 2,500 (toggled in between both to manage file size for longer movies, like 3 hour Bollywood epics)
Any help on this matter woudl be much appreciated.
Thanks,
TabishJon,
Thanks for your response. I have inserted commentary below:
I am having
considerable difficulty in getting any of my
DVD/movie files greater than 2GB to upload into my
iTunes library.The 2 GB
restriction is usually on your source file -- the DVD
VOB -- or associated with Fat-32 file system. I have
H.264 files as large as 3.8 GB for SD content.
The file system is NTFS. I am not sure what you mean by DVD VOB.
I discovered that
iTunes ability to play video is based a thinned-down
version of the Apple's QT
engineiTunes can access the
entire QT structure. The iPod and TV players are
limited to a modest QT sub-set.
O.K. But, QT still cannot open the file. If the files are corrupt, how come they only become corrupt at 2+ GB.
however, there too, I
am getting a peculiar -2048 error suggesting it is
not a movie file.If issued by an
Apple application, this error code usually equates to
"noMovieFound" at the referenced location. This could
be a path error or refer to a movie interrupt during
conversion (as when your 2 GB plus source file
terminates prematurely) and the target file is not
closed properly (and is likely not recognized as a
valid QT file).
CODEC:
H.264In which profile?
Again, not sure what you mean by "profile." -
Formatting external drive for read/write PC/Mac & files greater than 4GB
I'm on Snow Leopard and deliver an external drive off-site to a video editor who needs to read/write to the drive and return the edited files and then I need to read/write all over again. All video files are greater than 4GB. How would I go about this? Third party applications like MacDrive create too much overhead when processing video files. FAT32 limits file sizes to 4GB.
Hi WillDuffy;
Your requirement of files greater than 4GB eliminates FAT.
In your case since you don't have access to the PC, I am afraid you are forced to use the NTFS. This will require you to use the reverse engineered effort called NTFS-3G to be able to write to the disk from your Mac. Sorry.
Allan
Message was edited by: Allan Eckert -
Merging files greater than 100MB in size
How do I merge multiple pdf files greater than 100MB in size?
However...the talk of 100MB suggests you don't actually have Acrobat. This is indeed a fixed limit if you are a subscriber to PDF Pack (CreatePDF), and the way around it is to get Acrobat.
-
How do I search for files greater than 500M in size within a directory?
I would like to know how to recursively search through a directory and it's subdirectories for files greater than 500M. What is the command for this?
Thanks!Oh my, it's too early...
You want >500M files, here you go...
find /path/to/dir -type f -size +524288000c
**BLUSH**
To add something useful here, in ksh you can type
find /path/to/dir -type f -size +$((500*1024*1024))c -
Not able to attach files other than photos/videos on iPad Safari/Chrome
Not able to attach files other than photos/videos on iPad Safari/Chrome
You cannot attach them in a mail.
But, you can do this.
1. Go to the document.
2. Tap on share button.
3. There should be an option "Mail"
4. Tap on it and attach.
Note:
1. If you are checking your mail in browswer - this does not work.
2. You cannot attach it to the mail you are currently composing. -
How do I download files greater than 200MB to my Iphone now my music is in the iCloud?
How do I download files greater than 200MB to my Iphone now my music is in the iCloud? I still have my music on my hard drive of course.
Go to settings --> store --> and make sure automatic downloads for music is on. If you download music in iTunes, it should automatically download to your phone.
-
Problem in uploading PDF file greater than 450Kb in portals
Hi All,
There is aproblem when we upload a PDF file of size greater than 450 KB in portals,it shows some error.
Do i need to change any server settings for this or any other configuration is required.
Help will be appreciated
Thanks in AdvanceHi Amit,
Pls check the thread below:
/message/1634863#1634863 [original link is broken]
Hope this helps.
Regards,
venkat -
Restricting users from uploading files greater than certain size in Kpro
Hi,
How can we restric users from uploading files in SAPoffice which are greater than certain size (5MB)?
Awaiting for reply.Hello Gino,
you go to Tcode DC10, in the define document type,
there is a option file size, this gives you restriction , only if you are not using KPro and content server.
If you are using Kpro and content server, then please do the enhancement (SE80, package ,CV)
With the help of this you can restrict and put the warinig message if your original size is exceed.
Thanks & Regards,
nitin
Award point if useful -
Restricting users froms uploading files greater than certain size in km.
Hi,
How can we restric users to upload files in KM which are greater than certain size (5MB)?Awaiting for reply.Hi,
It is out of standard you must develop your own upload command (SAP Developer Studio).
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/knowledge management and collaboration developers guide.html
Patricio. -
While running an OBIEE report, I receive the following error:
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46073] Operation 'stat()' on file '/u02/OracleBIData/tmp/nQS_28056_15671_77250638.TMP' failed with error: (75) . (HY000)
The problem seems to be that the TEMP file created by the query is greater than 2 GB.
Is there a way within OBIEE to bypass the 2 GB file size limitation of 32-bit servers (Windows/LINUX)?John - I don't understand how this is a cache issue. The file being created is a TEMP file in the /OracleBI_Data/tmp directory. What is the relationship between the TEMP directory and cache?
My DATA_STORAGE_PATHS is currently set at 4 GB.
By the way, I have spent a lot of time reading your OBIEE blog, and have found it to be extremely helpful. -
Uploading a Specific file rather than browsing
My app allows users to create a user-named jpg like so:-
var enteredimagename:String = imagenameentry.text;
var file:File = File.applicationDirectory.resolvePath(('assets/images/')+enteredimagename+('.jpg'));
However I now want to allow a user to upload that specfic file automatically to my server by clicking a button which will simply upload that file WITHOUT having them browse for it. So basically I need it set up so that when the user clicks a button whatever name they type into the imagenameentry.text will be the image that gets uploaded. For example they create an image which they name yahooimage by typing yahooimage into the imagenameentry text input component. Once a button is clicked this will save this image as assets/images/yahooimage.jpg but I want to advance this button click further so that this specific jpg is then set as the file for upload without browsing for it. All the examples I've seen use the browse function though which is not what I want.
How can this be combined with the filereference method or some other way so that the file to be uploaded can be entered into a textinput component as described above rather than browsed for?Hi David,
go through these docs: [Doc1|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71]
If you want to uplaod file on WAS then go through this doc..
[Doc2|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/607e9392-8167-2b10-b9a8-e0aa297e88c6]
hpe it hlps
Regards
Khushboo -
Upload and Attach file to Service Notificacion through Web Dynpro
Hi,
I need to upload and attach a file (Word, PDF, TXT ...) to Service Notificacion (TX - IW53) through Web Dynpro.
I have used the integration component "File Upload" to obtain the "fileName" atribute. Also, I have used the functions SO_OBJECT_UPLOAD, SO_INSERT_OBJECT and BINARY_RELATION_CREATE_COMMIT.
But have a problem, because the function SO_OBJECT_UPLOAD use the class "cl _ gui _ frontend _ services" and that clash with Web Dynpro.
My question is: how could I resolve that problem?
I look forward to your response.
ThanksIV_NAME Importing Type STRING
IV_CONTENT Importing Type STRING
IV_CONTENT_HEX Importing Type XSTRING
IS_LPORB Importing Type SIBFLPORB
IV_OBJTP Importing Type SO_OBJ_TP
RT_MESSAGES Returning Type BAPIRETTAB
method save.
data ls_message type bapiret2.
data:
filename type string,
filefullname type string,
mime_type type string,
size type i,
offset type i,
offset_old type i,
temp_len type i,
objname type string,
l_obj_type type so_obj_tp,
hex_null type x length 1 value '20',
l_document_title type so_text255,
file_ext type string,
lt_objcont type standard table of solisti1 initial size 6,
objcont like line of lt_objcont,
lt_ls_doc_change type standard table of sodocchgi1,
ls_doc_change like line of lt_ls_doc_change,
lt_data type soli_tab,
ls_data type soli,
lt_xdata type solix_tab,
ls_xdata type solix,
l_folder_id type sofdk,
ls_object_id type soodk,
l_object_id_fol type so_obj_id,
l_object_id type so_obj_id,
l_doc_info TYPE sofolenti1,
l_object_hd_change type sood1,
l_tab_size type int4,
l_retype type breltyp-reltype,
lt_urltab type standard table of sood-objdes.
get foler
l_folder_id = 'FOL29000000000004'.
call function 'SO_FOLDER_ROOT_ID_GET'
exporting
owner = sy-uname
region = 'B'
importing
folder_id = l_folder_id
tables
path_table =
if iv_objtp = gc_type_file.
size = xstrlen( iv_content_hex ).
get file name and extension
call method split_path
exporting
iv_path = iv_name
importing
E_PATH =
ev_filename = filename
E_PSERVER =
call method split_file_extension
exporting
iv_filename_with_ext = filename
importing
ev_filename = objname
ev_extension = file_ext.
ls_doc_change-obj_name = objname.
ls_doc_change-obj_descr = objname.
ls_doc_change-obj_langu = sy-langu.
ls_doc_change-sensitivty = 'F'.
ls_doc_change-doc_size = size.
offset = 0.
while offset <= size.
offset_old = offset.
offset = offset + 255.
if offset > size.
temp_len = xstrlen( iv_content_hex+offset_old ).
clear ls_xdata-line with hex_null in byte mode.
ls_xdata-line = iv_content_hex+offset_old(temp_len).
else.
ls_xdata-line = iv_content_hex+offset_old(255).
endif.
append ls_xdata to lt_xdata.
endwhile.
set object type relation type and other header info
l_retype = 'ATTA'.
l_obj_type = 'EXT'.
l_object_hd_change-objnam = ls_doc_change-obj_name.
l_object_hd_change-objdes = ls_doc_change-obj_descr.
l_object_hd_change-objsns = ls_doc_change-sensitivty.
l_object_hd_change-objla = ls_doc_change-obj_langu.
l_object_hd_change-objlen = ls_doc_change-doc_size.
l_object_hd_change-file_ext = file_ext.
prepare header
data lt_obj_header type standard table of solisti1.
data ls_header type solisti1.
concatenate '&SO_FILENAME=' filename into ls_header.
append ls_header to lt_obj_header.
clear ls_header.
ls_header = '&SO_FORMAT=BIN'.
append ls_header to lt_obj_header.
change hex data to text data
call function 'SO_SOLIXTAB_TO_SOLITAB'
exporting
ip_solixtab = lt_xdata
importing
ep_solitab = lt_data.
else.
for note
size = strlen( iv_content ).
objname = iv_name.
ls_doc_change-obj_descr = objname.
ls_doc_change-sensitivty = 'O'.
ls_doc_change-obj_langu = sy-langu.
put content into table
offset = 0.
if iv_objtp = gc_type_note.
it's a note
l_retype = 'NOTE'.
l_obj_type = 'RAW'.
l_object_hd_change-file_ext = 'TXT'.
read note content into table
while offset <= size.
offset_old = offset.
offset = offset + 255.
if offset > size.
temp_len = strlen( iv_content+offset_old ).
clear ls_data-line.
ls_data-line = iv_content+offset_old(temp_len).
else.
ls_data-line = iv_content+offset_old(255).
endif.
append ls_data to lt_data.
endwhile.
get title from content , if it's initial
if objname is initial.
read table lt_data index 1 into l_document_title.
while l_document_title+49 <> ' '.
shift l_document_title right.
endwhile.
shift l_document_title left deleting leading ' '.
ls_doc_change-obj_descr = l_document_title.
endif.
else.
it's url (not note)
l_retype = 'URL'.
l_obj_type = 'URL'.
if objname is initial.
split iv_content at '/' into table lt_urltab.
describe table lt_urltab lines l_tab_size.
read table lt_urltab index l_tab_size into ls_doc_change-obj_descr.
endif.
while offset <= size.
offset_old = offset.
offset = offset + 250.
if offset > size.
temp_len = strlen( iv_content+offset_old ).
clear ls_data-line.
ls_data-line = iv_content+offset_old(temp_len).
else.
ls_data-line = iv_content+offset_old(250).
endif.
concatenate '&KEY&' ls_data-line into ls_data-line.
append ls_data to lt_data.
endwhile.
endif.
ls_doc_change-doc_size = size.
l_object_hd_change-objnam = ls_doc_change-obj_name.
l_object_hd_change-objdes = ls_doc_change-obj_descr.
l_object_hd_change-objsns = ls_doc_change-sensitivty.
l_object_hd_change-objla = ls_doc_change-obj_langu.
l_object_hd_change-objlen = ls_doc_change-doc_size.
endif.
save object
call function 'SO_OBJECT_INSERT'
exporting
folder_id = l_folder_id
OBJECT_FL_CHANGE = OBJECT_FL_CHANGE
object_hd_change = l_object_hd_change
object_type = l_obj_type
ORIGINATOR_ID = OWNER_ID
OWNER = USER-USRNAM
importing
OBJECT_FL_DISPLAY = OBJECT_FL_DISPLAY
OBJECT_HD_DISPLAY = OBJECT_HD_DISPLAY
object_id = ls_object_id "l_doc_info-object_id
tables
objcont = lt_data
objhead = lt_obj_header
OBJPARA = OBJECT_PARA
OBJPARB = OBJECT_PARB
exceptions
component_not_available = 01
folder_not_exist = 06
folder_no_authorization = 05
object_type_not_exist = 17
operation_no_authorization = 21
parameter_error = 23
others = 1000.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 into ls_message-message.
ls_message-type = sy-msgty.
ls_message-id = sy-msgid.
ls_message-number = sy-msgno.
ls_message-message_v1 = sy-msgv1.
ls_message-message_v2 = sy-msgv2.
ls_message-message_v3 = sy-msgv3.
ls_message-message_v4 = sy-msgv4.
append ls_message to rt_messages.
return.
endif.
create relation
data l_obj_rolea type borident.
data l_obj_roleb type borident.
MOVE-CORRESPONDING wd_this->ms_lporb to l_obj_rolea.
l_obj_rolea-objkey = is_lporb-instid.
l_obj_rolea-objtype = is_lporb-typeid.
l_obj_rolea-logsys = is_lporb-catid.
l_object_id_fol = l_folder_id.
l_object_id = ls_object_id.
concatenate l_object_id_fol l_object_id into l_obj_roleb-objkey respecting blanks.
l_obj_roleb-objtype = 'MESSAGE'.
clear l_obj_roleb-logsys.
call function 'BINARY_RELATION_CREATE'
exporting
obj_rolea = l_obj_rolea
obj_roleb = l_obj_roleb
relationtype = l_retype
exceptions
others = 1.
if sy-subrc = 0.
commit work and wait.
wd_this->MV_UPDATE_FLAG = 'X'.
else.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 into ls_message-message.
ls_message-type = sy-msgty.
ls_message-id = sy-msgid.
ls_message-number = sy-msgno.
ls_message-message_v1 = sy-msgv1.
ls_message-message_v2 = sy-msgv2.
ls_message-message_v3 = sy-msgv3.
ls_message-message_v4 = sy-msgv4.
append ls_message to rt_messages.
return.
endif.
endmethod.
Edited by: Reyleene Hunt on May 26, 2009 10:05 AM
Maybe you are looking for
-
Sorry if I am posting this question in the wrong location, but hopefully someone who sees this message will be able to answer or point me in the right direction. I did perform a search and could not find a definitive answer. There are documents in my
-
Hi, I am using 10g and wanted to check if we can use a dynamic cursor in a procedure. Following is my code and wanted to see if that can work with every query passed as a parameter. example , exec test1 ('select col1, col2, col3 from table1','Two col
-
Does ReportDocument leak memory?
<p class="ssiBODYCOPY">Using CrystalDecisions.CrystalReports.Engine.ReportDocument XI R2.<br /><br />w3wp.exe memory use raises while a report is generated (which is expected), yet it does not seem to be ever released after. If you keep generating sa
-
Locking and unlocking all responsiblity
Hi guys, I will like to know how to lock all my responsibility and unlock it. in 11.5.10.2. I have seen some shops lock all responsibility and unlock it after cloning. I will like to know how to do this using sql please. thanks in advance
-
5911 self cal reports a problem w/ the temp stab circuit. not due to pc -12V
I have three 5911 scope cards in a test pc and one generates a temperature stabilization circuit error when self cal is ran and times out when operated through NI-MAX test panel. I have swapped card positions and the problems follows the card. Is t