<?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: Trimming Field/String Length in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/trimming-field-string-length/m-p/1676598#M298382</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;If you use DP_XX9...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field DP_XX9 will always have only one value..If the values are different in the internal table DATA_PACKAGE then you have to use the technique that I suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Nov 2006 19:27:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-27T19:27:57Z</dc:date>
    <item>
      <title>Trimming Field/String Length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trimming-field-string-length/m-p/1676591#M298375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I an SQL statement in which I have a where clause in which I am comparing/matching 2 fields. I get the error message "...the fields *&lt;STRONG&gt;A and B&lt;/STRONG&gt;* must have the same length and type". I know that the types are same but how do I reduce the length of field A to match field B. Field A is 18 characters and field B is 40 chars. Thanks in advance.&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 18:58:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trimming-field-string-length/m-p/1676591#M298375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T18:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Trimming Field/String Length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trimming-field-string-length/m-p/1676592#M298376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if it is possible then take the same TYPE or else, &lt;/P&gt;&lt;P&gt;Move the Field to another field using the offset and use the new field in the where condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 19:00:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trimming-field-string-length/m-p/1676592#M298376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T19:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Trimming Field/String Length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trimming-field-string-length/m-p/1676593#M298377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHERE A EQ B(18).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 19:01:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trimming-field-string-length/m-p/1676593#M298377</guid>
      <dc:creator>LucianoBentiveg</dc:creator>
      <dc:date>2006-11-27T19:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Trimming Field/String Length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trimming-field-string-length/m-p/1676594#M298378</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;If you are using FOR ALL ENTRIES in your SQL..Move the values to an internal table that matches the data type and length..And use that internal table for the FOR ALL ENTRIES..&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 19:03:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trimming-field-string-length/m-p/1676594#M298378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T19:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Trimming Field/String Length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trimming-field-string-length/m-p/1676595#M298379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay here's a little more details. Also can you be a little more detailed (exact Syntax) as I'm not an ABAP programmer. Thanks&lt;/P&gt;&lt;P&gt;SELECT /BIC/XX1&lt;/P&gt;&lt;P&gt;         /BIC/XX2&lt;/P&gt;&lt;P&gt;         /BIC/XX3&lt;/P&gt;&lt;P&gt;  FROM /BIC/ODS1&lt;/P&gt;&lt;P&gt;  INTO TABLE ITAB_ODS1&lt;/P&gt;&lt;P&gt;  FOR ALL ENTRIES IN DATA_PACKAGE&lt;/P&gt;&lt;P&gt;  WHERE /BIC/XX1 = DATA_PACKAGE-/BIC/XX1&lt;/P&gt;&lt;P&gt;   AND  /BIC/XX2  = DATA_PACKAGE-/BIC/XX9.&lt;/P&gt;&lt;P&gt;Note: /BIC/XX2 length is 18 and /BIC/XX9 length is 40. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 19:09:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trimming-field-string-length/m-p/1676595#M298379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T19:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trimming Field/String Length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trimming-field-string-length/m-p/1676596#M298380</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;Check this solution..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF TYPE_DATA,&lt;/P&gt;&lt;P&gt;               /BIC/XX1 TYPE /BIC/ODS1-/BIC/XX1,&lt;/P&gt;&lt;P&gt;               /BIC/XX2 TYPE /BIC/ODS1-/BIC/XX2,&lt;/P&gt;&lt;P&gt;             END OF TYPE_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T_DATA TYPE STANDARD TABLE OF TYPE_DATA.&lt;/P&gt;&lt;P&gt;DATA: S_DATA TYPE TYPE_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT DATA_PACKAGE.&lt;/P&gt;&lt;P&gt;  S_DATA-/BIC/XX1 = DATA_PACKAGE-/BIC/XX1.&lt;/P&gt;&lt;P&gt;  S_DATA-/BIC/XX2 = DATA_PACKAGE-/BIC/XX9.  &lt;/P&gt;&lt;P&gt;  APPEND S_DATA TO T_DATA.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT /BIC/XX1&lt;/P&gt;&lt;P&gt;/BIC/XX2&lt;/P&gt;&lt;P&gt;/BIC/XX3&lt;/P&gt;&lt;P&gt;FROM /BIC/ODS1&lt;/P&gt;&lt;P&gt;INTO TABLE ITAB_ODS1&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FOR ALL ENTRIES IN T_DATA&lt;/P&gt;&lt;P&gt;WHERE /BIC/XX1 = T_DATA-/BIC/XX1&lt;/P&gt;&lt;P&gt;AND /BIC/XX2 = T_DATA-/BIC/XX2&amp;lt;/b&amp;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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 19:13:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trimming-field-string-length/m-p/1676596#M298380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T19:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trimming Field/String Length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trimming-field-string-length/m-p/1676597#M298381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you think of this solution. Do you think this is workable? I like your solution but in the meanwhile I had worked up this one so I thought I might as well check with you. Thanks for your help sir.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA DP_XX9 LIKE DATA_PACKAGE-/BIC/XX9.&lt;/P&gt;&lt;P&gt;DP_XX9 = DATA_PACKAGE-/BIC/XX9.&lt;/P&gt;&lt;P&gt;DP_XX9 = DP_XX9(18). -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt;I may be wrong but I'm trying to trim it------&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;(Fill Internal Table)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT /BIC/XX1&lt;/P&gt;&lt;P&gt;         /BIC/XX2&lt;/P&gt;&lt;P&gt;         /BIC/XX3&lt;/P&gt;&lt;P&gt;  FROM /BIC/ODS1&lt;/P&gt;&lt;P&gt;  INTO TABLE ITAB_ODS1&lt;/P&gt;&lt;P&gt;  FOR ALL ENTRIES IN DATA_PACKAGE&lt;/P&gt;&lt;P&gt;  WHERE /BIC/XX1 = DATA_PACKAGE-/BIC/XX1&lt;/P&gt;&lt;P&gt;   AND  /BIC/XX2  = DP_XX9.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 19:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trimming-field-string-length/m-p/1676597#M298381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T19:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Trimming Field/String Length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trimming-field-string-length/m-p/1676598#M298382</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;If you use DP_XX9...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field DP_XX9 will always have only one value..If the values are different in the internal table DATA_PACKAGE then you have to use the technique that I suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 19:27:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trimming-field-string-length/m-p/1676598#M298382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T19:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trimming Field/String Length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trimming-field-string-length/m-p/1676599#M298383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 20:14:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trimming-field-string-length/m-p/1676599#M298383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T20:14:11Z</dc:date>
    </item>
  </channel>
</rss>

