SAP HR & HR-XML

Hi Experts!
We want integrate SAP HR 4.6c and other legacy sistems using HR-XML format. Does SAP HR 4.6c support a HR-XML interface? If no, how we can do it?
Thanks,
Yuriy

Hi,
E-Recruiting delivered XI Interfaces with ERP2005 (please see e.g. SAP Note 909423).
Besides interfaces for integration E-Recruiting delivered an interface to map posting information.
Best Regards, Michael

Similar Messages

  • OSB and SAP integration using XML web services

    Hi Team,
    We are designing solution for asynchronous and synchronous scenarios integration between OSB and SAP using web services.
    Can you please provide some pointers which tells about how OSB and SAP integration works.
    For an example:
    If we are designing the above scenario between SAP PI and SAP ECC, we know the below communication protocols are avilable:
    1.Proxy
    2.RFC
    3.IDOCs
    And also we know how adapters will get connect.
    Now ODB wants to connect to SAP to send and receive data. Please help me with information like:
    1. Is Proxy, RFC or IDOCs are applicable for OSB as well?
    2. How webservice scenarios can be implemented?
    Thanks in Advance.
    regards,
    Vicky

    Hi,
    >>>and what are the Forms ? for SAP Business Connector Related Postings ??
    try WM (webmethods forums) or here since this is the only middleware related forum on SDN
    >>> I have a requirement to integrate sap to non-sap with Business Connector !!
    excellent
    >>>We need to Generate the SAP Data In xml Format ? and the Non-sap System can Understand Only XML Formated data.
    fairly easy
    >>>>Is there any way Business Connector Box can Pull the XML file from R/3 Application Server and store the file in the Business Connector Server. from that How do we Sent XML file to Non-sap. How do we Integrate ??
    business connector has both IDOC and RFC adapters so it can
    receive data from SAP (IDOC, RFC), send data to SAP (IDOC, RFC)
    and pull data from SAP (RFC only)
    >>>>what transaction code will trigger this event ? I mean is ther any SAP Transaction Code to Integrate Business Connector?
    either transaction from SAP (for sending IDOCs for example) or you can schedule (via BC scheduler)
    an RFC call to SAP that will fetch the data and put it in an XML file
    good luck,
    Regards,
    Michal Krawczyk

  • SAP Business Connector XML File processing

    Hi All,
    we're using SAP Business Connector to process XML Files (from NON-SAP system).
    XML-Files are mapped to IDOCs and sent to our sap-system in order to create purchase orders.
    Let's say we have 3 Purchase Orders (XML) in our SAP BC input directory,
    the first purchase order has a header text (customer field), the following 2 dont. After processing the xml-files all 3 Idocs have the same header text of the first purchase order.
    How can i change this behaviour?
    Regards
    REA

    Hello Ramy,
    You have to check this logic of t BC. if you want to check the Idocs then goto WE02 in SAP.
    if you are using message type PORDCR1 then check segment E1BPMEPOTEXTHEADER or PORDCR thne check segment E1BPEKPOTX
    Regards
    Naresh

  • Convert SQL server database into SAP readable (encrypted) XML for SAP tool?

    Could anyone kindly let me know what is the procedure to convert SQL server database into SAP readable (encrypted) XML for SAP Authoring tool???

    So If I understood it correctly there an existing propriertory question bank with SQL server. You are looking at an option to migrate all the tests and questions from the existing system to the LSO system. Right ?
    I am still not clear on the xml conversion. Have you guys found a solution which could be achieved through a xml file ?
    am not aware of a way through which you could import only a xml file and create tests/questions. If you have a sample xml file then forward me so that I could do some testing on my end.As per my knowledge you could do one of the following. I
    1. Create the tests and questions manually in Authoring Environment. It will be a time consuming task. Based on the number of questions you have you might have to assemble a team of content developers to acheive this.
    2. Alternatively, you could create a Adobe Flash based assessment. The Flash component would be the front-end and will read from a xml file to display the questions and to drive the funcationality. This would be a easier and less time consuming than creating the assessments manually in authoring environment. However, you might miss out some of the functionality available in the Test Author of Authoring Environment unless you have all the functionality replicated inside Flash. This would require one time effort in creating the Flash template and the xml file structure. Once that is created you could create multiple assessments by just replacing the xml file. If you select this approach then you would have to ensure the data from SQL is converted in the desired xml format required by your Flash component.
    Please let me know if you require any further guidance or clarification regarding this.
    Regards,
    Ravi Sekhar

  • SAP 4.7 XML data exchange using XSLT

    Hello All,
    Hopefully the right place to post such article but here goes any way.
    My project involves producing XML files and then reading them back into to SAP internal tables. I am ok with writing SAP data to external XML file but reading it back in is causing a lot of head scratching.
    I am able to double click the XML file and it launches Ok in Internet Explorer.
    I am also able to debug the xslt file from within SE80 and the correct output is displayed.
    However, where I am trying to read the contents of the xml file via the Call Transformation procedure call my output table is not getting populated but instead I am recieving an error message saying the following is not correct:
    xmlns:sapxsl="http://www.sap.com/sapxsl
    but the above line is placed automaticlly in the XSLT when you create a new one from within SE80.
    I am new to SAP ABAP development so not sure what's exactly wrong.
    Any help on this issue will be greatfully appreciated. Thanks in Advance,
    Wasif
    REPORT  z_hp_xml_test                                               .
    TYPE-POOLS: ixml.
    TABLES: tstc, tstct.
    TYPES: BEGIN OF ty_transactions,
          tcode LIKE tstc-tcode,
          ttext LIKE tstct-ttext,
          sprsl LIKE tstct-sprsl,
    END OF ty_transactions.
    DATA: itab_transactions TYPE STANDARD TABLE OF ty_transactions.
    TYPES: BEGIN OF t_xml_line,
            data(256) TYPE x,
          END OF t_xml_line.
    DATA: l_ixml            TYPE REF TO if_ixml,
          l_streamfactory   TYPE REF TO if_ixml_stream_factory,
          l_parser          TYPE REF TO if_ixml_parser,
          l_istream         TYPE REF TO if_ixml_istream,
          l_document        TYPE REF TO if_ixml_document,
          l_node            TYPE REF TO if_ixml_node,
          l_xmldata         TYPE string.
    DATA: l_elem            TYPE REF TO if_ixml_element,
          l_root_node       TYPE REF TO if_ixml_node,
          l_next_node       TYPE REF TO if_ixml_node,
          l_name            TYPE string,
          l_iterator        TYPE REF TO if_ixml_node_iterator.
    DATA: l_xml_table       TYPE TABLE OF t_xml_line,
          l_xml_line        TYPE t_xml_line,
          l_xml_table_size  TYPE i.
    DATA: l_filename        TYPE string.
    PARAMETERS: pa_file TYPE char1024 DEFAULT 'C:     emp     ransactions.xml'.
    Validation of XML file: Only DTD included in xml document is supported
    PARAMETERS: pa_val  TYPE char1 AS CHECKBOX.
    START-OF-SELECTION.
      Creating the main iXML factory
      l_ixml = cl_ixml=>create( ).
      Creating a stream factory
      l_streamfactory = l_ixml->create_stream_factory( ).
      PERFORM get_xml_table CHANGING l_xml_table_size l_xml_table.
      wrap the table containing the file into a stream
      l_istream = l_streamfactory->create_istream_itable( table =
    l_xml_table
                                                      size  =
    l_xml_table_size ).
      Creating a document
      l_document = l_ixml->create_document( ).
      Create a Parser
      l_parser = l_ixml->create_parser( stream_factory = l_streamfactory
                                        istream        = l_istream
                                        document       = l_document ).
      Validate a document
      IF pa_val EQ 'X'.
        l_parser->set_validating( mode = if_ixml_parser=>co_validate ).
      ENDIF.
    Parse the stream
    If any errors then disply else convert XML to table
      IF l_parser->parse( ) NE 0.
        IF l_parser->num_errors( ) NE 0.
          DATA: parseerror TYPE REF TO if_ixml_parse_error,
                str        TYPE string,
                i          TYPE i,
                count      TYPE i,
                index      TYPE i.
          count = l_parser->num_errors( ).
          WRITE: count, ' parse errors have occured:'.
          index = 0.
          WHILE index < count.
    parseerror = l_parser->get_error( index = index ).
    i = parseerror->get_line( ).
    WRITE: 'line: ', i.
    i = parseerror->get_column( ).
    WRITE: 'column: ', i.
    str = parseerror->get_reason( ).
    WRITE: str.
    index = index + 1.
    ENDWHILE.
    ENDIF.
    ELSE.
    TRY .
    CALL TRANSFORMATION (`Z_HP_TEST_XSLT`)
    SOURCE XML l_xml_table
    RESULT outtab = itab_transactions.
    DATA: xslt_err TYPE REF TO cx_xslt_exception .
    CATCH cx_xslt_exception INTO xslt_err.
    DATA: s TYPE string.
    s = xslt_err->get_text( ).
    WRITE: ': ', s.
    STOP.
    ENDTRY .
      Process the document
        IF l_parser->is_dom_generating( ) EQ 'X'.
          PERFORM process_dom USING l_document.
        ENDIF.
      ENDIF.
    *&      Form  get_xml_table
    FORM get_xml_table CHANGING l_xml_table_size TYPE i
                                l_xml_table      TYPE STANDARD TABLE.
      Local variable declaration
      DATA: l_len      TYPE i,
            l_len2     TYPE i,
            l_tab      TYPE tsfixml,
            l_content  TYPE string,
            l_str1     TYPE string,
            c_conv     TYPE REF TO cl_abap_conv_in_ce,
            l_itab     TYPE TABLE OF string.
      l_filename = pa_file.
      upload a file from the client's workstation
      CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename   = l_filename
          filetype   = 'BIN'
        IMPORTING
          filelength = l_xml_table_size
        CHANGING
          data_tab   = l_xml_table
        EXCEPTIONS
          OTHERS     = 19.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      Writing the XML document to the screen
      CLEAR l_str1.
      LOOP AT l_xml_table INTO l_xml_line.
        c_conv = cl_abap_conv_in_ce=>create( input = l_xml_line-data
    replacement = space  ).
        c_conv->read( IMPORTING data = l_content len = l_len ).
        CONCATENATE l_str1 l_content INTO l_str1.
      ENDLOOP.
      l_str1 = l_str1+0(l_xml_table_size).
      SPLIT l_str1 AT cl_abap_char_utilities=>cr_lf INTO TABLE l_itab.
      WRITE: /.
      WRITE: /' XML File'.
      WRITE: /.
      LOOP AT l_itab INTO l_str1.
        REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>horizontal_tab
    IN
          l_str1 WITH space.
        WRITE: / l_str1.
      ENDLOOP.
      WRITE: /.
    ENDFORM.                    "get_xml_table
    *&      Form  process_dom
    FORM process_dom USING document TYPE REF TO if_ixml_document.
      DATA: node      TYPE REF TO if_ixml_node,
            iterator  TYPE REF TO if_ixml_node_iterator,
            nodemap   TYPE REF TO if_ixml_named_node_map,
            attr      TYPE REF TO if_ixml_node,
            name      TYPE string,
            prefix    TYPE string,
            value     TYPE string,
            indent    TYPE i,
            count     TYPE i,
            index     TYPE i.
      node ?= document.
      CHECK NOT node IS INITIAL.
      ULINE.
      WRITE: /.
      WRITE: /' DOM-TREE'.
      WRITE: /.
      IF node IS INITIAL. EXIT. ENDIF.
      create a node iterator
      iterator  = node->create_iterator( ).
      get current node
      node = iterator->get_next( ).
      loop over all nodes
      WHILE NOT node IS INITIAL.
        indent = node->get_height( ) * 2.
        indent = indent + 20.
        CASE node->get_type( ).
          WHEN if_ixml_node=>co_node_element.
            element node
            name    = node->get_name( ).
            nodemap = node->get_attributes( ).
            WRITE: / 'ELEMENT  :'.
            WRITE: AT indent name COLOR COL_POSITIVE INVERSE.
            IF NOT nodemap IS INITIAL.
              attributes
              count = nodemap->get_length( ).
              DO count TIMES.
                index  = sy-index - 1.
                attr   = nodemap->get_item( index ).
                name   = attr->get_name( ).
                prefix = attr->get_namespace_prefix( ).
                value  = attr->get_value( ).
                WRITE: / 'ATTRIBUTE:'.
                WRITE: AT indent name  COLOR COL_HEADING INVERSE, '=',
                                 value COLOR COL_TOTAL   INVERSE.
              ENDDO.
            ENDIF.
          WHEN if_ixml_node=>co_node_text OR
               if_ixml_node=>co_node_cdata_section.
            text node
            value  = node->get_value( ).
            WRITE: / 'VALUE     :'.
            WRITE: AT indent value COLOR COL_GROUP INVERSE.
        ENDCASE.
        advance to next node
        node = iterator->get_next( ).
      ENDWHILE.
    ENDFORM.                    "process_dom
    Section 3: My XSLT file:
    <xsl:transform version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:sapxsl="http://www.sap.com/sapxsl"
    <xsl:strip-space elements="*"/>
    <xsl:template match="TransList">
         <xsl:apply-templates />
    </xsl:template>
             <xsl:template match="Tcode">
                  Tcode <xsl:apply-templates />
             </xsl:template>
             <xsl:template match="ttext">
                  ttext <xsl:apply-templates />
             </xsl:template>
             <xsl:template match="sprsl">
                  sprsl <xsl:apply-templates />
             </xsl:template>
    </xsl:transform>

    The exact error message I'm getting is :
    ABAP XML formatting error in XML node of type "element", name: "abap"

  • Webdynpro appln Url parameter "sap-wd-client= XML client "

    Hi all,
        I am a beginner in Webdynpro application development.
    I have a query on the usuage of Url parameter "sap-wd-client=XmlClient" in webdynpro application.
          When i set the Application parameter property of webdynpro iview in portal as "sap-wd-client=XmlClient", i am getting the content of webdynpro appln in XML format. What is the use of this XML format.
    Can we use this webdynpro appln in XML format in any other portal say Weblogic portal and produce an UI in that portal.
    Let me know the use of this XML format.
    Pls give me some exposure on this.
    Thanks & Regards,
    Siva

    Hi sivakumar,
    It is used for supplying data to another kind of client. You can download a trial version of it somewhere on SDN.
    Best regards,
    Thomas

  • SAP.m JS/XML and Gateway service

    Hello
    I've been trying to consume a gateway service with the sap.m classes.
    it turned out quite difficult for me as im new in this whole web thing, and most of the examples for sap.m are in XML.
    i've tried to convert some of the examples in sap.common to sap.m but couldnt really figure it out.
    my XML project returns the error:FlightsSet' refers to an entity set and not to a single entity
    flightset is an entity in my gateway service.
    my oninit function looks like this:
    onInit: function() {
      var oModel = new sap.ui.model.odata.ODataModel("proxy/http/serveradress:8000/sap/opu/odata/sap/ZS_ELI_FLIGHT_PROJECT_SRV", false, 'user', 'pass', null);
        this.getView().setModel(oModel);
    the xml:
    <mvc:View
      controllerName="flightproject.TableView"
      xmlns:l="sap.ui.layout"
      xmlns:mvc="sap.ui.core.mvc"
      xmlns="sap.m">
      <Table id="idProductsTable"
        inset="false"
        items="{
          path: '/FlightsSet'
        }">
        <headerToolbar>
          <Toolbar>
            <Label text="Products"></Label>
          </Toolbar>
        </headerToolbar>
        <columns>
          <Column
            width="12em">
            <Label text="Flight company" />
          </Column>
          <Column
            minScreenWidth="Tablet"
            demandPopin="true">
            <Label text="Flight ID" />
          </Column>
        </columns>
        <items>
          <ColumnListItem>
            <cells>
              <ObjectIdentifier
                title="{Connid}"
                text="{Carrid}" />
              <Text
                text="{CITYFROM}" />
            </cells>
          </ColumnListItem>
        </items>
      </Table>
    </mvc:View>
    am i doing something wrong? thanks

    Hi Lavanya,
    If you are planning to use the TCP/IP destination on the SAP system in Register mode, then a siebel application has to register at the sap gateway using the <b>Program ID</b> given in the TCP/IP destination on the SAP system.
    In the TCP/IP destination the gateway options should contain the gateway host of the sap system and the gateway service. usually the gateway host is the message server itself and the gateway service is "sapgwXX", where XX is the <system_number>.
    Thanks,
    Renjith.

  • How SAP integrate with XML interface & Easyship applications for labelling

    Dear All,
    My client has a requirement to use DHL for its shipments and shipment labelling is required.
    However, as per DHL's response that DHL Express label is a complex presentation that does not lend itself the standard labeling options under SAP, but both options of the XML interface and the Easyship applications do provide this label built by the application and delivered to SAP print stream.
    Please help to advise if there is any possible solutions for this implementation without using middleware?
    Appreciate it.
    Thank you.

    i AM NOT SURE IF i AM GETTING THIS RIGHT BUT, YOU WILL HAVE TO USE A BUSINESS COMMUNICATOR (EAI) BETWEEN dhl AND saP.In our current client we have developed an application where on PGI of the delivery will trigger a dlvry03 IDOc which passes through the logic of EAI and is then passed onto the carrier labelling system/interface.Once again once we receive back the info from the carrier an inbound IDOc is created to update the delivery with the tracking number and a Fedex label prints directly on the required printer.
    Same way you can use shpmnt IDOC and have you tried XSI interface, it was particularly developed to deal with carrier interface.Please let me know I can provid emore info regarding XSI.

  • What is best way to connect a non-sap sys sending  xml idocs to SAP system

    Hi Can some one please guide as to what will be the best approach in connecting a NON SAP system to a SAP system.
    The non sap system should not be connected to access real time data,it does not support RFC,it can send data in IDOC xml format and i think in teaxt files also.Also I dont think there is any EDI subsystem in place.
    There has to be a periodic upload of material data from SAP /stock status/
    then there will be incoming data into SAP for sales order/purchase order etc
    What would be the best way to connect the two systems,IDOCs with partial EDI looks the best way ,but I am confused as to how will the XML IDOC be converted to normal IDOC and viceversa,how to handle the event triggering mechanism.
    If someone has experience in such a scenario ,please help.
    There is a option to update the database of the application through SQL also...

    Hi,
    Check this link.
    Web Services from Function Module
    it might help u.
    Thanks.

  • SAP generating invalid XML for ORDERS05 IDOC

    We have XI 3.0 SP 20 installed here.
    I just started working with XI/PI, so bear with me if this has been asked - I already searched SAP for a note on this and couldn't find one.
    We have integrated sales orders into another system - we have SAP generating an IDOC to be sent when a sales order is created.  We use XI to route it to a 3rd party provider.
    The problem that is occuring is that if an item on the order has an ampersand in the description, the system receiving it tells us that the XML is in error.  In examining the message, it is in error as it doesn't properly escape the ampersand.
    Is there a workaround or patch for this?
    Also - it's not XI that is complaining about the issue, it's our 3rd party provider that is.
    Edited by: Bruce Hartley on Dec 22, 2010 9:34 AM

    Stefan and Abhishek;
    I read the blog - and unless SAP support does not have a fix for issue, I'm not going to use the suggestion in the blog for the exact reasons pointed out by Stefan in the most recent comment.  I have opened a case for this with SAP support and when I get a resolution on it that is not covered by the blog post I will post it here.
    To me, this should work out of the box by SAP and I shouldn't have to write code to work around it.  We're not doing anything fancy or special, we just want to send the order to the 3rd party system via an IDOC interface.  If I was generating the XML by myself, then I would have to convert the stuff.
    I don't think we have < or > in our item descriptions, but I'm sure we have quote characters in there as well.
    We have other systems we use XML with and we did have this issue a long time ago and since I was the one doing the programming and had total control over the process, I was the one who had to fix it - so at least I was aware of it.

  • Does SAP Support the "XML Process Definition Language" (XPDL)

    Does SAP support XPDL. IF not what is the alternative standard that they support?
    regards,
    Thomas

    As far as I know there isn't any support for XML process description language. they only alternative is OMG BPDL, which is still under work.
    Many people tend to compare XPDL to BPEL, although it is not so right. I think that this link http://kswenson.wordpress.com/2006/05/26/bpmn-xpdl-and-bpel/ explain it.
    HTH,
    Natty Gur.

  • New instances of SAP BO by XML input

    Hi, experts,
              Is it possible to input new instances to a Standard SAP BO by using XML input of Service Integration?
              I am trying  but still can't figure it out.
              If the input is possible, please share me some documentation or blog posts.
              Or any other tips. Every help is appreciated.
    Best Regards,
    May T.
    ps.This is a little bit urgent, please help.

    Hi, Tim ,
         Thanks for both answers
          I want to create new instances of SalesOrder.
          I found there is one option.
          There is a button on SalesOrder  Work Center , "New Sales Order from EXCEL".
         Is that what you meant in Number 1??
         If it is, I still have the log in error when I log in to the SAP Add-On in EXCEL.
         Please refer to this link for log on error.
         The specified item was not found.
    Regards,
    May T.

  • Error in SAP WSRP Consumer XML

    Hello,
    the SAP EP WSRP Consumer sends the following request with a wrong xml:lang code. It uses java locales instead. It sends 'en_US' instead of 'en-US'. My producer sends as a response no portlet title, because it has no title for this unknow language code and as a consequence, SAP consumer throws an error saying ' No content defined for this user '. Any ideas?
    <SOAP-ENV:Body><prt0:getServiceDescription xmlns:prt0="urn:oasis:names:tc:wsrp:v1:types">
        <prt0:registrationContext>
            <prt0:registrationHandle>GNF5FRAAAAAAHKP4DGAQAAA</prt0:registrationHandle>
        </prt0:registrationContext>
        <prt0:desiredLocales>en_US</prt0:desiredLocales>
        <prt0:desiredLocales>fr_FR</prt0:desiredLocales>
        </prt0:getServiceDescription>
    </SOAP-ENV:Body></SOAP-ENV:Envelope>
    Regards,
    Andreas.

    Hi Andreas,
    we got kind of the same problem with WSRP and different portal languages. Did you find any kind of solution?
    Kind regards and THX,
    Christoph

  • XML generation with SAP data using XML schema - Reg

    Hello experts,
      My requirement is , SAP( ztable data )  data has to be transferred to third party software folder.Third party using XML so they requires output from SAP in XML format.
    For that third party software guys told me that they will give their own XML schema to me.I have to generate XML file with SAP data using their XML schema.
    Generating XML file with their Schema should be underlined.
    I studied that call transformation statement helps for this.
    Even then i don't have clear idea about this topic.
    Please brief me about how to use their XML schema to generate XML with my own sap data.
    Thanks in advance experts.
    Kumar

    please  try this  same program    and see  it ....
    *& Report  z_xit_xml_check
      REPORT  z_xit_xml_check.
      TYPE-POOLS: ixml.
      TYPES: BEGIN OF t_xml_line,
              data(256) TYPE x,
            END OF t_xml_line.
      DATA: l_ixml            TYPE REF TO if_ixml,
            l_streamfactory   TYPE REF TO if_ixml_stream_factory,
            l_parser          TYPE REF TO if_ixml_parser,
            l_istream         TYPE REF TO if_ixml_istream,
            l_document        TYPE REF TO if_ixml_document,
            l_node            TYPE REF TO if_ixml_node,
            l_xmldata         TYPE string.
      DATA: l_elem            TYPE REF TO if_ixml_element,
            l_root_node       TYPE REF TO if_ixml_node,
            l_next_node       TYPE REF TO if_ixml_node,
            l_name            TYPE string,
            l_iterator        TYPE REF TO if_ixml_node_iterator.
      DATA: l_xml_table       TYPE TABLE OF t_xml_line,
            l_xml_line        TYPE t_xml_line,
            l_xml_table_size  TYPE i.
      DATA: l_filename        TYPE string.
      PARAMETERS: pa_file TYPE char1024 DEFAULT 'c:temporders_dtd.xml'.
    * Validation of XML file: Only DTD included in xml document is supported
      PARAMETERS: pa_val  TYPE char1 AS CHECKBOX.
      START-OF-SELECTION.
    *   Creating the main iXML factory
        l_ixml = cl_ixml=>create( ).
    *   Creating a stream factory
        l_streamfactory = l_ixml->create_stream_factory( ).
        PERFORM get_xml_table CHANGING l_xml_table_size l_xml_table.
    *   wrap the table containing the file into a stream
        l_istream = l_streamfactory->create_istream_itable( table = l_xml_table
                                                        size  = l_xml_table_size ).
    *   Creating a document
        l_document = l_ixml->create_document( ).
    *   Create a Parser
        l_parser = l_ixml->create_parser( stream_factory = l_streamfactory
                                          istream        = l_istream
                                          document       = l_document ).
    *   Validate a document
        IF pa_val EQ 'X'.
          l_parser->set_validating( mode = if_ixml_parser=>co_validate ).
        ENDIF.
    *   Parse the stream
        IF l_parser->parse( ) NE 0.
          IF l_parser->num_errors( ) NE 0.
            DATA: parseerror TYPE REF TO if_ixml_parse_error,
                  str        TYPE string,
                  i          TYPE i,
                  count      TYPE i,
                  index      TYPE i.
            count = l_parser->num_errors( ).
            WRITE: count, ' parse errors have occured:'.
            index = 0.
            WHILE index < count.
              parseerror = l_parser->get_error( index = index ).
              i = parseerror->get_line( ).
              WRITE: 'line: ', i.
              i = parseerror->get_column( ).
              WRITE: 'column: ', i.
              str = parseerror->get_reason( ).
              WRITE: str.
              index = index + 1.
            ENDWHILE.
          ENDIF.
        ENDIF.
    *   Process the document
        IF l_parser->is_dom_generating( ) EQ 'X'.
          PERFORM process_dom USING l_document.
        ENDIF.
    *&      Form  get_xml_table
      FORM get_xml_table CHANGING l_xml_table_size TYPE i
                                  l_xml_table      TYPE STANDARD TABLE.
    *   Local variable declaration
        DATA: l_len      TYPE i,
              l_len2     TYPE i,
              l_tab      TYPE tsfixml,
              l_content  TYPE string,
              l_str1     TYPE string,
              c_conv     TYPE REF TO cl_abap_conv_in_ce,
              l_itab     TYPE TABLE OF string.
        l_filename = pa_file.
    *   upload a file from the client's workstation
        CALL METHOD cl_gui_frontend_services=>gui_upload
          EXPORTING
            filename   = l_filename
            filetype   = 'BIN'
          IMPORTING
            filelength = l_xml_table_size
          CHANGING
            data_tab   = l_xml_table
          EXCEPTIONS
            OTHERS     = 19.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    *   Writing the XML document to the screen
        CLEAR l_str1.
        LOOP AT l_xml_table INTO l_xml_line.
          c_conv = cl_abap_conv_in_ce=>create( input = l_xml_line-data replacement = space  ).
          c_conv->read( IMPORTING data = l_content len = l_len ).
          CONCATENATE l_str1 l_content INTO l_str1.
        ENDLOOP.
        l_str1 = l_str1+0(l_xml_table_size).
        SPLIT l_str1 AT cl_abap_char_utilities=>cr_lf INTO TABLE l_itab.
        WRITE: /.
        WRITE: /' XML File'.
        WRITE: /.
        LOOP AT l_itab INTO l_str1.
          REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>horizontal_tab IN
            l_str1 WITH space.
          WRITE: / l_str1.
        ENDLOOP.
        WRITE: /.
      ENDFORM.                    "get_xml_table
    *&      Form  process_dom
      FORM process_dom USING document TYPE REF TO if_ixml_document.
        DATA: node      TYPE REF TO if_ixml_node,
              iterator  TYPE REF TO if_ixml_node_iterator,
              nodemap   TYPE REF TO if_ixml_named_node_map,
              attr      TYPE REF TO if_ixml_node,
              name      TYPE string,
              prefix    TYPE string,
              value     TYPE string,
              indent    TYPE i,
              count     TYPE i,
              index     TYPE i.
        node ?= document.
        CHECK NOT node IS INITIAL.
        ULINE.
        WRITE: /.
        WRITE: /' DOM-TREE'.
        WRITE: /.
        IF node IS INITIAL. EXIT. ENDIF.
    *   create a node iterator
        iterator  = node->create_iterator( ).
    *   get current node
        node = iterator->get_next( ).
    *   loop over all nodes
        WHILE NOT node IS INITIAL.
          indent = node->get_height( ) * 2.
          indent = indent + 20.
          CASE node->get_type( ).
            WHEN if_ixml_node=>co_node_element.
    *         element node
              name    = node->get_name( ).
              nodemap = node->get_attributes( ).
              WRITE: / 'ELEMENT  :'.
              WRITE: AT indent name COLOR COL_POSITIVE INVERSE.
              IF NOT nodemap IS INITIAL.
    *           attributes
                count = nodemap->get_length( ).
                DO count TIMES.
                  index  = sy-index - 1.
                  attr   = nodemap->get_item( index ).
                  name   = attr->get_name( ).
                  prefix = attr->get_namespace_prefix( ).
                  value  = attr->get_value( ).
                  WRITE: / 'ATTRIBUTE:'.
                  WRITE: AT indent name  COLOR COL_HEADING INVERSE, '=',
                                   value COLOR COL_TOTAL   INVERSE.
                ENDDO.
              ENDIF.
            WHEN if_ixml_node=>co_node_text OR
                 if_ixml_node=>co_node_cdata_section.
    *         text node
              value  = node->get_value( ).
              WRITE: / 'VALUE     :'.
              WRITE: AT indent value COLOR COL_GROUP INVERSE.
          ENDCASE.
    *     advance to next node
          node = iterator->get_next( ).
        ENDWHILE.
      ENDFORM.                    "process_dom
    reward  points  if it is use fulll ....
    Girish

  • SAP NFe GRC XML 3.10 - Erro no envio do lote - Status 2

    Pessoal, bom dia!
    Configuramos os cenários para a versão do xml 3.10 da NFe porem ao criarmos a NFe (saída) o lote foi gerado porem ficou parado no status 2 (Enviado ao PI)  com o erro 38 (Web Service não acessivel) ao clicarmos na descrição do erro é exibida a seguinte mensagem:
    "Service Status not identified: Job /XNFE/NFE_CHECK_SRV_STATUS is not running or customizing is mi"
    O job /XNFE/NFE_CHECK_SRV_STATUS está agendado a cada 2 minutos para teste com o estado 29 (BA) e foi configurado na SPRO NF-e: definir consulta para status de serviço das autoridades (SEFAZ) conforme abaixo:
    Foram agendados os seguintes jobs para a versão 3.10
    /XNFE/EVENT_BATCH_SEND
    /XNFE/GET_ACKNOWLEDGMENT
    /XNFE/NFE_B2B_SEND
    /XNFE/NFE_BATCH_CREATE
    /XNFE/NFE_BATCH_REQUEST
    /XNFE/NFE_CHECK_SRV_STATUS
    /XNFE/NFE_CONTINUE_PROCESS
    /XNFE/NFE_SKIP_SEND
    /XNFE/PROCESS_REPORTS
    /XNFE/UPDATE_ERP_STATUS
    Alguem já passou por este problema no lote? Alguma dica para soluciona-lo?
    Abraços,
    Halsen Nagasawa

    Alan,
    Realmente o erro era na SEFAZ BA, o XML de envio e retorno do serviço NfeStatusServico difere das outras SEFAZ.
    Para solucionar criei um ZSLL-NFE e inclui um javamapping no request e outro no response do operation mapping SRVSC_nfeStatusServicoNF2_TO_nfeStatusServicoNF2SoapIn para modificar as tags conforme o modelo de XML informado pelo pessoal de desenvolvimento da SEFAZ BA.
    Abaixo o modelo informado pela SEFAZ BA.
    O XML do cabeçalho para utilização dos WebServices da SEFAZ-BA na versão 3.00/3.10 é o seguinte:
    <?xml version="1.0" encoding="UTF-8"?>
    <nfeCabecMsg xmlns="http://www.portalfiscal.inf.br/nfe" versao="3.10">
      <versaoDados>3.10</versaoDados>
      <cUF>29</cUF>
    </nfeCabecMsg>
    E o XML da solicitação ao WebService de StatusServico na versão 3.00/3.10 é o seguinte:
    <?xml version="1.0" encoding="UTF-8"?>
    <consStatServ xmlns="http://www.portalfiscal.inf.br/nfe" versao="3.10">
      <tpAmb>2</tpAmb>
      <cUF>29</cUF>
      <xServ>STATUS</xServ>
    </consStatServ>
    Att.
    Halsen Nagasawa

Maybe you are looking for

  • Using green screen ( but just on isight) is this possible

    Can anybody direct me to a tutorial on exactly how to place a greenscreen background into the isight capture. I am using imovie 09 to create a video however i captured the isight footage using screenflow. Now i would like to use the isight footage ho

  • HT1386 How do you sync only one way?

    I want to know how to sync only one way because there are some photos from our previous apple devices and I don't want those photos to appear onto my new one when I sync to put the photos or videos onto the computer. Does anyone know how to do it wit

  • Configure PDF forms with WAS 620

    Hi, We are on WAS 620 and want to work with interactive pdf forms which is available with WAS 640. I was told that this can be done by proper config with WAS 620 also. Can some one confirm this and let me know where to start and any material I can re

  • Calculate Total in Forms Builder using only dates.

    I am using Oracle 10g forms builder. I need to know how the total number of hours worked by students. In the current database, only the date is saved since everyone assumes that the students work for 2 hours each day. So if a date is present in the s

  • Pre-Query Trigger

    In one of our form ( we generated this from Oracle Designer), we put the Pre-Query trigger to the first block of the form, where we override the default_where so that it includes something liek this INSTR (cpb_order_title, 'housing', 1, 1) > 0   AND