<?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 Select columns with offset from table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138726#M1620139</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;&lt;/P&gt;&lt;P&gt;Is it possible to do a select query with using offset option for column name . I have tried a code but it dint pass the syntax check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am eager to know because I have seen this thread with similiar requirement but that dint work for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINK: [&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3907011"&gt;&lt;/A&gt;] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has it got something to do with SAP version.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Dep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Aug 2011 11:25:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-17T11:25:12Z</dc:date>
    <item>
      <title>Select columns with offset from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138726#M1620139</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;&lt;/P&gt;&lt;P&gt;Is it possible to do a select query with using offset option for column name . I have tried a code but it dint pass the syntax check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am eager to know because I have seen this thread with similiar requirement but that dint work for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINK: [&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3907011"&gt;&lt;/A&gt;] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has it got something to do with SAP version.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Dep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 11:25:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138726#M1620139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-17T11:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select columns with offset from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138727#M1620140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No you cannot atleast in open SQL. You have a lot of workarounds of using either patterns with the select statement or processing after the select statement by looping. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With native SQL, you may give a try. I don't think it is very reliable&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 11:52:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138727#M1620140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-17T11:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select columns with offset from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138728#M1620141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikranth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select with patterns I have seen examples where it has been used in WHERE condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, when it comes to &lt;STRONG&gt;columns&lt;/STRONG&gt; is where my concern is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example from the LINK I mentioned :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select FIELD1+0(10) into L_FIELD1 where FIELD2 = L_FIELD2+2(10).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Dep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 12:04:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138728#M1620141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-17T12:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Select columns with offset from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138729#M1620142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, what's the problem with using patterns?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 13:34:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138729#M1620142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-17T13:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Select columns with offset from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138730#M1620143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I achieve below using patterns:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select Ebeln+0(4)
          ebelp
          into table itab
          from ekpo
          up to 10 rows.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Dep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 14:07:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138730#M1620143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-17T14:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Select columns with offset from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138731#M1620144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Ebeln+0(4)&lt;/P&gt;&lt;P&gt;           ebelp&lt;/P&gt;&lt;P&gt;           into table itab&lt;/P&gt;&lt;P&gt;           from ekpo&lt;/P&gt;&lt;P&gt;           up to 10 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;if you really only want to achieve that, then use SELECT ebeln ebelp ... and define itab with &lt;STRONG&gt;EBELN field of 4 characters only&lt;/STRONG&gt; , it will copy only the 4 first characters.&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 14:30:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138731#M1620144</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-08-17T14:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select columns with offset from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138732#M1620145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandra ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also like to how could we acheive:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select Ebeln+2(4)
          ebelp
          into table itab
          from ekpo
          up to 10 rows.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry I have asked it late and moderators kindly do take approriate action if needed for marking my question as solved and changing it again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I wish there were more 10 pointers &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Dep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 09:13:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138732#M1620145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T09:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select columns with offset from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138733#M1620146</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;try offset and put them in another internal table or if it is a single table put into variables. After that go for fetch from standard tables,&lt;/P&gt;&lt;P&gt;I have faced the problem whine fetching documents with reference fields,&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 09:20:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138733#M1620146</guid>
      <dc:creator>sivaprasad_ml</dc:creator>
      <dc:date>2011-08-18T09:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select columns with offset from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138734#M1620147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AFAIK this is not possible using Open SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually Sandra's solution works because the values get "truncated" when they are transferred from the DB layer to the target internal table. (Since the length of the internal table field is lesser).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: As a matter-of-fact at the back of my mind i knew this question was coming &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Aug 18, 2011 3:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 09:30:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138734#M1620147</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-08-18T09:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select columns with offset from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138735#M1620148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How complicated does this need to get?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select your data with a char4 field named, but empty...then loop at your internal table and compute the char4 field = ebeln+2(4)!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 11:54:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138735#M1620148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T11:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Select columns with offset from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138736#M1620149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Davel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to fetch on single select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Dep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 12:16:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-columns-with-offset-from-table/m-p/8138736#M1620149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T12:16:10Z</dc:date>
    </item>
  </channel>
</rss>

