<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SAP XML Parser in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-xml-parser/m-p/2813890#M657920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi jeba,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prior to SAP ERP 6.0 Enhancement Package 2 (EhP2), loading data for Central Contractor Registration (CCR) was a two-step process: data was first read from a flat file and preloaded into SAP tables, then a separate program was executed to create or update vendor master records by means of CREMAS05 iDoc. When EhP2 is installed, new CCR programs (FMFGCCR_CREATE and FMFGCCR_UPDATE) can be customized by means of an enhancement implementation to access CCR data in real time &amp;#150; for example, using Point-to-Point or XI interface with the CCR server (see the documentation and sample implementation classes for enhancement spot FMFG_CCR_PROCESS). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New CCR create/update programs available in EhP2 receive and process CCR data which includes creating and updating SAP vendor master records based on the provided mapping of CCR fields into SAP vendor master fields as well as creating/updating records in the SAP CCR tables. Design of the main program RFFMCCRVENDORCREATE01 is independent of the data source and of the method of processing the data. Default method of creating CCR records in SAP is defined by the default implementation of Enhancement Spot FMFG_CCR_VENDOR_MAINTAIN - FMFG_CCR_VENDOR_MAINTAIN_IMPL and is based on the method call to method MAINTAIN of vendor master class interface VMD_EI_API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data source as well as mapping from the data source to SAP CCR table fields and SAP vendor master fields is completely customizable and has to be defined in a custom implementation of Enhancement Spot FMFG_CCR_PROCESS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We deliver two sample implementations for a CCR interface: one is based on SAP Exchange Infrastructure (XI) and one is a Point-to-Point (P2P) interface. You can define other data sources, such as a flat file or an RFC call to another system, yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The XI sample solution includes XI interface with XML based mapping for Request and Response messages to and from the CCR server. The SAP CCR create/update program calls a proxy method, which is automatically generated based on the CCR XML schema used in XI, to request and receive CCR data through the XI middleware. Use of XI allows interfacing with additional systems as part of the CCR interface as well as provides extensive XML parsing, mapping, validation, and error handling features. Setting up XI based interface requires some minimal XI configuration and implementation of the XI based sample BAdI implementation CL_FMFG_CCR_PROCESS_SAMPLE for enhancement spot FMFG_CCR_PROCESS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The P2P sample solution defines a P2P interface directly between the ERP layer and the CCR server by means of an HTTP communication protocol. This method might be more appealing to the customers who cannot use XI in their SAP landscapes. Here all XML mapping and parsing are defined in the custom implementation of the method GET_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New CCR Tables&lt;/P&gt;&lt;P&gt;The following new CCR tables were introduced in EhP2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#9679;      FMCCRVENDOR_HDR (CCR Vendor Header)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#9679;      FMCCRVENDOR_CORP (CCR Vendor Corporate Information)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#9679;      FMCCRVENDOR_GS (CCR Vendor Goods and Services)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table FMCCRTVENDOR is not populated by the new CCR programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2007 10:40:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-26T10:40:09Z</dc:date>
    <item>
      <title>SAP XML Parser</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-xml-parser/m-p/2813889#M657919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can anyone tell me how the SAP XML Parser works in Abap?&lt;/P&gt;&lt;P&gt;And how to use it?&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Jeba.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 10:37:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-xml-parser/m-p/2813889#M657919</guid>
      <dc:creator>former_member17102</dc:creator>
      <dc:date>2007-09-26T10:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAP XML Parser</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-xml-parser/m-p/2813890#M657920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi jeba,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prior to SAP ERP 6.0 Enhancement Package 2 (EhP2), loading data for Central Contractor Registration (CCR) was a two-step process: data was first read from a flat file and preloaded into SAP tables, then a separate program was executed to create or update vendor master records by means of CREMAS05 iDoc. When EhP2 is installed, new CCR programs (FMFGCCR_CREATE and FMFGCCR_UPDATE) can be customized by means of an enhancement implementation to access CCR data in real time &amp;#150; for example, using Point-to-Point or XI interface with the CCR server (see the documentation and sample implementation classes for enhancement spot FMFG_CCR_PROCESS). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New CCR create/update programs available in EhP2 receive and process CCR data which includes creating and updating SAP vendor master records based on the provided mapping of CCR fields into SAP vendor master fields as well as creating/updating records in the SAP CCR tables. Design of the main program RFFMCCRVENDORCREATE01 is independent of the data source and of the method of processing the data. Default method of creating CCR records in SAP is defined by the default implementation of Enhancement Spot FMFG_CCR_VENDOR_MAINTAIN - FMFG_CCR_VENDOR_MAINTAIN_IMPL and is based on the method call to method MAINTAIN of vendor master class interface VMD_EI_API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data source as well as mapping from the data source to SAP CCR table fields and SAP vendor master fields is completely customizable and has to be defined in a custom implementation of Enhancement Spot FMFG_CCR_PROCESS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We deliver two sample implementations for a CCR interface: one is based on SAP Exchange Infrastructure (XI) and one is a Point-to-Point (P2P) interface. You can define other data sources, such as a flat file or an RFC call to another system, yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The XI sample solution includes XI interface with XML based mapping for Request and Response messages to and from the CCR server. The SAP CCR create/update program calls a proxy method, which is automatically generated based on the CCR XML schema used in XI, to request and receive CCR data through the XI middleware. Use of XI allows interfacing with additional systems as part of the CCR interface as well as provides extensive XML parsing, mapping, validation, and error handling features. Setting up XI based interface requires some minimal XI configuration and implementation of the XI based sample BAdI implementation CL_FMFG_CCR_PROCESS_SAMPLE for enhancement spot FMFG_CCR_PROCESS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The P2P sample solution defines a P2P interface directly between the ERP layer and the CCR server by means of an HTTP communication protocol. This method might be more appealing to the customers who cannot use XI in their SAP landscapes. Here all XML mapping and parsing are defined in the custom implementation of the method GET_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New CCR Tables&lt;/P&gt;&lt;P&gt;The following new CCR tables were introduced in EhP2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#9679;      FMCCRVENDOR_HDR (CCR Vendor Header)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#9679;      FMCCRVENDOR_CORP (CCR Vendor Corporate Information)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#9679;      FMCCRVENDOR_GS (CCR Vendor Goods and Services)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table FMCCRTVENDOR is not populated by the new CCR programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 10:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-xml-parser/m-p/2813890#M657920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T10:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAP XML Parser</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-xml-parser/m-p/2813891#M657921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Th following is an exmaple to parse an xml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form parse_xml_document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: lo_parse_error type ref to if_ixml_parse_error.&lt;/P&gt;&lt;P&gt;  clear: gf_onoff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Create the main factory&lt;/P&gt;&lt;P&gt;  go_ixml           = cl_ixml=&amp;gt;create( ).&lt;/P&gt;&lt;P&gt;*-- Create the initial document&lt;/P&gt;&lt;P&gt;  go_xmldoc         = go_ixml-&amp;gt;create_document( ).&lt;/P&gt;&lt;P&gt;*-- Create the stream factory&lt;/P&gt;&lt;P&gt;  go_stream_factory = go_ixml-&amp;gt;create_stream_factory( ).&lt;/P&gt;&lt;P&gt;*-- Create an input stream for the table&lt;/P&gt;&lt;P&gt;  go_istream        = go_stream_factory-&amp;gt;create_istream_itable(&lt;/P&gt;&lt;P&gt;                        table = gt_xml_table&lt;/P&gt;&lt;P&gt;                        size  = g_filesize ).&lt;/P&gt;&lt;P&gt;*-- Create the parser&lt;/P&gt;&lt;P&gt;  go_xmlparser      = go_ixml-&amp;gt;create_parser(&lt;/P&gt;&lt;P&gt;                             stream_factory = go_stream_factory&lt;/P&gt;&lt;P&gt;                             istream        = go_istream&lt;/P&gt;&lt;P&gt;                             document       = go_xmldoc ).&lt;/P&gt;&lt;P&gt;*-- Parse the stream&lt;/P&gt;&lt;P&gt;  if go_xmlparser-&amp;gt;parse( ) is initial.&lt;/P&gt;&lt;P&gt;    go_xmlnode = go_xmldoc.&lt;/P&gt;&lt;P&gt;    perform build_xml_tag_fields.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    gf_onoff = c_on.&lt;/P&gt;&lt;P&gt;    if go_xmlparser-&amp;gt;num_errors( ) ne 0.&lt;/P&gt;&lt;P&gt;      g_cntmain   = go_xmlparser-&amp;gt;num_errors( ).&lt;/P&gt;&lt;P&gt;      format color col_negative.&lt;/P&gt;&lt;P&gt;      write: / g_cntmain, ' parse errors have occurred'.&lt;/P&gt;&lt;P&gt;      skip 2.&lt;/P&gt;&lt;P&gt;      clear g_cntloop.&lt;/P&gt;&lt;P&gt;      while g_cntloop &amp;lt; g_cntmain.&lt;/P&gt;&lt;P&gt;        lo_parse_error = go_xmlparser-&amp;gt;get_error( index = g_cntloop ).&lt;/P&gt;&lt;P&gt;        g_cntsub       = lo_parse_error-&amp;gt;get_line( ).&lt;/P&gt;&lt;P&gt;        write: / 'Line: ', (3) g_cntsub.&lt;/P&gt;&lt;P&gt;        g_cntsub       = lo_parse_error-&amp;gt;get_column( ).&lt;/P&gt;&lt;P&gt;        write: 'Column: ', (3) g_cntsub.&lt;/P&gt;&lt;P&gt;        g_tmpstr       = lo_parse_error-&amp;gt;get_reason( ).&lt;/P&gt;&lt;P&gt;        write: g_tmpstr no-gap.&lt;/P&gt;&lt;P&gt;        g_cntloop      = g_cntloop + 1.&lt;/P&gt;&lt;P&gt;      endwhile.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  clear: g_cntmain, g_cntsub.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " parse_xml_document&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 10:42:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-xml-parser/m-p/2813891#M657921</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2007-09-26T10:42:26Z</dc:date>
    </item>
  </channel>
</rss>

