<?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 Problem while updating Data through IDOC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-updating-data-through-idoc/m-p/6641412#M1443495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have declared an Internal Table like a structure which has 10 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To generate Idoc i need to pass the records from Internal Table to EDIDD-SDATA.&lt;/P&gt;&lt;P&gt;Since SDATA is a string of Char 1000, i'm concatenating all the columns of internal table to a variable.&lt;/P&gt;&lt;P&gt;In debug mode all the fields size are adopting to its correct size. &lt;/P&gt;&lt;P&gt;but after generating the IDOC and view through WE02 the data are miss placed bz of inclusion of space.&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;field1 (Size 4) - ABCD&lt;/P&gt;&lt;P&gt;field2 (Size 10) - 0000001234&lt;/P&gt;&lt;P&gt;field3 (size 10) - 09.02.2010&lt;/P&gt;&lt;P&gt;field4 (Size 6) - _12345&lt;/P&gt;&lt;P&gt;field5 (Size 4) - 6 AB --&amp;gt; missed character is continuing in next field after a space data of its corresponding field starts&lt;/P&gt;&lt;P&gt;field6 (Size 3) - C 2 --&amp;gt;missed character is continuing in next field after a space data of its corresponding field starts &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried by suppressing the space. CONDENSE NO-GAPS. . . .it dnt help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to solve this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2010 03:28:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-10T03:28:45Z</dc:date>
    <item>
      <title>Problem while updating Data through IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-updating-data-through-idoc/m-p/6641412#M1443495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have declared an Internal Table like a structure which has 10 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To generate Idoc i need to pass the records from Internal Table to EDIDD-SDATA.&lt;/P&gt;&lt;P&gt;Since SDATA is a string of Char 1000, i'm concatenating all the columns of internal table to a variable.&lt;/P&gt;&lt;P&gt;In debug mode all the fields size are adopting to its correct size. &lt;/P&gt;&lt;P&gt;but after generating the IDOC and view through WE02 the data are miss placed bz of inclusion of space.&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;field1 (Size 4) - ABCD&lt;/P&gt;&lt;P&gt;field2 (Size 10) - 0000001234&lt;/P&gt;&lt;P&gt;field3 (size 10) - 09.02.2010&lt;/P&gt;&lt;P&gt;field4 (Size 6) - _12345&lt;/P&gt;&lt;P&gt;field5 (Size 4) - 6 AB --&amp;gt; missed character is continuing in next field after a space data of its corresponding field starts&lt;/P&gt;&lt;P&gt;field6 (Size 3) - C 2 --&amp;gt;missed character is continuing in next field after a space data of its corresponding field starts &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried by suppressing the space. CONDENSE NO-GAPS. . . .it dnt help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to solve this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 03:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-updating-data-through-idoc/m-p/6641412#M1443495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-10T03:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while updating Data through IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-updating-data-through-idoc/m-p/6641413#M1443496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Populate it this way :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT IT_DATA into wa_data.


  CALL METHOD CL_ABAP_CONTAINER_UTILITIES=&amp;gt;FILL_CONTAINER_C
    EXPORTING
      IM_VALUE               = WA_DATA
    IMPORTING
      EX_CONTAINER           = EDIDD-SDATA
    EXCEPTIONS
      ILLEGAL_PARAMETER_TYPE = 1
      others                 = 2    .


append EDIDD.

ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 03:41:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-updating-data-through-idoc/m-p/6641413#M1443496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-10T03:41:36Z</dc:date>
    </item>
  </channel>
</rss>

