Skip to Content

XML to TXT conversion using message transform bean in JMS receiver channel

Hi Experts,

My requirement is the input XML contains 6 fields for each record with hierarchy level 1.

Input:

Output text file should contain values in fixed lengths:

So the first value in XML should be present b/w 1 to 6th positions , second field value in between 7th & 26th position and so on as explained in above table.

Can I generate text file by fixing lengths for each field value in Message transform bean module if so what all parameters are required to be used to generate file with above content, kindly guide me.

Thanks,

Ramu.

capture.jpg (52.1 kB)
capture1.jpg (24.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jun 04 at 03:04 PM
    Add comment
    10|10000 characters needed characters exceeded

  • Jun 05 at 06:03 AM

    Hi Ramu,

    if you have the B2B-addon you can use the plainconvertermodule also, but you have to create the plain file structure in the B2B addon:

    https://blogs.sap.com/2016/09/01/xml-to-plain-end-to-end-configuration-in-b2b-cockpit/

    Regards
    Peter


    Add comment
    10|10000 characters needed characters exceeded