cancel
Showing results for 
Search instead for 
Did you mean: 

StrictXml2PlainBean - Module Doubt

rhviana
Active Contributor
0 Kudos

Hi experts,

I have doubt here how to configure the StrictXml2PlainBean module.

The scenario is: RFC --- PI -- Module -- FTP

The xml below it's that one must be convert in module to txt:

  <?xml version="1.0" encoding="UTF-8"?>

  <rfc:Z_TESTE xmlns:rfc="urn:sap-com:document:sap:rfc:functions">

       <FILE_NAME>TEST_XXX.txt</FILE_NAME>

   <X_FILE>

         <item>

                <YEAR_MOUTH>h</AR_MOUTH>

                <DAY>h</DAY>

                <BILL></BILL>

                <COUNTRY>US</COUNTRY>

         </item>

   </X_FILE>

  </rfc:Z_TESTE>

There is 3 tags, the FILE_NAME tag it's a record will be into folder in FTP and X_FILE contains the date inside the file.

   Image below how I did configuration:

I

  I'm got that error in runtimeworkbench:

I must define two recordtypes or onlyone, because the tag FILE_NAME cares about the name of file ?

  Thanks,

  Kind regards,

  Viana.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ricardo,

As you are using FILE adapter (FCC) at receiver end there is no need for any type specification as there is not going to be any validation, when you write the content to the file

So if you remove NAME.RecordType and X_FILE.RecordType from the parameter list it will work

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

you could find it over here the parameters we could use at receiver end ->

http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm

rhviana
Active Contributor
0 Kudos

Hi Guys thanks for support,

But I did the configuration wrong,

The correct is the image below:

I'm geeting another error because the data type, but that's fine.

Thanks

Viana.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi.

The parameter FieldNames is only use for Sender CC. You are using Receiver CC

http://help.sap.com/saphelp_nwpi71/helpdata/en/44/686e687f2a6d12e10000000a1553f6/frameset.htm

Also according documentation the expect input should be like this

<root>

  <nameA>

        <value1>value</value1>

        <value2>value</value2>

        <value3>value</value3>

  </nameA>

  <nameB>

        <value4>value</value4>

  </nameB>

...

</root>

Regards

Lucho.