Skip to Content
avatar image
Former Member

IDOC to XML

Hi Experts,

I am new to XI. I have a doubt. When we post the IDOC from R/3 with tRFC port, whether internally it will be generated as XML file? if so, whether we can capture it in external java mapping

Thanks,

Naresh

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Feb 24, 2009 at 09:22 AM

    NAresh

    SAP Xi is importing the IDOCS as IDOCXML, when implemented in sap Xi you can do Java modifications on it if you want.

    Greets

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      What do you mean by dynamic attributes ? Is it data type and length ur talking or about the mapping related stuff. Kindly provide more details on this.

      Coming to adapter to import the Idoc/RFC structure in Integration Repository. In Software Comp.=>Namespace=>Interface objects=>External Definitions=> You can import RFC/IDOC structure by bynamically connecting to R3/ECC system.

      Thanks,

      Jogula Ramesh

  • avatar image
    Former Member
    Feb 24, 2009 at 09:29 AM

    Naresh,

    Take a look at

    http://help.sap.com/saphelp_nwpi71/helpdata/en/45/098b6145360488e10000000a155369/frameset.htm

    Here all functionalities regarding IDOC adapters are deined.

    Greets

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 24, 2009 at 09:43 AM

    Dear Naresh,

    For idocs there is no sender adapter and hence there is no sender agreement. The idocs are converted to from IDoc format to IDoc XML format.

    I am doubtfull whether you can capture the idoc data in an external java mapping because this involves tapping into the message flow pipeline. But as an alternative you can try out idoc available as a file. http://help.sap.com/saphelp_nwpi71/helpdata/en/45/098b6145360488e10000000a155369/frameset.htm

    Rgds

    joel

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 24, 2009 at 10:40 AM

    Hi,

    When we post the IDOC from R/3 with tRFC port, whether internally it will be generated as XML file -No, it is generated in IDOC XML native format which is not the general XML.

    if so, whether we can capture it in external java mapping - I think it is not feasible to get the IDOC XML data in a JAVA mapping because your external JAVA mapping will be running during the msg processsing and before this processing is started, your IDOC XML is converted to XML format by the IDOC adapter and then the msg processing starts..........so you can get the XML payload of the IDOC in a JAVA mapping but not the IDOC-XML format.

    Regards,

    Rajeev Gupta

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      For this you will have to create a JAVA mapping and import it in IR...........this case will be similar to any other case in which you have a JAVA mapping to map a source structure to a target structure.... then in interface mapping, you will specify JAVA mapping and select your JAVA mapping program which you imported in IR..............in your JAVA mapping program, by the input parameter you will get the XML payload of your idoc and then in the mapping you can generate your target msg.

      Regards,

      Rajeev Gupta

      Edited by: RAJEEV GUPTA on Feb 24, 2009 12:45 PM

  • avatar image
    Former Member
    Feb 24, 2009 at 11:42 AM

    Naresh,

    there is no way possible to convert your IDOC XML to another adapter without using IR. You have to use some kind of mapping.

    As i described in my answer earlier, when looking at the SAP help you can see that this isn't supported by SAP

    Greets

    Add comment
    10|10000 characters needed characters exceeded