<?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 dynamic selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen/m-p/1438341#M208754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am presently working on sapR/3 4.6c. i am writing a conversion program. the data comes from the flat file which is to be displayed onto the selection screen. for each set of records a particular selection screen is to be shown. &lt;/P&gt;&lt;P&gt;Details.....&lt;/P&gt;&lt;P&gt;      this conversion program will work as an upload file to create or change the Classes and Characteristic values assigned to a particular Material Master Object. The creation or change details will be indicated via the selection screen and the applicable materials will also be listed in the selection screen. &lt;/P&gt;&lt;P&gt;     plz kindly suggest as to how to proceed. ur help will be rewarded with points. thanking you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jun 2006 09:52:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-20T09:52:38Z</dc:date>
    <item>
      <title>dynamic selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen/m-p/1438341#M208754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am presently working on sapR/3 4.6c. i am writing a conversion program. the data comes from the flat file which is to be displayed onto the selection screen. for each set of records a particular selection screen is to be shown. &lt;/P&gt;&lt;P&gt;Details.....&lt;/P&gt;&lt;P&gt;      this conversion program will work as an upload file to create or change the Classes and Characteristic values assigned to a particular Material Master Object. The creation or change details will be indicated via the selection screen and the applicable materials will also be listed in the selection screen. &lt;/P&gt;&lt;P&gt;     plz kindly suggest as to how to proceed. ur help will be rewarded with points. thanking you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2006 09:52:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen/m-p/1438341#M208754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-20T09:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen/m-p/1438342#M208755</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;The code below is for a dynamic selection screen. What it does is that if the user is a super user, he/she can upload files but if he/she is a normal user, upload of files is not permitted so the parameter in selection-screen for file upload is invisible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK box1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;PARAMETERS: pr_upld RADIOBUTTON GROUP grp MODIF ID id3&lt;/P&gt;&lt;P&gt;                                          USER-COMMAND ucomm.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 2(20) text-007 FOR FIELD pr_upld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 03(15) text-a11 FOR FIELD p_flnme MODIF ID id3.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_flnme LIKE rlgrap-filename DEFAULT 'C:\' MODIF ID id3.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 1(22) text-002 FOR FIELD p_dcode MODIF ID id1.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_dcode LIKE vbak-kunnr MODIF ID id1,&lt;/P&gt;&lt;P&gt;            p_name1 LIKE kna1-name1 MODIF ID id1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;PARAMETERS: pr_list RADIOBUTTON GROUP grp MODIF ID id4.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 2(7) text-003 FOR FIELD pr_list MODIF ID id4.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;PARAMETERS: pr_add  RADIOBUTTON GROUP grp MODIF ID id2.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 2(3) text-005 FOR FIELD pr_add MODIF ID id2.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;PARAMETERS: pr_edit RADIOBUTTON GROUP grp MODIF ID id5.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 2(4) text-006 FOR FIELD pr_edit MODIF ID id5.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 03(20) text-a12 FOR FIELD p_code MODIF ID id2.&lt;/P&gt;&lt;P&gt;*PARAMETERS: p_kunnr LIKE zts0001-kunnr.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_code LIKE zts0001-cdseq MODIF ID id6.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK box1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;IF v_compflag EQ space.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-group1      = 'ID1'.&lt;/P&gt;&lt;P&gt;        screen-input        = '0'.&lt;/P&gt;&lt;P&gt;        screen-output       = '1'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ELSEIF screen-group1  = 'ID2'.&lt;/P&gt;&lt;P&gt;        screen-active       = '1'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ELSEIF screen-group1  = 'ID3'.&lt;/P&gt;&lt;P&gt;        screen-active       = '0'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ELSEIF screen-group1  = 'ID4'.&lt;/P&gt;&lt;P&gt;        screen-active       = '1'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ELSEIF screen-group1  = 'ID5'.&lt;/P&gt;&lt;P&gt;        screen-active       = '1'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ELSEIF screen-group1  = 'ID6'.&lt;/P&gt;&lt;P&gt;        screen-active       = '1'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ELSEIF v_compflag NE space.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-group1      = 'ID1'.&lt;/P&gt;&lt;P&gt;        screen-active       = '0'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ELSEIF screen-group1  = 'ID2'.&lt;/P&gt;&lt;P&gt;        screen-active       = '0'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ELSEIF screen-group1  = 'ID3'.&lt;/P&gt;&lt;P&gt;        screen-active       = '1'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ELSEIF screen-group1  = 'ID4'.&lt;/P&gt;&lt;P&gt;        screen-active       = '1'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ELSEIF screen-group1  = 'ID5'.&lt;/P&gt;&lt;P&gt;        screen-active       = '0'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ELSEIF screen-group1  = 'ID6'.&lt;/P&gt;&lt;P&gt;        screen-active       = '0'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*for users that are not controllers&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF screen-name   = 'P_CODE'.&lt;/P&gt;&lt;P&gt;      screen-input   =  '0'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF pr_list = 'X' OR&lt;/P&gt;&lt;P&gt;     pr_add  = 'X'  OR&lt;/P&gt;&lt;P&gt;     pr_upld = 'X'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-group1   =  'ID6'.&lt;/P&gt;&lt;P&gt;        screen-input     =  '0'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ELSEIF pr_edit  =  'X'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-group1   =  'ID6'.&lt;/P&gt;&lt;P&gt;        screen-input     =  '1'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*for controllers&lt;/P&gt;&lt;P&gt;  IF pr_upld = 'X'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-name      = 'P_FLNME'.&lt;/P&gt;&lt;P&gt;        screen-input     = '1'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ELSEIF pr_list = 'X'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-name      = 'P_FLNME'.&lt;/P&gt;&lt;P&gt;        screen-input     = '0'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;CHECK sy-ucomm = 'UCOMM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will give you an idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2006 09:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen/m-p/1438342#M208755</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-06-20T09:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen/m-p/1438343#M208756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create dynamic report by filling the report source code into an internal table and then calling the statement INSERT PROGRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the following code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: line(72) type c. 
DATA: itab TYPE STANDARD TABLE OF line. 

APPEND 'report test.' TO itab. 
APPEND 'write: ''Hello world!''.' TO itab. 

INSERT REPORT 'test_report' FROM itab. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the user intervention you can process the selection screen parameter and delete the program if you don't want it using DELETE REPORT prog. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if it helps.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2006 10:01:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen/m-p/1438343#M208756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-20T10:01:16Z</dc:date>
    </item>
  </channel>
</rss>

