<?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 Re: Missing XML tags for empty IDOC fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/missing-xml-tags-for-empty-idoc-fields/m-p/11562516#M1937451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I have just found "XML File" port output standard function:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IDOCS_OUTPUT_IN_XML_FORMAT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and inside it there is fixed check that field cannot have empty value &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/98/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For non-unicode XML processing in include LEDI7F04 - SEND_DATA_RECORDS, row 1547:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;LOOP AT int_dfies.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ASSIGN i_&lt;STRONG&gt;edidd-sdata&lt;/STRONG&gt;+offset(int_dfies-leng) TO &lt;STRONG&gt;&amp;lt;feld&amp;gt;&lt;/STRONG&gt; &lt;SPAN style="font-size: 10pt;"&gt;TYPE int_dfies-inttype.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;STRONG&gt; string = &amp;lt;feld&amp;gt;.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;CHECK NOT string IS INITIAL.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;* &amp;lt;fieldname&amp;gt;string&amp;lt;/fieldname&amp;gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and for unicode XML its same, just in LEDI7F05 - DATA_RECORDS_XML, row 778.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No customization available for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Mar 2016 12:50:19 GMT</pubDate>
    <dc:creator>Tomas_Buryanek</dc:creator>
    <dc:date>2016-03-18T12:50:19Z</dc:date>
    <item>
      <title>Missing XML tags for empty IDOC fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/missing-xml-tags-for-empty-idoc-fields/m-p/11562515#M1937450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way to configure or enhance "&lt;STRONG&gt;XML File&lt;/STRONG&gt;" IDOC port output logic?&lt;/P&gt;&lt;P&gt;Goal is to generate XML tags for all IDOC fields, even those with empty value. But by default empty fields are skipped in result XML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDOC raw data:&lt;/P&gt;&lt;P&gt;SEGMENT1-ABC is &lt;SPAN style="text-decoration: line-through;"&gt;initial&lt;/SPAN&gt; empty&lt;/P&gt;&lt;P&gt;SEGMENT1-WERKS = "XY01"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;XML now:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;segment1 SEGMENT="1"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;werks&amp;gt;XY01&amp;lt;/werks&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/segment1&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;XML needed:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;segment1 SEGMENT="1"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;abc&amp;gt;&amp;lt;/abc&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;werks&amp;gt;XY01&amp;lt;/werks&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;/segment1&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 11:48:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/missing-xml-tags-for-empty-idoc-fields/m-p/11562515#M1937450</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-03-18T11:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Missing XML tags for empty IDOC fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/missing-xml-tags-for-empty-idoc-fields/m-p/11562516#M1937451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I have just found "XML File" port output standard function:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IDOCS_OUTPUT_IN_XML_FORMAT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and inside it there is fixed check that field cannot have empty value &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/98/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For non-unicode XML processing in include LEDI7F04 - SEND_DATA_RECORDS, row 1547:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;LOOP AT int_dfies.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ASSIGN i_&lt;STRONG&gt;edidd-sdata&lt;/STRONG&gt;+offset(int_dfies-leng) TO &lt;STRONG&gt;&amp;lt;feld&amp;gt;&lt;/STRONG&gt; &lt;SPAN style="font-size: 10pt;"&gt;TYPE int_dfies-inttype.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;STRONG&gt; string = &amp;lt;feld&amp;gt;.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;CHECK NOT string IS INITIAL.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;* &amp;lt;fieldname&amp;gt;string&amp;lt;/fieldname&amp;gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and for unicode XML its same, just in LEDI7F05 - DATA_RECORDS_XML, row 778.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No customization available for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 12:50:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/missing-xml-tags-for-empty-idoc-fields/m-p/11562516#M1937451</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-03-18T12:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Missing XML tags for empty IDOC fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/missing-xml-tags-for-empty-idoc-fields/m-p/11562517#M1937452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure that a segment is even added in this case? We had some bad experience with the price segments - in case of 0 price the segment was not even added and XML was missing price altogether (and the recipient needed 0 there). But we added some code in a user exit to force the segment addition with 0 value and it worked fine. It might be more difficult with alpha values (0 makes a non-empty string), but maybe using some value like "N/A" instead of blank would be an option?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might want to open an incident with SAP though. We were told to take a hike, but maybe if more customers complain ("null" &amp;lt;&amp;gt; initial after all) someone will get a clue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 16:03:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/missing-xml-tags-for-empty-idoc-fields/m-p/11562517#M1937452</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2016-03-18T16:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Missing XML tags for empty IDOC fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/missing-xml-tags-for-empty-idoc-fields/m-p/11562518#M1937453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;In this case we have only problem with empty values &amp;lt;value&amp;gt;&amp;lt;/value&amp;gt; which are skipped in XML, but recipient wants to get empty tags.&lt;/P&gt;&lt;P&gt;I checked few IDOCs and "initial" / zero number values are transfered to IDOC and XML:&lt;/P&gt;&lt;P&gt;&amp;lt;QUANTITY&amp;gt;0&amp;lt;/QUANTITY&amp;gt;, &amp;lt;PRICE&amp;gt;0.000000&amp;lt;/PRICE&amp;gt;.&lt;/P&gt;&lt;P&gt;Is there a chance you can find what user exit was that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 07:30:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/missing-xml-tags-for-empty-idoc-fields/m-p/11562518#M1937453</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-03-21T07:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Missing XML tags for empty IDOC fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/missing-xml-tags-for-empty-idoc-fields/m-p/11562519#M1937454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no "general IDoc" user exit, they are specific to the type, so ours won't help you most likely. Usually they can be easily found using Google: "&amp;lt;message type&amp;gt; user exit".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 15:27:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/missing-xml-tags-for-empty-idoc-fields/m-p/11562519#M1937454</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2016-03-21T15:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Missing XML tags for empty IDOC fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/missing-xml-tags-for-empty-idoc-fields/m-p/11562520#M1937455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does not solve exactly this problem. But we helped recipient with XML data mapping by providing XSD schema. It can be generated in WE60 -&amp;gt; XML schema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 07:38:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/missing-xml-tags-for-empty-idoc-fields/m-p/11562520#M1937455</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-03-22T07:38:11Z</dc:date>
    </item>
  </channel>
</rss>

