<?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: selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154253#M1515077</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;One more thing that you should take care is that you should either remove GET PARAMETER ID PARA FIELD P_RANL from initialization or check field P_RANL is initial or not before GET PARAMETER ID PARA FIELD P_RANL. Because P_RANL is getting overwritten by parameter id's ('PARA') value again &amp;amp; again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will surely help in achieveing the desired results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Aug 2010 08:04:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-09T08:04:01Z</dc:date>
    <item>
      <title>selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154248#M1515072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;                 my issue is , i have customer number  &amp;amp; 2 amount fields which i get from this customer number &amp;amp; i calculate it in other field on selction screen. Everyhing is OK with that. But when i change the customer number am getting the same amount for the previous customer which i swrong. so how to solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunita&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please use more descriptive subject lines from now on.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Aug 9, 2010 12:32 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 06:32:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154248#M1515072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-09T06:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154249#M1515073</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;Which event u have used to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you show us your code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 06:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154249#M1515073</guid>
      <dc:creator>bbalci</dc:creator>
      <dc:date>2010-08-09T06:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154250#M1515074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; This is my code.&lt;/P&gt;&lt;P&gt;{AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  CONCATENATE ICON_CALCULATION 'Calclulate'&lt;/P&gt;&lt;P&gt;               INTO BUTT SEPARATED BY SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON P_RANL.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE BZUSAGE FROM VZZKOKO INTO P_H_KOS&lt;/P&gt;&lt;P&gt;  WHERE RKEY1 EQ P_RANL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE BUPRC FROM VTBFHAPO INTO P_H_BEL&lt;/P&gt;&lt;P&gt;     WHERE RANL EQ P_RANL.&lt;/P&gt;&lt;P&gt;  IF SSCRFIELDS-UCOMM = 'CLI1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    P_KUANT = P_H_KOS / P_H_BEL .&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  GET PARAMETER ID PARA FIELD P_RANL.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anymore doughts u let me knw..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;sunita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 06:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154250#M1515074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-09T06:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154251#M1515075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunita&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should set the parameter P_KUANT with function DYNP_VALUES_UPDATE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert this code at end of the event : AT SELECTION-SCREEN ON P_RANL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: &lt;/P&gt;&lt;P&gt;  t_dynfields TYPE TABLE OF dynpread,&lt;/P&gt;&lt;P&gt;  w_dynfields LIKE LINE OF t_dynfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; w_dynfields-fieldname = 'P_KUANT'.&lt;/P&gt;&lt;P&gt; w_dynfields-fieldvalue = P_KUANT.&lt;/P&gt;&lt;P&gt; APPEND w_dynfields TO t_dynfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'DYNP_VALUES_UPDATE'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              dyname     = lv_dynpprog&lt;/P&gt;&lt;P&gt;              dynumb     = lv_dynpnr&lt;/P&gt;&lt;P&gt;            TABLES&lt;/P&gt;&lt;P&gt;              dynpfields = t_dynfields&lt;/P&gt;&lt;P&gt;            EXCEPTIONS&lt;/P&gt;&lt;P&gt;              OTHERS     = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 07:03:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154251#M1515075</guid>
      <dc:creator>bbalci</dc:creator>
      <dc:date>2010-08-09T07:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154252#M1515076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When u change the customer number the change is not reflected immediately unless u press an enter so use FM DYNP_VALUES_READ to get the current customer number from screen and then do your calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kartik Tarla on Aug 9, 2010 12:44 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 07:14:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154252#M1515076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-09T07:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154253#M1515077</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;One more thing that you should take care is that you should either remove GET PARAMETER ID PARA FIELD P_RANL from initialization or check field P_RANL is initial or not before GET PARAMETER ID PARA FIELD P_RANL. Because P_RANL is getting overwritten by parameter id's ('PARA') value again &amp;amp; again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will surely help in achieveing the desired results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 08:04:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154253#M1515077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-09T08:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154254#M1515078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;   {AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  CONCATENATE ICON_CALCULATION 'Calclulate'&lt;/P&gt;&lt;P&gt;               INTO BUTT SEPARATED BY SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON P_RANL.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  w_dynfields-fieldname = 'P_RANL'.&lt;/P&gt;&lt;P&gt;w_dynfields-fieldvalue = P_RANL.&lt;/P&gt;&lt;P&gt;APPEND w_dynfields TO t_dynfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DYNP_VALUES_UPDATE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;dyname = SY-CPROG&lt;/P&gt;&lt;P&gt;dynumb = SY-DYNNR&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;dynpfields = t_dynfields&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;OTHERS = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; READ TABLE t_dynfields INTO w_dynfields INDEX 1.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE BZUSAGE FROM VZZKOKO INTO P_H_KOS&lt;/P&gt;&lt;P&gt;  WHERE RKEY1 EQ w_dynfields-fieldvalue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE BUPRC FROM VTBFHAPO INTO P_H_BEL&lt;/P&gt;&lt;P&gt;     WHERE RANL EQ w_dynfields-fieldvalue.&lt;/P&gt;&lt;P&gt;    CLEAR: w_dynfields,t_dynfields.&lt;/P&gt;&lt;P&gt;  IF SSCRFIELDS-UCOMM = 'CLI1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    P_KUANT = P_H_KOS / P_H_BEL .&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; GET PARAMETER ID PARA FIELD P_RANL.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its not working .  the 1st customer number values appear again wen i change the customer number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i did debug also it changes the values but while coming to the screen back it puts the old values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Sunita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 09:13:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154254#M1515078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-09T09:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154255#M1515079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt; Can u solve this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 09:43:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154255#M1515079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-09T09:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154256#M1515080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Execute this ... change the value of p1 and hit enter, you will get the solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS:p1 TYPE i.
