SQL Server administration and T-SQL development, Web Programming with ASP.NET, HTML5 and Javascript, Windows Phone 8 app development, SAP Smartforms and ABAP Programming, Windows 7, Visual Studio and MS Office software
Development resources, articles, tutorials, code samples, tools and downloads for SAP HANA and ABAP, HANA Database, SQLScript, SAP UI5, Screen Personas, Web Dynpro, Workflow

Display Condition Types as F4 Help on Selection Screen


This ABAP tutorial shows how to display condition types list search help or F4 Help popup screen for KSCHL condition data field on a Selection Screen using function module RV_CONDITION_RECORD_DISPLAY.


Assume that you have an ABAP report listing data rows filtered according to a selection screen where you have condition type KSCHL as filter criteria.

SELECT-OPTIONS: S_KSCHL FOR T685-KSCHL NO INTERVALS.
Code

It is possible to display search help screen when F4 Help is requested as follows.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_KSCHL-LOW.
 PERFORM M_F4_KSCHL.
Code

In the value request perform for condition type, following function module can be used to display list of condition types on a pop-up screen. The selected condition type data will be returned back using importing variables; condition type and condition_type_text.

FORM m_f4_kschl.

data ll_kschl like t685-kschl.
data ll_vtext like t685t-vtext.

call function 'RV_CONDITION_RECORD_DISPLAY'
 exporting
  condition_use = 'A'
  application = 'V'
  condition_classes = 'ABD'
  get_condition_type = 'X'
  for_maintenance_only = 'X'
 importing
  condition_type = ll_kschl
  condition_type_text = ll_vtext.

if not ll_kschl is initial.
 s_kschl-low = ll_kschl.
endif.

ENDFORM.
Code

F4 search help for conditions in ABAP

When the user selects an item (condition type record), the corresponding KSCHL data (condition_type parameter value stored in ll_kschl) is copied into selection screen field s_KSCHL-Low



SAP HANA and ABAP

Install SAP Free
CRM Companies List
Web Based CRM Software


Copyright © 2004 - 2021 Eralper YILMAZ. All rights reserved.