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 SAP ABAP Programming and HANA Database Tutorials
Development resources, articles, tutorials, code samples and tools and downloads for ASP.Net, SQL Server, R Script, Windows, Windows Phone, AWS, SAP HANA and ABAP, like SAP UI5, Screen Personas, etc.




Install SAP Free


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.

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.

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.

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 Tutorials

SAP Tutorial

SAP Forums

SAP Tools

SAP Transaction Codes Table


Meetup Sunumu 1






Copyright © 2004 - 2019 Eralper YILMAZ. All rights reserved.
Community Server by Telligent Systems