PARAMETERS:c1 TYPE i.

at selection-screen output.
  c1 = p1.
AT SELECTION-SCREEN ON p1.
  p1 = p1 + 1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 09:44:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154256#M1515080</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-08-09T09:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154257#M1515081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope you've written the code for automatic population of the amount fields &lt;U&gt;in the correct events&lt;/U&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Q: Why the amount fields are not getting populated ?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ans: The PBO event which should be triggered (in this case it is AT SELECTION-SCREEN OUTPUT) is not getting triggered. Merely changing the value in the screen field does not trigger the PBO. Hence the data is not getting updated automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;How to solve this ? &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ans: Hit an "enter" after changing the value, your values should be updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 09:52:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154257#M1515081</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-08-09T09:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154258#M1515082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi keshav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         But with ur code the values of P_ranl will increase by 1. then hw can it be solved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be i didnt understand ur logic canu make it clear?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sunita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 09:57:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154258#M1515082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-09T09:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154259#M1515083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi suhas,&lt;/P&gt;&lt;P&gt;        of course i press enter thn also its not updating.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sunita.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 10:01:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154259#M1515083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-09T10:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154260#M1515084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;  of course i press enter thn also its not updating.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which SELECTION-SCREEN event you've written the code ? FYI tt should be in AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post the code ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 10:08:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154260#M1515084</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-08-09T10:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154261#M1515085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN OUTPUT.
IF SSCRFIELDS-UCOMM = 'CLI1'.  "Paste this here
P_KUANT = P_H_KOS / P_H_BEL .
ENDIF.

CONCATENATE ICON_CALCULATION 'Calclulate'
INTO BUTT SEPARATED BY SPACE.

AT SELECTION-SCREEN ON P_RANL.
SELECT SINGLE BZUSAGE FROM VZZKOKO INTO P_H_KOS
WHERE RKEY1 EQ P_RANL.
clear p_h_bel . "&amp;lt;--
SELECT SINGLE BUPRC FROM VTBFHAPO INTO P_H_BEL
WHERE RANL EQ P_RANL.

INITIALIZATION.

GET PARAMETER ID PARA FIELD P_RANL.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 10:19:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154261#M1515085</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-08-09T10:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154262#M1515086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunita&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I said put function to the &lt;U&gt;end&lt;/U&gt; of the event :  AT SELECTION-SCREEN ON P_RANL.&lt;/P&gt;&lt;P&gt;But it's on upper side in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just write like that :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON P_RANL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;1 - You should first calculate the variable :&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE t_dynfields INTO w_dynfields INDEX 1.&lt;/P&gt;&lt;P&gt;SELECT SINGLE BZUSAGE FROM VZZKOKO INTO P_H_KOS&lt;/P&gt;&lt;P&gt;WHERE RKEY1 EQ w_dynfields-fieldvalue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE BUPRC FROM VTBFHAPO INTO P_H_BEL&lt;/P&gt;&lt;P&gt;WHERE RANL EQ w_dynfields-fieldvalue.&lt;/P&gt;&lt;P&gt;CLEAR: w_dynfields,t_dynfields.&lt;/P&gt;&lt;P&gt;IF SSCRFIELDS-UCOMM = 'CLI1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P_KUANT = P_H_KOS / P_H_BEL .&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;2 - Than set the value of this variable on the screen : &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set your variable P_KUANT or P_RANL whatever it's name &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_dynfields-fieldname = 'P_RANL'.&lt;/P&gt;&lt;P&gt;w_dynfields-fieldvalue = P_RANL.&lt;/P&gt;&lt;P&gt;APPEND w_dynfields TO t_dynfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DYNP_VALUES_UPDATE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;dyname = SY-CPROG&lt;/P&gt;&lt;P&gt;dynumb = SY-DYNNR&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;dynpfields = t_dynfields&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;OTHERS = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bulent Balci on Aug 9, 2010 12:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 10:25:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154262#M1515086</guid>
      <dc:creator>bbalci</dc:creator>
      <dc:date>2010-08-09T10:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154263#M1515087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Keshav, &lt;/P&gt;&lt;P&gt;        I did exactly wat u said but  its not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi buleten,&lt;/P&gt;&lt;P&gt;         i have tried ur way also..its not working,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi seshu,&lt;/P&gt;&lt;P&gt;        i put my code above plz check...just fed up with this small issue...head-ache . plz understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunita.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 10:46:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154263#M1515087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-09T10:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154264#M1515088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did u try and use the FM DYNP_VALUES_READ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use it before u do the calculations.&lt;/P&gt;&lt;P&gt;It will pick up teh most current value from the screen and do calculations accordingly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 10:56:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154264#M1515088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-09T10:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154265#M1515089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;w_dynfields-fieldname = 'P_RANL'.
