REPORT ZXML. DATA: ITXML TYPE TABLE OF PA0001, OXML TYPE REF TO CLXMLDOCUMENT. Get data SELECT. UP TO 100 ROWS INTO TABLE ITXML FROM PA0001 WHERE ENDDA = '99991231'. Create XML Object CREATE OBJECT OXML. Convert data in table to XML CALL METHOD OXML-CREATEWITHDATA( DATAOBJECT = ITXML ). CLEAR ITXML.
Save XML to local PC CALL METHOD OXML-EXPORTTOFILE( FILENAME = 'C: test.xml' ). Free CALL METHOD OXML-FREE. Import XML Document from local PC CALL METHOD OXML-IMPORTfromFILE( FILENAME = 'C: test.xml' ).
Display XML document CALL METHOD OXML-DISPLAY.
SAP has released a new component of the SL Toolset which replaces the installation tools for SAP NetWeaver 7.3 and higher e.g. For products like PI 7.31 or BW 7.3 In detail, the SWPM can handle installations, system copies etc.
Xml File Sample
Please find my input xml file. We would like to convert this xml as an internal table to store the values to Ztables. Customer doesn't have a SAP PI resource, so we decided to do this scenario like, XML XSLT with ABAP. And i found an refrence link.
Using XSLTTOOL if new for us, is there a way where we can get the XSLT code for the same. Can anyone can help us to get the XSLT code. I can see using 'simple transformation' in XSLTTOOL we can get the code automatically, but i don't think above xml structure may suites or not? Please do needful. Please find the attached xml file for your reference.
Is there any way to generate automatically the result of an SAP transaction? Let's say I want to see the production orders for one MRP controller (I have the COOIS transaction for this). Is there any way to generate an XML feed with the result of that transaction and refresh it let's say. Every 10 minutes? Or to auto-export an.xls file with the result somewhere.? I know I have the jobs and the spools but I have to manually download the result from the SAP Gui. I don't have access to ABAP so I would like to know if there are other methods to get data from SAP?
Control Xml File
Since 'a transaction' might be anything from a simple report to a complex interactive application that does not even have a simple 'result', I doubt that there's a way to provide any generic tool for this. You might try the following:. Schedule a job and have the result sent to some mailbox instead of printing it. Then use the programming language of your choice to grab and process the mail. Check whether there are BAPIs available (BAPIPRODORD. or something like that - I'm not a CO expert, so I wouldn't know which one to use).
You can call these BAPIs from an external program without having to write ABAP yourself - however, you'll most likely need the help of someone who knows ABAP in order to get the interface documentation and understand the concepts.
REPORT ZXML. DATA: ITXML TYPE TABLE OF PA0001, OXML TYPE REF TO CLXMLDOCUMENT. Get data SELECT. UP TO 100 ROWS INTO TABLE ITXML FROM PA0001 WHERE ENDDA = '99991231'. Create XML Object CREATE OBJECT OXML.
Convert data in table to XML CALL METHOD OXML-CREATEWITHDATA( DATAOBJECT = ITXML ). CLEAR ITXML. Save XML to local PC CALL METHOD OXML-EXPORTTOFILE( FILENAME = 'C: test.xml' ). Free CALL METHOD OXML-FREE. Import XML Document from local PC CALL METHOD OXML-IMPORTfromFILE( FILENAME = 'C: test.xml' ).
Xw Control Xml File
Display XML document CALL METHOD OXML-DISPLAY.
Comments are closed.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |