<?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 Small query on module pool programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-query-on-module-pool-programming/m-p/2638895#M607405</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;I am creating a module pool program. It has one scrren. I have declared a structure in TOP include. I have added one i/o fields in the screen which is not taken from any DB table or any standard structure. let us say it is new_str-abc, where new_str is a structure I have defined in the top include. Now when I enter a value in this fields in the screen, I want to catch this value in PAI of the screen and use this in further process. How to do this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2007 05:25:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-03T05:25:49Z</dc:date>
    <item>
      <title>Small query on module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-query-on-module-pool-programming/m-p/2638895#M607405</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;I am creating a module pool program. It has one scrren. I have declared a structure in TOP include. I have added one i/o fields in the screen which is not taken from any DB table or any standard structure. let us say it is new_str-abc, where new_str is a structure I have defined in the top include. Now when I enter a value in this fields in the screen, I want to catch this value in PAI of the screen and use this in further process. How to do this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 05:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-query-on-module-pool-programming/m-p/2638895#M607405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T05:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Small query on module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-query-on-module-pool-programming/m-p/2638896#M607406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Data transfer between screen field and Program data happens automatically if the screen field name and the data variable name are same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have created in your top inclide liethis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: new_str type &amp;lt;some type&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And gave your screen field name as new_str-abc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the value will automatically get transfeered from screen field to your program field.&lt;/P&gt;&lt;P&gt;SO check in PAI if you have that value in the strcutre declared in the top include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check in DEBUG mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can also do is USE&lt;/P&gt;&lt;P&gt;TABLES: structure_type_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then you can get the fields from DDIC using this strcutre type.&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>Fri, 03 Aug 2007 05:28:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-query-on-module-pool-programming/m-p/2638896#M607406</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-08-03T05:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Small query on module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-query-on-module-pool-programming/m-p/2638897#M607407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sankar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data declaration alone is enough. &lt;/P&gt;&lt;P&gt;Check if the data type you have declared in your program for the field matches or is compatible.&lt;/P&gt;&lt;P&gt;_______________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the statement FIELD is used in the event block at point of time PAI, then the statement controls the data transport for the specified dynpro field. &amp;lt;i&amp;gt;By default, all dynpro fields are transported to the ABAP program at the event PAI and before the processing of the corresponding event block. If you use one or multiple FIELD-statements, only such dynpro fields are transported directly at the event PAI, which are not listed after a FIELD-statement.&amp;lt;/i&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The transport of the content of a dynpro field dynp_field specified after FIELD to the homonymous global ABAP data object takes place at execution of the corresponding FIELD-statement. If a dynpro field is listed in more than one FIELD-statement, its value is transfered when the first corresponding FIELD-statement is executed.&lt;/P&gt;&lt;P&gt;________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But try the following too..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To transport field values from screen to program the following command helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FIELD dynp_field { [ MODULE mod [] ]&lt;/P&gt;&lt;P&gt;| [ [MODULE mod] WITH hlp ] }.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FIELD statement of the screen flow logic controls the data transport from the dynpro to the ABAP program during the event PAI. It can be combined with the MODULE statement to conditionally call dialog modules, to allow you to check any input, and to allow self-programmed field and input helps at the events POH and POV. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To transfer a group of fields :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CHAIN. &lt;/P&gt;&lt;P&gt;    FIELD input3. &lt;/P&gt;&lt;P&gt;    FIELD input4. &lt;/P&gt;&lt;P&gt;    FIELD input5. &lt;/P&gt;&lt;P&gt;    MODULE check_chain ON CHAIN-REQUEST. &lt;/P&gt;&lt;P&gt;ENDCHAIN.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the following documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbaa4735c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbaa4735c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_40b/helpdata/en/9f/dbaa5435c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_40b/helpdata/en/9f/dbaa5435c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;** Reward Points if useful **&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Naveenan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Naveenan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 05:41:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-query-on-module-pool-programming/m-p/2638897#M607407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T05:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Small query on module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-query-on-module-pool-programming/m-p/2638898#M607408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sankar , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Its simple , in module pool programming the screen fields stores values and you can directly use them in the PAI n PBO ..&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;Ranjita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 05:42:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-query-on-module-pool-programming/m-p/2638898#M607408</guid>
      <dc:creator>former_member196299</dc:creator>
      <dc:date>2007-08-03T05:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Small query on module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-query-on-module-pool-programming/m-p/2638899#M607409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shankar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data transfer between Screen fields and ABAP fields happens automatically if the same names are used. The types of these shouls also be same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this,&lt;/P&gt;&lt;P&gt;1. Create a field of the required type in your TOP include.&lt;/P&gt;&lt;P&gt;2. Use Dictianary/Program fileds window' in the screen editor and give the field name defined in step 1 and press the 'Get From Program' button. This will create a screen field with the same definition done in step 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data will now automatically transfer and you need not do any extra coding. Use of this field in PAI will directly fetch you the value the user entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 06:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-query-on-module-pool-programming/m-p/2638899#M607409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T06:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Small query on module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-query-on-module-pool-programming/m-p/2638900#M607410</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;The easiest way to do is to define your field on the screens directly from the program using menu painter....&lt;/P&gt;&lt;P&gt;go to the program ...double click on the screen-&amp;gt; layout-&amp;gt;On the top enter your field name"new_str-abc" or structure name"new_str" and click-&amp;gt; get from program-&amp;gt;choose fields-&amp;gt;paste on screen....This will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all useful answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 13:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-query-on-module-pool-programming/m-p/2638900#M607410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T13:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Small query on module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-query-on-module-pool-programming/m-p/2638901#M607411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your structure is new_str&lt;/P&gt;&lt;P&gt;and filed is abc in that structure.&lt;/P&gt;&lt;P&gt;you want to use the value enterde here at PAI&lt;/P&gt;&lt;P&gt;then simply declare a field of same type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: new_field type new_str-abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in pai of the screen&lt;/P&gt;&lt;P&gt;use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;new_field = new_str-abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 10:21:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-query-on-module-pool-programming/m-p/2638901#M607411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T10:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Small query on module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-query-on-module-pool-programming/m-p/2638902#M607412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To put it simply, if we want to capture values from screen in the program ( either PAI or PBO ) we have to declare a field with the same name in the program too as you declared on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say you have declared a field with name "name1 " on the screen then you have to declare a variable with similar name in the program. In that way whatever value you enter in the field on the screen is automatically put in this field in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That way you can use the value for furthur statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 18:43:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-query-on-module-pool-programming/m-p/2638902#M607412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T18:43:16Z</dc:date>
    </item>
  </channel>
</rss>

