| Home • Tips • Tutorials • Forums • Certification Q's • Interview Q's • Jobs • Testimonials • Contact Us | ||
Document Categories:
What's New?
Contribute?Sample SpecsWhat's Hot? |
Generate XML from BSPBy Manasi S Balagere STEP1: have a controller in the BSP application ending with .xml
(for eg: export.xml)
STEP2: create a controller class for the
controller(zcl_c_xml_export)
STEP3: In the do_request method of the of the controller
class, pass the internal table to be converted to the xml file via a function
module ZI057678_TEST_XML; which will return the xml string. Now, call the “write” method of the cl_bsp_controller and
pass the xml string
STEP3.1: The function module will have the following code: FUNCTION zi057678_test_xml. lr_resstream = lr_stream_factory->create_ostream_cstring( ev_output ). STEP4: Now test the controller to see the pop up of the XML.
|
|
|
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM Home • Contribute • About Us • Privacy • Terms Of Use • Disclaimer • Safe • Companies: Advertise on SAPTechnical.COM | Post Job • Contact Us ©2006-2007 SAPTechnical.COM. All rights reserved. All
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG. Graphic Design by Round the Bend Wizards |
||