<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic simple Transformation Exception error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-exception-error/m-p/12192787#M1980929</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I am working transformations (XTRANS) in sap and getting some exceptions. My Requirement is read XML data and pass it to RFC FM to execute in SAP. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;XML is having same as RFC input parameters. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;XML file Looks like below:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1780921-f1gjr.png" /&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;And Transformation code is like below and getting exception: &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;System expected element 'IT_P1_DATA'. Please suggest me how to avoid exceptions in SAP. &lt;/STRONG&gt;&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L1S33 {
color: #009300;
}

      &amp;lt;IT_P1_DATA&amp;gt;

        &amp;lt;tt:loop ref="ZRI_TTY_CHANGE.IT_P1_DATA"&amp;gt;

          &amp;lt;ZT_P1_DAT&amp;gt;

            &amp;lt;MANDT tt:value-ref="MANDT"/&amp;gt;

            &amp;lt;VTGNR tt:value-ref="VTGNR"/&amp;gt;

            &amp;lt;BESTNR tt:value-ref="BESTNR"/&amp;gt;

            &amp;lt;VTGJJ tt:value-ref="VTGJJ"/&amp;gt;

            &amp;lt;PREM_REP_AS tt:value-ref="PREM_REP_AS"/&amp;gt;

            &amp;lt;ADJ_DUE_DATE tt:value-ref="ADJ_DUE_DATE"/&amp;gt;

            &amp;lt;PREMIUM_TEXT tt:value-ref="PREMIUM_TEXT"/&amp;gt;

          &amp;lt;/ZT_P1_DAT&amp;gt;

        &amp;lt;/tt:loop&amp;gt;

      &amp;lt;/IT_P1_DATA&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 24 Feb 2020 11:33:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2020-02-24T11:33:47Z</dc:date>
    <item>
      <title>simple Transformation Exception error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-exception-error/m-p/12192787#M1980929</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I am working transformations (XTRANS) in sap and getting some exceptions. My Requirement is read XML data and pass it to RFC FM to execute in SAP. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;XML is having same as RFC input parameters. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;XML file Looks like below:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1780921-f1gjr.png" /&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;And Transformation code is like below and getting exception: &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;System expected element 'IT_P1_DATA'. Please suggest me how to avoid exceptions in SAP. &lt;/STRONG&gt;&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L1S33 {
color: #009300;
}

      &amp;lt;IT_P1_DATA&amp;gt;

        &amp;lt;tt:loop ref="ZRI_TTY_CHANGE.IT_P1_DATA"&amp;gt;

          &amp;lt;ZT_P1_DAT&amp;gt;

            &amp;lt;MANDT tt:value-ref="MANDT"/&amp;gt;

            &amp;lt;VTGNR tt:value-ref="VTGNR"/&amp;gt;

            &amp;lt;BESTNR tt:value-ref="BESTNR"/&amp;gt;

            &amp;lt;VTGJJ tt:value-ref="VTGJJ"/&amp;gt;

            &amp;lt;PREM_REP_AS tt:value-ref="PREM_REP_AS"/&amp;gt;

            &amp;lt;ADJ_DUE_DATE tt:value-ref="ADJ_DUE_DATE"/&amp;gt;

            &amp;lt;PREMIUM_TEXT tt:value-ref="PREMIUM_TEXT"/&amp;gt;

          &amp;lt;/ZT_P1_DAT&amp;gt;

        &amp;lt;/tt:loop&amp;gt;

      &amp;lt;/IT_P1_DATA&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Feb 2020 11:33:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-exception-error/m-p/12192787#M1980929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-02-24T11:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: simple Transformation Exception error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-exception-error/m-p/12192788#M1980930</link>
      <description>&lt;P&gt;The issue is probably because PREMIUM_TEXT is missing in your XML. Optional elements must be conditioned (tt:cond).&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 12:33:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-exception-error/m-p/12192788#M1980930</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-02-24T12:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: simple Transformation Exception error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-exception-error/m-p/12192789#M1980931</link>
      <description>&lt;P&gt;Please use the COMMENT button for comments, questions, adding details, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.&lt;/P&gt;&lt;P&gt;If you do a comment under a question/answer and you want to target someone else than the question/answer' author, the only solution is to copy/paste their hyperlinked name so that the person receives a warning (NB: @ doesn't work)&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 14:47:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-exception-error/m-p/12192789#M1980931</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-02-24T14:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: simple Transformation Exception error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-exception-error/m-p/12192790#M1980932</link>
      <description>&lt;P&gt;I realize that the problem comes from something that you didn't provide. IT_P1_DATA is expected in the XML but is not found, so you should post the XML before IT_P1_DATA, not after, and also the corresponding transformation code.&lt;/P&gt;&lt;P&gt;Please post the code as text instead of image, so that one can easily answer by modifying portions of your code.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 14:51:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-exception-error/m-p/12192790#M1980932</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-02-24T14:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: simple Transformation Exception error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-exception-error/m-p/12192791#M1980933</link>
      <description>&lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/1780924-code.txt"&gt;code.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Rossi,&lt;/P&gt;&lt;P&gt; Thanks for your suggestion and attached the note pad with complete code. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandeep K&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 14:57:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-exception-error/m-p/12192791#M1980933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-02-24T14:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: simple Transformation Exception error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-exception-error/m-p/12192792#M1980934</link>
      <description>&lt;P&gt;The elements ZTRI_POLARIS_DAT and its children have a default namespace assigned. Check again without the namespace.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 15:11:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-transformation-exception-error/m-p/12192792#M1980934</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-02-24T15:11:36Z</dc:date>
    </item>
  </channel>
</rss>

