<?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: creating serach help programitically. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-serach-help-programitically/m-p/4845500#M1133288</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;try like this...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 PERFORM read_dynprofield USING 'YSAFE_STK_INS-WERKS'
                               CHANGING ysafe_stk_ins-werks.

    SELECT  DISTINCT
             a~matnr
             b~maktx
             INTO CORRESPONDING FIELDS OF TABLE it_help1
             FROM ysafe_stk_ins AS a
             INNER JOIN makt AS b
             ON a~matnr = b~matnr
             WHERE a~werks EQ ysafe_stk_ins-werks.

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
        retfield        = 'MATNR'
        dynpprog        = sy-repid
        dynpnr          = sy-dynnr
        dynprofield     = 'YSAFE_STK_INS-WERKS'
        value_org       = 'S'
      TABLES
        value_tab       = it_help1
      EXCEPTIONS
        parameter_error = 1
        no_values_found = 2
        OTHERS          = 3.
    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.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  READ_DYNPROFIELD
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_FIELDNAME  text
*      &amp;lt;--P_VALUE  text
*----------------------------------------------------------------------*
FORM read_dynprofield  USING    p_fieldname
                       CHANGING p_value.

  DATA it_dynfield4 TYPE STANDARD TABLE OF dynpread WITH HEADER LINE.
  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname               = sy-repid
      dynumb               = sy-dynnr
      request              = 'A'
      translate_to_upper   = 'X'
    TABLES
      dynpfields           = it_dynfield4
    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 it_dynfield4 WITH KEY fieldname = p_fieldname.

  p_value = it_dynfield4-fieldvalue.

ENDFORM.                    " READ_DYNPROFIELD
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arunima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Nov 2008 10:51:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-20T10:51:40Z</dc:date>
    <item>
      <title>creating serach help programitically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-serach-help-programitically/m-p/4845497#M1133285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abapers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to create a serach help programitically say by using FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F4IF_INT_TABLE_VALUE_REQUEST in a se38 program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then attaching it to a  field of a custom z table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 10:44:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-serach-help-programitically/m-p/4845497#M1133285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T10:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: creating serach help programitically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-serach-help-programitically/m-p/4845498#M1133286</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;Yes aditya It can be done By BDC,,,, Just do the recording of creating the search Help,, and then create it,,,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 10:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-serach-help-programitically/m-p/4845498#M1133286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T10:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: creating serach help programitically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-serach-help-programitically/m-p/4845499#M1133287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can call&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DYNP_VALUES_READ' to collect the tb_dynpfields from dynpfields under the tables section of FM.This way you read dynamically the value of one field say wf_field2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using tb_dynpfields-fieldvalue you can fetch the required values from the data base that u wanna use in the search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then call the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F4IF_INT_TABLE_VALUE_REQUEST, using those values..Your search help will come bases on the entries of the other field wf_field2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will help u out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rudra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 10:48:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-serach-help-programitically/m-p/4845499#M1133287</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2008-11-20T10:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: creating serach help programitically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-serach-help-programitically/m-p/4845500#M1133288</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;try like this...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 PERFORM read_dynprofield USING 'YSAFE_STK_INS-WERKS'
                               CHANGING ysafe_stk_ins-werks.

    SELECT  DISTINCT
             a~matnr
             b~maktx
             INTO CORRESPONDING FIELDS OF TABLE it_help1
             FROM ysafe_stk_ins AS a
             INNER JOIN makt AS b
             ON a~matnr = b~matnr
             WHERE a~werks EQ ysafe_stk_ins-werks.

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
        retfield        = 'MATNR'
        dynpprog        = sy-repid
        dynpnr          = sy-dynnr
        dynprofield     = 'YSAFE_STK_INS-WERKS'
        value_org       = 'S'
      TABLES
        value_tab       = it_help1
      EXCEPTIONS
        parameter_error = 1
        no_values_found = 2
        OTHERS          = 3.
    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.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  READ_DYNPROFIELD
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_FIELDNAME  text
*      &amp;lt;--P_VALUE  text
*----------------------------------------------------------------------*
FORM read_dynprofield  USING    p_fieldname
                       CHANGING p_value.

  DATA it_dynfield4 TYPE STANDARD TABLE OF dynpread WITH HEADER LINE.
  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname               = sy-repid
      dynumb               = sy-dynnr
      request              = 'A'
      translate_to_upper   = 'X'
    TABLES
      dynpfields           = it_dynfield4
    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 it_dynfield4 WITH KEY fieldname = p_fieldname.

  p_value = it_dynfield4-fieldvalue.

ENDFORM.                    " READ_DYNPROFIELD
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arunima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 10:51:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-serach-help-programitically/m-p/4845500#M1133288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T10:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: creating serach help programitically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-serach-help-programitically/m-p/4845501#M1133289</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;also you can use the extension matchcode object for parameters and select-options for creating search helps for the particular screen fields( if you are talking about creating about selection-screen fields)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manjista.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 11:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-serach-help-programitically/m-p/4845501#M1133289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T11:02:20Z</dc:date>
    </item>
  </channel>
</rss>

