<?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: At selection-screen on value request in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-on-value-request/m-p/3635063#M875413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use at selection-screen for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen-output.&lt;/P&gt;&lt;P&gt;if  p_mawerk is not initial.&lt;/P&gt;&lt;P&gt;&amp;lt;populate value for p_workct&amp;gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Apr 2008 10:05:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-10T10:05:24Z</dc:date>
    <item>
      <title>At selection-screen on value request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-on-value-request/m-p/3635062#M875412</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;pls provide the solution for the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i declared two parameters like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: p_mawerk like qmel-mawerk obligatory,&lt;/P&gt;&lt;P&gt;        p_workct like crhd-arbpl obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to provide the F4 help for the p_workct based on the p_mawerk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first i entered some value for p_mawerk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then if i am trying to read the some other table based on p_mawerk, but the value is null for p_mawerk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you pls provide the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 09:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-on-value-request/m-p/3635062#M875412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T09:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: At selection-screen on value request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-on-value-request/m-p/3635063#M875413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use at selection-screen for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen-output.&lt;/P&gt;&lt;P&gt;if  p_mawerk is not initial.&lt;/P&gt;&lt;P&gt;&amp;lt;populate value for p_workct&amp;gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 10:05:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-on-value-request/m-p/3635063#M875413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T10:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: At selection-screen on value request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-on-value-request/m-p/3635064#M875414</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;first: &lt;/P&gt;&lt;P&gt;you don´t declare parameters with DATA but with SELECT-OPTIONS or PARAMETERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second: &lt;/P&gt;&lt;P&gt;the system recognizes the value in P_MAWERK till you press , which is certainly a handycapp in selection screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;documentation for AT SELECTION-SCREEN:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;With the events for the field and input help, no data is transported between the selection screen and the ABAP program. As with general screens, suitable function modules must be used for these. The parameters and selection criteria changed for the input help are transported to the selection screen.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 10:25:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-on-value-request/m-p/3635064#M875414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T10:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: At selection-screen on value request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-on-value-request/m-p/3635065#M875415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry sorry. due to hurry i did this mistake that, instead of using parameters i used data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;pls provide the solution for the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i declared two parameters like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_mawerk like qmel-mawerk obligatory,&lt;/P&gt;&lt;P&gt;p_workct like crhd-arbpl obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to provide the F4 help for the p_workct based on the p_mawerk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first i entered some value for p_mawerk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then if i am trying to read the some other table based on p_mawerk, but the value is null for p_mawerk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you pls provide the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 10:35:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-on-value-request/m-p/3635065#M875415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T10:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: At selection-screen on value request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-on-value-request/m-p/3635066#M875416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Pls check this it may help you out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_mawerk .&lt;/P&gt;&lt;P&gt;  progname = sy-repid.&lt;/P&gt;&lt;P&gt;  dynnum = sy-dynnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*The field value that is to be fetched from Selection-screen is passed to the internal table below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    field_value-fieldname = 'p_mawerk'.&lt;/P&gt;&lt;P&gt;    append field_value to dynpro_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*This function module is used to read the Fiscal year from the selection screen&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  and to get the Document numbers only related to that fiscal year.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        dyname               = progname&lt;/P&gt;&lt;P&gt;        dynumb               = dynnum&lt;/P&gt;&lt;P&gt;        translate_to_upper   = 'X'&lt;/P&gt;&lt;P&gt;      tables&lt;/P&gt;&lt;P&gt;        dynpfields           = dynpro_values&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        invalid_abapworkarea = 1&lt;/P&gt;&lt;P&gt;        invalid_dynprofield  = 2&lt;/P&gt;&lt;P&gt;        invalid_dynproname   = 3&lt;/P&gt;&lt;P&gt;        invalid_dynpronummer = 4&lt;/P&gt;&lt;P&gt;        invalid_request      = 5&lt;/P&gt;&lt;P&gt;        no_fielddescription  = 6&lt;/P&gt;&lt;P&gt;        invalid_parameter    = 7&lt;/P&gt;&lt;P&gt;        undefind_error       = 8&lt;/P&gt;&lt;P&gt;        double_conversion    = 9&lt;/P&gt;&lt;P&gt;        stepl_not_found      = 10&lt;/P&gt;&lt;P&gt;        others               = 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    read table dynpro_values index 1 into field_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select the values for the second parameter using the value in the first parameter using query into values_tab.&lt;/P&gt;&lt;P&gt;declare vaues_tab as you require in the search help parameters&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     = ''&lt;/P&gt;&lt;P&gt;      dynpprog     = progname&lt;/P&gt;&lt;P&gt;      dynpnr       = dynnum&lt;/P&gt;&lt;P&gt;      dynprofield  = 'p_workct' (Give in CAPS)&lt;/P&gt;&lt;P&gt;      value_org    = 'S'&lt;/P&gt;&lt;P&gt;      window_title = ' '&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      value_tab    = values_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Soumya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 11:28:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-on-value-request/m-p/3635066#M875416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T11:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: At selection-screen on value request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-on-value-request/m-p/3635067#M875417</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;   i think the following will be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_mawerk like qmel-mawerk obligatory,&lt;/P&gt;&lt;P&gt;                  p_workct like crhd-arbpl obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF VALUES,&lt;/P&gt;&lt;P&gt;mawerk type   tablename-mawerk,      &lt;/P&gt;&lt;P&gt;workct TYPE   tablename-workct,&lt;/P&gt;&lt;P&gt;END OF VALUES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: DINPRO_VALUES TYPE TABLE OF DYNPREAD,&lt;/P&gt;&lt;P&gt;VALUE_TAB LIKE TABLE OF VALUES,&lt;/P&gt;&lt;P&gt;FIELD_VALUE LIKE LINE OF DINPRO_VALUES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_workct.&lt;/P&gt;&lt;P&gt;FIELD_VALUE-FIELDNAME = 'MAWERK'.&lt;/P&gt;&lt;P&gt;APPEND FIELD_VALUE TO DINPRO_VALUES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DYNAME = SY-REPID&lt;/P&gt;&lt;P&gt;DYNUMB = SY-DYNNR&lt;/P&gt;&lt;P&gt;TRANSLATE_TO_UPPER = 'X'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DYNPFIELDS = DINPRO_VALUES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE DINPRO_VALUES INDEX 1 INTO FIELD_VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VALUES-MAwerk = FIELD_VALUE-FIELDVALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select mawerk workct from table name into table value_tab where mawerk eq  FIELD_VALUE-FIELDVALUE.&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 = 'WORKCT'&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 = 'P_WORKCT'&lt;/P&gt;&lt;P&gt;VALUE_ORG = 'S'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;VALUE_TAB = VALUE_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then write  select query to be printed in the output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 13:31:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-on-value-request/m-p/3635067#M875417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T13:31:29Z</dc:date>
    </item>
  </channel>
</rss>

