Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Routine in Infopckage?

Expert's,

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.

vasu.

Former Member
Former Member replied

Hi,

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

Joe

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question