<?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: problem in screen painter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5104129#M1184309</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 will be no problem in adding the char field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : char1 type char10 VALUE '4'.
DATA : char2 type char10 VALUE '5'. 
DATA : char3 type char10.

Char3 = char1 + char2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Char3 will have 9&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Feb 2009 13:04:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-09T13:04:24Z</dc:date>
    <item>
      <title>problem in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5104126#M1184306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    i have 3 fields(no_days, no_days_for_config, no_days_for_test ) in which i have retrieved values from a table, in the table the values are of char type... i want to do addition of the values of those fields and display the result(total_days)  on the same screen...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;1. will i be able to perform addition as their datatype is char?&lt;/P&gt;&lt;P&gt;2. if i can, how?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 13:00:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5104126#M1184306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T13:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: problem in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5104127#M1184307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Convert them into number type and then do the addition&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 13:03:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5104127#M1184307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T13:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: problem in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5104128#M1184308</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;yes you can perform the addition on the data type char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just add the fields of the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie., itab-total_days = itab-no_days + itab-no.of_days_for_config + itab-no_days_for_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;sarves&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 13:03:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5104128#M1184308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T13:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: problem in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5104129#M1184309</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 will be no problem in adding the char field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : char1 type char10 VALUE '4'.
DATA : char2 type char10 VALUE '5'. 
DATA : char3 type char10.

Char3 = char1 + char2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Char3 will have 9&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 13:04:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5104129#M1184309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T13:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: problem in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5104130#M1184310</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;Yes, it is possible...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add the values and pass it to another variable and display it.&lt;/P&gt;&lt;P&gt;result = no_days+ no_days_for_config +no_days_for_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 13:04:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5104130#M1184310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T13:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: problem in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5104131#M1184311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;You can add char  typed data objects  in another char typed data object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or else ...&lt;/P&gt;&lt;P&gt;You can create those fields prog. typed  with data type n and length same as in dictionary and &lt;/P&gt;&lt;P&gt;do the addition .&lt;/P&gt;&lt;P&gt;It will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pinaki Mukherjee on Feb 9, 2009 2:15 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 13:07:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5104131#M1184311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T13:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: problem in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5104132#M1184312</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;Declare these variables in top include&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data :  no_days(6) type c,
          no_days_for_config(6)  type c,
         no_days_for_test(6) type c,
          total_days(6) type c.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define another field on the screen for total and name it as total_days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" Define a pushbuton on ur screen. set attributes as button name = 'ADD',
"                           function code = 'ADD'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in flow logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
  MODULE status_2002.

PROCESS AFTER INPUT.
MODULE Add.  "----------------&amp;gt; double cclick on this module&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;PRE&gt;&lt;CODE&gt;i
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      MODULE Add.  INPUT
*&amp;amp;---------------------------------------------------------------------*
.

if sy-ucom = 'ADD'.
total_days = no_days + no_days_for_config + no_days_for_test .
endif.

.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Always Learner on Feb 9, 2009 2:55 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 13:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5104132#M1184312</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2009-02-09T13:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5104133#M1184313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have added the values, but how to display the value on the screen.&lt;/P&gt;&lt;P&gt;i have declared total_days in the layout, it is an input/output field...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;total_days = no_days + no_days_for_config + no_days_for_test .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;doing this did no display the value on the screen...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 13:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5104133#M1184313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T13:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5104134#M1184314</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;Use CONDENSE total_days. after calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check in debugg mode if data comming in the debug mode or not&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 14:03:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5104134#M1184314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T14:03:34Z</dc:date>
    </item>
  </channel>
</rss>

