<?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 SQ01 DIsplay Problem (Can v write abap code ) Sql Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sq01-display-problem-can-v-write-abap-code-sql-query/m-p/3443882#M827082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Need help in SQL Query &lt;/P&gt;&lt;P&gt;I generated one sql query which has the following output in general .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;Customer   name   description   amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;asrq1  sharekhan      Amount payed      10&lt;/P&gt;&lt;P&gt;asrq1  sharekhan     Amount Advance     20&lt;/P&gt;&lt;P&gt;asrq1  sharekhan    Amount due             30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i need the output in the following way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;Customer  name  AMount payed     Amount  Advance                  Amount Due&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;asrq1   sharekhan  10    20     30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and iam new this sql query but came to know we can write code ..but iam unable to initiliaze to write&lt;/P&gt;&lt;P&gt;a peace of code as i dont know what are the select-options defined ..i saw in the include but didnt got it &lt;/P&gt;&lt;P&gt;% comes prefix of select-options,and iam unable to get he internal table which is displayed in the query .&lt;/P&gt;&lt;P&gt;can anyone help me in this answers will be awarded points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2008 05:13:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-12T05:13:07Z</dc:date>
    <item>
      <title>SQ01 DIsplay Problem (Can v write abap code ) Sql Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sq01-display-problem-can-v-write-abap-code-sql-query/m-p/3443882#M827082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Need help in SQL Query &lt;/P&gt;&lt;P&gt;I generated one sql query which has the following output in general .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;Customer   name   description   amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;asrq1  sharekhan      Amount payed      10&lt;/P&gt;&lt;P&gt;asrq1  sharekhan     Amount Advance     20&lt;/P&gt;&lt;P&gt;asrq1  sharekhan    Amount due             30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i need the output in the following way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;Customer  name  AMount payed     Amount  Advance                  Amount Due&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;asrq1   sharekhan  10    20     30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and iam new this sql query but came to know we can write code ..but iam unable to initiliaze to write&lt;/P&gt;&lt;P&gt;a peace of code as i dont know what are the select-options defined ..i saw in the include but didnt got it &lt;/P&gt;&lt;P&gt;% comes prefix of select-options,and iam unable to get he internal table which is displayed in the query .&lt;/P&gt;&lt;P&gt;can anyone help me in this answers will be awarded points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 05:13:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sq01-display-problem-can-v-write-abap-code-sql-query/m-p/3443882#M827082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T05:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: SQ01 DIsplay Problem (Can v write abap code ) Sql Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sq01-display-problem-can-v-write-abap-code-sql-query/m-p/3443883#M827083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, I will suggest to go for ABAP report for this kinda requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really want to go for it through SQ01, even then you will have to write some ABAP to display the records in one row. You will need to create three custom fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will give Psudo for one field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field Name := ZAmountPayed&lt;/P&gt;&lt;P&gt;Select Amount_Payed into varAmountPayed from Table Where Emp# = '12345'&lt;/P&gt;&lt;P&gt;ZAmountPayed := varAmountPayed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Convert the above into relative ABAP code and create 2 more similar fields, and you should be all set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to know the table names and any other calculations to get the right data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 15:04:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sq01-display-problem-can-v-write-abap-code-sql-query/m-p/3443883#M827083</guid>
      <dc:creator>Shafiq_Rehman1</dc:creator>
      <dc:date>2008-02-14T15:04:32Z</dc:date>
    </item>
  </channel>
</rss>

