<?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: 'F4IF_INT_TABLE_VALUE_REQUEST' process on value-request in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request-process-on-value-request/m-p/5431353#M1246097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi William,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is very simple you need to call another FM 'DYNP_VALUES_READ' before calling  'F4IF_INT_TABLE_VALUE_REQUEST' to actualy read the value selected for field A and pass this selected value to field B in this second FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code snippet given above help you more how to use above 2 FM module and what all to pass as aruments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope now you will able to solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Mar 2009 05:06:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-23T05:06:12Z</dc:date>
    <item>
      <title>'F4IF_INT_TABLE_VALUE_REQUEST' process on value-request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request-process-on-value-request/m-p/5431351#M1246095</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;&lt;/P&gt;&lt;P&gt;I' ve some problem during search help using 'F4IF_INT_TABLE_VALUE_REQUEST  on my screen.&lt;/P&gt;&lt;P&gt;let's say that i have 2 field , A and B at a screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I have search help for field B, that is using A as a filter for the search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is when i replace the value on field A at the screen, the field value on the screen is not directly pass to the one on the program, and then the search help for B shows a wrong help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any function that i can call to pass the value on screen, into the field A, without first passing by PAI section?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks &amp;amp; Rgds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 02:37:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request-process-on-value-request/m-p/5431351#M1246095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-23T02:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: 'F4IF_INT_TABLE_VALUE_REQUEST' process on value-request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request-process-on-value-request/m-p/5431352#M1246096</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;Refer this demo code to get a S.help for &lt;STRONG&gt;BELNR&lt;/STRONG&gt; based on user input for &lt;STRONG&gt;BUKRS&lt;/STRONG&gt;:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS : p_belnr TYPE belnr,
             p_bukrs TYPE bukrs.
 
DATA : BEGIN OF itab OCCURS 0,
         belnr TYPE belnr,
       END OF itab.
 
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_belnr.
 
  PERFORM f4_belnr_help USING p_belnr.
 
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  f4_belnr_help
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_BELNR text
*----------------------------------------------------------------------*
FORM f4_belnr_help USING p_belnr.
 
  DATA : itab TYPE STANDARD TABLE OF it WITH HEADER LINE,
         tb_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE,
         v_bukrs TYPE bukrs.
 
  CLEAR:   tb_dynpfields.
  REFRESH: tb_dynpfields.
 
  MOVE 'P_BUKRS' TO tb_dynpfields-fieldname.
  APPEND tb_dynpfields.
 
  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname                               = 'Z_F4' "program name
      dynumb                               = '1000' "screen number
    TABLES
      dynpfields                           = tb_dynpfields
    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.
 
  IF sy-subrc  0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
 
  READ TABLE tb_dynpfields INDEX 1.
  IF sy-subrc EQ 0.
    v_bukrs = tb_dynpfields-fieldvalue.
  ENDIF.
 
  SELECT belnr from &amp;lt;db_table&amp;gt; INTO TABLE itab WHERE bukrs = v_bukrs.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield               = 'BELNR' "internal table field
      dynpprog               = 'Z_F4' "program name
      dynpnr                 = '1000' "screen number
      dynprofield            = 'P_BELNR' "screen field name
      value_org              = 'S'
    TABLES
      value_tab              = itab "internal table
    EXCEPTIONS
      PARAMETER_ERROR        = 1
      NO_VALUES_FOUND        = 2
      OTHERS                 = 3.
 
  IF sy-subrc  0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
 
ENDFORM.                    " f4_belnr_help
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 03:37:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request-process-on-value-request/m-p/5431352#M1246096</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-23T03:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: 'F4IF_INT_TABLE_VALUE_REQUEST' process on value-request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request-process-on-value-request/m-p/5431353#M1246097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi William,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is very simple you need to call another FM 'DYNP_VALUES_READ' before calling  'F4IF_INT_TABLE_VALUE_REQUEST' to actualy read the value selected for field A and pass this selected value to field B in this second FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code snippet given above help you more how to use above 2 FM module and what all to pass as aruments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope now you will able to solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 05:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request-process-on-value-request/m-p/5431353#M1246097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-23T05:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: 'F4IF_INT_TABLE_VALUE_REQUEST' process on value-request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request-process-on-value-request/m-p/5431354#M1246098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EXAMPLE:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE module_help INPUT.
  DATA: w_progname LIKE sy-repid,
  w_scr_num LIKE sy-dynnr .
  DATA: return_values LIKE ddshretval OCCURS 0 WITH HEADER LINE.
  DATA: itab_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE,
  t_dynpfields LIKE dynpread.
  DATA: t_dyname LIKE d020s-prog,
  t_dynumb LIKE d020s-dnum.
  DATA : fd_name LIKE help_info-dynprofld.
  DATA: BEGIN OF int_f4 OCCURS 0,
         kunnr TYPE kna1-kunnr,
         name1 TYPE kna1-name1,
         land1 TYPE kna1-land1,
         regio TYPE kna1-regio,
         adrnr TYPE kna1-adrnr,
        END OF int_f4.

