<?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: How to do Process on Value? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-process-on-value/m-p/2873711#M674327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rayden,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace 'INPUT FIELD for NAME'  and 'INPUT FIELD for NUMBAR' with your screen fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And make sure that your table fields are correct as i took name for name and number for number. you can replace the fields with exact names from the table &lt;/P&gt;&lt;P&gt;ZSTUD00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Flow logic&lt;/P&gt;&lt;P&gt;PROCESS ON VALUE-REQUEST.&lt;/P&gt;&lt;P&gt;  FIELD 'INPUT FIELD for NAME' MODULE get_valid_name.&lt;/P&gt;&lt;P&gt;  FIELD 'INPUT FIELD for NUMBAR' MODULE get_valid_number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*main program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;internal tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_name occurs 0,&lt;/P&gt;&lt;P&gt;       name like ZSTUD00-name,&lt;/P&gt;&lt;P&gt;      end of it_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_number occurs 0,&lt;/P&gt;&lt;P&gt;       name like ZSTUD00-number,&lt;/P&gt;&lt;P&gt;      end of it_number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; TABLES: t130r.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: BEGIN OF dynpfields OCCURS 0. &lt;/P&gt;&lt;P&gt;         INCLUDE STRUCTURE dynpread. &lt;/P&gt;&lt;P&gt; DATA: END OF   dynpfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module get_valid_name input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select name from ZSTUD00 into table it_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not it_name[] is initial.&lt;/P&gt;&lt;P&gt;sort it_name by name.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;         retfield         = 'NAME'&lt;/P&gt;&lt;P&gt;         DYNPPROG         = sy-repid&lt;/P&gt;&lt;P&gt;         DYNPNR           = sy-dynnr&lt;/P&gt;&lt;P&gt;         DYNPROFIELD      = 'INPUT FIELD FOR NAME'&lt;/P&gt;&lt;P&gt;         VALUE_ORG        = 'S'&lt;/P&gt;&lt;P&gt;     tables&lt;/P&gt;&lt;P&gt;          value_tab        = it_name&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;         PARAMETER_ERROR  = 1&lt;/P&gt;&lt;P&gt;         NO_VALUES_FOUND  = 2&lt;/P&gt;&lt;P&gt;         OTHERS           = 3&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************&lt;/P&gt;&lt;P&gt;module get_valid_number input.&lt;/P&gt;&lt;P&gt;***********************************************&lt;/P&gt;&lt;P&gt;  CLEAR  : dynpfields.&lt;/P&gt;&lt;P&gt;  REFRESH: dynpfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  dynpfields-fieldname = 'INPUT FIELD FOR NAME'.&lt;/P&gt;&lt;P&gt;  APPEND dynpfields.&lt;/P&gt;&lt;P&gt;  clear  dynpfields.&lt;/P&gt;&lt;P&gt;&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     = sy-repid&lt;/P&gt;&lt;P&gt;      dynumb     = sy-dynnr&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dynpfields = dynpfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    READ TABLE dynpfields INDEX 1.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      'INPUT FIELD FOR NAME' = dynpfields-fieldvalue.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select number from ZSTUD00 into table it_number where name = 'INPUT FIELD FOR NAME'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;         retfield         = 'NUMBER'&lt;/P&gt;&lt;P&gt;         DYNPPROG         = sy-repid&lt;/P&gt;&lt;P&gt;         DYNPNR           = sy-dynnr&lt;/P&gt;&lt;P&gt;         DYNPROFIELD      = 'INPUT FIELD FOR NUMBER'&lt;/P&gt;&lt;P&gt;         VALUE_ORG        = 'S'&lt;/P&gt;&lt;P&gt;     tables&lt;/P&gt;&lt;P&gt;          value_tab        = it_number&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;         PARAMETER_ERROR  = 1&lt;/P&gt;&lt;P&gt;         NO_VALUES_FOUND  = 2&lt;/P&gt;&lt;P&gt;         OTHERS           = 3&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2007 11:34:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-27T11:34:40Z</dc:date>
    <item>
      <title>How to do Process on Value?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-process-on-value/m-p/2873702#M674318</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 have 2 inputfield, Name and contact number.&lt;/P&gt;&lt;P&gt;Name have a search help.&lt;/P&gt;&lt;P&gt;Contact number also have a search help but is determine by the name being choose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do it? Any step by step guide? I don't understand when given a chunk of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rayden&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 09:54:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-process-on-value/m-p/2873702#M674318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T09:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Process on Value?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-process-on-value/m-p/2873703#M674319</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 the at selection screen on value request&lt;/P&gt;&lt;P&gt;                      give the field name &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;at selection screen on value request                       &lt;/P&gt;&lt;P&gt;                      select contactno&lt;/P&gt;&lt;P&gt;                                from ztable&lt;/P&gt;&lt;P&gt;                                 into wa_itab-contactno&lt;/P&gt;&lt;P&gt;                                   where name = p_name.....&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; use this coding it may help u      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u click f4 name and contact no will come&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 10:00:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-process-on-value/m-p/2873703#M674319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T10:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Process on Value?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-process-on-value/m-p/2873704#M674320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rayden,&lt;/P&gt;&lt;P&gt;                  Check out this program in SAP DEMO_DYNPRO_F4_HELP_MODULE. hope this will meet ur requirement.&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;Santosh Thorat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 10:02:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-process-on-value/m-p/2873704#M674320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T10:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Process on Value?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-process-on-value/m-p/2873705#M674321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rayden,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me the table name which contains the fields that you are talking about ( Name &amp;amp; Contact number ) So that i can write the code and send.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: t001k.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For Identification Number&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: BEGIN OF it_bwkey OCCURS 0,&lt;/P&gt;&lt;P&gt;        bwkey LIKE t001k-bwkey,&lt;/P&gt;&lt;P&gt;      END OF it_bwkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_bukrs(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For Run date&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: BEGIN OF it_bukrs OCCURS 0,&lt;/P&gt;&lt;P&gt;        bukrs LIKE t001k-bukrs,&lt;/P&gt;&lt;P&gt;      END OF it_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA it_ret LIKE ddshretval OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: BEGIN OF BLOCK main WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN SKIP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:    p_bukrs(4) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS s_bwkey FOR t001k-bwkey NO INTERVALS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK main.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation Section&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT DISTINCT bukrs FROM t001k INTO TABLE it_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      retfield        = 'BUKRS'&lt;/P&gt;&lt;P&gt;      dynpprog        = sy-repid&lt;/P&gt;&lt;P&gt;      dynpnr          = sy-dynnr&lt;/P&gt;&lt;P&gt;      dynprofield     = 'P_BUKRS'&lt;/P&gt;&lt;P&gt;      value_org       = 'S'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab       = it_bukrs&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      parameter_error = 1&lt;/P&gt;&lt;P&gt;      no_values_found = 2&lt;/P&gt;&lt;P&gt;      OTHERS          = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_bwkey-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TABLES: t130r.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: BEGIN OF dynpfields OCCURS 0. "Hilfsstruktur zum auslesen des&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE dynpread. "Feldwertes vom Dynpro bei &amp;gt;F4&amp;lt;&lt;/P&gt;&lt;P&gt;  DATA: END OF   dynpfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : sy_repid LIKE sy-repid,&lt;/P&gt;&lt;P&gt;         sy_dynnr LIKE sy-dynnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR dynpfields.&lt;/P&gt;&lt;P&gt;  REFRESH dynpfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  dynpfields-fieldname = 'P_BUKRS'.&lt;/P&gt;&lt;P&gt;  APPEND dynpfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  Lesen des akt. Wertes von Dynpro&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  sy_repid = sy-repid.&lt;/P&gt;&lt;P&gt;  sy_dynnr = sy-dynnr.&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     = sy_repid&lt;/P&gt;&lt;P&gt;      dynumb     = sy_dynnr&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dynpfields = dynpfields&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS     = 01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    READ TABLE dynpfields WITH KEY fieldname = 'P_BUKRS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      v_bukrs = dynpfields-fieldvalue.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT bwkey FROM t001k&lt;/P&gt;&lt;P&gt;  INTO TABLE it_bwkey&lt;/P&gt;&lt;P&gt;  WHERE bukrs = v_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DELETE ADJACENT DUPLICATES FROM it_bwkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      retfield        = 'BWKEY'&lt;/P&gt;&lt;P&gt;      dynpprog        = sy-repid&lt;/P&gt;&lt;P&gt;      dynpnr          = sy-dynnr&lt;/P&gt;&lt;P&gt;      dynprofield     = 'S_BWKEY'&lt;/P&gt;&lt;P&gt;      value_org       = 'S'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab       = it_bwkey&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      parameter_error = 1&lt;/P&gt;&lt;P&gt;      no_values_found = 2&lt;/P&gt;&lt;P&gt;      OTHERS          = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Velangini Showry Maria Kumar Bandanadham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 10:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-process-on-value/m-p/2873705#M674321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T10:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Process on Value?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-process-on-value/m-p/2873706#M674322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can call dialog modules in the POV event using the event keyword PROCESS ON VALUE-REQUEST.&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 &amp;lt;f&amp;gt; MODULE &amp;lt;mod&amp;gt;.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the PROCESS ON VALUE-REQUEST statement, you can only use the MODULE statement together with the FIELD statement. When the user chooses F4 for a field &amp;lt;f&amp;gt;, the system calls the module &amp;lt;mod&amp;gt; belonging to the FIELD &amp;lt;f&amp;gt; statement. If there is more than one FIELD statement for the same field &amp;lt;f&amp;gt;, only the first is executed. The module &amp;lt;mod&amp;gt; is defined in the ABAP program like a normal PAI module. However, the contents of the screen field &amp;lt;f&amp;gt; are not available, since it is not transported by the FIELD statement during the PROCESS ON HELP-REQUEST event. You can now program your own value lists in the module. However, this procedure is only recommended if it really is not possible to use a search help. Defining search helps is much easier than PROCESS ON VALUE-REQUEST, since the system takes over some of the standard operations, such as getting field contents from the screen. It also ensures that the F4 help has a uniform look and feel throughout the system. Furthermore, it means that you do not have to reassign input help to fields on each screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 10:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-process-on-value/m-p/2873706#M674322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T10:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Process on Value?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-process-on-value/m-p/2873707#M674323</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;REPORT ZV_MODULE .&lt;/P&gt;&lt;P&gt;TABLES: MAKT.&lt;/P&gt;&lt;P&gt;CALL SCREEN 100.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0100 INPUT.&lt;/P&gt;&lt;P&gt;  IF NOT MAKT-MATNR IS INITIAL.&lt;/P&gt;&lt;P&gt; SELECT SINGLE MAKTX FROM MAKT INTO MAKT-MAKTX WHERE MATNR = MAKT-MATNR&lt;/P&gt;&lt;P&gt;                                                 AND SPRAS = SY-LANGU  .&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE STATUS_0100 OUTPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET PF-STATUS 'xxxxxxxx'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET TITLEBAR 'xxx'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF NOT MAKT-MATNR IS INITIAL.&lt;/P&gt;&lt;P&gt; SELECT SINGLE MAKTX FROM MAKT INTO MAKT-MAKTX WHERE MATNR = MAKT-MATNR&lt;/P&gt;&lt;P&gt;                                                 AND SPRAS = SY-LANGU  .&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if usefull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 10:42:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-process-on-value/m-p/2873707#M674323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T10:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Process on Value?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-process-on-value/m-p/2873708#M674324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santosh Thorat ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try that.. but having error generate my screen 9000. By the way, i not using selection screen. i using dialog screen for my ABAP Program. how to do that in dialog screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rayden&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 10:50:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-process-on-value/m-p/2873708#M674324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T10:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Process on Value?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-process-on-value/m-p/2873709#M674325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Velangini Showry Maria Kumar Bandanadham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Table is ZSTUD00. I doing on dialog scrren and not selection screen. Both my Name and contact field is "Get From Dictionary" using Graphical Screen Painter. So do i go about it? Is there anyway that i can do with less coding?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rayden&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 10:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-process-on-value/m-p/2873709#M674325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T10:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Process on Value?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-process-on-value/m-p/2873710#M674326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rayden,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eventhough it is dialog program you have to use the same logic which i gave.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of parameter you can give the screen-field. Try replace my code with your table and fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 11:00:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-process-on-value/m-p/2873710#M674326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T11:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Process on Value?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-process-on-value/m-p/2873711#M674327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rayden,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace 'INPUT FIELD for NAME'  and 'INPUT FIELD for NUMBAR' with your screen fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And make sure that your table fields are correct as i took name for name and number for number. you can replace the fields with exact names from the table &lt;/P&gt;&lt;P&gt;ZSTUD00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Flow logic&lt;/P&gt;&lt;P&gt;PROCESS ON VALUE-REQUEST.&lt;/P&gt;&lt;P&gt;  FIELD 'INPUT FIELD for NAME' MODULE get_valid_name.&lt;/P&gt;&lt;P&gt;  FIELD 'INPUT FIELD for NUMBAR' MODULE get_valid_number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*main program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;internal tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_name occurs 0,&lt;/P&gt;&lt;P&gt;       name like ZSTUD00-name,&lt;/P&gt;&lt;P&gt;      end of it_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_number occurs 0,&lt;/P&gt;&lt;P&gt;       name like ZSTUD00-number,&lt;/P&gt;&lt;P&gt;      end of it_number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; TABLES: t130r.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: BEGIN OF dynpfields OCCURS 0. &lt;/P&gt;&lt;P&gt;         INCLUDE STRUCTURE dynpread. &lt;/P&gt;&lt;P&gt; DATA: END OF   dynpfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module get_valid_name input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select name from ZSTUD00 into table it_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not it_name[] is initial.&lt;/P&gt;&lt;P&gt;sort it_name by name.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;         retfield         = 'NAME'&lt;/P&gt;&lt;P&gt;         DYNPPROG         = sy-repid&lt;/P&gt;&lt;P&gt;         DYNPNR           = sy-dynnr&lt;/P&gt;&lt;P&gt;         DYNPROFIELD      = 'INPUT FIELD FOR NAME'&lt;/P&gt;&lt;P&gt;         VALUE_ORG        = 'S'&lt;/P&gt;&lt;P&gt;     tables&lt;/P&gt;&lt;P&gt;          value_tab        = it_name&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;         PARAMETER_ERROR  = 1&lt;/P&gt;&lt;P&gt;         NO_VALUES_FOUND  = 2&lt;/P&gt;&lt;P&gt;         OTHERS           = 3&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************&lt;/P&gt;&lt;P&gt;module get_valid_number input.&lt;/P&gt;&lt;P&gt;***********************************************&lt;/P&gt;&lt;P&gt;  CLEAR  : dynpfields.&lt;/P&gt;&lt;P&gt;  REFRESH: dynpfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  dynpfields-fieldname = 'INPUT FIELD FOR NAME'.&lt;/P&gt;&lt;P&gt;  APPEND dynpfields.&lt;/P&gt;&lt;P&gt;  clear  dynpfields.&lt;/P&gt;&lt;P&gt;&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     = sy-repid&lt;/P&gt;&lt;P&gt;      dynumb     = sy-dynnr&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dynpfields = dynpfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    READ TABLE dynpfields INDEX 1.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      'INPUT FIELD FOR NAME' = dynpfields-fieldvalue.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select number from ZSTUD00 into table it_number where name = 'INPUT FIELD FOR NAME'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;         retfield         = 'NUMBER'&lt;/P&gt;&lt;P&gt;         DYNPPROG         = sy-repid&lt;/P&gt;&lt;P&gt;         DYNPNR           = sy-dynnr&lt;/P&gt;&lt;P&gt;         DYNPROFIELD      = 'INPUT FIELD FOR NUMBER'&lt;/P&gt;&lt;P&gt;         VALUE_ORG        = 'S'&lt;/P&gt;&lt;P&gt;     tables&lt;/P&gt;&lt;P&gt;          value_tab        = it_number&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;         PARAMETER_ERROR  = 1&lt;/P&gt;&lt;P&gt;         NO_VALUES_FOUND  = 2&lt;/P&gt;&lt;P&gt;         OTHERS           = 3&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 11:34:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-process-on-value/m-p/2873711#M674327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T11:34:40Z</dc:date>
    </item>
  </channel>
</rss>

