Syntax Modify Change list line

Variant 1

MODIFY LINE n.

Additions

1. ... INDEX idx
2. ... LINE FORMAT fmt1 ... fmtn
3. ... FIELD VALUE f1 FROM g1 ... fn FROM gn
4. ... FIELD FORMAT f1 fmt11 ... fmt1m ... fn fmtn1 ... fmtnm

Effect

Changes the n th line of the list. This could be, for example, after line selection ( AT LINE-SELECTION , AT PFxx , AT USERCOMMAND ).

The current contents of the system field SY-LISEL are restored to the list as the line contents and the HIDE area for the line is re-determined from the current contents of the fields hidden
with HIDE .

The return code value is set as follows:

SY-SUBRC = 0 Line was successfully changed.
SY-SUBRC <> 0 Line does not exist.

With multiple-level line selection, the modification is always performed in the list where the (last) line selection was made, except in the case of the addition ... INDEX idx and MODIFY CURRENT LINE .

Addition 1

... INDEX idx

Effect

Changes the relevant line in the list to list level idx (0, 1, 2, ...) with multiple line selection ( SY-LSIND ).

Addition 2

... LINE FORMAT fmt1 ... fmtn

Effect

The output format of the selected line is determined by the format specifications fmt1 , fmt2 ... . For a list of valid format specifications .

Example

DATA I TYPE I VALUE 2.

WRITE: / 'Intensified' INTENSIFIED,

'Input' INPUT,

'color 1' COLOR 1,

'intensified off' INTENSIFIED OFF.

* Line selection

AT LINE-SELECTION.

MODIFY CURRENT LINE

LINE FORMAT INVERSE

INPUT OFF

COLOR = I.

After you have selected the the output list line (by doubleclicking), the whole line is set to COLOR 2 and INVERSE and all INPUT fields are set to INPUT OFF . The fields with the attribute INTENSIFIED or INTENSIFIED OFF retain this because the attribute is not addressed here.(96.8)

SAP BW TOPICS

SAP BW complete course

SAP BW business intellegence

Activating business content in SAP part three

How to logon to SAP BW

SAP BW third party solutions

Data flow between SAP and BW

Syntax for modify data in internal table

ABAP TOPIC WISE COMPLETE COURSE

BDC OOPS ABAP ALE IDOC'S BADI BAPI Syntax Check
Interview Questions ALV Reports with sample code ABAP complete course
ABAP Dictionary SAP Scripts Script Controls Smart Forms
Work Flow Work Flow MM Work Flow SD Communication Interface

No comments:

Post a Comment