Skip to Content
avatar image
Former Member

File content convertion for multi mapping occurance 1:N

Hi ALL,

In my scenario i have used multimapping means 1:N,

In my scenario the sender is file adapter and receiver is JMS adapter.

My requirement is that i have to pick the file from respective directory path...

through file content convertion

For example below is the structure when the sender file adpater pickes the flat file..through File content convertion....

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

<ns:mt_BookingConfirmation xmlns:ns1="urn:agrp:ml">

<Recordset>

<BOOKING_REQCON_ROU>

<RECORD_TYPE>ROU</RECORD_TYPE>

<SENDER_ID>AS.MAN</SENDER_ID>

<RECEIVER_ID>abcd.99018293</RECEIVER_ID>

</BOOKING_REQCON_ROU>

</Recordset>

</ns:mt_BookingConfirmation>

But the structure of the source which i have in the mpping is as below,you can see the diffrence and this diffrence we will get automatically when we change the occurances of the target structure.

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

http://sap.com/xi/XI/SplitAndMerge">

<ns0:Message1>

<ns1:mt_BookingConfirmation xmlns:ns1="urn:agrp:ml">

<Recordset>

<BOOKING_REQCON_ROU>

<RECORD_TYPE>ROU</RECORD_TYPE>

<SENDER_ID>AS.MAN</SENDER_ID>

<RECEIVER_ID>abcd.99018293</RECEIVER_ID>

</BOOKING_REQCON_ROU>

</Recordset>

</ns1:mt_BookingConfirmation>

</ns0:Message1>

</ns0:Messages>

because of this diffrence in the structure... the picked file could not able to pass ttrough from the message mapping.Because of this error is throwned in the SXMB_MONI

Please if some one know how to do the file content convertion for this type of diffrent structure.

Please let me know ASAP.

Thanks in advance...

Best Regards,

Aravind.Pujari

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 23, 2007 at 11:07 AM

    Hi,

    I guess you are using message splitting concept. In the inpterface mapping the change the occurence to 0 to unbounded. I am sure ur problem will be solved.

    For more info please go tru the link below,

    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/ed364cf8593eebe10000000a1553f7/content.htm

    Hope this helps.

    Prasad Babu.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 23, 2007 at 11:16 AM

    Hi Arvind,

    When you have changed the occurences for a message, the name space will added by XI, ns0="http://sap.com/xi/XI/SplitAndMerge. While execution of the complete scenario it is not a problem.while doing testing on mapping from TEST tab then you will get the error XML is not well formed. Check the error which was shown in SXMB_MONI once and give that trace of that error.

    Cheers

    Veera

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Veera,

      I'm not getting any error message but meanwhile i'm not getting transformed output message from mapping Please find the below message...in SXMB_MONI.

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

      - http://sap.com/xi/XI/SplitAndMerge">

      <ns0:Message1 />

      </ns0:Messages

      There should be some payload messsage below to the <ns0:Message1 />

      but its not coming.

      Please give me ur inputs.

      Thanks,

      Aravind.Pujari

  • avatar image
    Former Member
    Oct 23, 2007 at 12:25 PM

    Hi,

    Check Below links.

    File content conversion sites

    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1

    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2

    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file

    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter

    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1

    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2

    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30

    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file

    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter

    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns

    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem

    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter

    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

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

    Regards,

    Phani

    Reward Points if Helpful 😊

    Add comment
    10|10000 characters needed characters exceeded