<?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: Issue modifying parameters using at selection-screen on event in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-modifying-parameters-using-at-selection-screen-on-event/m-p/6530772#M1426561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like I said - I think you'll find it doesn't work in AT SELECTION-SCREEN ON kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jan 2010 21:52:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-12T21:52:56Z</dc:date>
    <item>
      <title>Issue modifying parameters using at selection-screen on event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-modifying-parameters-using-at-selection-screen-on-event/m-p/6530769#M1426558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus! I'm working on a program where I have to set the value of certain selection-screen fields according to the value of the other parameter (kunnr). When I enter kunnr for the first time, all fields get their values, but when entering a second and different kunnr,  parameters ctaest and name1 change for the new values, but not for the others (firmant1, dnif1, firmant2 and dnif2): they keep their original value.&lt;/P&gt;&lt;P&gt;This is the code I'm using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Parameter declaration
PARAMETERS: bukrs TYPE bukrs.
PARAMETERS: kunnr TYPE kunnr MODIF ID g1.
PARAMETERS: ctaesp TYPE saknr.
PARAMETERS: name1 TYPE name1_gp.
PARAMETERS firmant1 TYPE zfirmante MODIF ID g1.
PARAMETERS dnif1 TYPE zdni MODIF ID g1.
PARAMETERS firmant2 TYPE zfirmante MODIF ID g1.
PARAMETERS dnif2 TYPE zdni MODIF ID g1.

AT SELECTION-SCREEN ON kunnr.
* Determinar cuenta anterior
  IF NOT kunnr IS INITIAL.
    SELECT SINGLE altkn INTO t_document-accnt
                        FROM knb1
                        WHERE bukrs = bukrs AND
                              kunnr = kunnr.
    IF sy-subrc NE 0.
      MESSAGE 'El cliente seleccionado no posee cuenta anterior' TYPE 'E'.
    ENDIF.
    ctaesp = t_document-accnt.
    SELECT SINGLE name1 INTO name1
                        FROM kna1
                        WHERE kunnr = kunnr.
* Se obtiene información de firmates:                    " TKT0086.01.sn
    DATA: pass TYPE n LENGTH 1.
    CLEAR pass.
    SELECT SINGLE *
           FROM zpf_firmantes
           INTO gt_firmantes
           WHERE bukrs = bukrs AND
                 kunnr = kunnr.
    IF sy-subrc EQ 0.
      firmant1 = gt_firmantes-firmante1.
      dnif1    = gt_firmantes-dnif1.
      firmant2 = gt_firmantes-firmante2.
      dnif2    = gt_firmantes-dnif2.
    ELSE.
      firmant1 = ''.
      dnif1 = ''.
      firmant2 = ''.
      dnif2 = ''.
    ENDIF.
    MODIFY SCREEN.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only difference I found is that the Input property of both working fieds is set to 0, and the others are set to 1.&lt;/P&gt;&lt;P&gt;If I change the Input property of all fields to 0 they refresh perfectly but, as customer requirement, some fields must be editable, so it's impossible for me to disable screen input for them.&lt;/P&gt;&lt;P&gt;Is there anything I could do about this? Is there any mistake in my code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot and best regards,&lt;/P&gt;&lt;P&gt;Fernando.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2010 21:16:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-modifying-parameters-using-at-selection-screen-on-event/m-p/6530769#M1426558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-12T21:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Issue modifying parameters using at selection-screen on event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-modifying-parameters-using-at-selection-screen-on-event/m-p/6530770#M1426559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To start with, the MODIFY SCREEN belongs in a LOOP AT SCREEN in the AT SELECTION-SCREEN OUTPUT event, not where it now is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2010 21:28:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-modifying-parameters-using-at-selection-screen-on-event/m-p/6530770#M1426559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-12T21:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue modifying parameters using at selection-screen on event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-modifying-parameters-using-at-selection-screen-on-event/m-p/6530771#M1426560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Modify Screen should be used only within a LOOP AT SCREEN ... ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN ON kunnr.
* Determinar cuenta anterior
  IF NOT kunnr IS INITIAL.
    LOOP TA SCREEN.
    SELECT SINGLE altkn INTO t_document-accnt
                        FROM knb1
                        WHERE bukrs = bukrs AND
                              kunnr = kunnr.
    IF sy-subrc NE 0.
      MESSAGE 'El cliente seleccionado no posee cuenta anterior' TYPE 'E'.
    ENDIF.
    ctaesp = t_document-accnt.
    SELECT SINGLE name1 INTO name1
                        FROM kna1
                        WHERE kunnr = kunnr.
* Se obtiene información de firmates:                    " TKT0086.01.sn
    DATA: pass TYPE n LENGTH 1.
    CLEAR pass.
    SELECT SINGLE *
           FROM zpf_firmantes
           INTO gt_firmantes
           WHERE bukrs = bukrs AND
                 kunnr = kunnr.
    IF sy-subrc EQ 0.
      firmant1 = gt_firmantes-firmante1.
      dnif1    = gt_firmantes-dnif1.
      firmant2 = gt_firmantes-firmante2.
      dnif2    = gt_firmantes-dnif2.
    ELSE.
      firmant1 = ''.
      dnif1 = ''.
      firmant2 = ''.
      dnif2 = ''.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
  ENDIF.
ENDAT.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link for more details:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_70/en/ABAPMODIFY_SCREEN.htm"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2010 21:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-modifying-parameters-using-at-selection-screen-on-event/m-p/6530771#M1426560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-12T21:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issue modifying parameters using at selection-screen on event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-modifying-parameters-using-at-selection-screen-on-event/m-p/6530772#M1426561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like I said - I think you'll find it doesn't work in AT SELECTION-SCREEN ON kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2010 21:52:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-modifying-parameters-using-at-selection-screen-on-event/m-p/6530772#M1426561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-12T21:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Issue modifying parameters using at selection-screen on event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-modifying-parameters-using-at-selection-screen-on-event/m-p/6530773#M1426562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the heads up Rob. I guess I over looked that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2010 22:48:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-modifying-parameters-using-at-selection-screen-on-event/m-p/6530773#M1426562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-12T22:48:07Z</dc:date>
    </item>
  </channel>
</rss>

