<?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: reports in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2157643#M456036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;first based on the customer entered on selection screen it fetches the customer name  from kna1 table and displays it on the first list/report.&lt;/P&gt;&lt;P&gt;then when you double click on customer field on the first list output it fetch the data from the table VBAK and fetches the related sales orders for that customer and displays those details.&lt;/P&gt;&lt;P&gt;Next on this 2nd list output when you double click on VBELN field it fetch the Item details of that sales order and material no from mara for that sales order and displays as another list&lt;/P&gt;&lt;P&gt;finally when you double click on the material no it displays the Material master transaction MM03 for that Material.&lt;/P&gt;&lt;P&gt;hope it is clear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 Apr 2007 16:37:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-29T16:37:13Z</dc:date>
    <item>
      <title>reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2157640#M456033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here iam giving the sample code.i need an explantion how it's going to work in details.if it's clear to me full points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx loki.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : kna1,vbak,vbap,mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select - optins : cust for kna1 - kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of i_kna1 occurs 0,&lt;/P&gt;&lt;P&gt;	kunnr like kna1-kunnr,&lt;/P&gt;&lt;P&gt;	name1 like kna1-name1,&lt;/P&gt;&lt;P&gt;           end of i_kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of i_vbak occurs 0,&lt;/P&gt;&lt;P&gt;	vbeln like vbak-vbeln,&lt;/P&gt;&lt;P&gt;	netwr like vbak-netwr,&lt;/P&gt;&lt;P&gt;        end of i_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of i_vbap occurs 0,&lt;/P&gt;&lt;P&gt;	posnr like vbap-posnr,&lt;/P&gt;&lt;P&gt;	matnr like vbap-matnr,&lt;/P&gt;&lt;P&gt;end of -_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : fnam(10) , fval(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;strat-of-selection.&lt;/P&gt;&lt;P&gt;	select kunnr name1 from kna1 into table i_kna1 where kunnr in cust.&lt;/P&gt;&lt;P&gt;loop at i_kna1.&lt;/P&gt;&lt;P&gt;write : / i_kna1-kunnr hotspot , itab-name1.&lt;/P&gt;&lt;P&gt;hide i_kna1-kunnr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at line-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-lsind.&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;when 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln netwr from vbak into table i_vbak where kunnr = i_vbak-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_vbak.&lt;/P&gt;&lt;P&gt;write : / i_vbak-vbeln hotspot , i_vbak-netwr.&lt;/P&gt;&lt;P&gt;hide i_vbak-vbeln.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbap&lt;SUB&gt;posnr mara&lt;/SUB&gt;matnr into i_vbap from vbap inner join  mara on vbap~matnr where vbeln = i_vbap-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append i_vbap.&lt;/P&gt;&lt;P&gt;end select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_vbap.&lt;/P&gt;&lt;P&gt;write: / i_vbap-posnr , i_vbap-matnr hotspot.&lt;/P&gt;&lt;P&gt;hide i_vbap-matnr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get curssor field fnam  value fval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set parameters id 'mat' field fval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction 'mm02' and skip first screen.&lt;/P&gt;&lt;P&gt;end case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;top-of-page.&lt;/P&gt;&lt;P&gt;write : / 'customer details'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;top-of-page during line-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-lsind.&lt;/P&gt;&lt;P&gt;when 1.&lt;/P&gt;&lt;P&gt;write : / 'sales details'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 2.&lt;/P&gt;&lt;P&gt;write : / 'item details'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Apr 2007 16:22:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2157640#M456033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-29T16:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2157641#M456034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the best way to learn or understand is start debugging...u will get to know how ur code works...:-)&lt;/P&gt;&lt;P&gt;Put a break point on the select statement and execute it. You will go to the debugger.Then press F6 or F5 to move to the next step or statement. Check out ur internal tables whether the data is coming correctly or not...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Apr 2007 16:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2157641#M456034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-29T16:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2157642#M456035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi swathi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i don't h've sap in my system.tht's why iam asking pls help me.if use full,full points &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx &lt;/P&gt;&lt;P&gt;loki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Apr 2007 16:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2157642#M456035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-29T16:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2157643#M456036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;first based on the customer entered on selection screen it fetches the customer name  from kna1 table and displays it on the first list/report.&lt;/P&gt;&lt;P&gt;then when you double click on customer field on the first list output it fetch the data from the table VBAK and fetches the related sales orders for that customer and displays those details.&lt;/P&gt;&lt;P&gt;Next on this 2nd list output when you double click on VBELN field it fetch the Item details of that sales order and material no from mara for that sales order and displays as another list&lt;/P&gt;&lt;P&gt;finally when you double click on the material no it displays the Material master transaction MM03 for that Material.&lt;/P&gt;&lt;P&gt;hope it is clear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Apr 2007 16:37:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2157643#M456036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-29T16:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2157644#M456037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u r getting the customer number &amp;amp; displaying the sales details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.first u willl get the customer number through select option.&lt;/P&gt;&lt;P&gt;if u execute u will get a interactive list output with customer number &amp;amp; customer name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here hotspot is set for customer number so when u click the customer number it fetchs the corresponding sales header details&lt;/P&gt;&lt;P&gt;The output screen will have sales document number &amp;amp; netwr.Here hotspot is set for sales document number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.If u click the sales document number it fetchs the corresponding item details from iten table.&lt;/P&gt;&lt;P&gt;the screen will have item number &amp;amp; material number.Here hotspot is set for material number.&lt;/P&gt;&lt;P&gt;3.Last hotspot is set for materila number. if u click the material number it directly takes to MM02 ( material change tcode).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The details in top of page is used for heading purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont specify that i will reward full points. This site is used to help pepoles not to gain points. Our aim is to clear ur doubts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Apr 2007 16:41:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2157644#M456037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-29T16:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2157645#M456038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the above code i've used mm02 not mm03.any how thanx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Apr 2007 16:52:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2157645#M456038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-29T16:52:26Z</dc:date>
    </item>
  </channel>
</rss>

