<?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: Screen painter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1306501#M160246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. You can enable/disable the field in the screen inside the pbo of the screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module input_pbo output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;  if screen-name = 'INPUT'.&lt;/P&gt;&lt;P&gt;     screen-input = '0'.&lt;/P&gt;&lt;P&gt;     screen-active = '0'.&lt;/P&gt;&lt;P&gt;     modify screen.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.                 " input_pbo  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use CONVERSION_EXIT_ALPHA_INPUT after calculating the document number. YOu wil get it padded with leading zeros. &lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Mark helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jun 2006 05:49:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-05T05:49:06Z</dc:date>
    <item>
      <title>Screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1306497#M160242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.  How to Enable / Disable a input field in the Screen Painter, through codes (not through Element list).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.To have the document number by default, I am selecting the last number from the table (the field type used is MBLNR) and adding 1 to that and displaying the derived value at the time of insert.  The code used is as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       DATA : WA_NUM TYPE MBLNR.&lt;/P&gt;&lt;P&gt;       WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;           SELECT SINGLE MAX( NUM )INTO WA_NUM&lt;/P&gt;&lt;P&gt;           FROM   ZTable.&lt;/P&gt;&lt;P&gt;           ZTable-NUM = WA_NUM + 1.&lt;/P&gt;&lt;P&gt;           INSERT ZTable.&lt;/P&gt;&lt;P&gt;           CLEAR SCREEN.&lt;/P&gt;&lt;P&gt;       ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg.  The last number in the table is 0000000345.&lt;/P&gt;&lt;P&gt;     The deveried number is 346.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the table, the old values are with zeroes, but the derived value is without zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem observed is that, subsequently the system is not finding the last number 346, instead it is picking 345.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why it is not picking 346 as the last number.  Even if the table is indexed, the 346 is not coming next to 345, instead, 346 in the first line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also let me know, how to add zeroes before to the derived values , ie like '0000000345'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. After inserting the record, how to clear the screen. (The clear screen is not working).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help to solve these three prolems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advace,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MARK K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2006 05:35:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1306497#M160242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-05T05:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1306498#M160243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;For your question no. 2:&lt;/P&gt;&lt;P&gt;Please check the data type and length of wa_num.&lt;/P&gt;&lt;P&gt;For getting leading zero's you can use the OVERLAY command. Example : OVERLAY WA_NUM WITH '0000000000'. Provided it is a character field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz reward helpful answers!!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2006 05:40:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1306498#M160243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-05T05:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1306499#M160244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Use--- loop at screen.&lt;/P&gt;&lt;P&gt;         ........&lt;/P&gt;&lt;P&gt;         .......&lt;/P&gt;&lt;P&gt;         endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2006 05:44:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1306499#M160244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-05T05:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1306500#M160245</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;1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-group4 eq 'test'&lt;/P&gt;&lt;P&gt;screen-active = '0'&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use function module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_INPUT    Conversion exit ALPHA, external-&amp;gt;internal&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_OUTPUT   Conversion exit ALPHA, internal-&amp;gt;external&lt;/P&gt;&lt;P&gt;for inserting 0 at the front ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;clear: wa_num,wa_field2,wa_field3.( ie clear the each of the screen field individually)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if it helps&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;gunjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2006 05:46:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1306500#M160245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-05T05:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1306501#M160246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. You can enable/disable the field in the screen inside the pbo of the screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module input_pbo output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;  if screen-name = 'INPUT'.&lt;/P&gt;&lt;P&gt;     screen-input = '0'.&lt;/P&gt;&lt;P&gt;     screen-active = '0'.&lt;/P&gt;&lt;P&gt;     modify screen.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.                 " input_pbo  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use CONVERSION_EXIT_ALPHA_INPUT after calculating the document number. YOu wil get it padded with leading zeros. &lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Mark helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2006 05:49:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1306501#M160246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-05T05:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1306502#M160247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gunjan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The point No.2 is working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2006 06:03:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1306502#M160247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-05T06:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1306503#M160248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The number which is inserted with the derived value, is only a display field.  It cannot be edited  and also I cannot enter any value in that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But If I want to view the details of a particular document no., I have to enter the document number in this field.  How can I make that field as Input field, when I click  the view button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls guide me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2006 06:10:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-painter/m-p/1306503#M160248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-05T06:10:17Z</dc:date>
    </item>
  </channel>
</rss>

