<?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: Question on type mismatch when using select query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-type-mismatch-when-using-select-query/m-p/443259#M13122</link>
    <description>&lt;P&gt;Hi Horst,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;No I cant use join in this scenario, Because I am fetching entries from TGAR table based on entries in XLIPS and XLIPS is an internal table and this is filled dynamically when the delievry is getting created.&lt;/P&gt;&lt;P&gt;Please suggest alternative solution.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;rg&lt;/P&gt;</description>
    <pubDate>Fri, 21 Apr 2017 12:14:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2017-04-21T12:14:00Z</dc:date>
    <item>
      <title>Question on type mismatch when using select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-type-mismatch-when-using-select-query/m-p/443255#M13118</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I am fetching freight class (GTKLS) from TGAAR table based on material group as shown below&lt;/P&gt;&lt;P&gt; SELECT garvz gtart gtkls&lt;BR /&gt;
 FROM tgar&lt;BR /&gt;
 INTO TABLE i_tgar&lt;BR /&gt;
 FOR ALL ENTRIES IN xlips&lt;BR /&gt;
 WHERE gtart = xlips-matkl&lt;BR /&gt;
 AND garvz = 'NMFTC'.&lt;/P&gt;&lt;P&gt;The above query basically gives me a syntax error as type mismatch because  XLIPS-MATKL has CHAR9 and TGAR gatrt has CHAR12.&lt;/P&gt;&lt;P&gt;The solution I am using to avoid type mismatch is as below.&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_lips_temp,&lt;BR /&gt;
 vbeln TYPE vbeln_vl,&lt;BR /&gt;
 posnr TYPE posnr_vl,&lt;BR /&gt;&lt;STRONG&gt;&lt;U&gt;
 gtart TYPE gtart,&lt;/U&gt;&lt;/STRONG&gt;&lt;BR /&gt;
 END OF t_lips_temp.&lt;/P&gt;&lt;P&gt;data: w_lips_temp TYPE t_lips_temp,&lt;/P&gt;&lt;P&gt;
 i_lips_temp TYPE STANDARD TABLE OF t_lips_temp.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;
* Loop the delivery table and create temp table&lt;BR /&gt;
 LOOP AT xlips.&lt;BR /&gt;
 w_lips_temp-vbeln = xlips-vbeln.&lt;BR /&gt;
 w_lips_temp-posnr = xlips-posnr.&lt;BR /&gt;
 w_lips_temp-gtart = xlips-matkl.&lt;BR /&gt;
 APPEND w_lips_temp TO i_lips_temp.&lt;BR /&gt;
 ENDLOOP.&lt;BR /&gt;
