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 PM
Hi 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.
Similar Messages
-
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 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 -
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 -
Importing XML files from Final Cut
Keep trying to import XML file from Final Cut into Adobe Premiere CC, and I get the Error Message:
The project appears to be damaged, it cannot be opened.
Not sure what I'm doing wrong.I have an FCP generated XML file that I'm trying to open in Premiere CS6.0.2. It fails on import. The sequence of messages is below.
Premiere Pro has encountered an error.
/Volumes/BuildDisk/builds/slightlybuilt/shared/adobe/MediaCore/Backend/Make/Mac/../../Src/ Component/AudioPanProcessor.cpp-214
Next I get a window saying "File Import Failure"
/users/josh/library/caches/temporaryitems/ollombo.pproj
Error message: The project could not be loaded, it may be damaged or contain outdated elements.
When I check the translation results, it says: Generator Item (Outline Text) not translated for clip , Transparent Video used as a placeholder
Help, I need to get this project open! -
Import Command for importing XML files to server
Hi All,
Please help me in importing the files to MDS repository.
i am trying to import a xml file from my C:\JDeveloper903\jdevhome\jdev\myprojects\oracle\apps\ar\irec\webui to the server. i have a confusion like from where(location) i should run the command ?? is that is from $JAVA_TOP or $APPL_TOP/mds??? or local drive?
and also i have moved my XML files from local Jdeveloper to server using FileZilla to the location /oraweb/u09/appldev2/oadev2comn/java/oracle/apps/ar/irec/webui in ASCII mode. and then i was using following command to import , from $JAVA_TOP,it says import completed , but when i check from TOAD by jdr_utils.printDocument('/oracle/apps/ar/irec/webui/DownloadPG'); it throws an error - Could not find document /oracle/apps/ar/irec/webui/DownloadPG.
java oracle.jrad.tools.xml.importer.XMLImporter /oraweb/u09/appldev2/oadev2comn/java/oracle/apps/ar/irec/webui/DownloadPG.xml -username "apps" -password apps -dbconnection "(description=(address_list=(address=(community=tcp.world)(protocol=tcp)(host=utx001dod008.uson.usoncology.int)(port=1540)))(connect_data=(sid=OADEV2)))" -rootdir /oraweb/u09/appldev2/oadev2comn/java/oracle/apps/ar/irec/webui
Please suggest me the correct way of doing it..
Your help in this regard is greatly appreciated.
Thanks
Praveen ReddyHi,
I believe all your questions are answered in [Oracle Application Framework Personalization Guide|http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/115fwkpg.pdf], Chapter 9.
To use the import tool, copy the XML file to the server. It is recommended you copy it to $APPL_TOP/<directory> (for example, $APPL_TOP/personalizations), and run the import command from this directory. For the path, you need to give the full path of the XML file you want to import (for example, if you have copied the file to $APPL_TOP/personalizations, then the path according to your first post should be $APPL_TOP/personalizations/oracle/apps/ar/irec/webui/DownloadPG.xml).
BTW, you can import from your local PC using import.bat file.
I would also suggest you review the following thread for similar topic.
Deploy a custom buid OA page
Deploy a custom buid OA page
Regards,
Hussein -
Import XML files from different server
Hi All,
We have successfully used JavaScript to import local XML files and generated the PDF files on InDesign Server CS4.
Now, we need to import the XML files which are dynamically generated on the other Server. (Data Managemnt Server).
Wondering what's the best way to do this?
Can we pass the whole XML file content as a JavaScript Parameter? What about images?
or Can Javascript Import an external XML file via HTTP, other protocol?
The worst case I guess is to have a script to upload XML files onto InDesign Server........
Also, is it possible to return the generated PDF back to Data Management Server (XML file Server)?
Thanks,
xinHi ,
Check the FM : /SAPDMC/LSM_F4_SERVER_FILE.
Inside this FM , subroutine below exists.The main program for routine is /SAPDMC/LLSMW_AUX_020F02.
Call this routine from your program. You will get the length in bytes from the field len of table pt_file.
data:
begin of gs_file,
directory(75) type c, " name of directory.
" (possibly truncated.)
name(75) type c, " name of entry.
" (possibly truncated.)
type(10) type c, " type of entry: directory, file
*len(8) type p, " length in bytes*
owner(8) type c, " owner of the entry
mtime(6) type p, " last modification date,
" seconds since 1970
mode(9) type c, " like "rwx-r-x--x":
" protection mode
errno(3) type c,
errmsg(40) type c,
mod_date type d,
mod_time(8) type c, " hh:mm:ss
subrc like sy-subrc,
end of gs_file.
DATA : pt_file LIKE TABLE OF gs_file.
DATa : p_ok.
PERFORM /sapdmc/llsmw_aux_020f02(directory_contents_get)
TABLES pt_file
USING '/TMP' ""!!! Here is your filepath
CHANGING p_ok -
Error while import XML file from Production to Dev., But has GREEN status
Hi,
I tried to export/import bex queries through XML transportation. Transportation is being done from Production system to Development. In transport connection I selected required query and then I exported to Development. export of file is done successfully.
Now in development system I imported that XML file. It is imported. Giving GREEN symbol and also with GREEN check. But in Log view I found ERRORS. in errors it is mentioned "SAP object 46N3K1OCT22PSBN46O95MQLTJ () cannot be imported". along with long message text "Install the specified objects from Business Content. Only import the metadata afterwards.".
What should I do now as of next step... import of file is stuck..
How can I search object 46N3K1OCT22PSBN46O95MQLTJ (), if I have to install from BC.
I am also unable to find the query in Development Bex analyser.
Thanks for help....
[email protected]Hi Babloo,
According to the error message, the package may have failed are as follows:
The user account that is used to run the package under SQL Server Agent in PRODUCTION server differs from the original package author.
The user account does not have the required permissions to make connections or to access resources outside the SSIS package.
The package may not run in the following scenarios:
The current user cannot decrypt secrets from the package. This scenario can occur if the current account or the execution account differs from the original package author, and the package's ProtectionLevel property setting does not let the current user
decrypt secrets in the package. In this scenario, we can change the SSIS Package ProtectionLevel property to EncryptSensitiveWithPassword, then modify the SQL Server Agent job step command line to include this password.
File access fails because the current user does not have the required permissions to write to the file share that the connection manager accesses. In this scenario, we can create a SQL Server Agent proxy account. This proxy account must use a credential
that lets SQL Server Agent run the job as the account that created the package or as an account that has the required permissions.
References:
SSIS package does not run when called from a SQL Server Agent job step
Run an SSIS Package Under a Different Account
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Having Problems importing XML file from FCP 6 onto a FCP 5 application
I have a project file that i worked on FCP 6 and wanted to move to FCP 5 app. on a different Pro Mac but when i try to import the xml, it prompts me to "Please choose a Translation Document File". I choose the FCP 6 project file because i wasn't sure what to choose and i get the ERROR: No translation templates matching the selected XML file were found. Unable to import this file.
any ideas?make sure you exported your XML from FCP6 using a compatible XML version (1, 2 or 3) ... version 3 would make the most sense as its the most recent FCP5 compatible version .... don't export using version 4 (the default for FCP6), that one is for transfering projects between different installations of FCP6 only
-
Problem in reading xml file from server
Hi,
I am using tomcat 4.1 and jdk 1.4.
All the class files and xml files are put into the one jar file.
While running our application a jar file is called from jsp file. in that file we are embedded applet coding. here by i am sending my applet code with this...
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
WIDTH = "500" HEIGHT = "500" codebase="http://java.sun.com/products/plugin/1.2/jinstall-12-win32.cab#Version=1,2,0,0">
<PARAM NAME = CODE VALUE = "Screen.class" >
<PARAM NAME = CODEBASE VALUE = "/Sample/web/" >
<PARAM NAME = ARCHIVE VALUE = "csr.jar" >
</NOEMBED></EMBED>
</OBJECT>
while running our application from another machine we are getting exception filenotfounfexception in the xml is in the generated jar file.
Exception:
org.xml.sax.SAXParseException: File "file:///C:/Documents and Settings/Administrator/Desktop/control_property.xml" not found.
but that xml file is in the jar file and that jar file is present under sample application folder.
what should i change in the applet code? is there any thing related to trusted applet ?
ThanksYou have the xml file in the jar so it is a resource?
http://java.sun.com/docs/books/tutorial/uiswing/misc/icon.html#getresource
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/ClassLoader.html#getResource(java.lang.String) -
Importing xml file from FCP 7.0 to 6.0
Hi all.
I am sure many of you have figured this out, but after a few grey hairs today, I was finally able to open a clients project done in FCP 7.0 into my 6.0.
In text editor you need to open the xml file and change: <xmel version= "5"> to "4". Then save as an xml file and import into FCP. Everything came across fine including renders, effects, etc.
Cheers.GOOD TIP! And to add to it:
#46 - Supported XML versions
Shane's Stock Answer #46 - Final Cut Pro and versions of XML it supports
FCP4 supports XML version 1 only
FCP5 supports XML versions 1 and 2
FCP5.1 supports XML versions 1, 2 and 3
FCP6 supports XML versions 1, 2, 3 and 4
FCP7 supports XML versions 1, 2, 3, 4 and 5.
Shane -
AIR application request a xml file from a server (but only legal users)
Hello guys
I am conceptualizing a project at the moment and I am thinking of using Adobe AIR to develop the application related to that project.
But it depends on the ability of AIR to fulfill my project requirements.
I want your ideas, please...
Imagine, I finished developing my application and compiled the distributed version using Adobe AIR.
And I am going to distribute the installation files of the intended application by burning on to a CD.
Imagine, the user who got that CD, installed it it on his computer and launched the application.
When the application is running, it needs to load a XML file which is saved in our company server.
Since it is an important data file I don't want to dispatch it with the installation CD.
So I am thinking of using URLRequest and URLLoader classes to load this XML file from server dynamically.
Lets imagine I did codes like this....
var request:URLRequest = new URLRequest("http://www.mycompany.com/sereverfolder/blabla.xml");
request.method = URLRequestMethod.POST;
var loader:URLLoader = new URLLoader();
loader.load(request);
But my question is, how safe hardcoding the path for the xml file in the class file as shown above.
Can anyone get access to xml file path by looking into installation files dispatched via CD?
Or is there any other safer way to do this?
Thank you for taking time to read my question and please add your input if you would like to share your knowledge.
cheerswrong forum.
-
Read XML file from presentation server
Hi All,
I want read XML file from presentation server currently i am using GUI_UPLOAD fm . but it is reading some junk data.
DATA : BEGIN OF upl OCCURS 0,
f(255) TYPE c,
END OF upl.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = D:\XX.XML'
filetype = 'BIN'
TABLES
data_tab = upl.
is there any other alternative.
Thanks
Swarup,Hi Swarup,
Use method IMPORT_FROM_FILE of class CL_XML_DOCUMENT.
A sample code snippet :-
PARAMETERS: p_filnam TYPE localfile OBLIGATORY
DEFAULT 'C:\Documents and Settings\ssaha\Desktop\test.xml'.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_filnam.
DATA: l_v_fieldname TYPE dynfnam.
l_v_fieldname = p_filnam.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
field_name = l_v_fieldname
IMPORTING
file_name = p_filnam.
START-OF-SELECTION.
TYPES:
BEGIN OF ty_tab,
name TYPE string,
value TYPE string,
END OF ty_tab.
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.
DATA:
itab TYPE STANDARD TABLE OF ty_tab,
wa TYPE ty_tab.
CREATE OBJECT lcl_xml_doc.
CALL METHOD lcl_xml_doc->import_from_file
EXPORTING
filename = p_filnam
RECEIVING
retcode = v_subrc.
CHECK v_subrc = 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( ).
v_nodemap = v_node->get_attributes( ).
IF NOT v_nodemap IS INITIAL
* attributes
v_count = v_nodemap->get_length( ).
DO v_count TIMES.
v_index = sy-index - 1.
v_attr = v_nodemap->get_item( v_index ).
v_name = v_attr->get_name( ).
v_prefix = v_attr->get_namespace_prefix( ).
v_value = v_attr->get_value( ).
ENDDO.
ENDIF.
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.
LOOP AT itab INTO wa.
ENDLOOP.
Regards
Abhii -
Upload xml file from aplication server using read dataset, parser error.
Hi,
I would like to upload xml file from app. server but parser failed. If I upload this xml file from workstation (using ws_upload) it is correct. For uploading xml file from app. server I use open dataset... read dataset. In loop section I remove '#' char. How do You upload xml file from app server? What Could be incorrect.
I try to open dataset in binary mode, text mode...
TYPES: BEGIN OF xml_line,
data(255) TYPE c,
END OF xml_line.
DATA: gt_xml_table TYPE TABLE OF xml_line,
gs_xml_structure TYPE xml_line,
gv_xml_table_size TYPE i.
OPEN DATASET s FOR INPUT IN BINARY MODE.
IF sy-subrc <> 0.
MESSAGE e001(zet) WITH '....'.
ENDIF.
DO.
READ DATASET s INTO gs_xml_structure.
IF sy-subrc <> 0.
EXIT.
ELSE.
len = STRLEN( gs_xml_structure ).
len = len - 1.
check len > 0.
WRITE gs_xml_structure(len) TO gs_xml_structure.
APPEND gs_xml_structure TO gt_xml_table.
ENDIF.
ENDDO.You Can do this too
parameters: p_file like rlgrap-filename.
data: subrc like sy-subrc.
create object me.
REFRESH t_data.
* Open XML File
CALL METHOD me->CREATE_WITH_FILE
EXPORTING
filename = p_file
RECEIVING
retcode = subrc.
* Saves Data in an itab from XML File.
CALL METHOD me->get_data
IMPORTING
retcode = subrc
CHANGING
dataobject = t_data[].
Regards,
Claudio. -
Issue with uploading XML file from application server into internal table
i Need to fetch the XML file from the application server and place into internal table and i am getting error message while using the functional module SMUM_XML_PARSE and the error message is "line 1 col 1-unexpected symbol; expected '<', '</', entity reference, character data, CDATA section, processing instruction or comment" and could you please let me know how to resolve this issue?
TYPES: BEGIN OF T_XML,
raw(2000) TYPE C,
END OF T_XML.
DATA:GW_XML_TAB TYPE T_XML.
DATA: GI_XML_TAB TYPE TABLE OF T_XML INITIAL SIZE 0.
DATA:GI_STR TYPE STRING.
data: GV_XML_STRING TYPE XSTRING.
DATA: GI_XML_DATA TYPE TABLE OF SMUM_XMLTB INITIAL SIZE 0.
data:GI_RETURN TYPE STANDARD TABLE OF BAPIRET2.
OPEN DATASET LV_FILE1 FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF SY-SUBRC NE 0.
MESSAGE 'File does not exist' TYPE 'E'.
ELSE.
DO.
* Transfer the contents from the file to the work area of the internal table
READ DATASET LV_FILE1 INTO GW_XML_TAB.
IF SY-SUBRC EQ 0.
CONDENSE GW_XML_TAB.
* Append the contents of the work area to the internal table
APPEND GW_XML_TAB TO GI_XML_TAB.
ELSE.
EXIT.
ENDIF.
ENDDO.
ENDIF.
* Close the file after reading the data
CLOSE DATASET LV_FILE1.
IF NOT GI_XML_TAB IS INITIAL.
CONCATENATE LINES OF GI_XML_TAB INTO GI_STR SEPARATED BY SPACE.
ENDIF.
* The function module is used to convert string to xstring
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
TEXT = GI_STR
IMPORTING
BUFFER = GV_XML_STRING
EXCEPTIONS
FAILED = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE 'Error in the XML file' TYPE 'E'.
ENDIF.
ENDIF.
IF GV_SUBRC = 0.
* Convert XML to internal table
CALL FUNCTION 'SMUM_XML_PARSE'
EXPORTING
XML_INPUT = GV_XML_STRING
TABLES
XML_TABLE = GI_XML_DATA
RETURN = GI_RETURN.
ENDIF.
READ TABLE GI_RETURN TRANSPORTING NO FIELDS WITH KEY TYPE = 'E'.
IF SY-SUBRC EQ 0.
MESSAGE 'Error converting the input XML file' TYPE 'E'.
ELSE.
DELETE GI_XML_DATA WHERE TYPE <> 'V'.
REFRESH GI_RETURN.
ENDIF.Could you please tel me why the first 8 lines were removed, till <Soap:Body and also added the line <?xml version="1.0" encoding="UTF-8"?> in the beggining .
Becuase there will be lot of XML files will be coming from the Vendor daily and that should be uploaded in the application server and should update in the SAP tables based on the data in the XML file.
what information i need to give to vendor that do not add the first 8 lines in the XML file and add the line in the beggining <?xml version="1.0" encoding="UTF-8"?> ??????
Is there any other way we can do with out removing the lines?
Maybe you are looking for
-
Cannot get printer to respond. One computer will print, the other gets printer not responding message. We have reinstalled the printer, unplugged everything to no avail. Anybody have a solution?
-
How can i read data in DCS data base
I have logged current and voltage in dcs data base. I want to read that voltage with respect to time and plot in voltage Vs current graph. but i have a ploblem to read that data in dcs libary. can any one help me please. Thanks & Regard Nitin Jain
-
After upgrading to OS X Mavericks Time machine stops working
After upgrading to OS X Mavericks Time machine stops backing up and sometimes hangs on ,,preparing,, for o days and sometimes stops inmediatly. Report says: Backing up to /dev/disk1s2: /Volumes/Backup/Backups.backupdb Event store UUIDs don't match fo
-
When battery is low, doesn't want to charge?
So, sometimes, and it seems to happen more when the battery is already below 20 or 10%, I put it on the charger over night, and the next morning it's displaying the battery on the screen still at red - (I guess when things are going well during a rec
-
Linking PO data with Merch Receipt
I am creating a Merchandise Receipt form using a PervasiveSQL database in Peachtree. The merchandise receipt template in PT is populated from a purchase order. I am having trouble bringing in 2 fields from the PO. PO date & PO order quantity for ea