<?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 help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/2166738#M458935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my selection screen and my select  statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having this stament I am able to fetch data against kg or dg with reference to doc number.  My qyestion is that suppose if I dont give doc number in the selection screen and only giving doc type then it should show all the kg or dg whatever is in the record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;parameter : p_blart like bkpf-blart,&lt;/P&gt;&lt;P&gt;            p_belnr like bseg-belnr,&lt;/P&gt;&lt;P&gt;            b_bukrs like bseg-bukrs OBLIGATORY DEFAULT '1000',&lt;/P&gt;&lt;P&gt;            G_gjahr like bseg-gjahr.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_bkpf like bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select single * from bkpf into wa_bkpf&lt;/P&gt;&lt;P&gt;  where belnr = p_belnr and&lt;/P&gt;&lt;P&gt;  blart = p_blart and&lt;/P&gt;&lt;P&gt;  bukrs = b_bukrs and&lt;/P&gt;&lt;P&gt;  gjahr = G_gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if p_blart = 'KG' or p_blart = 'DG'.&lt;/P&gt;&lt;P&gt;    select * from bseg into corresponding fields of table itab&lt;/P&gt;&lt;P&gt;    where belnr = wa_bkpf-belnr.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 May 2007 10:15:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-10T10:15:22Z</dc:date>
    <item>
      <title>help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/2166738#M458935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my selection screen and my select  statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having this stament I am able to fetch data against kg or dg with reference to doc number.  My qyestion is that suppose if I dont give doc number in the selection screen and only giving doc type then it should show all the kg or dg whatever is in the record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;parameter : p_blart like bkpf-blart,&lt;/P&gt;&lt;P&gt;            p_belnr like bseg-belnr,&lt;/P&gt;&lt;P&gt;            b_bukrs like bseg-bukrs OBLIGATORY DEFAULT '1000',&lt;/P&gt;&lt;P&gt;            G_gjahr like bseg-gjahr.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_bkpf like bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select single * from bkpf into wa_bkpf&lt;/P&gt;&lt;P&gt;  where belnr = p_belnr and&lt;/P&gt;&lt;P&gt;  blart = p_blart and&lt;/P&gt;&lt;P&gt;  bukrs = b_bukrs and&lt;/P&gt;&lt;P&gt;  gjahr = G_gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if p_blart = 'KG' or p_blart = 'DG'.&lt;/P&gt;&lt;P&gt;    select * from bseg into corresponding fields of table itab&lt;/P&gt;&lt;P&gt;    where belnr = wa_bkpf-belnr.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 10:15:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/2166738#M458935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T10:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/2166739#M458936</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;if you work with select-options instead of parameters, it will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nicole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 10:17:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/2166739#M458936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T10:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/2166740#M458937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhay,&lt;/P&gt;&lt;P&gt;               Use Ranges in place of parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;RANGES p_blart FOR BKPF-BLART.&lt;/P&gt;&lt;P&gt;PARAMETERS : p_belnr like bseg-belnr,&lt;/P&gt;&lt;P&gt;b_bukrs like bseg-bukrs OBLIGATORY DEFAULT '1000',&lt;/P&gt;&lt;P&gt;G_gjahr like bseg-gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;p_blart -SIGN = 'I'.&lt;/P&gt;&lt;P&gt;p_blart -OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;p_blart -LOW = 'KG.&lt;/P&gt;&lt;P&gt;APPEND p_blart .&lt;/P&gt;&lt;P&gt;CLEAR p_blart .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_blart -SIGN = 'I'.&lt;/P&gt;&lt;P&gt;p_blart -OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;p_blart -LOW = 'DG'.&lt;/P&gt;&lt;P&gt;APPEND p_blart .&lt;/P&gt;&lt;P&gt;CLEAR p_blart .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START OF SELECTION.&lt;/P&gt;&lt;P&gt;select single * from bkpf into wa_bkpf&lt;/P&gt;&lt;P&gt;where belnr = p_belnr and&lt;/P&gt;&lt;P&gt;bukrs = b_bukrs and&lt;/P&gt;&lt;P&gt;gjahr = G_gjahr AND&lt;/P&gt;&lt;P&gt;BLART IN P_BLART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD POINTS IF HELPFUL.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hemant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 10:33:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help/m-p/2166740#M458937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T10:33:37Z</dc:date>
    </item>
  </channel>
</rss>

