VO.xml blank on server
Hi,
I am unable to see any in the VO.xml files. Due to this i am unable to work on any.
what might be the issue.
Error(5,2): <Line 5, Column 2>: XML-20108: (Fatal Error) Start of root element expected. for all VO.xml files
thanks
Kindly download the VO.xml file from server again. The files should be there and you would be able to see the xml files. In case there is a different server for Concurrent programs, kindly check for the files under appropriate server.
Regards
Sumit
Similar Messages
-
Reading a XML File from server in BI Publisher
Hi All,
Can any one help me how i can get the XML file from server to BI Publisher using data source.
The file should transfer directly to BI Publisher with out storing it in any local directory in local system.
Thank you
Shalini.Shalini
Do you mean that you have another system that is going to serve up the XML data and you want BIP to be able to pick it up as a data source ?
Couple of options:
1, If the XML filename can remain static you can use the 'XML File' datasource. You need to set up a directory on the server and then maybe create a dummy XML file to start with upon which you can build a report. Then have your external data generator put the file into that directory and then schedule the report so that BIP will pick and report.
2. IS the data generator accessible via HTTP or web service - BIP supports those too.
3. More complex but with a little effort you can create a servlet that will pick up the file from a directory and serve it up to BIP on demand - Im going to write about this on the blog this week
Regards
Tim -
Import xml file from server to itab
Hi all,
I have a little issue loading data from xml file in server into my itab.
With my file in local (C:\example\example.xml) works fine, but if try this with the same file in the server (e:\example\example.xml) dont work. This is my code resume.
TYPES: BEGIN OF TY_TAB,
NAME TYPE STRING,
VALUE TYPE STRING,
END OF TY_TAB.
DATA: ITAB TYPE STANDARD TABLE OF TY_TAB,
WA TYPE TY_TAB.
* Nombre del fichero
DATA: NOMBREFICHEROXML LIKE IBIPPARMS-PATH,
* data XML
DATA: LCL_XML_DOC TYPE REF TO CL_XML_DOCUMENT,
V_SUBRC TYPE SYSUBRC,
V_NODE TYPE REF TO IF_IXML_NODE,
V_CHILD_NODE TYPE REF TO IF_IXML_NODE,
V_ROOT TYPE REF TO IF_IXML_NODE,
V_ITERATOR TYPE REF TO IF_IXML_NODE_ITERATOR,
V_NODEMAP TYPE REF TO IF_IXML_NAMED_NODE_MAP,
V_COUNT TYPE I,
V_INDEX TYPE I,
V_ATTR TYPE REF TO IF_IXML_NODE,
V_NAME TYPE STRING,
V_PREFIX TYPE STRING,
V_VALUE TYPE STRING,
V_CHAR TYPE CHAR2.
NOMBREFICHEROXML = 'E:\example\example.xml'.
CREATE OBJECT LCL_XML_DOC.
CALL METHOD LCL_XML_DOC->IMPORT_FROM_FILE
EXPORTING
FILENAME = NOMBREFICHEROXML
RECEIVING
RETCODE = V_SUBRC.
IF V_SUBRC EQ '0'.
V_NODE = LCL_XML_DOC->M_DOCUMENT.
CHECK NOT V_NODE IS INITIAL.
V_ITERATOR = V_NODE->CREATE_ITERATOR( ).
V_NODE = V_ITERATOR->GET_NEXT( ).
WHILE NOT V_NODE IS INITIAL.
CASE V_NODE->GET_TYPE( ).
WHEN IF_IXML_NODE=>CO_NODE_ELEMENT.
V_NAME = V_NODE->GET_NAME( ).
WHEN IF_IXML_NODE=>CO_NODE_TEXT OR
IF_IXML_NODE=>CO_NODE_CDATA_SECTION.
*text node
V_VALUE = V_NODE->GET_VALUE( ).
MOVE V_VALUE TO V_CHAR.
IF V_CHAR <> CL_ABAP_CHAR_UTILITIES=>CR_LF.
WA-NAME = V_NAME.
WA-VALUE = V_VALUE.
APPEND WA TO ITAB.
CLEAR WA.
ENDIF.
ENDCASE.
*advance to next node
V_NODE = V_ITERATOR->GET_NEXT( ).
ENDWHILE.
WRITE:/ 'file ok'.
ELSE.
WRITE:/ 'file ko'.
Anyone can help, or tell me a easy way to load xml file from server to my itab that works with my old sap 4.7.
thanks
Edited by: DIEGO_GT on Nov 18, 2011 12:04 PMHi Diego.
Next time try to search in [www.sdn.sap.com] first.
See the following example: [http://wiki.sdn.sap.com/wiki/display/ABAP/UploadXMLfiletointernal+table]
Regards.
Rafael Rojas. -
Upload XML file from server to itab
After failed to get a answer about download data from xml file in server to my itab, and searching and searching in hundred of post and threads i try my own solution for this issue.
I read the file with:
OPEN DATASET FICHERO FOR INPUT IN TEXT MODE ENCODING DEFAULT.
In this case the result is a table filled with register type string like this:
#<label>22222</label>
I need a table with this kind of value (example):
label | 22222
label2 | John
label3 | Smith
Therefore i have to parse the data of my table, i try with the FM:
TEXT_CONVERT_XML_TO_SAP
But dont works for me,
I am too new in ABAP.
The code for my report is very simple:
REPORT ZPRUEBA_XML.
DATA: BEGIN OF TABLA OCCURS 1,
TEXTO(256) TYPE C,
END OF TABLA.
DATA: FICHERO LIKE RLGRAP-FILENAME.
OPEN DATASET FICHERO FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF SY-SUBRC NE 0.
WRITE:/ 'ERROR'.
ENDIF.
FREE TABLA.
DO.
READ DATASET FICHERO INTO TABLA.
IF SY-SUBRC NE 0.
EXIT.
ELSE.
APPEND TABLA.
WRITE: TABLA-TEXTO.
ENDIF.
ENDDO.
CLOSE DATASET FICHERO.
And my ".xml" in the server is very simple too.
<label>222222</label>
<name>John</name>
<street>Smith, 23, NY</street>
Anyone can help me?
ThanksHi,
You could use a transformation to do that, or call FM 'TEXT_CONVERT_XML_TO_SAP'... you also have the class IF_IXML that should help you and a lot of threads on the subject, such as:
convert XML data into ABAP internal table
ABAP Class to convert XML to itab
Upload XML to internal table and vice versa in SAP 4.6C
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e66701fc-0d01-0010-9c9a-f8a36c4e87ba
Kr,
Manu. -
Reading XML file from server in BI Publisher
Hi All,
Can any one help me how i can get the XML file from server to BI Publisher using data source.
The file should transfer directly to BI Publisher with out storing it in any local directory in local system.
Thank you
Shalini.Shalini
Do you mean that you have another system that is going to serve up the XML data and you want BIP to be able to pick it up as a data source ?
Couple of options:
1, If the XML filename can remain static you can use the 'XML File' datasource. You need to set up a directory on the server and then maybe create a dummy XML file to start with upon which you can build a report. Then have your external data generator put the file into that directory and then schedule the report so that BIP will pick and report.
2. IS the data generator accessible via HTTP or web service - BIP supports those too.
3. More complex but with a little effort you can create a servlet that will pick up the file from a directory and serve it up to BIP on demand - Im going to write about this on the blog this week
Regards
Tim -
How to use XML on another server?
I need help figuring out how to consume XML from another
domain. It's a domain that is providing search functionality for a
website. The domain indexes my site, and I can "post" searches to
an URL with my search terms URL-escaped. It returns an XML
document. I want to use Spry to consume that XML.
I'm pretty experienced consuming XML and using it in Spry
pages, but to date have not done anything that crosses domains. I
will have access to Perl on the production box that hosts my site,
with a remote chance that I could get PHP enabled. This is a public
web server for a very very large financial company, so my choices
of what can go on a production server outside our firewall are
limited by corporate policy.
What are the basic steps that need to happen? Can someone
bullet-point how this might work from one end to the other? I have
the basic theory down of what needs to happen, but not much else at
this point.
Here is what I understand:
1 - user fills in search form and hits enter
2 - form posts to a Perl script on my box
3 - Perl takes the form variables and appends them to a URL
request to the 3rd party search domain
4 - 3rd party search company returns an xml file
5 - not sure what Perl needs to do here with the xml so that
my HTML page with Spry can read it....it does something, let's just
say
6 - Perl writes out a page, based on a template in my site
that then consumes the XML that is somehow available on my domain
now...
This raises so many questions...like if I save the results
XML on my server, how do I get rid of them after they are consumed
and also how do I prevent other sessions from accessing that "saved
copy" of XML...I know I'm thinking wrong here. That can't be how
it's done...Hence...my question about all this.
Where do I start?
Thanks,
Douguser12004297 wrote:
thank you so much - however on the source database I dropped tables and users- then I did an "alter system switch logfile;" - copied the archivelogs to the / test DRP and loaded the archivelogs and the users and tables were not dropped like i did in source
RMAN> tartup mount
Oracle instance started
database mounted
Total System Global Area 1119043584 bytes
Fixed Size 2227624 bytes
Variable Size 620757592 bytes
Database Buffers 469762048 bytes
Redo Buffers 26296320 bytes
RMAN> CATALOG START WITH '/oradb1/backup';
using target database control file instead of recovery catalog
searching for all files that match the pattern /oradb1/backup
List of Files Unknown to the Database
=====================================
File Name: /oradb1/backup/1_345_819727387.dbf
Do you really want to catalog the above files (enter YES or NO)? YES
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /oradb1/backup/1_345_819727387.dbf
RMAN> recover database;
Starting recover at 20-NOV-13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=249 device type=DISK
starting media recovery
media recovery complete, elapsed time: 00:00:02
Finished recover at 20-NOV-13
RMAN> alter database open;
database opened
RMAN
Simply making the database aware of the archivlogs does NOT mean rman will determine they need to be used for a specific recovery operation. What all had you done to/with this database prior to this? Keep firmly in mind the effect of any OPEN RESETLOGS. -
XSQL-003: Failed to find 'XSQLConfig.xml' file in server CLASSPATH.
Hi,
I'm trying to make the Tomcat 1.3.2 to work with xsql servlet, and have followed the instructions on how to do it, but i get the : XSQL-003: Failed to find 'XSQLConfig.xml' file in server CLASSPATH. - error.
What am I doing wrong?
nullForget it...
I had pasted in:
set CLASSPATH=%CLASSPATH%;directory_where_XSQLConfig.xml_resides
istead of:
set CLASSPATH=%CLASSPATH%;C:\xsql\lib
works now....
null -
Sending XML messages from server to client using POST method
Dear everyone,
I have a simple client server system - using Socket
class on the server side and URLConnection class on
the client side. The client sends requests to the
server in the form of an XML message using POST method.
The server processes the request and responds with
another XML message through the same connection.
That's the basic idea.
I have a few questions about headers and formats
especially with respect to POST.
1. In what format should the response messages from the
server be, for the client? Does the server need to
send the HTTP headers - for the POST type requests?
Is this correct?:
out.println("HTTP/1.1 200 My Server\r");
out.println("Content-type: text/xml\r");
out.println("Content-length: 1024\r");
out.println("\r");
out.println("My XML response goes here...");2. How do I read these headers and the actual message
in the client side? I figured my actual message was
immediately after the blank line. So I wrote
something like this:
String inMsg;
// loop until the blank line is through.
while (!"".equals(inMsg = reader.readLine()))
System.out.println(inMsg);
// get the actual message and process it.
inMsg = reader.readLine();
processMessage(inMsg);But the above did not work for me. Because I seem to
be receiving a blank line after each header! (I suppose
that was because of the "\r".) So what should I do?
3. What are the different headers I must pass from
server to the client to safeguard against every
possible problem?
4. What are the different exceptions I must be prepared
for this situation? How could I cope with them? For
example, time outs, IOExceptions, etc.
Thanks a lot! I appreciate all your help!
Georgehello,
1) if you want to develop a distributed application with XML messages, you can look in SOAP.
it's a solution to communicate objects distributed java (or COM or other) and it constructs XML flux to communicate between them.
2) if it can help you, I have developed a chat in TCP/IP and, to my mind, when you send datas it's only text, so the format isn't important, the important is your traitement behind.
examples :
a client method to send a message to the server :
public void send(String message)
fluxOut.println(message);
fluxOut.flush();
whith
connexionCourante = new Socket(lAdresServeur, noPort);
fluxOut= new PrintWriter( new OutputStreamWriter(connexionCourante.getOutputStream()) );
a server method in a thread to receive and print the message :
while(true)
if (laThread == null)
break;
texte = fluxIn.readLine();
System.out.println(texte);
that's all ! :)
If you want to use it for your XML communication, it could be a good idea to use a special message, for example "@end", to finish the server
ex :
while(true)
if (laThread == null)
break;
texte = fluxIn.readLine();
// to stop
if (texte.equals("@end"))
{break;}
processMessage(texte );
hope it will help you
David -
Can not parse the xml in orion server.
Hi, can anyone help me on this.
I have some configuration file which should be parsed when start the server. It works fine in tomcat , JRun, and some other server, now when I test it using the orion server, It throws out the
org.apache.commons.digester.xmlrules.XmlLoadException: Relative URI "digester-rules.dtd"; can not be resolved without a document URI.
I put the dtd and xml together in web-root and specify the location using
<!DOCTYPE digester-rules PUBLIC "-//Jakarta Apache //DTD digester-rules XML V1.0//EN" "digester-rules.dtd">
can anyone tell me how to resolve this.
following is a code snippet of init the digester
Digester ruleDigester = new Digester();
ruleDigester.setUseContextClassLoader(true);
System.out.println(ruleURL);
FromXmlRuleSet ruleSet = new FromXmlRuleSet(ruleURL, ruleDigester);
Digester digester = new Digester();
digester.setUseContextClassLoader(true);
ruleSet.addRuleInstances(digester);
rules = digester.getRules();I think you'd better ask this question in apache user mailing list
http://jakarta.apache.org/site/mail2.html#Commons -
How i configure the log4j.xml in weblogic server
hi
i write a new lg4j.xml and i put this in WEB-INF/classes,i deployed this jar in my remote server,but it not reflected. [i am not specify the server logs, we have some API's which is deployed in server for that API log files is configured using log4j.xml ]
i saw there is a option in weblogic - setDomain -LOG4J_CONFIG_FILE='here we give the path for log4j.xml'.I think it's only work for local machines not for the remote machines.
i don't know how to get a log files in weblogic serverTo use Quartz primarily within an application server environment,include the Quartz JAR within the enterprise application (.ear or .war file). However, if you want to make Quartz available to many applications then simply make sure it's on the classpath of your appserver.
You can also deploy it as a jar file or a library module as required.
Quartz depends on a number of third-party libraries (in the form of jars) which are included in the distribution .zip file in the 'lib' directory. To use all the features of Quartz, all of these jars must also exist on your classpath.
-Sandeep -
Using an XML file for server URL instead of hard coding
I can't find a good example.
Could someone give me an example of using a local XML file to set a server url variable so i don't have to hard code url's?
This works and i can trace the xml file but how do i access the individual xml data nodes?
protected function initApp():void
var loader:URLLoader = new URLLoader(new URLRequest("config.xml"));
loader.addEventListener(Event.COMPLETE,configLoadComplete);
private function configLoadComplete(event:Event):void
trace(event.target.data);Hi,
<a href="foobar.xml">right click and select save as from the context menu</a>
or
write your xml data or a copy of it with a different extension (text) so that it is not parsed as application/xml-xhtml
or
Use AJAX to retrieve the xml file and display it as the textContent of a <textarea>
window.open wraps the xml markup in html tags for display purposes.
Rob^_^ -
How to install BDB XML on shared server?
Hi All,
1. I want to install BDB XML on a shared server (bluehost). Can anyone suggest me how to do it? Since I dont have enough permissions, some of the 'php shared extensions' are not being installed. I get warning like-
Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20060613/
cp: cannot create regular file `/usr/lib/php/extensions/no-debug-non-zts-20060613/#INST@343#': Permission denied
make: *** [install-modules] Error 1
2. Also, how can I add new libraries to library path? (Again no permission)
Any help on these issues would be highly appreciated,
Thanking you in anticipation.I'm talking about Berkeley DB XML, just in case it was not clear.
-
Output XML to Application Server
Hi,
I have successfully output the contents of an xml document object (if_ixml_document) using the following code (where p_xml_document is my xml document object):
TYPES:
BEGIN OF xml_line,
data(256) TYPE x,
END OF xml_line.
DATA:
streamfactory TYPE REF TO if_ixml_stream_factory,
ostream TYPE REF TO if_ixml_ostream,
renderer TYPE REF TO if_ixml_renderer,
ls_xml TYPE xml_line,
lt_xml_table TYPE TABLE OF xml_line,
v_xml_size TYPE i.
Transfer contents of xml document object into an internal table.
streamfactory = g_ixml->create_stream_factory( ).
ostream = streamfactory->create_ostream_itable( table = lt_xml_table ).
renderer = g_ixml->create_renderer( ostream = ostream document = p_xml_document ).
renderer->render( ).
v_xml_size = ostream->get_num_written_raw( ).
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
bin_filesize = v_xml_size
filename = 'c:\hr_sl\aaa_sunlife.xml'
filetype = 'BIN'
CHANGING
data_tab = lt_xml_table.
My problem is I really need to output the XML to the application server, so I need to replace the call to cl_gui_frontend_services=>gui_download with something that will download the xml to the app server.
I've tried using OPEN DATASET/TRANSFER/CLOSE DATASET, and while I am getting a file created on the app server, it only contains one line of XML.
My code looks lile this:
OPEN DATASET l_ofile FOR OUTPUT IN BINARY MODE.
Transfer xml to dataset
LOOP AT lt_xml_table INTO ls_xml.
TRANSFER ls_xml TO l_ofile.
ENDLOOP.
Close the dataset.
CLOSE DATASET l_ofile.
I've searched and searched on SDN and have not found an answer. Any help would be greatly appreciated.
Thanks!
Edited by: Russell Hergott on Jan 16, 2008 10:52 PMhi boss,
some of the code may be useful for u .
try like this sending into the internal table and then try ....
*& Report ZTESTPROGRAMFORUPLOAD
REPORT ZTESTPROGRAMFORUPLOAD message-id zmsg.
tables:pa0002.
types:begin of ty_pa0000,
pernr like pa0000-pernr,
endda like pa0000-begda,
end of ty_pa0000.
types:begin of ty_pa0002,
pernr like pa0002-pernr,
begda like pa0002-begda,
endda like pa0002-endda,
vorna like pa0002-vorna,
nachn like pa0002-nachn,
end of ty_pa0002.
data:it_pa0000 type standard table of ty_pa0000 with header line,
it_pa0002 type standard table of ty_pa0002 with header line.
data: v_pernr like pa0002-pernr,
v_lines type i.
DATA: W_MSG(150) TYPE C.
SELECTION-SCREEN BEGIN OF BLOCK FILE WITH FRAME TITLE TEXT-FIL.
*SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: P_PC RADIOBUTTON GROUP RAD USER-COMMAND USR. "PC
*SELECTION-SCREEN COMMENT 3(5) TEXT-SC1.
PARAMETERS: P_UNIX RADIOBUTTON GROUP RAD DEFAULT 'X'. "UNIX
*SELECTION-SCREEN COMMENT 11(5) TEXT-SC2.
parameters:p_file like rlgrap-filename.
*SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK FILE.
at selection-screen on value-request for p_file.
perform f4_help.
START-OF-SELECTION.
*---Get the active employyes
select pernr
endda
from pa0000
into table it_pa0000 up to 100 rows
where endda >= sy-datum
and begda <= sy-datum
and stat2 = '3'.
if sy-subrc = 0.
sort it_pa0000 by pernr endda descending.
delete adjacent duplicates from it_pa0000 comparing pernr.
endif.
select pernr
begda
endda
vorna
nachn
from pa0002
into table it_pa0002
for all entries in it_pa0000
where pernr = it_pa0000-pernr.
sort it_pa0002 by pernr.
delete adjacent duplicates from it_pa0002 comparing pernr.
append it_pa0002.
endloop.
END-OF-SELECTION.
describe table it_pa0002 lines v_lines .
*---get data into Application Server.
PERFORM OUTPUT_CORPEDIA_VENDOR_FILE .
SKIP 2.
WRITE:/ 'FILE NAME :' , P_FILE .
WRITE:/ 'NO OF RECORDS DOWNLOADED : ', V_LINES .
*& Form f4_help
text
--> p1 text
<-- p2 text
form f4_help .
IF P_UNIX = 'X'.
F4 help for UNIX
CALL FUNCTION 'F4_DXFILENAME_4_DYNP'
EXPORTING
DYNPFIELD_FILENAME = 'P_FILE'
DYNAME = SY-CPROG
DYNUMB = SY-DYNNR
FILETYPE = 'P'
LOCATION = 'A'
SERVER = ''.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH TEXT-E01 P_FILE.
ENDIF.
ELSEIF P_PC = 'X'.
F4 help for PC
clear p_file.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_PATH = P_FILE
MASK = ',..'
MODE = '0 '
TITLE = 'Choose File'
IMPORTING
FILENAME = P_FILE
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5.
ENDIF.
endform. " f4_help
*& Form OUTPUT_CORPEDIA_VENDOR_FILE
text
--> p1 text
<-- p2 text
form OUTPUT_CORPEDIA_VENDOR_FILE .
IF P_PC = 'X'.
data: v_pcfile type string.
v_pcfile = p_file.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = v_pcfile
FILETYPE = 'ASC'
WRITE_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = it_pa0002.
sort it_pa0002 by pernr.
delete adjacent duplicates from it_pa0002.
else.
data: outrec(200) type c .
OPEN DATASET P_FILE FOR OUTPUT IN TEXT MODE encoding DEFAULT.
loop at it_pa0002.
outrec+0(8) = it_pa0002-pernr.
outrec+18(8) = it_pa0002-begda.
outrec+36(8) = it_pa0002-endda.
outrec+54(40) = it_pa0002-vorna.
outrec+104(40) = it_pa0002-nachn.
transfer outrec to p_file.
clear outrec.
endloop.
CLOSE DATASET OUTREC.
IF SY-SUBRC = 0.
CLEAR W_MSG.
CONCATENATE 'Corpedia Vendor Demographic File successfully written to:'
P_FILE
INTO W_MSG SEPARATED BY SPACE.
ULINE. SKIP.
WRITE : W_MSG.
ENDIF.
ENDIF.
endform. " OUTPUT_CORPEDIA_VENDOR_FILE
regards,
venkat. -
Move xml to application server
Hi gurus
iam converting sap data into xml and now iam able to download the file onto presentation server properly.
now i want to write the file onto application server.
DATA: l_ixml TYPE REF TO if_ixml,
l_streamfactory TYPE REF TO if_ixml_stream_factory,
l_ostream TYPE REF TO if_ixml_ostream,
l_renderer TYPE REF TO if_ixml_renderer,
l_document TYPE REF TO if_ixml_document.
l_streamfactory = l_ixml->create_stream_factory( ).
l_ostream = l_streamfactory->create_ostream_itable(
table = l_xml_table ).
l_renderer = l_ixml->create_renderer( ostream = l_ostream
document = l_document ).
l_rc = l_renderer->render( ).
Saving the XML document
l_xml_size = l_ostream->get_num_written_raw( ).
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
bin_filesize = l_xml_size
filename = 'c:\satish\sample_trans.xml'
filetype = 'BIN'
CHANGING
data_tab = l_xml_table
EXCEPTIONS
OTHERS = 24.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.HI KUMAR
I TRIED THAT IT DIDNT WORK.
DATA: XML_TABLE TYPE TABLE OF XML_LINE.
L_OSTREAM = L_STREAMFACTORY->CREATE_OSTREAM_ITABLE(
TABLE = XML_TABLE ).
CLEAR P_FILE.
CONCATENATE SY-DATUM4(2) SY-DATUM6(2) SY-DATUM(4) INTO V_DATLO.
CONCATENATE P_OUT V_DATLO P_OFILE '.XML' INTO P_FILE.
OPEN DATASET P_FILE FOR OUTPUT IN BINARY MODE." ENCODING DEFAULT.
IF SY-SUBRC = 0.
LOOP AT XML_TABLE INTO XML_TABLE_WA.
TRANSFER XML_TABLE_WA TO P_FILE.
ENDLOOP.
ELSE.
MESSAGE E001(02) WITH 'UNABLE TO OPEN THE FILE FOR OUTPUT'.
WRITE :/ 'UNABLE TO OPEN THE FILE FOR OUTPUT'.
ENDIF.
CLOSE DATASET P_FILE. -
Hello
I create with a transfomation a xstring
and with the fm SCMS_XSTRING_TO_BINARY I create a table.
This table I can download by fm gui_download and I can open the file
with a xml-editor - it works.
But if I do the same, but download to the application server, there is an error,
I cant open the xml-file.
I'm looping throught the table what fm SCMS_XSTRING_TO_BINARY give me back
For each loop I call TRANSFER TO dataset
I can see, the last record is filled out with 0 (Hex 00)
I think this is the problem - by dowload with fm GUI_DOWNLOAD, I can set the file lenght,
but by download to the application server I can't
Thanks for any help
DanielHi Daniel and thank you in advance for availability.
The code is good for me ... to do something like this:
lv_null_string = cl_abap_conv_in_ce => UCCP ('0000 ').
LOOP AT lt_stream ASSIGNING <fs>.
IF sy-tabix = lines (lt_stream). "only the last row must not be absolutely length
FIND FIRST OCCURRENCE OF lv_null_string IN <fs>
IN BYTE MODE MATCH OFFSET lv_null_length.
TRANSFER <fs> TO e_filename LENGTH lv_null_length.
ELSE.
TRANSFER <fs> TO e_filename.
ENDIF.
ENDLOOP.
CLOSE DATASET e_filename.
What do you think?
Then I need your opinion, yesterday I turned the file, which was initially in BINARY MODE, in TEXT MODE, using:
* Before the function
CALL FUNCTION 'SCMS_BINARY_TO_STRING'
EXPORTING
input_length = lv_length
IMPORTING
text_buffer = lv_xml_string
TABLES
binary_tab = lt_stream
* And then writing
OPEN DATASET FOR OUTPUT IN TEXT MODE ENCODING UTF-8.
TRANSFER lv_xml_string TO e_filename.
CLOSE DATASET e_filename.
Do you think this workaround will produce an equally correct file of XML or is it more correct (formally) write a binary file?
I ask this because I don't understand why we are the only ones to have this kind of problem around ... there is no other case in SCN.
Maybe you are looking for
-
Serial number in Assets standard report
Hi, We are maintaing serial number for some asset classes but we for reporting purpose this field is not available in standard Asset accounting reports. There no such field in select fields either. Please tell me customizing settings if any to get th
-
In my Jdom program I got the following errors during compilation. It could compile on one machine, but it did not on another,even though I made sure the machines are set up properly: package com.sun.java.util.collections does not exist import com.sun
-
How to maintain a field in a master taking from another one.
Hi, I have a country field in my customer master. I need the same field in 0cust_sales also. Please anyone tell me how i can do the following requirement. Roma
-
Aperture 3 serial number won't work
I just moved to a new Mac Air and wen't to open Aperture and it asked for my serial number which I entered per the email order confirmation I recieved from Apple and now it says it is not valid. Any help would be great.
-
Outlook 2013: "Perform a custom action" in Rules
As described here: http://office.microsoft.com/en-us/outlook-help/create-custom-actions-rules-HA102749447.aspx I can use custom action in Outlook 2013 rules. Please tell me, why can't I see "Perform a custom action" in rule action list in Outlook 201