Documente Academic
Documente Profesional
Documente Cultură
After setting the parameters we would be able to see the new mappings (Abapclass, XSL, XSL (ABAP Engine)) in the interface mapping.
Creation of ABAP class in R/3: Step 1: Goto Transaction SE24 and create a class.
Step 3: Goto Methods tab, double click the method IF_MAPPING~EXECUTE and add the custom code.
Step 4: Save and activate the method IF_MAPPING~EXECUTE. Now the class is ready for usage in Integration Repository.
Interface Mapping: Goto Interface Mapping. Select the Mapping Program type as ABAP Class. Provide the ABAP Class created in ABAP Stack of PI.
Testing the ABAP Mapping: Step 1: Goto Transaction sxi_monitor_test. Fill the sender and receiver interface details. Execute the Mapping test
Step 2: In the next screen load your input xml and execute the xml.
* create element 'Records' and add it to the output document data: elementRecord type ref to if_ixml_element. elementRecord = odocument->create_simple_element( name = 'Records' parent = msgtype ). * create element 'Name' and add it to the output document data: elementName type ref to if_ixml_element. elementName = odocument->create_simple_element( name = 'Name' value = concatString parent = elementRecord ). * render document =================================================== * create output stream data: ostream type ref to if_ixml_ostream. ostream = streamfactory->create_ostream_xstring( result ). * create renderer data: renderer type ref to if_ixml_renderer. renderer = ixmlfactory->create_renderer( ostream = ostream document = odocument ). renderer->render( ). endmethod.