<?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: corret the coding in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/corret-the-coding/m-p/930462#M60736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you post threads please check them work on the solutions given, and reward points if they are helpful. This thread is never check by you...&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="61369"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We all spend time to help you resolve your problem, but leaving it open with out checking it is something the SDN community doesn't want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;The Solution is in the previous thread.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kathirvel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Kathirvel Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Aug 2005 09:25:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-30T09:25:49Z</dc:date>
    <item>
      <title>corret the coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corret-the-coding/m-p/930461#M60735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all,&lt;/P&gt;&lt;P&gt;please go through the below coding and everything is ok if im entertin data with select options..the problem is with if im entered data in parameters (ex: im selecting  item category for a particular period it is giving all the list without considering the dates and customer)&lt;/P&gt;&lt;P&gt;can you link this both....in the programme the parameters are not linked ...tell me how can i do this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables: vbap,vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        include structure vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: end of wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of wa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        include structure vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: end of wa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab like standard table of wa with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab1 like standard table of wa1 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block 2 with frame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_audat for vbap-audat no-extension , "Document Date.&lt;/P&gt;&lt;P&gt;                s_kunnr for vbak-kunnr no-extension. " DEFAULT '5525' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen end of block 2.&lt;/P&gt;&lt;P&gt;selection-screen begin of block 3 with frame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : p_vtweg like vbak-vtweg. " Distribution channel.&lt;/P&gt;&lt;P&gt;parameters : p_vkorg like vbak-vkorg. " Sales Organisation.&lt;/P&gt;&lt;P&gt;parameters : p_pstyv like vbap-pstyv. " Item Category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen end of block 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK blk1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format intensified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:  sy-vline, 'Material' color 3,sy-vline, 14 'Sales Ord' color 5,&lt;/P&gt;&lt;P&gt;sy-vline, 30 'Net Price' color 1, sy-vline, 44 'Unit' color 6,sy-vline,&lt;/P&gt;&lt;P&gt;54 'Currency' color 3, sy-vline, 66'Doc Date' Color 5,sy-vline, 84&lt;/P&gt;&lt;P&gt;'NetValue' color 7,sy-vline, 96 'Item Catg' color 1, 107 sy-vline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format intensified off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uline (107).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*select * from vbap into corresponding fields of table itab where pstyv&lt;/P&gt;&lt;P&gt;*in s_pstyv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from vbap into corresponding fields of table itab where audat&lt;/P&gt;&lt;P&gt;in s_audat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab by vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from vbak into corresponding fields of table itab1 where kunnr&lt;/P&gt;&lt;P&gt;in s_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab1 by vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  format color 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  read table itab with key vbeln = itab1-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    wa = itab.&lt;/P&gt;&lt;P&gt;    uline (107).&lt;/P&gt;&lt;P&gt;    write: / sy-vline, wa-matnr, 13 wa-vbeln,23 wa-netpr,45 wa-vrkme,56&lt;/P&gt;&lt;P&gt;    wa-waerk,72 wa-netwr,65 wa-audat, 97 wa-pstyv, 107 sy-vline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  format color off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uline (107).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;advanced thanks,&lt;/P&gt;&lt;P&gt;raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2005 09:21:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corret-the-coding/m-p/930461#M60735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-30T09:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: corret the coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corret-the-coding/m-p/930462#M60736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you post threads please check them work on the solutions given, and reward points if they are helpful. This thread is never check by you...&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="61369"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We all spend time to help you resolve your problem, but leaving it open with out checking it is something the SDN community doesn't want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;The Solution is in the previous thread.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kathirvel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Kathirvel Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2005 09:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corret-the-coding/m-p/930462#M60736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-30T09:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: corret the coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corret-the-coding/m-p/930463#M60737</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;I already posted the solution, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS:&lt;/P&gt;&lt;P&gt;s_date FOR vbak-audat, "Date&lt;/P&gt;&lt;P&gt;s_vkorg FOR vbak-vkorg, "Sales Org&lt;/P&gt;&lt;P&gt;s_vtweg FOR vbak-vtweg, "Distribution channel&lt;/P&gt;&lt;P&gt;s_spart FOR vbak-spart, "Division&lt;/P&gt;&lt;P&gt;s_kunnr for vbak-KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : Begin of Itab Occurs 0,&lt;/P&gt;&lt;P&gt;Vbeln like vbak-vbeln,&lt;/P&gt;&lt;P&gt;Posnr like vbap-posnr,&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt;end of Itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;vbeln b&lt;/SUB&gt;posnr into table itab from &lt;/P&gt;&lt;P&gt;vbak as a inner join&lt;/P&gt;&lt;P&gt;vabp as b on a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;where a~audat in s_audat and&lt;/P&gt;&lt;P&gt;a~vkorg in s_vkorg and&lt;/P&gt;&lt;P&gt;a~vtweg in s_vtewg and&lt;/P&gt;&lt;P&gt;a~spart in s_spart and &lt;/P&gt;&lt;P&gt;a~kunnr in s_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that query you include all the necessary fields.&lt;/P&gt;&lt;P&gt;either you can use inner join as i mentioned above, or you can use for all entries also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2005 09:44:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corret-the-coding/m-p/930463#M60737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-30T09:44:30Z</dc:date>
    </item>
  </channel>
</rss>