&lt;BR /&gt;
 SELECT garvz gtart gtkls&lt;BR /&gt;
 FROM tgar&lt;BR /&gt;
 INTO TABLE i_tgar&lt;BR /&gt;
 FOR ALL ENTRIES IN i_lips_temp&lt;BR /&gt;
 WHERE gtart = i_lips_temp-gtart&lt;BR /&gt;
 AND garvz = 'NMFTC'.&lt;/P&gt;&lt;P&gt;I am looking for the best way to avoid type mismatch .Can any one please suggest any other best alternative apart from this.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;rg&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 08:25:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-type-mismatch-when-using-select-query/m-p/443255#M13118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-04-19T08:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Question on type mismatch when using select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-type-mismatch-when-using-select-query/m-p/443256#M13119</link>
      <description>&lt;P&gt;Hi &lt;A href="https://answers.sap.com/users/7189/ramyag1.html"&gt;Ramya&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can declare a range: RANGES r_gtart for gtart. then append data from field table xlips-matkl  to the range.&lt;/P&gt;&lt;P&gt;SELECT garvz gtart gtkls&lt;BR /&gt;FROM tgar&lt;BR /&gt;INTO TABLE i_tgar&lt;BR /&gt;WHERE gtart in r_gtart   " fiter be here.&lt;/P&gt;&lt;P&gt;AND garvz = 'NMFTC'.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 10:01:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-type-mismatch-when-using-select-query/m-p/443256#M13119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-04-19T10:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Question on type mismatch when using select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-type-mismatch-when-using-select-query/m-p/443257#M13120</link>
      <description>&lt;P&gt;if you use range table just make sure that data you are going to fill in the range table doesn't cause dump&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2012/03/26/the-answer-to-the-question-so-why-do-i-get-a-shortdump-when-i-enter-lots-of-select-options" target="test_blank"&gt;https://blogs.sap.com/2012/03/26/the-answer-to-the-question-so-why-do-i-get-a-shortdump-when-i-enter-lots-of-select-options&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 15:50:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-type-mismatch-when-using-select-query/m-p/443257#M13120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-04-19T15:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Question on type mismatch when using select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-type-mismatch-when-using-select-query/m-p/443258#M13121</link>
      <description>&lt;P&gt;Can't you use a join expression instead of FOR ALL ENTRIES? Opens up the possibility of ÇAST expressions (in recent releases), which can't be combined with FOR ALL ENTRIES.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 16:20:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-type-mismatch-when-using-select-query/m-p/443258#M13121</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-04-19T16:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Question on type mismatch when using select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-type-mismatch-when-using-select-query/m-p/443259#M13122</link>
      <description>&lt;P&gt;Hi Horst,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;No I cant use join in this scenario, Because I am fetching entries from TGAR table based on entries in XLIPS and XLIPS is an internal table and this is filled dynamically when the delievry is getting created.&lt;/P&gt;&lt;P&gt;Please suggest alternative solution.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;rg&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 12:14:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-type-mismatch-when-using-select-query/m-p/443259#M13122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-04-21T12:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Question on type mismatch when using select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-type-mismatch-when-using-select-query/m-p/443260#M13123</link>
      <description>&lt;P&gt;Hi Ramya,&lt;/P&gt;&lt;P&gt; Though it is not a complete alternate, If you are on NetWeaer 7.4 or above, instead of looping  at xlips, you can sue the below syntax   &lt;/P&gt;&lt;P&gt; i_lips_temp = corresponding #(xlips) and proceed further.&lt;/P&gt;&lt;P&gt; Sathya&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 14:22:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-type-mismatch-when-using-select-query/m-p/443260#M13123</guid>
      <dc:creator>Sathya_Gunasekaran</dc:creator>
      <dc:date>2017-04-21T14:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Question on type mismatch when using select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-type-mismatch-when-using-select-query/m-p/443261#M13124</link>
      <description>&lt;P&gt;Hi Sathya,&lt;/P&gt;&lt;P&gt;Thanks for your reply . We are at version 7.2 so we cannot use the solution mentioned by you .&lt;/P&gt;&lt;P&gt;Any how your answer looks interesting . Can you please elaborate your answer how you are filling I_LIPS_TEMP without using loop for XLIPS.&lt;/P&gt;&lt;P&gt;rg&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2017 08:31:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-type-mismatch-when-using-select-query/m-p/443261#M13124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-04-22T08:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Question on type mismatch when using select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-type-mismatch-when-using-select-query/m-p/443262#M13125</link>
      <description>&lt;P&gt;Sorry for the delay. SAP have introduced lots of simplified syntaxes in version 7.4 and 7.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_lips_temp = corresponding #(xlips)  will move the matching columns to the temp table &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 08:47:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-type-mismatch-when-using-select-query/m-p/443262#M13125</guid>
      <dc:creator>Sathya_Gunasekaran</dc:creator>
      <dc:date>2017-07-07T08:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Question on type mismatch when using select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-type-mismatch-when-using-select-query/m-p/443263#M13126</link>
      <description>&lt;P&gt;Will there be any problem if we define xlips-matkl as 'char12'?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 08:57:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-type-mismatch-when-using-select-query/m-p/443263#M13126</guid>
      <dc:creator>satyapriyanka_vana</dc:creator>
      <dc:date>2017-07-07T08:57:22Z</dc:date>
    </item>
  </channel>
</rss>

