<?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: Code for Query Report as additional field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-query-report-as-additional-field/m-p/10265170#M1830595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zaiedul Hoque,&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;In fact I was trying, but this is like blind-fold for me for 2 reasons. As I mentioned this was not the area I'm conversant and the other is no test data is available with me. (Neither I can create), So I'm afraid I can be of further help.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;In my opinion, in the event of such long coding requirement, SAP Query becomes less relevant. ABAP coding would be proper. However, I wish better help be flowing to you my friend, from experts&lt;EM&gt;. &lt;/EM&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;EM&gt;I should appreciate your specification skills.&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;EM&gt;Best of Luck&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;&lt;EM&gt;Jogeswara Rao K&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2014 13:37:58 GMT</pubDate>
    <dc:creator>jogeswararao_kavala</dc:creator>
    <dc:date>2014-05-12T13:37:58Z</dc:date>
    <item>
      <title>Code for Query Report as additional field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-query-report-as-additional-field/m-p/10265165#M1830590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need a field in query report which has a simple join of VBUK &amp;amp; LIKP.&lt;/P&gt;&lt;P&gt;Can't increase join of LIPS as the report changes to item level which I don't want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; My additional field formula will be VBAP-NETPR X LIPS-LFIMG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Where &lt;/P&gt;&lt;P&gt; VBAP-VBELN = LIPS-VBELV&amp;nbsp;&amp;nbsp; &amp;amp;&lt;/P&gt;&lt;P&gt; VBAP-POSNR = LIPS-POSNV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Again where&lt;/P&gt;&lt;P&gt; LIPS-VBELN = VBUK-VBELN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply to say, my query build to generate Delivery Report which billing not complete. And within that report I want to bring Sales Order Rate * Delivery Qty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 05:32:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-query-report-as-additional-field/m-p/10265165#M1830590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-11T05:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Code for Query Report as additional field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-query-report-as-additional-field/m-p/10265166#M1830591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zaiedul Hoque,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this should work.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/450309" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code attached separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Jogeswara Rao K&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 12:46:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-query-report-as-additional-field/m-p/10265166#M1830591</guid>
      <dc:creator>jogeswararao_kavala</dc:creator>
      <dc:date>2014-05-11T12:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Code for Query Report as additional field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-query-report-as-additional-field/m-p/10265167#M1830592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sir (Mr.&lt;SPAN class="n fn"&gt;J.R.Kavala),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;I'm really appreciate your effort and thanks for your reply. The report almost done with your coding, but may be it is my fault that I couldn't clearly elaborate what I exactly I wanted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;According to your code the result brings only 1st lines result ($ 1,500) from LIPS, but the result should be sum up for all the line item instead, that is ($ 25,750). I've tried to make the scenario below for your understand.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/450504" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;So where should I change the coding if you please advice. Many thanks again in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;Zaied&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;====&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 06:14:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-query-report-as-additional-field/m-p/10265167#M1830592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-12T06:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Code for Query Report as additional field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-query-report-as-additional-field/m-p/10265168#M1830593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zaiedul Hoque,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;I too could not visualize your multiple record requirement, due to the fact that I did not work with these tables. This requirement complicates the code calling for Internal tables for local variables we declared.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;I would rather prefer to connect VBAP and LIPS tables also to the join to achieve this in easier way. And then calculate your additional field with formula conditionally. Then in ALV, if you click on subtotal icon by selecting the VBELN column, the Additional field total will be appearing Sales Order wise.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;If due to reason, if you do not prefer that, then as told above you need to declare types and internal tables to select multiple lines and use &lt;EM&gt;COLLECT and AT NEW&lt;/EM&gt; syntax in another internal table to aggregate these values VBELN-wise.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Regards&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;&lt;EM&gt;Jogeswara Rao K&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 07:37:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-query-report-as-additional-field/m-p/10265168#M1830593</guid>
      <dc:creator>jogeswararao_kavala</dc:creator>
      <dc:date>2014-05-12T07:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Code for Query Report as additional field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-query-report-as-additional-field/m-p/10265169#M1830594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sir (Mr.&lt;SPAN class="n fn"&gt;J.R.Kavala),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;Another join connecting VBAP &amp;amp; LIPS will not go with the purpose of my report, so I couldn't do that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;The next advise I've to follow that is using "&lt;EM&gt;COLLECT and AT NEW&lt;/EM&gt; syntax in another internal table to aggregate these values VBELN-wise" but as per my skill I couldn't make it exactly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n fn"&gt;Would you please describe in details to do it.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 09:58:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-query-report-as-additional-field/m-p/10265169#M1830594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-12T09:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Code for Query Report as additional field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-query-report-as-additional-field/m-p/10265170#M1830595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zaiedul Hoque,&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;In fact I was trying, but this is like blind-fold for me for 2 reasons. As I mentioned this was not the area I'm conversant and the other is no test data is available with me. (Neither I can create), So I'm afraid I can be of further help.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;In my opinion, in the event of such long coding requirement, SAP Query becomes less relevant. ABAP coding would be proper. However, I wish better help be flowing to you my friend, from experts&lt;EM&gt;. &lt;/EM&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;EM&gt;I should appreciate your specification skills.&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;EM&gt;Best of Luck&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;&lt;EM&gt;Jogeswara Rao K&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 13:37:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-query-report-as-additional-field/m-p/10265170#M1830595</guid>
      <dc:creator>jogeswararao_kavala</dc:creator>
      <dc:date>2014-05-12T13:37:58Z</dc:date>
    </item>
  </channel>
</rss>

