<?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 Type Conversion Issue while firing query... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-issue-while-firing-query/m-p/7121318#M1511186</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need your help and inputs ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are writing a query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select objid from hrp1010 INTO CORRESPONDING FIELDS OF TABLE lt_hrp1010&lt;/P&gt;&lt;P&gt;     FOR ALL ENTRIES IN LT_VARYF&lt;/P&gt;&lt;P&gt;     where objid eq LT_VARYF-SOBID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where LT_VARYF is internal table of type HRP1001,&lt;/P&gt;&lt;P&gt;    and lt_hrp1010 is internal table of type HRP1010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the above query OBJID is of type NUMC but SOBID is of type CHAR and thats why it is gving us an error message related to Type Mismatch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way in which we can manipulate the Data Type of Column(SOBID) of the Internal Table (LT_VARYF), just before we fire above query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is there any other way through which I can solve my propose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jul 2010 21:09:53 GMT</pubDate>
    <dc:creator>former_member213219</dc:creator>
    <dc:date>2010-07-13T21:09:53Z</dc:date>
    <item>
      <title>Type Conversion Issue while firing query...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-issue-while-firing-query/m-p/7121318#M1511186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need your help and inputs ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are writing a query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select objid from hrp1010 INTO CORRESPONDING FIELDS OF TABLE lt_hrp1010&lt;/P&gt;&lt;P&gt;     FOR ALL ENTRIES IN LT_VARYF&lt;/P&gt;&lt;P&gt;     where objid eq LT_VARYF-SOBID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where LT_VARYF is internal table of type HRP1001,&lt;/P&gt;&lt;P&gt;    and lt_hrp1010 is internal table of type HRP1010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the above query OBJID is of type NUMC but SOBID is of type CHAR and thats why it is gving us an error message related to Type Mismatch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way in which we can manipulate the Data Type of Column(SOBID) of the Internal Table (LT_VARYF), just before we fire above query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is there any other way through which I can solve my propose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 21:09:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-issue-while-firing-query/m-p/7121318#M1511186</guid>
      <dc:creator>former_member213219</dc:creator>
      <dc:date>2010-07-13T21:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Type Conversion Issue while firing query...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-issue-while-firing-query/m-p/7121319#M1511187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will have to create an new field in the internal table LT_VARYF of type hrp1010-objid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF t_hrp1001.
        INCLUDE STRUCTURE hrp1001.
TYPES: sobid2 TYPE  hrp1010-objid,
       END OF t_hrp1001.

DATA: lt_varyf TYPE STANDARD TABLE OF t_hrp1001.
DATA: lt_hrp1010 TYPE STANDARD TABLE OF hrp1010.
FIELD-SYMBOLS: &amp;lt;fs_line&amp;gt; LIKE LINE OF lt_varyf.

SELECT * INTO CORRESPONDING FIELDS OF TABLE  lt_varyf FROM hrp1010.

LOOP AT lt_varyf ASSIGNING &amp;lt;fs_line&amp;gt;.
  &amp;lt;fs_line&amp;gt;-sobid2 = &amp;lt;fs_line&amp;gt;-sobid.
ENDLOOP.

SELECT objid FROM hrp1010 INTO CORRESPONDING FIELDS OF TABLE lt_hrp1010
FOR ALL ENTRIES IN lt_varyf
WHERE objid EQ lt_varyf-sobid2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 21:27:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-issue-while-firing-query/m-p/7121319#M1511187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T21:27:29Z</dc:date>
    </item>
  </channel>
</rss>

