<?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: matchcode object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode-object/m-p/1571133#M257785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to check the Export check button in search help(Previously known as matchcode object) for the field which you want to take the corresponding field value from the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards:-&lt;/P&gt;&lt;P&gt;Santosh.D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Sep 2006 08:55:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-21T08:55:31Z</dc:date>
    <item>
      <title>matchcode object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode-object/m-p/1571131#M257783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have to input fields &lt;/P&gt;&lt;P&gt;if i select value for one filed next filed value has to come automatically.&lt;/P&gt;&lt;P&gt;if i change any of the two input fileds changes also reflect.&lt;/P&gt;&lt;P&gt;please send me the sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 08:42:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode-object/m-p/1571131#M257783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T08:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: matchcode object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode-object/m-p/1571132#M257784</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;Point me out if im perceive your case wrongly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would see you have field A and B. The search help for field B is mainly dependent from the value filled for field A. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The search help for field B you can use FM F4IF_INT_TABLE_VALUE_REQUEST to populate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TAB_FIELDS-TABNAME   = 'TQ30T'.&lt;/P&gt;&lt;P&gt;  TAB_FIELDS-FIELDNAME = 'ART'.&lt;/P&gt;&lt;P&gt;  APPEND TAB_FIELDS. CLEAR TAB_FIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TAB_FIELDS-TABNAME   = 'TQ30T'.&lt;/P&gt;&lt;P&gt;  TAB_FIELDS-FIELDNAME = 'KURZTEXT'.&lt;/P&gt;&lt;P&gt;  APPEND TAB_FIELDS. CLEAR TAB_FIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT ART KURZTEXT&lt;/P&gt;&lt;P&gt;        INTO TABLE ITAB_HELP&lt;/P&gt;&lt;P&gt;        FROM TQ30T&lt;/P&gt;&lt;P&gt;        WHERE SPRACHE = 'EN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT ITAB_HELP.&lt;/P&gt;&lt;P&gt;    TAB_VALUETAB = ITAB_HELP-ART.&lt;/P&gt;&lt;P&gt;    APPEND TAB_VALUETAB. CLEAR TAB_VALUETAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TAB_VALUETAB = ITAB_HELP-KURZTEXT.&lt;/P&gt;&lt;P&gt;    APPEND TAB_VALUETAB. CLEAR TAB_VALUETAB.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&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               = 'ART'&lt;/P&gt;&lt;P&gt;      DYNPPROG               = WS_REPID&lt;/P&gt;&lt;P&gt;      DYNPNR                 = '1000'&lt;/P&gt;&lt;P&gt;      DYNPROFIELD            = 'REASONCODE015014'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      VALUE_TAB              = TAB_VALUETAB&lt;/P&gt;&lt;P&gt;      FIELD_TAB              = TAB_FIELDS&lt;/P&gt;&lt;P&gt;      RETURN_TAB             = TAB_RETURNTAB.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 08:51:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode-object/m-p/1571132#M257784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T08:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: matchcode object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode-object/m-p/1571133#M257785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to check the Export check button in search help(Previously known as matchcode object) for the field which you want to take the corresponding field value from the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards:-&lt;/P&gt;&lt;P&gt;Santosh.D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 08:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode-object/m-p/1571133#M257785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T08:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: matchcode object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode-object/m-p/1571134#M257786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;execute the following code and check.&lt;/P&gt;&lt;P&gt;whther you are asking abt this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zb_testing LINE-SIZE 1023.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_bukrs type t001-bukrs,&lt;/P&gt;&lt;P&gt;p_butxt type t001-butxt,&lt;/P&gt;&lt;P&gt;p_ort01 type t001-ort01,&lt;/P&gt;&lt;P&gt;p_land1 type t001-land1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: dynfields type table of dynpread with header line.&lt;/P&gt;&lt;P&gt;data: return type table of ddshretval with header line.&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_FIELD_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;tabname = 'T001'&lt;/P&gt;&lt;P&gt;fieldname = 'BUKRS'&lt;/P&gt;&lt;P&gt;dynpprog = sy-cprog&lt;/P&gt;&lt;P&gt;dynpnr = sy-dynnr&lt;/P&gt;&lt;P&gt;dynprofield = 'P_BUKRS'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;return_tab = return&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;field_not_found = 1&lt;/P&gt;&lt;P&gt;no_help_for_field = 2&lt;/P&gt;&lt;P&gt;inconsistent_help = 3&lt;/P&gt;&lt;P&gt;no_values_found = 4&lt;/P&gt;&lt;P&gt;others = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table return with key fieldname = 'P_BUKRS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add it back to the dynpro.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;dynfields-fieldname = return-retfield.&lt;/P&gt;&lt;P&gt;dynfields-fieldvalue = return-fieldval.&lt;/P&gt;&lt;P&gt;append dynfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the company code from db and add to dynpro&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: xt001 type t001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear xt001.&lt;/P&gt;&lt;P&gt;select single * into xt001&lt;/P&gt;&lt;P&gt;from t001&lt;/P&gt;&lt;P&gt;where bukrs = return-fieldval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dynfields-fieldname = 'P_BUTXT'.&lt;/P&gt;&lt;P&gt;dynfields-fieldvalue = xt001-butxt.&lt;/P&gt;&lt;P&gt;append dynfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dynfields-fieldname = 'P_ORT01'.&lt;/P&gt;&lt;P&gt;dynfields-fieldvalue = xt001-ort01.&lt;/P&gt;&lt;P&gt;append dynfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dynfields-fieldname = 'P_LAND1'.&lt;/P&gt;&lt;P&gt;dynfields-fieldvalue = xt001-land1.&lt;/P&gt;&lt;P&gt;append dynfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update the dynpro values.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;call function 'DYNP_VALUES_UPDATE'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;dyname = sy-cprog&lt;/P&gt;&lt;P&gt;dynumb = sy-dynnr&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;dynpfields = dynfields&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;others = 8.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 09:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matchcode-object/m-p/1571134#M257786</guid>
      <dc:creator>Bema</dc:creator>
      <dc:date>2006-09-21T09:11:27Z</dc:date>
    </item>
  </channel>
</rss>

