<?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 SQ02 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02/m-p/6409134#M1407563</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;thnaks for your replies, if  this is possible can please let me know the steps that i need to follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i go to global properties in the infoset query , there we  select the data source as logical datbas e  or table join but not both. THen how can i retrieve the data from logical database and Z table based on some conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2009 05:38:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-25T05:38:51Z</dc:date>
    <item>
      <title>SAP Query SQ02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02/m-p/6409130#M1407559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;there ia an existing infoset query retriving the data from logical database VFV.&lt;/P&gt;&lt;P&gt;There is an SAP Query accessing this infoset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now hte user wants to add addtional field from a Z table in the report.( SAP query report)&lt;/P&gt;&lt;P&gt;Is it possible to do that using the above infoset query???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 12:32:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02/m-p/6409130#M1407559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T12:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query SQ02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02/m-p/6409131#M1407560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont think you can have data source as logical database combined with Z table. But you can think about extending your logical database or write a separate query using table joins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;PB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 14:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02/m-p/6409131#M1407560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T14:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query SQ02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02/m-p/6409132#M1407561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is not possible, as logical database are just select statements and there is no defination in data dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you get it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 16:00:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02/m-p/6409132#M1407561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T16:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query SQ02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02/m-p/6409133#M1407562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;if you just want to get some field value from a custom table based on the existing data, i think you can do in the info set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 18:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02/m-p/6409133#M1407562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T18:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query SQ02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02/m-p/6409134#M1407563</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;thnaks for your replies, if  this is possible can please let me know the steps that i need to follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i go to global properties in the infoset query , there we  select the data source as logical datbas e  or table join but not both. THen how can i retrieve the data from logical database and Z table based on some conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 05:38:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02/m-p/6409134#M1407563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T05:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query SQ02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02/m-p/6409135#M1407564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can write your query code in the infoset SQ02 and create the query in SQ01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you go to SQ02 then go to Application specific program (white color circle in the tool bar is there) then go to data read program.here you can write your logic and retreive the values you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get the output you have to loop like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT gt_out_list INTO wa_out_list.   " To display the output of the Query

  wa_data-equnr   = wa_out_list-equnr.
  wa_data-charge  = wa_out_list-scrp.
  wa_data-ernam   = wa_out_list-bill.
  wa_data-aenam   = wa_out_list-rmet.
  wa_data-serge   = wa_out_list-serge.
  wa_data-matnr   = wa_out_list-matnr.
  wa_data-werk    = wa_out_list-b_werk.
  wa_data-lager   = wa_out_list-b_lager.
  wa_data-zz_device_1 = wa_out_list-zz_device_1.
  wa_data-zz_ebeln = wa_out_list-zz_ebeln.
  wa_data-zz_vbeln = wa_out_list-zz_vbeln.
  wa_data-zz_posnr = wa_out_list-zz_posnr.
  wa_data-groes    = wa_out_list-bstkd_e.
  wa_data-kunde    = wa_out_list-vbeln.
  wa_data-eqnum    = wa_out_list-posnr.
  wa_data-sernr    = wa_out_list-matnr1.
  wa_data-warpl    = wa_out_list-werks.
  wa_data-uii_plant = wa_out_list-bukrs_vf.

  APPEND wa_data TO it_data.
  CLEAR wa_out_list.
  CLEAR wa_data.
ENDLOOP.     " LOOP AT G

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i have taken EQUi table to display the output.If some field are not present as required by you then you can get the similar field from teh output table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like in last line i want to print bukrs_vf(char field) but this field is not present in equi table so i have refered uii_plant (char field) which is similar type of field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help you to resolve your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tanmaya Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 05:59:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02/m-p/6409135#M1407564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T05:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query SQ02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02/m-p/6409136#M1407565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Tanmaya Gupta,&lt;/P&gt;&lt;P&gt;what is your data source in the infoset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 06:11:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02/m-p/6409136#M1407565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T06:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query SQ02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02/m-p/6409137#M1407566</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;&lt;/P&gt;&lt;P&gt;you can write your own logic in the infoset in the data read section like we did in the report program.Similarly i have created my own infoset and write my own logic which calls several tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the similar way you can write your logic there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tanmaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 09:03:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02/m-p/6409137#M1407566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T09:03:59Z</dc:date>
    </item>
  </channel>
</rss>

