Beruflich Dokumente
Kultur Dokumente
SAPHub Search
Files
*&
*
*&DataDeclaration
*&
*
DATA:gcl_xmlTYPEREFTOcl_xml_document.
DATA:gv_filenameTYPEstring. Newsletter
DATA:gt_xmlTYPEswxmlcont.
DATA:gv_xml_stringTYPEstring. Enter your email address:
DATA:gv_sizeTYPEi.
*&
*
*&startofselection
*&
*
STARTOFSELECTION. Subscribe
CREATEOBJECTgcl_xml.
Delivered by FeedBurner
gv_filename='c:\test.xml'.
*UploadXMLfile
CALLFUNCTION'GUI_UPLOAD'
Categories
EXPORTING
filename=gv_filename
filetype='BIN' ABAP Dictionary
has_field_separator=''
ABAP General
header_length=0
http://www.saphub.com/files/abapuploadxmlstring/ 1/4
20/1/2017 UploadXMLasStringinABAPSAPHub
*Convertuploadeddatatostring Debugging
CALLFUNCTION'SCMS_BINARY_TO_STRING'
Enhancements
EXPORTING
input_length=gv_size FI
IMPORTING
text_buffer=gv_xml_string Files
TABLES
LSMW
binary_tab=gt_xml
EXCEPTIONS MM
failed=1
OTHERS=2. Modularization
IFsysubrc<>0. Performance
MESSAGEIDsymsgidTYPEsymsgtyNUMBERsymsgno
WITHsymsgv1symsgv2symsgv3symsgv4. Reports
ENDIF.
SAP Interview Questions and
**ParsesXMLStringtoDOM Answers
CALLMETHODgcl_xml>parse_string SD
EXPORTING
stream=gv_xml_string. Selection Screen
Smartforms
*DisplayXML
CALLMETHODgcl_xml>display.
Recent Posts
Below program use IMPORT_FROM_FILE method of
CL_XML_DOCUMENT to upload XML document. Track Changes Made in ABAP
Debugger
http://www.saphub.com/files/abapuploadxmlstring/ 2/4
20/1/2017 UploadXMLasStringinABAPSAPHub
CREATEOBJECTgcl_xml.
abap ABAP Dictionary ALV
*UploadXMLFile
background-jobs BADI bdc DDIC
CALLMETHODgcl_xml>import_from_file
EXPORTING debugging disable
filename='c:\test.xml'
RECEIVING display download
retcode=gv_subrc.
enhancement f1 help f4 help
IFgv_subrc=0.
*DisplayXML
le FM header how-to
CALLMETHODgcl_xml>display. icon internal tables
ENDIF.
interview questions log
logo lsmw messages MM oops
pdf performance popup
0
programmatically reports sap-
note scripting SD
Related posts:
selection screen
1. Display XML Document in SAP
2. Upload File from SAP Presentation Server using ABAP
smartforms table
3. KCD_CSV_FILE_TO_INTERN_CONVERT: Upload CSV File in tcodes text TMG total
ABAP
4. ABAP F4 Help for File on SAP Presentation Server upload variant XML
5. Download File to SAP Presentation Server using ABAP
Leave a Reply
Your email address will not be published. Required elds are marked *
Comment
http://www.saphub.com/files/abapuploadxmlstring/ 3/4
20/1/2017 UploadXMLasStringinABAPSAPHub
Name *
Email *
Website
Post Comment
http://www.saphub.com/files/abapuploadxmlstring/ 4/4