<?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: Entry help check restriction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/entry-help-check-restriction/m-p/2213218#M474309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Code example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
function z_tpm_f4if_shlp_exit_shipment.
*"----------------------------------------------------------------------
*"*"Local interface:
*"  TABLES
*"      SHLP_TAB TYPE  SHLP_DESCR_TAB_T
*"      RECORD_TAB STRUCTURE  SEAHLPRES
*"  CHANGING
*"     VALUE(SHLP) TYPE  SHLP_DESCR_T
*"     VALUE(CALLCONTROL) LIKE  DDSHF4CTRL STRUCTURE  DDSHF4CTRL
*"----------------------------------------------------------------------

* EXIT immediately, if you do not want to handle this step
  if callcontrol-step &amp;lt;&amp;gt; 'SELONE' and
     callcontrol-step &amp;lt;&amp;gt; 'SELECT' and
     " AND SO ON
     callcontrol-step &amp;lt;&amp;gt; 'DISP'.
    exit.
  endif.

*"----------------------------------------------------------------------
* STEP SELONE  (Select one of the elementary searchhelps)
*"----------------------------------------------------------------------
* This step is only called for collective searchhelps. It may be used
* to reduce the amount of elementary searchhelps given in SHLP_TAB.
* The compound searchhelp is given in SHLP.
* If you do not change CALLCONTROL-STEP, the next step is the
* dialog, to select one of the elementary searchhelps.
* If you want to skip this dialog, you have to return the selected
* elementary searchhelp in SHLP and to change CALLCONTROL-STEP to
* either to 'PRESEL' or to 'SELECT'.
  if callcontrol-step = 'SELONE'.
*   PERFORM SELONE .........
    exit.
  endif.

*"----------------------------------------------------------------------
* STEP PRESEL  (Enter selection conditions)
*"----------------------------------------------------------------------
* This step allows you, to influence the selection conditions either
* before they are displayed or in order to skip the dialog completely.
* If you want to skip the dialog, you should change CALLCONTROL-STEP
* to 'SELECT'.
* Normaly only SHLP-SELOPT should be changed in this step.
  if callcontrol-step = 'PRESEL'.
*   PERFORM PRESEL ..........
    exit.
  endif.
*"----------------------------------------------------------------------
* STEP SELECT    (Select values)
*"----------------------------------------------------------------------
* This step may be used to overtake the data selection completely.
* To skip the standard seletion, you should return 'DISP' as following
* step in CALLCONTROL-STEP.
* Normally RECORD_TAB should be filled after this step.
* Standard function module F4UT_RESULTS_MAP may be very helpfull in this
* step.
  if callcontrol-step = 'SELECT'.
*   PERFORM STEP_SELECT TABLES RECORD_TAB SHLP_TAB
*                       CHANGING SHLP CALLCONTROL RC.
*   IF RC = 0.
*     CALLCONTROL-STEP = 'DISP'.
*   ELSE.
*     CALLCONTROL-STEP = 'EXIT'.
*   ENDIF.
    exit. "Don't process STEP DISP additionally in this call.
  endif.
*"----------------------------------------------------------------------
* STEP DISP     (Display values)
*"----------------------------------------------------------------------
* This step is called, before the selected data is displayed.
* You can e.g. modify or reduce the data in RECORD_TAB
* according to the users authority.
* If you want to get the standard display dialog afterwards, you
* should not change CALLCONTROL-STEP.
* If you want to overtake the dialog on you own, you must return
* the following values in CALLCONTROL-STEP:
* - "RETURN" if one line was selected. The selected line must be
*   the only record left in RECORD_TAB. The corresponding fields of
*   this line are entered into the screen.
* - "EXIT" if the values request should be aborted
* - "PRESEL" if you want to return to the selection dialog
* Standard function modules F4UT_PARAMETER_VALUE_GET and
* F4UT_PARAMETER_RESULTS_PUT may be very helpfull in this step.
  if callcontrol-step = 'DISP'.
*   PERFORM AUTHORITY_CHECK TABLES RECORD_TAB SHLP_TAB
*                           CHANGING SHLP CALLCONTROL.


* Leonardo Araujo                                     2004.07.22
* Enhancement to search help ZTPM_H_SHIPMENT in ZTPM

    it_helpdata_SHIPMENT[] = record_tab[].

    read table shlp-interface into wa_interface
    with key valfield = 'VEHICLE'.

    if sy-subrc = 0 and not wa_interface-value is initial.

* Rules:
* If a shipment with vehicle number exists (SIGNI), show only them.
* Otherwise, shows all selected records with SIGNI blank.
      read table it_helpdata_SHIPMENT
      with key signi = wa_interface-value
      transporting no fields.

      if sy-subrc = 0.
        delete it_helpdata_SHIPMENT where signi ne wa_interface-value.
      else.
        delete it_helpdata_SHIPMENT where signi ne ''.
      endif.
      if sy-subrc = 0 .
        clear record_tab[].
        record_tab[] = it_helpdata_SHIPMENT[].
      endif.
    endif.
  endif.
endfunction.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2007 15:10:20 GMT</pubDate>
    <dc:creator>LeonardoAraujo</dc:creator>
    <dc:date>2007-04-24T15:10:20Z</dc:date>
    <item>
      <title>Entry help check restriction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/entry-help-check-restriction/m-p/2213216#M474307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am supposed to restrict the entry help check from displaying certain values. Transaction Code: PA30. Infotype number: 41. Here in the date type field currently I have 10 values. I have to restrcit the F4 help search option to show only 5 values. How to go about this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 13:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/entry-help-check-restriction/m-p/2213216#M474307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T13:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Entry help check restriction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/entry-help-check-restriction/m-p/2213217#M474308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a search help (or copy from the standard) and use an enhancement in the field SEARCH HELP EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a new function module. User F4IF_SHLP_EXIT_EXAMPLE as a reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leonardo De Araujo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 15:05:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/entry-help-check-restriction/m-p/2213217#M474308</guid>
      <dc:creator>LeonardoAraujo</dc:creator>
      <dc:date>2007-04-24T15:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Entry help check restriction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/entry-help-check-restriction/m-p/2213218#M474309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Code example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
