<?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: One parameter value based on another parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-parameter-value-based-on-another-parameter/m-p/12199283#M1981673</link>
    <description>&lt;P&gt;No need of ABAP code.&lt;/P&gt;&lt;P&gt;You only need to:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Define search help with input parameters Company and House bank&lt;/LI&gt;&lt;LI&gt;Define the two fields in the same DDIC structure (or table)&lt;/LI&gt;&lt;LI&gt;Link field House bank to your search help, and assign the two fields Company and House bank of the structure to the corresponding input parameters of the search help&lt;/LI&gt;&lt;LI&gt;Define dynpro fields with the same names as those in the DDIC structure (ZSTRU-COMPANY and ZSTRU-HOUSEBANK for instance) and confirm that they are both linked to the DDIC. If it's a selection screen, just declare the fields PARAMETERS anything TYPE ZSTRU-...&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This way, pressing F4 on field House bank will pass automatically both the company code and the House bank fields to the search help.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2020 14:58:49 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2020-01-29T14:58:49Z</dc:date>
    <item>
      <title>One parameter value based on another parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-parameter-value-based-on-another-parameter/m-p/12199281#M1981671</link>
      <description>&lt;P&gt;Once Company Code is entered, for House bank input parameter search filter should come for that particular Company code only.&lt;/P&gt;
  &lt;P&gt;And same for Account ID. Search should filter Account ID for that particular House bank only.&lt;/P&gt;
  &lt;P&gt;Suppose Company code is A008&lt;/P&gt;
  &lt;P&gt;Then in house bank in the search help values of only that company code should reflect and in account Id only for that house bank values should reflect in the search help&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 12:13:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-parameter-value-based-on-another-parameter/m-p/12199281#M1981671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-01-29T12:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: One parameter value based on another parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-parameter-value-based-on-another-parameter/m-p/12199282#M1981672</link>
      <description>&lt;P&gt;Hello &lt;SPAN class="mention-scrubbed"&gt;nidhi1994&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;You can use the event AT SELECTION ON VALUE REQUEST FIELD_NAME. Below Link should help you achieving the requirement. The logic is to get the input from the first field then construct your internal table which will be fed into the next field based on the value entered above.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.saphub.com/selection-screen/dynamic-f4-help-based-on-the-values-of-other-field/" target="_blank"&gt;F4 Link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 12:46:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-parameter-value-based-on-another-parameter/m-p/12199282#M1981672</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2020-01-29T12:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: One parameter value based on another parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-parameter-value-based-on-another-parameter/m-p/12199283#M1981673</link>
      <description>&lt;P&gt;No need of ABAP code.&lt;/P&gt;&lt;P&gt;You only need to:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Define search help with input parameters Company and House bank&lt;/LI&gt;&lt;LI&gt;Define the two fields in the same DDIC structure (or table)&lt;/LI&gt;&lt;LI&gt;Link field House bank to your search help, and assign the two fields Company and House bank of the structure to the corresponding input parameters of the search help&lt;/LI&gt;&lt;LI&gt;Define dynpro fields with the same names as those in the DDIC structure (ZSTRU-COMPANY and ZSTRU-HOUSEBANK for instance) and confirm that they are both linked to the DDIC. If it's a selection screen, just declare the fields PARAMETERS anything TYPE ZSTRU-...&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This way, pressing F4 on field House bank will pass automatically both the company code and the House bank fields to the search help.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 14:58:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-parameter-value-based-on-another-parameter/m-p/12199283#M1981673</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-01-29T14:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: One parameter value based on another parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-parameter-value-based-on-another-parameter/m-p/12199284#M1981674</link>
      <description>&lt;P&gt;I called the FM &lt;/P&gt;&lt;P&gt;F4IF_INT_TABLE_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;But in the fields &lt;/P&gt;&lt;P&gt;  retfield and tables value_tab what data should be provided&lt;/P&gt;&lt;P&gt;Here is the code for reference&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;BR /&gt;
 EXPORTING&lt;BR /&gt;
* DDIC_STRUCTURE = ' '&lt;BR /&gt;&lt;STRONG&gt;
 retfield = &lt;/STRONG&gt;&lt;BR /&gt;
* PVALKEY = ' '&lt;BR /&gt;
* DYNPPROG = ' '&lt;BR /&gt;
* DYNPNR = ' '&lt;BR /&gt;
* DYNPROFIELD = ' '&lt;BR /&gt;
* STEPL = 0&lt;BR /&gt;
* WINDOW_TITLE =&lt;BR /&gt;
* VALUE = ' '&lt;BR /&gt;
* VALUE_ORG = 'C'&lt;BR /&gt;
* MULTIPLE_CHOICE = ' '&lt;BR /&gt;
* DISPLAY = ' '&lt;BR /&gt;
* CALLBACK_PROGRAM = ' '&lt;BR /&gt;
* CALLBACK_FORM = ' '&lt;BR /&gt;
* CALLBACK_METHOD =&lt;BR /&gt;
* MARK_TAB =&lt;BR /&gt;
* IMPORTING&lt;BR /&gt;
* USER_RESET =&lt;BR /&gt;&lt;STRONG&gt;
 tables&lt;BR /&gt;
 value_tab = &lt;/STRONG&gt;&lt;BR /&gt;
* FIELD_TAB =&lt;BR /&gt;
* RETURN_TAB =&lt;BR /&gt;
* DYNPFLD_MAPPING =&lt;BR /&gt;
* EXCEPTIONS&lt;BR /&gt;
* PARAMETER_ERROR = 1&lt;BR /&gt;
* NO_VALUES_FOUND = 2&lt;BR /&gt;
* OTHERS = 3&lt;BR /&gt;
 &lt;BR /&gt;
 &lt;BR /&gt;
