Skip to Content
avatar image
Former Member

Help Regarding receiver FCC structure

Hi

My sender structure is

<Details>

<Recorder>

   <EGHT>45603</EGHT>

   <EHGD>DA</EHGD>

   <ID>1236A</ID>

   <Value>

      <Values>

        <Seq>1</Seq>

        <Del>10</Del>

     </Values>

     <Values>

       <Seq>2</Seq>

       <Del>11</Del>

     </Values>

  </Value>

</Recorder>

</Details>

I want my target CSV to be

45603;DA;1236A;1;10

45603;DA;1236A;2;11

Recorder segment can occur multiple time. So how to repeat Recorder segment issues w.r.t to Values segment repetition. I tried to use useoneasmany but its copying ther recorder segment fiels first occurance only to all its repetition.

How to acheive this, Any help

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 14, 2013 at 02:28 PM

    Hi Prabhas,

    First create a target structure like below,

    <Recorder> (1..unbounded)

        <EGHT>

       <EHGD>

        <ID>

        <Seq>

        <Del>

    </Recorder>

    Then, use the below mapping logic.

    Source <Values> -----------> Target <Recorder>

    For field mapping,

    do similar mapping for EHGD and ID field.

    then direct mapping for Seq and Del field.

    your mapping xml output will be like below,

    <Recorder>

         <EGHT>45603</EGHT>

         <EHGD>DA</EHGD>

         <ID>1236A</ID>

         <Seq>1</Seq>

         <Del>10</Del>

    </Recorder>

    <Recorder>

         <EGHT>45603</EGHT>

         <EHGD>DA</EHGD>

         <ID>1236A</ID>

         <Seq>2</Seq>

         <Del>11</Del>

    </Recorder>

    Then you have to use FCC for receiver file adapter

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

    Hope this helps.

    Regards,

    Zameer

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Prabhas,

      Just follow my earlier reply, except for one change as below.

      Source <Values> [raise context to Message Type level]-----------> Target <Recorder>

      Hope this would work and create required xml, then you have to just do the receiver FCC config to generate csv file.

      Regards,

      Zameer

  • Jan 14, 2013 at 02:09 PM

    Hi Prabhas,

    create target side as like following  structure.

    <Recorder>

       <EGHT>45603</EGHT>

       <EHGD>DA</EHGD>

       <ID>1236A</ID>

       <Value>

            <Seq>1</Seq>

            <Del>10</Del>

         </Value>

    </Recorder>

    <Recorder>

       <EGHT>45603</EGHT>

       <EHGD>DA</EHGD>

       <ID>1236A</ID>

       <Value>

    <Seq>2</Seq>

           <Del>11</Del>

         </Value>

    </Recorder>

    and then use useoneasmany function and then use fcc at receiver side

    Regards

    Gagan

    Add comment
    10|10000 characters needed characters exceeded

    • Hello,

      Two lines of UDF will help u😊

      for(int i=0;i<var1.length;i++)

      {

      result.addValue(var2[0]);

      }

      mapping will be:

      values

      --------------UDF-----splitby value(each value)---Target_EGHT

      Eght

      Thanks

      Amit Srivastava