<?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: SAP Query - Modfication/Changes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-modfication-changes/m-p/6084705#M1357540</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to Infoset (SQ02) in change mode, click on &lt;STRONG&gt;Code icon&lt;/STRONG&gt; (Sfift + F8) displayed on Application bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will find, &lt;STRONG&gt;'Code section'&lt;/STRONG&gt; where different events are listed. You can write your code in any of listed events depending on your need. &lt;/P&gt;&lt;P&gt;For ex. if you want declare any variable in &lt;STRONG&gt;u2018DATAu2019&lt;/STRONG&gt; Section, to initialize any variable can use &lt;STRONG&gt;INITIALIZATION&lt;/STRONG&gt; event.&lt;/P&gt;&lt;P&gt;If you want to perform operation on selection screen you can use &lt;STRONG&gt;'AT SELECTION-SCREEN OUTPUT'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And most important event for this tool is &lt;STRONG&gt;Record Processing event&lt;/STRONG&gt; like if you want to have any condition and calculation or modification of field value, you can write code in this event. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF SELECTION BEFORE LIST--&amp;gt; You can write header information in this event. After this information, your output is displayed. (User WRITE statement to write your information)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF SELECTION AFTER LIST--&amp;gt; You can write footer information in this event. After query output, information mentioned in this event is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: END OF SELECTION BEFORE LIST and END OF SELECTION AFTER LIST work only when output format of your query (SQ01) is u2018ABAP LIST'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GET and GET LATE&lt;/STRONG&gt;: When you select a logical database as a data source of an infoset, you get this additional event to maintain the code as per your need for LDB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need any further details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dinesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dinesh Tiwari on Sep 30, 2009 7:21 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Sep 2009 05:18:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-30T05:18:30Z</dc:date>
    <item>
      <title>SAP Query - Modfication/Changes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-modfication-changes/m-p/6084702#M1357537</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; I am new SAP Query, so i have come up with this issue. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an infoset query with me, also a SAP query and a transaction with some Z transaction code, the program name as taken from System-&amp;gt;Status is AQZZZSD=========Z_SD_ORD_WO_ST. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Now I can see code in the program, but I cant see that much of code in the SQ02 under extras tab.  &lt;/P&gt;&lt;P&gt;2. Moreover, I have to change the code to address new requirements. How can I change the code in a SAP query???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the ways to change an existing SAP query's code ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chandan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 06:54:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-modfication-changes/m-p/6084702#M1357537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-11T06:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query - Modfication/Changes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-modfication-changes/m-p/6084703#M1357538</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;SAP Query is a tool used to generate programs based on the conditions set in the infoset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can join tables, get data from database tables in the infoset creation. Hence what ever changes you need to make can be done only in the infoset and Query definition(where you set the selection screen and conditions for data retrieval).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below are the transaction codes:&lt;/P&gt;&lt;P&gt;u2022	SQ01   ABAP/4 Query &lt;/P&gt;&lt;P&gt;u2022	SQ02   Infosets&lt;/P&gt;&lt;P&gt;u2022	SQ03   User group &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is how you can get the query and the infoset from the program name(generated).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AQZZZSD=========Z_SD_ORD_WO_ST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First 3 char - System specific(Dev/Prod/Quality systems)&lt;/P&gt;&lt;P&gt;Next 12 Char - Infoset name&lt;/P&gt;&lt;P&gt;Last 12 Char - Query name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 07:14:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-modfication-changes/m-p/6084703#M1357538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-11T07:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query - Modfication/Changes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-modfication-changes/m-p/6084704#M1357539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, that was not what I am looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to know, how we can change code in Infoset Query SQ02 ??? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 07:22:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-modfication-changes/m-p/6084704#M1357539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-11T07:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query - Modfication/Changes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-modfication-changes/m-p/6084705#M1357540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to Infoset (SQ02) in change mode, click on &lt;STRONG&gt;Code icon&lt;/STRONG&gt; (Sfift + F8) displayed on Application bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will find, &lt;STRONG&gt;'Code section'&lt;/STRONG&gt; where different events are listed. You can write your code in any of listed events depending on your need. &lt;/P&gt;&lt;P&gt;For ex. if you want declare any variable in &lt;STRONG&gt;u2018DATAu2019&lt;/STRONG&gt; Section, to initialize any variable can use &lt;STRONG&gt;INITIALIZATION&lt;/STRONG&gt; event.&lt;/P&gt;&lt;P&gt;If you want to perform operation on selection screen you can use &lt;STRONG&gt;'AT SELECTION-SCREEN OUTPUT'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And most important event for this tool is &lt;STRONG&gt;Record Processing event&lt;/STRONG&gt; like if you want to have any condition and calculation or modification of field value, you can write code in this event. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF SELECTION BEFORE LIST--&amp;gt; You can write header information in this event. After this information, your output is displayed. (User WRITE statement to write your information)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF SELECTION AFTER LIST--&amp;gt; You can write footer information in this event. After query output, information mentioned in this event is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: END OF SELECTION BEFORE LIST and END OF SELECTION AFTER LIST work only when output format of your query (SQ01) is u2018ABAP LIST'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GET and GET LATE&lt;/STRONG&gt;: When you select a logical database as a data source of an infoset, you get this additional event to maintain the code as per your need for LDB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need any further details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dinesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dinesh Tiwari on Sep 30, 2009 7:21 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 05:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-modfication-changes/m-p/6084705#M1357540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-30T05:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query - Modfication/Changes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-modfication-changes/m-p/6084706#M1357541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should not modify the report generated from SAP query.&lt;/P&gt;&lt;P&gt;SAP has provided place to insert custom code in infoset. Go to change mode o finfoset and Click on CODE icon there.&lt;/P&gt;&lt;P&gt;You will see code snippet area where you can write your own code under the different events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 05:28:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-modfication-changes/m-p/6084706#M1357541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-30T05:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query - Modfication/Changes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-modfication-changes/m-p/6084707#M1357542</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;Standard aging analysis report (RFDOPR10) displays only the customer line items. But the client also wants to display the offsetting line item details. I am a functional person and I am trying to write a query to generate offsetting line items from Table BSEG. (in SQ01). I am using Logical Database - DDF, which has BSID and BSEG table. I am trying to apply the logic,&lt;/P&gt;&lt;P&gt;For Example - If the accounting document has 4 line items(1,2,3,4) and the line item in BSID table is 2, then select items 1,3,4 from BSEG table for the documnet number and output as separate line items.&lt;/P&gt;&lt;P&gt;I dont have ABAP knowledge to write code. Kindly help with your valuable inputs to create a query to get offsetting line item details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2009 03:07:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-modfication-changes/m-p/6084707#M1357542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-01T03:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query - Modfication/Changes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-modfication-changes/m-p/6084708#M1357543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please read my post to your question and tell me if this suffice your requirement of maintaining code/ writing additional codes in Infoset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Awaiting a valuable feedback from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dinesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2009 03:35:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-modfication-changes/m-p/6084708#M1357543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-01T03:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query - Modfication/Changes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-modfication-changes/m-p/6084709#M1357544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please post/raise a new forum for it.  Also if possible, kindly brief your requirement so that I can respond as soon as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dinesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2009 03:39:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-modfication-changes/m-p/6084709#M1357544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-01T03:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query - Modfication/Changes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-modfication-changes/m-p/6084710#M1357545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 13:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-modfication-changes/m-p/6084710#M1357545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-01T13:31:25Z</dc:date>
    </item>
  </channel>
</rss>