* Implement suitable error handling here&lt;BR /&gt;
 ENDIF.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 05:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-parameter-value-based-on-another-parameter/m-p/12199284#M1981674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-01-30T05:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: One parameter value based on another parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-parameter-value-based-on-another-parameter/m-p/12199285#M1981675</link>
      <description>&lt;P&gt;Hi. I want this to be done by coding .&lt;/P&gt;&lt;P&gt;What has to be done in this&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 05:29:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-parameter-value-based-on-another-parameter/m-p/12199285#M1981675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-01-30T05:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: One parameter value based on another parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-parameter-value-based-on-another-parameter/m-p/12199286#M1981676</link>
      <description>&lt;SPAN class="mention-scrubbed"&gt;nidhi1994&lt;/SPAN&gt;,RETFIELD is the field name on which F4 is applied and Value_tab is the table which will hold the values that are displayed while using the help option.Regards!</description>
      <pubDate>Thu, 30 Jan 2020 11:43:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-parameter-value-based-on-another-parameter/m-p/12199286#M1981676</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2020-01-30T11:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: One parameter value based on another parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-parameter-value-based-on-another-parameter/m-p/12199287#M1981677</link>
      <description>&lt;P&gt;The exact event names are:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;If the screen is of type "selection screen", in ABAP code:&lt;BR /&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR fieldname.&lt;BR /&gt;  " ... your code&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;If the screen is of another type:&lt;BR /&gt;1) in screen flow logic:&lt;BR /&gt;PROCESS ON VALUE-REQUEST.&lt;BR /&gt;  FIELD fieldname MODULE modulename.&lt;BR /&gt;2) in ABAP:&lt;BR /&gt;MODULE modulename INPUT.&lt;BR /&gt;  " ... your code&lt;BR /&gt;ENDMODULE.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 30 Jan 2020 13:46:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-parameter-value-based-on-another-parameter/m-p/12199287#M1981677</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-01-30T13:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: One parameter value based on another parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-parameter-value-based-on-another-parameter/m-p/12199288#M1981678</link>
      <description>&lt;P&gt;Did this for House bank&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_hbkid.&lt;BR /&gt;gw_dynpread-fieldname = 'P_BUKRS'.&lt;BR /&gt;
 APPEND gw_dynpread TO gt_dynpread.&lt;BR /&gt;
 CALL FUNCTION 'DYNP_VALUES_READ'&lt;BR /&gt;
 EXPORTING&lt;BR /&gt;
 dyname = sy-cprog&lt;BR /&gt;
 dynumb = sy-dynnr&lt;BR /&gt;
 translate_to_upper = 'X'&lt;BR /&gt;
 TABLES&lt;BR /&gt;
 dynpfields = gt_dynpread.&lt;BR /&gt;
 IF NOT gt_dynpread IS INITIAL.&lt;BR /&gt;
 READ TABLE gt_dynpread INTO gw_dynpread INDEX 1.&lt;BR /&gt;
 IF sy-subrc EQ 0.&lt;BR /&gt;
 SELECT hbkid FROM t012k INTO TABLE gt_t012k WHERE bukrs = gw_dynpread-fieldvalue.&lt;BR /&gt;
 IF sy-subrc EQ 0.&lt;BR /&gt;
 CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;BR /&gt;
 EXPORTING&lt;BR /&gt;
 retfield = 'P_HBKID'&lt;BR /&gt;
 value_org = 'S'&lt;BR /&gt;
 TABLES&lt;BR /&gt;
 value_tab = gt_t012k&lt;BR /&gt;
 return_tab = gt_return&lt;BR /&gt;
 EXCEPTIONS&lt;BR /&gt;
 parameter_error = 1&lt;BR /&gt;
 no_values_found = 2&lt;BR /&gt;
 OTHERS = 3.&lt;BR /&gt;
 IF NOT gt_return IS INITIAL.&lt;BR /&gt;
 READ TABLE gt_return INTO DATA(gw_return) INDEX 1.&lt;BR /&gt;
 IF sy-subrc EQ 0.&lt;BR /&gt;
 p_hbkid = gw_return-fieldval.&lt;BR /&gt;
 ENDIF.&lt;BR /&gt;
 ENDIF.&lt;BR /&gt;
 ENDIF.&lt;BR /&gt;
 ENDIF.&lt;BR /&gt;
 ENDIF.&lt;/P&gt;&lt;P&gt;What has to be done for Account Id then?&lt;/P&gt;&lt;P&gt;Can we add two at selection screen on value request&lt;/P&gt;&lt;P&gt;How to proceed further&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 06:03:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-parameter-value-based-on-another-parameter/m-p/12199288#M1981678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-01-31T06:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: One parameter value based on another parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-parameter-value-based-on-another-parameter/m-p/12199289#M1981679</link>
      <description>&lt;P&gt;If you want to do it by coding, follow instructions given by Satish.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 07:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-parameter-value-based-on-another-parameter/m-p/12199289#M1981679</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-01-31T07:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: One parameter value based on another parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-parameter-value-based-on-another-parameter/m-p/12199290#M1981680</link>
      <description>&lt;P&gt;By the way, if you have a selection screen, and you want to list values of field BHKID from T012K table, based on the other field BUKRS, why don't you just write these two lines of code, and that's done...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS bukrs TYPE t012k-bukrs.
PARAMETERS hbkid TYPE t012k-hbkid.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jan 2020 08:21:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-parameter-value-based-on-another-parameter/m-p/12199290#M1981680</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-01-31T08:21:02Z</dc:date>
    </item>
  </channel>
</rss>

