Remove 500 Entries Restriction from Function Module F4IF_INT_TABLE_VALUE_REQUEST

By Deepti Neema, Tata Consultancy Services

Introduction:  This article will describe in detail how to remove restriction of displaying more than 500 entries when creating a F4 help using Function Module F4IF_INT_TABLE_VALUE_REQUEST.

Requirement:  I need to create F4 help for selection field External description (KONA-ABREX) in one of the custom program based on customer and company code.

Now to implement the above  requirement SAP provided Function Module F4IF_INT_TABLE_VALUE_REQUEST which is very easy to use and displaying a search help for a field but now challenge here is this Function Module will only display 500 hits and if entries are more than that then the program give dump  ( Error  : MEMORY_NO_MORE_PAGING ).

To remove this restriction, use an import parameter CALLBACK_FORM and remove the limit of max. Hits.

Steps to follow:

1.     Create a program via SE38, Design a selection screen as per your requirement. In my case I need KONA-ABREX (External description) field for which search help needs to be created as there is no standard search for this field.  

2.     Write a search help (F4) logic on At SELECTION-SCREEN ON VALUE-REQUEST event.

3.     In subroutine F2010_f4_abrex, call FM 'F4IF_INT_TABLE_VALUE_REQUEST' with following parameters :

a.     lt_abrex1 is internal table, referring to structure having one field abrex type kona-abrex. And Exract abrex from table kona and put in internal table lt_abrex1 . These values are used to display in search help.

b.    Lt_return_tab internal table of type DDSHRETVAL.

c.     Parameter Callback_form = ‘F_F4CALLBACK’ (subroutine created to build a code for removing restriction of 500 entries.

4.     Logic in Subroutine 'F_F4CALLBACK'

5.     Execute the program and do F4 for field External Description (KONA-ABREX) . Search help will list of values available in table KONA.

Summary: This way we can remove restriction of function module                   F4IF_INT_TABLE_VALUE_REQUEST.

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image