Google Search - Blog...........

ABAP - Putting Values In a Range Selection Table.

Fill a range table
Quite often we have the task of putting values in a range table. This always means to set the SIGN, OPTION, LOW and if required HIGH field of a seletion range. We have some additional code lines for this and after filling the range (i.e. in a LOOP), we do good in removing duplicate values.
Take the following FORM to do it efficiently for any kind of range table.
*&---------------------------------------------------------------------*
*& Form insert_range
*&---------------------------------------------------------------------*
* insert selection range - handles any range type "CLI20061218
*----------------------------------------------------------------------*
FORM insert_range USING p_signopt TYPE c "#EC CALLED
p_low TYPE any
p_high TYPE any
CHANGING pt_range TYPE table.
FIELD-SYMBOLS:
TYPE ANY,
TYPE ANY,

No comments:

Post a Comment