<?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: Regarding dynamic selection screen using macros in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dynamic-selection-screen-using-macros/m-p/3689258#M888336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;

Here is an example that I used that saved a lot of redundent code.

&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DEFINE filefrom2.
* &amp;amp;1 file   field name
* &amp;amp;2 screen field name
* &amp;amp;3 screen if file null field name
* &amp;amp;4 radio group name
* &amp;amp;5 modif id name
* text-305 = From
* text-306 = File
* text-307 = Screen
* text-309 = Default When File Blank
  selection-screen comment 27(04)  text-306 modif id &amp;amp;5.
  selection-screen position 33.
  parameters: &amp;amp;1 radiobutton group &amp;amp;4 modif id &amp;amp;5.
  selection-screen comment 37(06)  text-307 modif id &amp;amp;5.
  selection-screen position 44.
  parameters: &amp;amp;2 radiobutton group &amp;amp;4 default 'X' modif id &amp;amp;5.
  selection-screen comment 49(23)  text-309 modif id &amp;amp;5.
  selection-screen position 73.
  parameters: &amp;amp;3 radiobutton group &amp;amp;4 modif id &amp;amp;5.
END-OF-DEFINITION.

DEFINE filefrom3.
* &amp;amp;1 file   field name
* &amp;amp;2 screen field name
* &amp;amp;3 screen if file null field name
* &amp;amp;4 radio group name
* &amp;amp;5 modif id name
* text-305 = From
* text-306 = File
* text-307 = Screen
* text-309 = Default When File Blank
  selection-screen comment 21(04)  text-306 modif id &amp;amp;5.
  selection-screen position 27.
  parameter &amp;amp;1 radiobutton group &amp;amp;4 default 'X' modif id &amp;amp;5.
  selection-screen comment 31(06)  text-307 modif id &amp;amp;5.
  selection-screen position 38.
  parameter &amp;amp;2 radiobutton group &amp;amp;4 modif id &amp;amp;5.
  selection-screen comment 43(23)  text-309 modif id &amp;amp;5.
  selection-screen position 67.
  parameter &amp;amp;3 radiobutton group &amp;amp;4 modif id &amp;amp;5.
END-OF-DEFINITION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the definition of the selection screen, this was used&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
filefrom p_ltypf p_ltyps gr15 lfs.

* and this

filefrom2 pfcrdt pscrdt pdcrdt gr16 new.

* and this

filefrom3 pacfdt pacsdt pacddt gr41 acc.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Apr 2008 13:37:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-08T13:37:07Z</dc:date>
    <item>
      <title>Regarding dynamic selection screen using macros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dynamic-selection-screen-using-macros/m-p/3689256#M888334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to create dynamic selection screen using macros?  Please give me the solution its very urgent  as I am not aware of Macros.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 13:28:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dynamic-selection-screen-using-macros/m-p/3689256#M888334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T13:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding dynamic selection screen using macros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dynamic-selection-screen-using-macros/m-p/3689257#M888335</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;Somehow like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;define chfile.
selection-screen begin of line.
  parameters: &amp;amp;1 as checkbox default ' ' USER-COMMAND chk.
  SELECTION-SCREEN COMMENT 5(20) &amp;amp;2.
  parameters: &amp;amp;3 like rlgrap-filename.
selection-screen end of line.
end-of-definition.

selection-screen begin of block file with frame title text-b01.
  chfile p_jell text-f01 p_fjell.
  chfile p_oszt text-f02 p_foszt.
selection-screen end of block file.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 13:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dynamic-selection-screen-using-macros/m-p/3689257#M888335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T13:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding dynamic selection screen using macros</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dynamic-selection-screen-using-macros/m-p/3689258#M888336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;

Here is an example that I used that saved a lot of redundent code.

&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DEFINE filefrom2.
* &amp;amp;1 file   field name
* &amp;amp;2 screen field name
* &amp;amp;3 screen if file null field name
* &amp;amp;4 radio group name
* &amp;amp;5 modif id name
* text-305 = From
* text-306 = File
* text-307 = Screen
* text-309 = Default When File Blank
  selection-screen comment 27(04)  text-306 modif id &amp;amp;5.
  selection-screen position 33.
  parameters: &amp;amp;1 radiobutton group &amp;amp;4 modif id &amp;amp;5.
  selection-screen comment 37(06)  text-307 modif id &amp;amp;5.
  selection-screen position 44.
  parameters: &amp;amp;2 radiobutton group &amp;amp;4 default 'X' modif id &amp;amp;5.
  selection-screen comment 49(23)  text-309 modif id &amp;amp;5.
  selection-screen position 73.
  parameters: &amp;amp;3 radiobutton group &amp;amp;4 modif id &amp;amp;5.
END-OF-DEFINITION.

DEFINE filefrom3.
* &amp;amp;1 file   field name
* &amp;amp;2 screen field name
* &amp;amp;3 screen if file null field name
* &amp;amp;4 radio group name
* &amp;amp;5 modif id name
* text-305 = From
* text-306 = File
* text-307 = Screen
* text-309 = Default When File Blank
  selection-screen comment 21(04)  text-306 modif id &amp;amp;5.
  selection-screen position 27.
  parameter &amp;amp;1 radiobutton group &amp;amp;4 default 'X' modif id &amp;amp;5.
  selection-screen comment 31(06)  text-307 modif id &amp;amp;5.
  selection-screen position 38.
  parameter &amp;amp;2 radiobutton group &amp;amp;4 modif id &amp;amp;5.
  selection-screen comment 43(23)  text-309 modif id &amp;amp;5.
  selection-screen position 67.
  parameter &amp;amp;3 radiobutton group &amp;amp;4 modif id &amp;amp;5.
END-OF-DEFINITION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the definition of the selection screen, this was used&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
filefrom p_ltypf p_ltyps gr15 lfs.

* and this

filefrom2 pfcrdt pscrdt pdcrdt gr16 new.

* and this

filefrom3 pacfdt pacsdt pacddt gr41 acc.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 13:37:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dynamic-selection-screen-using-macros/m-p/3689258#M888336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T13:37:07Z</dc:date>
    </item>
  </channel>
</rss>

