<?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 problem in at selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen/m-p/4276155#M1020255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai friends,&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;P&gt;i have two radio buttons in my selection-screen . one is for application server file and another is for local file.when i select the local file radio button one excel file should get genarated and when i click on appln sever button then the file should b transferred to the applin server(given path).of course these things are working fine.but if i come back to the same sel-screen and again execute the program then i am getting the alv list with double columns(the ccolums which have r getting repeated in my list) and vice-versa.&lt;/P&gt;&lt;P&gt;if u want plz see my code also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_date FOR ztbukxxin003-z_manufdate NO-EXTENSION.&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;SELECTION-SCREEN BEGIN OF BLOCK blk3 WITH FRAME TITLE text-006.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_rad1 TYPE c RADIOBUTTON GROUP grp1 USER-COMMAND urad&lt;/P&gt;&lt;P&gt;DEFAULT 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 5(15) text-007 FOR FIELD p_lopath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_lopath LIKE filename-pathintern DEFAULT&lt;/P&gt;&lt;P&gt;'ZS_SESAM_SEND_EDI'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : p_lofile LIKE filename-fileintern DEFAULT 'ZTBUKXXIN008'.&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;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_rad2 TYPE c RADIOBUTTON GROUP grp1 .&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 5(15) text-009 FOR FIELD p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : p_file  LIKE rlgrap-filename.&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 END OF BLOCK blk3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             A T  S E L E C T I O N - S C R E E N                    *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : i_mdate TYPE ztbukxxin003-z_manufdate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Validate  manufacture date on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE z_manufdate&lt;/P&gt;&lt;P&gt;  INTO i_mdate&lt;/P&gt;&lt;P&gt;  FROM ztbukxxin003&lt;/P&gt;&lt;P&gt;  WHERE z_ndsnum LIKE 'CEA%' AND&lt;/P&gt;&lt;P&gt;  z_manufdate IN s_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MESSAGE 'Enter the date in the format YYYY/MM/DD' TYPE 'E'.&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;  IF p_rad1 EQ 'X'.&lt;/P&gt;&lt;P&gt;    PERFORM get_appl_file   USING  p_lofile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSEIF p_rad2 EQ 'X'.&lt;/P&gt;&lt;P&gt;    PERFORM get_local_file   USING  p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;of course here if i  write the above 5 lines of code in at selection screen on value-request for p_file.then the program not getting executed also.that's why i have wrote everything in at sel-screen only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i guess the problem is in events only.but i am not able to understand what code can b added adn what code deleted from this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any solution from anybody.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jul 2008 12:32:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-31T12:32:20Z</dc:date>
    <item>
      <title>problem in at selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen/m-p/4276155#M1020255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai friends,&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;P&gt;i have two radio buttons in my selection-screen . one is for application server file and another is for local file.when i select the local file radio button one excel file should get genarated and when i click on appln sever button then the file should b transferred to the applin server(given path).of course these things are working fine.but if i come back to the same sel-screen and again execute the program then i am getting the alv list with double columns(the ccolums which have r getting repeated in my list) and vice-versa.&lt;/P&gt;&lt;P&gt;if u want plz see my code also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_date FOR ztbukxxin003-z_manufdate NO-EXTENSION.&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;SELECTION-SCREEN BEGIN OF BLOCK blk3 WITH FRAME TITLE text-006.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_rad1 TYPE c RADIOBUTTON GROUP grp1 USER-COMMAND urad&lt;/P&gt;&lt;P&gt;DEFAULT 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 5(15) text-007 FOR FIELD p_lopath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_lopath LIKE filename-pathintern DEFAULT&lt;/P&gt;&lt;P&gt;'ZS_SESAM_SEND_EDI'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : p_lofile LIKE filename-fileintern DEFAULT 'ZTBUKXXIN008'.&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;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_rad2 TYPE c RADIOBUTTON GROUP grp1 .&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 5(15) text-009 FOR FIELD p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : p_file  LIKE rlgrap-filename.&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 END OF BLOCK blk3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             A T  S E L E C T I O N - S C R E E N                    *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : i_mdate TYPE ztbukxxin003-z_manufdate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Validate  manufacture date on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE z_manufdate&lt;/P&gt;&lt;P&gt;  INTO i_mdate&lt;/P&gt;&lt;P&gt;  FROM ztbukxxin003&lt;/P&gt;&lt;P&gt;  WHERE z_ndsnum LIKE 'CEA%' AND&lt;/P&gt;&lt;P&gt;  z_manufdate IN s_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MESSAGE 'Enter the date in the format YYYY/MM/DD' TYPE 'E'.&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;  IF p_rad1 EQ 'X'.&lt;/P&gt;&lt;P&gt;    PERFORM get_appl_file   USING  p_lofile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSEIF p_rad2 EQ 'X'.&lt;/P&gt;&lt;P&gt;    PERFORM get_local_file   USING  p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;of course here if i  write the above 5 lines of code in at selection screen on value-request for p_file.then the program not getting executed also.that's why i have wrote everything in at sel-screen only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i guess the problem is in events only.but i am not able to understand what code can b added adn what code deleted from this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any solution from anybody.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2008 12:32:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen/m-p/4276155#M1020255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-31T12:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: problem in at selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen/m-p/4276156#M1020256</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;There is no issues with event. Refresh ITAB wich you are passing to ALV function before filling it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do this&lt;/P&gt;&lt;P&gt;if itab[] is initial.&lt;/P&gt;&lt;P&gt;   select statement.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not helpful paste the full code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2008 12:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen/m-p/4276156#M1020256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-31T12:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: problem in at selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen/m-p/4276157#M1020257</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;Try the below code and see&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF p_rad1 EQ 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh : itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM get_appl_file USING p_lofile.&lt;/P&gt;&lt;P&gt;once u read the file and put in internal table then use clear command and clear the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear : p_lofile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF p_rad2 EQ 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh : itab.&lt;/P&gt;&lt;P&gt;PERFORM get_local_file USING p_file.&lt;/P&gt;&lt;P&gt;once u read the file and put in internal table then use clear command and clear the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear : p_file.&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;Regards,&lt;/P&gt;&lt;P&gt;nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2008 12:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen/m-p/4276157#M1020257</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2008-07-31T12:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: problem in at selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen/m-p/4276158#M1020258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank u for ur response&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 11:36:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-at-selection-screen/m-p/4276158#M1020258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-01T11:36:53Z</dc:date>
    </item>
  </channel>
</rss>

