<?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: Need help with screen programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-screen-programming/m-p/2378637#M527692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should write it in the POV Process on Value Request event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;process on value-request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  field ZES_PO_ITEM-ST_PRIOK module GET_PRIORITY_F4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the module make use of the FM: DYNP_VALUES_READ. Its a good practice to use the FM. this refreshes you screen filed values.&lt;/P&gt;&lt;P&gt;now based on this you can get the values in the search help by using the &lt;/P&gt;&lt;P&gt;FM: F4IF_INT_TABLE_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not you can create a new search help in SE11 and attach it to be table itself at the field level in case of customised tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2007 03:05:44 GMT</pubDate>
    <dc:creator>gopi_narendra</dc:creator>
    <dc:date>2007-06-18T03:05:44Z</dc:date>
    <item>
      <title>Need help with screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-screen-programming/m-p/2378635#M527690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my screen, I have 2 fields. The first field, I would like to enter some data. The second field, I would like to attach a Search Help depending on the data entered on the first field. How can I do that? Currently, when I try to debug, I found out that when I run the logic to generat the search help, the first field value is not captured, Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 02:54:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-screen-programming/m-p/2378635#M527690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T02:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-screen-programming/m-p/2378636#M527691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do not write the code under process on value-request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just write the code under chain endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI&lt;/P&gt;&lt;P&gt;chain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field fieldname module modname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module modname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here you need to write the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can see the first value,pass this value to search help function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 02:58:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-screen-programming/m-p/2378636#M527691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T02:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-screen-programming/m-p/2378637#M527692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should write it in the POV Process on Value Request event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;process on value-request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  field ZES_PO_ITEM-ST_PRIOK module GET_PRIORITY_F4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the module make use of the FM: DYNP_VALUES_READ. Its a good practice to use the FM. this refreshes you screen filed values.&lt;/P&gt;&lt;P&gt;now based on this you can get the values in the search help by using the &lt;/P&gt;&lt;P&gt;FM: F4IF_INT_TABLE_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not you can create a new search help in SE11 and attach it to be table itself at the field level in case of customised tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 03:05:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-screen-programming/m-p/2378637#M527692</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-06-18T03:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-screen-programming/m-p/2378638#M527693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I_FIELDS-FIELDNAME = D_EBELN.&lt;/P&gt;&lt;P&gt;  APPEND I_FIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      DYNAME                         = 'ZTEST'&lt;/P&gt;&lt;P&gt;      DYNUMB                         = '0100'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      DYNPFIELDS                     = I_FIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the field's value (D_EBELN) is still not acquired in the internal table I_FIELDS although the return code is 0. Please advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 03:30:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-screen-programming/m-p/2378638#M527693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T03:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-screen-programming/m-p/2378639#M527694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I_FIELDS-FIELDNAME = D_EBELN.&lt;/P&gt;&lt;P&gt;APPEND I_FIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DYNAME = 'ZTEST'&lt;/P&gt;&lt;P&gt;DYNUMB = '0100'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DYNPFIELDS = I_FIELDS.&lt;/P&gt;&lt;P&gt;the i_fields shoudl contain only the screen field names but not any values. It should carry only the &amp;lt;b&amp;gt;SCREEN FIELD NAMES(NOT ANY VALUES) GIVEN IN QUOTES&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See my similar code . the declarations are as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : IT_DYNPREAD type standard table of DYNPREAD initial size 0,
       IS_DYNPREAD type DYNPREAD.
data : IT_RETURN type standard table of DDSHRETVAL initial size 0,
       IS_RETURN type DDSHRETVAL.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  GET_PRIORITY_F4  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module GET_PRIORITY_F4 input.

  clear : IS_DYNPREAD, T350, T356_T.
  refresh : IT_DYNPREAD, IT_PRIOK.

  IS_DYNPREAD-FIELDNAME = 'ZES_PO_ITEM-ST_AUART'.
  append IS_DYNPREAD to IT_DYNPREAD.

  call function 'DYNP_VALUES_READ'
    exporting
      DYNAME     = 'ZESR0050'
      DYNUMB     = '0200'
    tables
      DYNPFIELDS = IT_DYNPREAD.

  read table IT_DYNPREAD into IS_DYNPREAD with key FIELDNAME = 'ZES_PO_ITEM-ST_AUART'.
  if SY-SUBRC = 0.
    ZES_PO_ITEM-ST_AUART = IS_DYNPREAD-FIELDVALUE.

    if not ZES_PO_ITEM-ST_AUART is initial.
      select single * from T350 where AUART eq ZES_PO_ITEM-ST_AUART.
      select B~PRIOK B~PRIOKX into table IT_PRIOK
      from T356_T as B
      inner join T356A as A
      on A~ARTPR = B~ARTPR
      where A~ARTPR eq T350-ARTPR.
      if SY-SUBRC = 0.
        call function 'F4IF_INT_TABLE_VALUE_REQUEST'
          exporting
            RETFIELD        = 'ZES_PO_ITEM-ST_ILART'
            WINDOW_TITLE    = 'Priority'
            VALUE_ORG       = 'S'
          tables
            VALUE_TAB       = IT_PRIOK
            RETURN_TAB      = IT_RETURN
          exceptions
            PARAMETER_ERROR = 1
            NO_VALUES_FOUND = 2
            others          = 3.
        if SY-SUBRC &amp;lt;&amp;gt; 0.
        endif.
        read table IT_RETURN into IS_RETURN with key FIELDNAME = 'F0002'.
        if SY-SUBRC = 0.
          read table IT_PRIOK into IS_PRIOK with key ARTPRX = IS_RETURN-FIELDVAL.
          if SY-SUBRC = 0.
            IS_POITEM_ENTRY-ST_PRIOK = IS_PRIOK-PRIOK.
            ZES_PO_ITEM-ST_PRIOK     = IS_PRIOK-PRIOK.
            T356_T-PRIOKX            = IS_PRIOK-ARTPRX.
            if not ZES_PO_ITEM-ST_PRIOK is initial.
              clear : T356_T.
              select single * from T356_T
                              where SPRAS = SY-LANGU
                                and PRIOK = ZES_PO_ITEM-ST_PRIOK.
            endif.
            modify IT_POITEM_ENTRY from IS_POITEM_ENTRY index IND
                                                        transporting ST_PRIOK.
            clear : IS_RETURN.
          endif.
        endif.
      else.
        message S138(ZSM) with 'No Input values found'.
      endif.
    endif.
    clear : IS_DYNPREAD.
  endif.

endmodule.                 " GET_PRIORITY_F4  INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 03:39:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-screen-programming/m-p/2378639#M527694</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-06-18T03:39:57Z</dc:date>
    </item>
  </channel>
</rss>

