Routine in Infopckage?
I need to write a ABAP code in the infopackage screen can any one give a piece of code.
requriement is :
If 'Zabc' is blank then pick that record.
also tell me what is the difference between writing the routine in Update rules and also in Infocpackage.
points will be definitely assigned .
thanks in advance.
DATA: L_IDX LIKE SY-TABIX.
READ TABLE L_T_RANGE WITH KEY
FIELDNAME = 'ZABC'.
L_IDX = SY-TABIX.
<b>In the lines before table L_T_RANGE is read.
It contains all selectable fields with values for selection</b>
L_T_RANGE-LOW = ' '. "number of blanks corresponding to length of field
<b>In this case L_T_RANGE-LOW represents a single value restricted with blanks</b>
L_T_RANGE-SIGN = 'I'.
<b>I means value is included, E is for intervals and means exclusion</b>
L_T_RANGE-OPTION = 'EQ'.
<b>EQ is for single values, BT(between) or NB(not between) only valid for intervals</b>
MODIFY L_T_RANGE INDEX L_IDX.
<b>Updating modified entry of internal table</b>
P_SUBRC = 0.
<b>Please see info for routine</b>
<b>If you want to select intervals, you could also determine value for L_T_RANGE-HIGH</b>
Hope this helps