<?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 Screen Programming!! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2110979#M441190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I have an issue, I need to except three values on a screen and process them,&lt;/P&gt;&lt;P&gt;as soon as the user enters the first field (even before OK_CODE ) I need to process the value in that field and control the entry of the next 2 fields.&lt;/P&gt;&lt;P&gt;Can any one tell me how to process the content of the field even before the OK_CODE is execuated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Apr 2007 20:13:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-09T20:13:35Z</dc:date>
    <item>
      <title>Screen Programming!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2110979#M441190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I have an issue, I need to except three values on a screen and process them,&lt;/P&gt;&lt;P&gt;as soon as the user enters the first field (even before OK_CODE ) I need to process the value in that field and control the entry of the next 2 fields.&lt;/P&gt;&lt;P&gt;Can any one tell me how to process the content of the field even before the OK_CODE is execuated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 20:13:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2110979#M441190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T20:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Programming!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2110980#M441191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must fire some event in order for the application to process the screen, meaning user must hit enter or something.  You may be able to tie an FCODE to a listbox field, where when the user selects a value from a listbox, the FCODE is automatically fired.  Would this work for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 20:16:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2110980#M441191</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-09T20:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Programming!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2110981#M441192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, just tested this in Netweaver 2004s,  works good.  IN screen painter, double click on the field in question, in the dialog,  select "ListBox" for the "DropDown" field, then set an fcode in the FCODE field.  Save and activate.  Now when the user selects a value the PAI will be fired automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 20:22:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2110981#M441192</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-09T20:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Programming!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2110982#M441193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It may work, but the next field the user need to enter a value is depandent on the previous field&lt;/P&gt;&lt;P&gt;1) Plant&lt;/P&gt;&lt;P&gt;2) Family&lt;/P&gt;&lt;P&gt;3) Period&lt;/P&gt;&lt;P&gt;Plant will determine the process on value request for the next two fields ( family and period).&lt;/P&gt;&lt;P&gt;I need to process the content of the field "plant" when the process on value request is activated on next two fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 20:23:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2110982#M441193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T20:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Programming!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2110983#M441194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, in that case, you can simply use the DYNP_VALUES_READ function module to read the plant value when you are doing the F4 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 20:25:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2110983#M441194</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-09T20:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Programming!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2110984#M441195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any sample codes for my help~!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 20:29:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2110984#M441195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T20:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Programming!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2110985#M441196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample where it is implemented in a selection screen,  it is pretty much the same when doing it with a dynpro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if you enter a sales document number, and do F4 on the item, only the item numbers that exist for that sales document will be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002 .

parameters: p_vbeln type vbak-vbeln,
            p_posnr type vbap-posnr.

at selection-screen on value-request for p_posnr.


  data: begin of help_item occurs 0,
          posnr type vbap-posnr,
          matnr type vbap-matnr,
          arktx type vbap-arktx,
        end of help_item.

  data: dynfields type table of dynpread with header line.


  dynfields-fieldname = 'P_VBELN'.
  append dynfields.

  call function 'DYNP_VALUES_READ'
       exporting
            dyname               = sy-cprog
            dynumb               = sy-dynnr
            translate_to_upper   = 'X'
       tables
            dynpfields           = dynfields
       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.


  read table dynfields with key fieldname = 'P_VBELN'.

  p_vbeln = dynfields-fieldvalue.


  call function 'CONVERSION_EXIT_ALPHA_INPUT'
       exporting
            input  = p_vbeln
       importing
            output = p_vbeln.

  select posnr matnr arktx into table help_item
                 from vbap
                      where vbeln = p_vbeln.



  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
       exporting
            retfield    = 'POSNR'
            dynprofield = 'P_POSNR'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
       tables
            value_tab   = help_item.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 20:35:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2110985#M441196</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-09T20:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Programming!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2110986#M441197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 20:41:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2110986#M441197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T20:41:25Z</dc:date>
    </item>
  </channel>
</rss>