****GETTING RECORDS IN THE INTERNAL TABLE FOR F4 DISPLAY

  SELECT kunnr name1 land1 regio adrnr
   INTO  TABLE int_f4
   FROM kna1
   UP TO 10 ROWS.

  CLEAR int_f4.
****function module to get pop-up window of f4.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
            retfield        = 'KUNNR'
            dynpprog        = w_progname
            dynpnr          = w_scr_num
            dynprofield     = 'TB_WA-KUNNR'
            value_org       = 'S'
       TABLES
            value_tab       = int_f4
            return_tab      = return_values
       EXCEPTIONS
            parameter_error = 1
            no_values_found = 2
            OTHERS          = 3.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE s000(zsn) WITH 'could not find the  values'.
*    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ELSE .
    kunnr = return_values-fieldval.
  ENDIF.

  REFRESH itab_dynpfields.
  CLEAR: itab_dynpfields.
  t_dynpfields-fieldname = 'TB_WA-KUNNR'.
  APPEND t_dynpfields TO itab_dynpfields.
  t_dynumb = sy-dynnr.
  t_dyname = sy-repid.

* This function module must have the values added to
* the internal table that you need t oread.
  CALL FUNCTION 'DYNP_VALUES_READ'
       EXPORTING
            dyname               = t_dyname
            dynumb               = t_dynumb
       TABLES
            dynpfields           = itab_dynpfields
       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.

  IF sy-subrc &amp;lt;&amp;gt; 0.
*    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  break developer.
  LOOP AT itab_dynpfields.
    CASE itab_dynpfields-fieldname.
      WHEN 'TB_WA-KUNNR'.
        itab_dynpfields-fieldvalue = kunnr.
        MODIFY itab_dynpfields.
    ENDCASE.
  ENDLOOP.
  CALL FUNCTION 'DYNP_VALUES_UPDATE'
       EXPORTING
            dyname               = t_dyname
            dynumb               = t_dynumb
       TABLES
            dynpfields           = itab_dynpfields
       EXCEPTIONS
            invalid_abapworkarea = 1
            invalid_dynprofield  = 2
            invalid_dynproname   = 3
            invalid_dynpronummer = 4
            invalid_request      = 5
            no_fielddescription  = 6
            undefind_error       = 7
            OTHERS               = 8.

  IF sy-subrc &amp;lt;&amp;gt; 0.
*    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

  REFRESH int_f4.
  CLEAR int_f4.
ENDMODULE. " SOURCE_HELP INPUT

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 05:10:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request-process-on-value-request/m-p/5431354#M1246098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-23T05:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: 'F4IF_INT_TABLE_VALUE_REQUEST' process on value-request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request-process-on-value-request/m-p/5431355#M1246099</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;This function module it self fatches value. I am sending some code in my object. check with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select BSTKD KUNNR KUNNR1 ZZBIRFLAG VBELN into table LT_HELP from T903740.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF P-BSTKD = 'S-BSTKD-LOW'.&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;&lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              Retfield = 'BSTKD'&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_BSTKD_LOW'&lt;/P&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;              Value-Tab = LT_Help&lt;/P&gt;&lt;P&gt;               Return-Tab = Lt_return&lt;/P&gt;&lt;P&gt;Exceptions.&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;    Clear  Cv_BSTKD.&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read table LT_Return Index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cv_BSTKD = LT_Return-Fieldval&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Md.MahaboobKhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 05:29:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request-process-on-value-request/m-p/5431355#M1246099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-23T05:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: 'F4IF_INT_TABLE_VALUE_REQUEST' process on value-request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request-process-on-value-request/m-p/5431356#M1246100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Tarun Gambhir , Pooja Gupta , Krupa Jani, Md.MahaboobKhan.&lt;/P&gt;&lt;P&gt;Thanks for the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It solved my problem.&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;&lt;/P&gt;&lt;P&gt;WP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 04:42:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4if-int-table-value-request-process-on-value-request/m-p/5431356#M1246100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T04:42:00Z</dc:date>
    </item>
  </channel>
</rss>