APPEND w_dynfields TO t_dynfields.


CALL FUNCTION 'DYNP_VALUES_READ' "It will read screen values DYNP_VALUES_UPDATE updates the screen back so u dont need it
EXPORTING
dyname = SY-CPROG
dynumb = SY-DYNNR
TABLES
dynpfields = t_dynfields
EXCEPTIONS
OTHERS = 8.

READ TABLE t_dynfields INTO w_dynfields INDEX 1.
SELECT SINGLE BZUSAGE FROM VZZKOKO INTO P_H_KOS
WHERE RKEY1 EQ w_dynfields-fieldvalue.

SELECT SINGLE BUPRC FROM VTBFHAPO INTO P_H_BEL
WHERE RANL EQ w_dynfields-fieldvalue.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use it like this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 11:01:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154265#M1515089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-09T11:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154266#M1515090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunita &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just use this code, &lt;/P&gt;&lt;P&gt;I hope it ends your headache &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztest1.

PARAMETERS : p_ranl LIKE vzzkoko-rkey1,


       p_h_kos LIKE vzzkoko-bzusage,
       p_h_bel LIKE vtbfhapo-buprc.

DATA :
      dynpfields LIKE STANDARD TABLE OF dynpread WITH HEADER LINE.


DATA p_ranl_value LIKE p_ranl.


AT SELECTION-SCREEN ON p_ranl.

* --1-- Get the value of parameter : P_RANL

  dynpfields-fieldname = 'P_RANL'.
  APPEND dynpfields.

  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname               = sy-cprog
      dynumb               = sy-dynnr
    TABLES
      dynpfields           = dynpfields
    EXCEPTIONS
      invalid_abapworkarea = 1
      invalid_dynprofield  = 2
      invalid_dynproname   = 3
      invalid_dynpronummer = 4
      invalid_request      = 5
      no_fielddescription  = 6
      invalid_parameter    = 7
      undefind_error       = 8
      double_conversion    = 9
      stepl_not_found      = 10
      OTHERS               = 11.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
         WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

  READ TABLE dynpfields WITH KEY fieldname = 'P_RANL'.
  CHECK sy-subrc EQ 0.
  p_ranl_value = dynpfields-fieldvalue.

* --2-- Read amount values belong to this value :

  SELECT SINGLE bzusage
  FROM vzzkoko
  INTO p_h_kos
  WHERE rkey1 EQ p_ranl.

  SELECT SINGLE buprc
  FROM vtbfhapo
  INTO p_h_bel
  WHERE ranl EQ p_ranl.

* --3-- Update values on screen :

  CLEAR : dynpfields,  dynpfields[].

  dynpfields-fieldname = 'P_H_BEL'.
  dynpfields-fieldvalue = p_h_bel.
  APPEND dynpfields.

  dynpfields-fieldname = 'P_H_KOS'.
  dynpfields-fieldvalue = p_h_bel.
  APPEND dynpfields.

  CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
      dyname               = sy-cprog
      dynumb               = sy-dynnr
    TABLES
      dynpfields           = dynpfields
    EXCEPTIONS
      invalid_abapworkarea = 1
      invalid_dynprofield  = 2
      invalid_dynproname   = 3
      invalid_dynpronummer = 4
      invalid_request      = 5
      no_fielddescription  = 6
      undefind_error       = 7
      OTHERS               = 8.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bulent Balci on Aug 9, 2010 1:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 11:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/7154266#M1515090</guid>
      <dc:creator>bbalci</dc:creator>
      <dc:date>2010-08-09T11:12:28Z</dc:date>
    </item>
  </channel>
</rss>

