<?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: Can't initialise dialog screen fields with values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-initialise-dialog-screen-fields-with-values/m-p/2915953#M686464</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you loop at screen, it considers all elements of screen. However you need to consider specific 10 elements. As other elements are text symbols or similar other fields, system is not able to assign values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In LOOP AT SCREEN, you will have to put conditions for Screen elements. If that condition is satisfied, then only it should assign value else it should continue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2007 16:45:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-19T16:45:27Z</dc:date>
    <item>
      <title>Can't initialise dialog screen fields with values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-initialise-dialog-screen-fields-with-values/m-p/2915952#M686463</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 have a dialog screen with 10 fields named &lt;/P&gt;&lt;P&gt;TXT_FILEDESC1, TXT_FILEDESC2, ...TXT_FILEDESC10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to initialise these 10 fields with the following codes, but I got an error message:&lt;/P&gt;&lt;P&gt;*******************************************************&lt;/P&gt;&lt;P&gt;DATA: TXT_FILENAME TYPE ZDM_OF-FILE_NAME,&lt;/P&gt;&lt;P&gt;      TXT_FILEDESC TYPE ZDM_OF-FILE_DESC.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS_TXT_FILENAME&amp;gt;, &amp;lt;FS_TXT_FILEDESC&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE PBO_9000 OUTPUT.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'STATUS_9000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT FILE_NAME FILE_DESC FROM ZSCSDM_OF INTO TABLE SCREEN_INIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN_INIT INTO SCREEN_INIT_LINE.&lt;/P&gt;&lt;P&gt;    SCREEN_INIT_NO = SY-TABIX.&lt;/P&gt;&lt;P&gt;    CONCATENATE 'TXT_FILEDESC' SCREEN_INIT_NO INTO TXT_FILEDESC.&lt;/P&gt;&lt;P&gt;    ASSIGN (TXT_FILEDESC) TO &amp;lt;FS_TXT_FILEDESC&amp;gt;.&lt;/P&gt;&lt;P&gt;    MESSAGE E002(ZMSGGARY) WITH TXT_FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;FS_TXT_FILEDESC&amp;gt; = SCREEN_INIT_FILEDESC.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDMODULE.                    "PBO_9000 OUTPUT&lt;/P&gt;&lt;P&gt;*******************************************************&lt;/P&gt;&lt;P&gt;Runtime Error - A new value is to be assigned to the field "&amp;lt;FS_TXT_FIELDDESC&amp;gt;", although this field is entirely or partly protected against changes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone share why I got the above error message when i try to run the program (Execute --&amp;gt; In A New Window)? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 16:35:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-initialise-dialog-screen-fields-with-values/m-p/2915952#M686463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T16:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can't initialise dialog screen fields with values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-initialise-dialog-screen-fields-with-values/m-p/2915953#M686464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you loop at screen, it considers all elements of screen. However you need to consider specific 10 elements. As other elements are text symbols or similar other fields, system is not able to assign values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In LOOP AT SCREEN, you will have to put conditions for Screen elements. If that condition is satisfied, then only it should assign value else it should continue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 16:45:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-initialise-dialog-screen-fields-with-values/m-p/2915953#M686464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T16:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can't initialise dialog screen fields with values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-initialise-dialog-screen-fields-with-values/m-p/2915954#M686465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No I am not doing a loop at screen. I am doing a loop at SCREEN_INIT (which is an internal table I created). I am trying to get some values from the SCREEN_INIT internal table and populate the corresponding screen fields using field-symbols.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 16:52:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-initialise-dialog-screen-fields-with-values/m-p/2915954#M686465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T16:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can't initialise dialog screen fields with values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-initialise-dialog-screen-fields-with-values/m-p/2915955#M686466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you debug this code and see the values from SCREEN_INIT. Apart from your fields, i think it also is taking the header text field which it is not able to assign any value and it turns into an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please debug once and see the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 16:57:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-initialise-dialog-screen-fields-with-values/m-p/2915955#M686466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T16:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can't initialise dialog screen fields with values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-initialise-dialog-screen-fields-with-values/m-p/2915956#M686467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got the reason for the error. It's because I did not clear the contents of TXT_FILENAME before the next loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN_INIT INTO SCREEN_INIT_LINE.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;TXT_FILENAME = ''. ==&amp;gt; This solves the problem.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'TXT_FILEDESC' SCREEN_INIT_NO INTO TXT_FILEDESC.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;ENDMODULE. "PBO_9000 OUTPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Oct 2007 12:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-initialise-dialog-screen-fields-with-values/m-p/2915956#M686467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-20T12:18:21Z</dc:date>
    </item>
  </channel>
</rss>