function z_tpm_f4if_shlp_exit_shipment.
*"----------------------------------------------------------------------
*"*"Local interface:
*"  TABLES
*"      SHLP_TAB TYPE  SHLP_DESCR_TAB_T
*"      RECORD_TAB STRUCTURE  SEAHLPRES
*"  CHANGING
*"     VALUE(SHLP) TYPE  SHLP_DESCR_T
*"     VALUE(CALLCONTROL) LIKE  DDSHF4CTRL STRUCTURE  DDSHF4CTRL
*"----------------------------------------------------------------------

* EXIT immediately, if you do not want to handle this step
  if callcontrol-step &amp;lt;&amp;gt; 'SELONE' and
     callcontrol-step &amp;lt;&amp;gt; 'SELECT' and
     " AND SO ON
     callcontrol-step &amp;lt;&amp;gt; 'DISP'.
    exit.
  endif.

*"----------------------------------------------------------------------
* STEP SELONE  (Select one of the elementary searchhelps)
*"----------------------------------------------------------------------
* This step is only called for collective searchhelps. It may be used
* to reduce the amount of elementary searchhelps given in SHLP_TAB.
* The compound searchhelp is given in SHLP.
* If you do not change CALLCONTROL-STEP, the next step is the
* dialog, to select one of the elementary searchhelps.
* If you want to skip this dialog, you have to return the selected
* elementary searchhelp in SHLP and to change CALLCONTROL-STEP to
* either to 'PRESEL' or to 'SELECT'.
  if callcontrol-step = 'SELONE'.
*   PERFORM SELONE .........
    exit.
  endif.

*"----------------------------------------------------------------------
* STEP PRESEL  (Enter selection conditions)
*"----------------------------------------------------------------------
* This step allows you, to influence the selection conditions either
* before they are displayed or in order to skip the dialog completely.
* If you want to skip the dialog, you should change CALLCONTROL-STEP
* to 'SELECT'.
* Normaly only SHLP-SELOPT should be changed in this step.
  if callcontrol-step = 'PRESEL'.
*   PERFORM PRESEL ..........
    exit.
  endif.
*"----------------------------------------------------------------------
* STEP SELECT    (Select values)
*"----------------------------------------------------------------------
* This step may be used to overtake the data selection completely.
* To skip the standard seletion, you should return 'DISP' as following
* step in CALLCONTROL-STEP.
* Normally RECORD_TAB should be filled after this step.
* Standard function module F4UT_RESULTS_MAP may be very helpfull in this
* step.
  if callcontrol-step = 'SELECT'.
*   PERFORM STEP_SELECT TABLES RECORD_TAB SHLP_TAB
*                       CHANGING SHLP CALLCONTROL RC.
*   IF RC = 0.
*     CALLCONTROL-STEP = 'DISP'.
*   ELSE.
*     CALLCONTROL-STEP = 'EXIT'.
*   ENDIF.
    exit. "Don't process STEP DISP additionally in this call.
  endif.
*"----------------------------------------------------------------------
* STEP DISP     (Display values)
*"----------------------------------------------------------------------
* This step is called, before the selected data is displayed.
* You can e.g. modify or reduce the data in RECORD_TAB
* according to the users authority.
* If you want to get the standard display dialog afterwards, you
* should not change CALLCONTROL-STEP.
* If you want to overtake the dialog on you own, you must return
* the following values in CALLCONTROL-STEP:
* - "RETURN" if one line was selected. The selected line must be
*   the only record left in RECORD_TAB. The corresponding fields of
*   this line are entered into the screen.
* - "EXIT" if the values request should be aborted
* - "PRESEL" if you want to return to the selection dialog
* Standard function modules F4UT_PARAMETER_VALUE_GET and
* F4UT_PARAMETER_RESULTS_PUT may be very helpfull in this step.
  if callcontrol-step = 'DISP'.
*   PERFORM AUTHORITY_CHECK TABLES RECORD_TAB SHLP_TAB
*                           CHANGING SHLP CALLCONTROL.


* Leonardo Araujo                                     2004.07.22
* Enhancement to search help ZTPM_H_SHIPMENT in ZTPM

    it_helpdata_SHIPMENT[] = record_tab[].

    read table shlp-interface into wa_interface
    with key valfield = 'VEHICLE'.

    if sy-subrc = 0 and not wa_interface-value is initial.

* Rules:
* If a shipment with vehicle number exists (SIGNI), show only them.
* Otherwise, shows all selected records with SIGNI blank.
      read table it_helpdata_SHIPMENT
      with key signi = wa_interface-value
      transporting no fields.

      if sy-subrc = 0.
        delete it_helpdata_SHIPMENT where signi ne wa_interface-value.
      else.
        delete it_helpdata_SHIPMENT where signi ne ''.
      endif.
      if sy-subrc = 0 .
        clear record_tab[].
        record_tab[] = it_helpdata_SHIPMENT[].
      endif.
    endif.
  endif.
endfunction.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 15:10:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/entry-help-check-restriction/m-p/2213218#M474309</guid>
      <dc:creator>LeonardoAraujo</dc:creator>
      <dc:date>2007-04-24T15:10:20Z</dc:date>
    </item>
  </channel>
</rss>

