<?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: variables in screen painter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/variables-in-screen-painter/m-p/2497735#M564222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I declare in code: &lt;/P&gt;&lt;P&gt;DATA: ekorgg LIKE ekko-ekorg.&lt;/P&gt;&lt;P&gt;Then go to screenpainter, create a in/out field, give it's name EKORG and then in attribute window in tab Dict I check 'Get parameter'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With or without checking that option program looks similarly. When I launch screen the field I've created doesn't have a sarch help and I have to set it manually in screen painter (for ekorg it's H_T024E) Is there some simpler way? Because now I have to find what's the search help for every field I want to display. Greetings. P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2007 06:38:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-19T06:38:54Z</dc:date>
    <item>
      <title>variables in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variables-in-screen-painter/m-p/2497732#M564219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I'm creating a SCREEN in screenpainter. I'm painting a Input/Output Field ang give it's name: EKKO-LIFNR. When I launch screen it works correctly (the corresponding records from DB appears after click on the field). But when I choose some value, how to refer to it in the code later? Greetings. P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 14:11:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variables-in-screen-painter/m-p/2497732#M564219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T14:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: variables in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variables-in-screen-painter/m-p/2497733#M564220</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 &amp;lt;b&amp;gt;TABLES: EKKO.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;And then you can get the value in a filed "EKKO-LIFNR".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;HINT:&amp;lt;/b&amp;gt; Screen values will come to program only if there is any DATA in the program with the same name as that of the screen field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is suppose your screen field name is "TEXT"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in your program use&lt;/P&gt;&lt;P&gt;DATA: TEXT type STRING.&lt;/P&gt;&lt;P&gt;Then what ever you type in the screen field TEXT you will get it in your program variable TEXT.&lt;/P&gt;&lt;P&gt;TABLES statement creates a strcture with the same name as that of the strcutre or table name that we give. Its really helpfull when you get screen fields from Dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 14:13:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variables-in-screen-painter/m-p/2497733#M564220</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-07-18T14:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: variables in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variables-in-screen-painter/m-p/2497734#M564221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Piotr,&lt;/P&gt;&lt;P&gt;   YOu have to declare a variable with the same name. This approach may sometimes give some problems.&lt;/P&gt;&lt;P&gt;Hence it is advisable that you define a variable in the program and activate the program. Then go to the painter and use the GET from program button and use the program variable as the screen field.&lt;/P&gt;&lt;P&gt;This way, you do not have to specifically code for the transfer of data from/to screen and to/from program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 14:13:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variables-in-screen-painter/m-p/2497734#M564221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T14:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: variables in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variables-in-screen-painter/m-p/2497735#M564222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I declare in code: &lt;/P&gt;&lt;P&gt;DATA: ekorgg LIKE ekko-ekorg.&lt;/P&gt;&lt;P&gt;Then go to screenpainter, create a in/out field, give it's name EKORG and then in attribute window in tab Dict I check 'Get parameter'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With or without checking that option program looks similarly. When I launch screen the field I've created doesn't have a sarch help and I have to set it manually in screen painter (for ekorg it's H_T024E) Is there some simpler way? Because now I have to find what's the search help for every field I want to display. Greetings. P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 06:38:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variables-in-screen-painter/m-p/2497735#M564222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T06:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: variables in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variables-in-screen-painter/m-p/2497736#M564223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi P,&lt;/P&gt;&lt;P&gt;    I think i should re explain it.&lt;/P&gt;&lt;P&gt;1) Declare ekorg type ekko-ekorg.&lt;/P&gt;&lt;P&gt;2) Then go tot the screen painter. There will be a button "Get from Program" on the tool bar.&lt;/P&gt;&lt;P&gt;3) If you click that button, you will get a pop up with all the program variables. You can chose EKORG from that list and drag it in the place you want.&lt;/P&gt;&lt;P&gt;4) activate and test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 08:00:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variables-in-screen-painter/m-p/2497736#M564223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T08:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: variables in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variables-in-screen-painter/m-p/2497737#M564224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok that works but there is still no search help assigned to that field after launching program. I tried &lt;/P&gt;&lt;P&gt;DATA: ekorg type ekko-ekorg.&lt;/P&gt;&lt;P&gt;DATA: ekorg like ekko-ekorg.&lt;/P&gt;&lt;P&gt;and there is no effect. Do You know how to solve that problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 08:44:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variables-in-screen-painter/m-p/2497737#M564224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T08:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: variables in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variables-in-screen-painter/m-p/2497738#M564225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sometimes the F4 button wil not be visible. Just press F4 on your keyboard and see if get the search help.&lt;/P&gt;&lt;P&gt;Also check if the Possible Entries Checkbox checked in the screen attirbutes for that field.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 09:36:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variables-in-screen-painter/m-p/2497738#M564225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T09:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: variables in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variables-in-screen-painter/m-p/2497739#M564226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The steps I take when adding a field like this to a dynpro are:&lt;/P&gt;&lt;P&gt;1. Add the field and call it EKKO-EKORG.&lt;/P&gt;&lt;P&gt;2. When the popup asks you "The new name EKKO-EKORG is a field name from the ABAP Dictionary. / Do you want the screen element to refer to the Dictionary", confirm "Yes", and also "Yes" to "Dictionary field EKKO-EKORG / Do you want to copy field from Dictionary all attributes?"... this will bring through all the attributes such as conversion exits and parameter IDs.&lt;/P&gt;&lt;P&gt;3. Rename the field to the name you have defined in your code... typically in my programs this would be something like "GS_0200-EKORG" as I like to set up a structure for all fields on a screen (as it makes it quick to clear them, and document their use)... see step 5 below.&lt;/P&gt;&lt;P&gt;4. Change the settings on the "Poss. entries" if you want to force the Searchhelp icon to be forced on or off.&lt;/P&gt;&lt;P&gt;5. In the top include for the module pool define the variable e.g. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:
  begin of gs_0200,   "named because g=Global, s=Structure, Dynpro = 0200
    ekorg                  like ekko-ekorg,
    field2                 like something-else, "etc etc
  end of gs_0200.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;6. In your code you can refer to gs_0200-ekorg to pick up the value entered, or the value chosen from the picklist.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 04:48:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variables-in-screen-painter/m-p/2497739#M564226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T04:48:18Z</dc:date>
    </item>
  </channel>
</rss>

