Skip to Content
0
Former Member
Feb 20, 2006 at 05:37 AM

which is more efficient in modifying internal table.field symbol or modify

199 Views

TABLES : BSEG .

DATA:BEGIN OF I_BSEG OCCURS 0.

INCLUDE STRUCTURE BSEG.

DATA : END OF I_BSEG.

FIELD-SYMBOLS:<I_BSEG1> LIKE LINE OF I_BSEG.

SELECT * INTO TABLE I_BSEG FROM BSEG WHERE BELNR = '0100000570'.

LOOP AT I_BSEG ASSIGNING <I_BSEG1> .

<I_BSEG1>-belnr = '4560000000'.

ENDLOOP.

*LOOP AT I_BSEG.

*

*

*I_BSEG-BELNR = '4560000000'.

*

*MODIFY I_BSEG TRANSPORTING BELNR.

*

*ENDLOOP.

*

LOOP AT I_BSEG.

WRITE: / I_BSEG-BELNR.

ENDLOOP.