Skip to Content

Send XML to SFTP with SAP PI

Hi Dear,

Please i need a help...i try send to SFTP the xml file (i convert internal table in XML and send), but the file is not correct:

In RWB the error message:

my module in CC:

Does anyone have any idea what I can do to make this xml recording be correct?

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Dec 02, 2016 at 02:48 PM

    I gave up doing this dynamic reading and did using field mapping. Thank you for your attention and help.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 24, 2016 at 01:56 AM

    Hi Wilson!

    Your error message is self-descriptive. It says that module processor couldn't find "MessageTransformBean" module. Check your communication channel where this module is used.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Evgeniy....

      I convert the internal table in XML and try create a file in sftp, but i send a string....i don't know how i convert a input string in XML.

      ex.:

      Input :

      - vagas.com:1.0"> http://www.sap.com/abapxml" version="1.0"> TESTE 1233

      But the correct is:

      output:

      - vagas.com:1.0">
      http://www.sap.com/abapxml" version="1.0">

      <asx:values>

      <TAB>

      <item>

      <AREARH_DEPART>TESTE</AREARH_DEPART> <CENTROCUSTO>1233</CENTROCUSTO>

      </TAB>

      </item>

      </asx:values>

      </asx:abap>

      </ns0:MT_TEST_COM>


      thanks

  • Nov 28, 2016 at 02:18 AM

    Hi Wilson!

    If you need to send contents of your table as XML structure, why not to create Data/Message types for that table, define interface with operation using that maessage type and generate ABAP sender proxy in your source system?

    In ABAP code you just fill structures of source message with your table's data and call the generated proxy class's method to send message to PI.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded