<?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: Get field when opening a matchcode inside of a matchcode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-field-when-opening-a-matchcode-inside-of-a-matchcode/m-p/4943716#M1152993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou very much for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Dec 2008 15:52:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-11T15:52:53Z</dc:date>
    <item>
      <title>Get field when opening a matchcode inside of a matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-field-when-opening-a-matchcode-inside-of-a-matchcode/m-p/4943711#M1152988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with matchcodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I define a matchcode in the dictionary transaction I can define the fields and associate a value whit the import property. But I would like to export the value of one field when I execute another matchcode inside of the mathcode of one of the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, in invoices I can see the field customers, but if I get a second matchcode of them I want to see only the customers for the BUKRS of that invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 09:42:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-field-when-opening-a-matchcode-inside-of-a-matchcode/m-p/4943711#M1152988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T09:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get field when opening a matchcode inside of a matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-field-when-opening-a-matchcode-inside-of-a-matchcode/m-p/4943712#M1152989</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;Do you mean you have two parameters in the screen and then when you get value from the first parameter, the second parameter's search help should display according to the value you get from the first one ?&lt;/P&gt;&lt;P&gt;If so, I can give you some hints.&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;Chris Gu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 03:00:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-field-when-opening-a-matchcode-inside-of-a-matchcode/m-p/4943712#M1152989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T03:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get field when opening a matchcode inside of a matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-field-when-opening-a-matchcode-inside-of-a-matchcode/m-p/4943713#M1152990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I think I want what you say. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In short. Imagine there are 2 input fields in the u201CMathcode Au201D. Field_1 gets a valor from screen, and field_2 is blank. Then I want to display the field_2 matchcode, "Matchcode B", and get value from field_1 because it is used too as input field in u201CMatchcode Bu201D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your hists.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 08:15:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-field-when-opening-a-matchcode-inside-of-a-matchcode/m-p/4943713#M1152990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T08:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get field when opening a matchcode inside of a matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-field-when-opening-a-matchcode-inside-of-a-matchcode/m-p/4943714#M1152991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Luis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can also use Fm DYNP_VALUES_READ to get the accepted F4 help value in the First field without triggering PAI and can use in the select query to get the values for the secon field (may be useful in a select query)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can take the help of FIELD_MAPPING parameter of FM F4IF_INT_TABLE_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;Or you can use the FM DYNP_VALUES_UPDATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ramchander krishnamraju on Dec 11, 2008 11:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 08:26:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-field-when-opening-a-matchcode-inside-of-a-matchcode/m-p/4943714#M1152991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T08:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get field when opening a matchcode inside of a matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-field-when-opening-a-matchcode-inside-of-a-matchcode/m-p/4943715#M1152992</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;For the first parameter, you can use matchcode,&lt;/P&gt;&lt;P&gt;For the second parameter, you should use a FM to satisfy your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code for your reference.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: begin of wa,
      matnr type matnr,
      end of wa,
      itab like standard table of wa.

parameters: p_matnr type matnr,
            p_second(18) type c .

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_SECOND.
wa-matnr = p_matnr.
append wa to itab.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
  EXPORTING
*   DDIC_STRUCTURE         = ' '
    retfield               = 'MATNR'              " reference field in the table
*   PVALKEY                = ' '
   DYNPPROG               = 'ZC_TEST '        " report name
   DYNPNR                 = '100'                    "screen number
   DYNPROFIELD            = 'P_SECOND '   " second parameter name 
*   STEPL                  = 0
*   WINDOW_TITLE           =
*   VALUE                  = ' '
   VALUE_ORG              = 'S'
*   MULTIPLE_CHOICE        = ' '
*   DISPLAY                = ' '
*   CALLBACK_PROGRAM       = ' '
*   CALLBACK_FORM          = ' '
*   MARK_TAB               =
* IMPORTING
*   USER_RESET             =
  tables
    value_tab              = itab                    " contain data what you want
*   FIELD_TAB              =
*   RETURN_TAB             =
*   DYNPFLD_MAPPING        =
* 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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 09:30:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-field-when-opening-a-matchcode-inside-of-a-matchcode/m-p/4943715#M1152992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T09:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get field when opening a matchcode inside of a matchcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-field-when-opening-a-matchcode-inside-of-a-matchcode/m-p/4943716#M1152993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou very much for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 15:52:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-field-when-opening-a-matchcode-inside-of-a-matchcode/m-p/4943716#M1152993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T15:52:53Z</dc:date>
    </item>
  </channel>
</rss>

