<?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: SELECT Query - Data Type and Length problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271310#M1019178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;No need to change the length of ebeln bocz&lt;/P&gt;&lt;P&gt;xblnr if of length 16 and ebeln 10 which is less than 16.&lt;/P&gt;&lt;P&gt;so the system will automatically take care of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so change ebeln type mseg-ebeln.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2008 09:21:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-06T09:21:58Z</dc:date>
    <item>
      <title>SELECT Query - Data Type and Length problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271305#M1019173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Please go thro' the below code.&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_ebeln,&lt;/P&gt;&lt;P&gt;              ebeln(16),&lt;/P&gt;&lt;P&gt;              ebelp TYPE ebelp,&lt;/P&gt;&lt;P&gt;              matnr TYPE ekpo-matnr,&lt;/P&gt;&lt;P&gt;              xblnr TYPE xblnr,&lt;/P&gt;&lt;P&gt;              flag(1),&lt;/P&gt;&lt;P&gt;           END OF t_ebeln,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       BEGIN OF t_mseg,&lt;/P&gt;&lt;P&gt;        ebeln TYPE MSEG-EBELN,&lt;/P&gt;&lt;P&gt;        ebelp TYPE ebelp,&lt;/P&gt;&lt;P&gt;        mblnr TYPE mblnr,&lt;/P&gt;&lt;P&gt;        bwart TYPE bwart,&lt;/P&gt;&lt;P&gt;        matnr TYPE matnr,&lt;/P&gt;&lt;P&gt;        werks TYPE werks_d,&lt;/P&gt;&lt;P&gt;        lgort TYPE lgort_d,&lt;/P&gt;&lt;P&gt;        sobkz TYPE sobkz,&lt;/P&gt;&lt;P&gt;        lifnr TYPE lifnr,&lt;/P&gt;&lt;P&gt;        menge TYPE menge_d,&lt;/P&gt;&lt;P&gt;        meins TYPE meins,&lt;/P&gt;&lt;P&gt;        sgtxt TYPE sgtxt,&lt;/P&gt;&lt;P&gt;        budat TYPE budat,&lt;/P&gt;&lt;P&gt;        rec_lgort TYPE lgort_d,&lt;/P&gt;&lt;P&gt;        flag(1) TYPE c,&lt;/P&gt;&lt;P&gt;       END OF t_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;      -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;              -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;In the I_EBELN internal Table I will have my PO's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF NOT i_ebeln[] IS INITIAL.&lt;/P&gt;&lt;P&gt;      SELECT mblnr&lt;/P&gt;&lt;P&gt;             budat&lt;/P&gt;&lt;P&gt;             xblnr&lt;/P&gt;&lt;P&gt;             FROM mkpf&lt;/P&gt;&lt;P&gt;             INTO TABLE i_mkpf&lt;/P&gt;&lt;P&gt;             FOR ALL ENTRIES IN i_ebeln&lt;/P&gt;&lt;P&gt;             WHERE xblnr = i_ebeln-ebeln.&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        SORT i_mkpf BY mblnr budat DESCENDING.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To get Quantity based on the Movement Types.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IF NOT i_mkpf[] IS INITIAL.&lt;/P&gt;&lt;P&gt;        SELECT ebeln&lt;/P&gt;&lt;P&gt;               ebelp&lt;/P&gt;&lt;P&gt;               mblnr&lt;/P&gt;&lt;P&gt;               bwart&lt;/P&gt;&lt;P&gt;               matnr&lt;/P&gt;&lt;P&gt;               werks&lt;/P&gt;&lt;P&gt;               lgort&lt;/P&gt;&lt;P&gt;               sobkz&lt;/P&gt;&lt;P&gt;               lifnr&lt;/P&gt;&lt;P&gt;               menge&lt;/P&gt;&lt;P&gt;               meins&lt;/P&gt;&lt;P&gt;               sgtxt&lt;/P&gt;&lt;P&gt;               FROM mseg&lt;/P&gt;&lt;P&gt;               INTO TABLE i_mseg&lt;/P&gt;&lt;P&gt;               FOR ALL ENTRIES IN i_mkpf&lt;/P&gt;&lt;P&gt;               WHERE mblnr = i_mkpf-mblnr AND&lt;/P&gt;&lt;P&gt;                     lifnr IN s_lifnr     AND&lt;/P&gt;&lt;P&gt;                    ( bwart = c_501 AND&lt;/P&gt;&lt;P&gt;                     sobkz = c_k ).&lt;/P&gt;&lt;P&gt;        IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;          SORT i_mseg BY ebeln ebelp mblnr.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;*Get the PO's with 101 Quantity&lt;/P&gt;&lt;P&gt;      SELECT ebeln&lt;/P&gt;&lt;P&gt;             ebelp&lt;/P&gt;&lt;P&gt;             mblnr&lt;/P&gt;&lt;P&gt;             bwart&lt;/P&gt;&lt;P&gt;             matnr&lt;/P&gt;&lt;P&gt;             werks&lt;/P&gt;&lt;P&gt;             lgort&lt;/P&gt;&lt;P&gt;             sobkz&lt;/P&gt;&lt;P&gt;             lifnr&lt;/P&gt;&lt;P&gt;             menge&lt;/P&gt;&lt;P&gt;             meins&lt;/P&gt;&lt;P&gt;             sgtxt&lt;/P&gt;&lt;P&gt;             FROM mseg&lt;/P&gt;&lt;P&gt;             APPENDING TABLE i_mseg&lt;/P&gt;&lt;P&gt;             FOR ALL ENTRIES IN i_ebeln&lt;/P&gt;&lt;P&gt;             &lt;U&gt;*WHERE ebeln = i&lt;/U&gt;ebeln-ebeln AND*_&lt;/P&gt;&lt;P&gt;                   lifnr IN s_lifnr      AND&lt;/P&gt;&lt;P&gt;                   bwart = c_101.&lt;/P&gt;&lt;P&gt;For the above SELECT statement I am getting error as 'EBELN' and 'I_EBELN-EBELN' should have same type and Length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to Over Come this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;\[removed by moderator\]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Viji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: VijayaLakshmi Krishnaswamy on Aug 6, 2008 11:07 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jan Stallkamp on Aug 6, 2008 2:39 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 09:07:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271305#M1019173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T09:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT Query - Data Type and Length problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271306#M1019174</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;change this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_ebeln,&lt;/P&gt;&lt;P&gt;ebeln type mseg-ebeln,&lt;/P&gt;&lt;P&gt;ebelp TYPE ebelp,&lt;/P&gt;&lt;P&gt;matnr TYPE ekpo-matnr,&lt;/P&gt;&lt;P&gt;xblnr TYPE xblnr,&lt;/P&gt;&lt;P&gt;flag(1),&lt;/P&gt;&lt;P&gt;END OF t_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin M M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 09:14:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271306#M1019174</guid>
      <dc:creator>sachin_mathapati</dc:creator>
      <dc:date>2008-08-06T09:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT Query - Data Type and Length problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271307#M1019175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;please declare ebeln with length 10 characters&lt;/P&gt;&lt;P&gt;otherwise use the dataelement ebeln to declare data type.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Thirumaran k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 09:15:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271307#M1019175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T09:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT Query - Data Type and Length problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271308#M1019176</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 cant change that. B'coz I have to Fetch Record from MKPF based on the XBLNR = EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT mblnr&lt;/P&gt;&lt;P&gt;             budat&lt;/P&gt;&lt;P&gt;             xblnr&lt;/P&gt;&lt;P&gt;             FROM mkpf&lt;/P&gt;&lt;P&gt;             INTO TABLE i_mkpf&lt;/P&gt;&lt;P&gt;             FOR ALL ENTRIES IN i_ebeln&lt;/P&gt;&lt;P&gt;             WHERE xblnr = i_ebeln-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Viji.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 09:17:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271308#M1019176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T09:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT Query - Data Type and Length problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271309#M1019177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi VijayaLakshmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please give declaration of I_EBELN table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems there is mismatch between EBELN declared in I_EBELN and MSEG-EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohaiyuddin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 09:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271309#M1019177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T09:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT Query - Data Type and Length problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271310#M1019178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;No need to change the length of ebeln bocz&lt;/P&gt;&lt;P&gt;xblnr if of length 16 and ebeln 10 which is less than 16.&lt;/P&gt;&lt;P&gt;so the system will automatically take care of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so change ebeln type mseg-ebeln.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 09:21:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271310#M1019178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T09:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT Query - Data Type and Length problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271311#M1019179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please check the below.&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_ebeln,&lt;/P&gt;&lt;P&gt;ebeln(16),&lt;/P&gt;&lt;P&gt;ebelp TYPE ebelp,&lt;/P&gt;&lt;P&gt;matnr TYPE ekpo-matnr,&lt;/P&gt;&lt;P&gt;xblnr TYPE xblnr,&lt;/P&gt;&lt;P&gt;flag(1),&lt;/P&gt;&lt;P&gt;END OF t_ebeln,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have declared EBELN as 16 Characters. B'cox to get record from MKPF based on XBLNR = EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Viji.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 09:23:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271311#M1019179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T09:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT Query - Data Type and Length problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271312#M1019180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create another types as&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_ebeln,&lt;/P&gt;&lt;P&gt;ebeln(10),&lt;/P&gt;&lt;P&gt;ebelp TYPE ebelp,&lt;/P&gt;&lt;P&gt;matnr TYPE ekpo-matnr,&lt;/P&gt;&lt;P&gt;xblnr TYPE xblnr,&lt;/P&gt;&lt;P&gt;flag(1),&lt;/P&gt;&lt;P&gt;END OF t_ebeln,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;copy the value from I_EBELN to a_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a_ebeln [] = i_ebeln[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for first select query use i_ebeln &lt;/P&gt;&lt;P&gt;and for second select query use a_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope , this will solve u r problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds ,&lt;/P&gt;&lt;P&gt;Sabarinathan.L&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 09:24:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271312#M1019180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T09:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT Query - Data Type and Length problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271313#M1019181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When giving FOR ALL ENTRIES system will check for the DATA TYPE and LENGTH. It will not allow 16 Character with 10 Character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly check my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Viji.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 09:25:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271313#M1019181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T09:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT Query - Data Type and Length problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271314#M1019182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to modify the TYPES declaratio a bit: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_ebeln,&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;ebeln(16),&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;ebeln TYPE MSEG-EBELN,&lt;/P&gt;&lt;P&gt;ebelp TYPE ebelp,&lt;/P&gt;&lt;P&gt;matnr TYPE ekpo-matnr,&lt;/P&gt;&lt;P&gt;xblnr TYPE xblnr,&lt;/P&gt;&lt;P&gt;flag(1),&lt;/P&gt;&lt;P&gt;END OF t_ebeln,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 09:25:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271314#M1019182</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2008-08-06T09:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT Query - Data Type and Length problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271315#M1019183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_ebeln,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ebeln TYPE ekko-ebeln,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ebelp TYPE ebelp,&lt;/P&gt;&lt;P&gt;matnr TYPE ekpo-matnr,&lt;/P&gt;&lt;P&gt;xblnr TYPE xblnr,&lt;/P&gt;&lt;P&gt;flag(1),&lt;/P&gt;&lt;P&gt;END OF t_ebeln,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 09:27:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271315#M1019183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T09:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT Query - Data Type and Length problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271316#M1019184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The TYPES of EBELN(16) should be of 16 Character. So that I can able to Extract data from MKPF table based on XBLNT = EBELN.&lt;/P&gt;&lt;P&gt;In this XBLNR is 16 Character Length.&lt;/P&gt;&lt;P&gt;So I cant change EBELN(16).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Viji.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 10:40:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271316#M1019184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T10:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT Query - Data Type and Length problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271317#M1019185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi can you do one thing..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first select statement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after this send this to a variable..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab .&lt;/P&gt;&lt;P&gt;variable = itab-field.&lt;/P&gt;&lt;P&gt;use conversion_exit function module..&lt;/P&gt;&lt;P&gt;then use the second select single  here ...&lt;/P&gt;&lt;P&gt;                                where field = variable.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 10:46:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271317#M1019185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T10:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT Query - Data Type and Length problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271318#M1019186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;thanks for your Answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Viji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 05:50:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271318#M1019186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T05:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT Query - Data Type and Length problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271319#M1019187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vijaya,&lt;/P&gt;&lt;P&gt;I have a similar problem in using FOR ALL ENTRIES as its giving a type and length mismatch error.&lt;/P&gt;&lt;P&gt;Were you able to solve your problem regarding the same?If so can you suggest me a solution.&lt;/P&gt;&lt;P&gt;My table is declared like this.&lt;/P&gt;&lt;P&gt;DATA:tb_vlcactdata_cs   TYPE vlcactdata   OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;I am fecthing values into this table tb_vlcactdata_cs using an FM.&lt;/P&gt;&lt;P&gt;After that i m writing this select query for further processing.&lt;/P&gt;&lt;P&gt;SELECT * FROM nast&lt;/P&gt;&lt;P&gt;           INTO TABLE tb_nast&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN tb_vlcactdata_cs&lt;/P&gt;&lt;P&gt;           WHERE kschl = tb_vlcactdata_cs-kscha AND&lt;/P&gt;&lt;P&gt;                        objky = tb_vlcactdata_cs-vbeln.&lt;/P&gt;&lt;P&gt;This select query throws an error as tb_vlcactdata_cs-vbeln is of length 10 and nast-objky is of length 30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what is the possible solution to my query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Rithwika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2008 09:15:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-data-type-and-length-problem/m-p/4271319#M1019187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-25T09:15:04Z</dc:date>
    </item>
  </channel>
</rss>

