Skip to Content
-3
Jun 19, 2018 at 09:11 AM

Initial Structure

125 Views Last edit Jun 19, 2018 at 09:48 AM 3 rev

Hi all,

Can anyone please tell me what this particular line of code does in this program?

Tables TCURT.

DATA: CURR_TAB TYPE TABLE OF TCURT.
................
................
SELECT * FROM TCURT INTO TABLE CURR_TAB 
 WHERE ....

LOOP AT CURR_tAB INTO TCURT.
WRITE: /5 SY-TABIX, TCURT-WAERS,TCURT-LTEXT.
ENDLOOP.

TCURT = SPACE. "initial structure TCURT.
TCURT-WAERS = 'IJK'.
TCURT-LTEXT = 'DUMMY CURRENCY'.

INSERT TCURT INTO CURR_TAB INDEX REC_NO.

Now in the above program my doubt is with this line -

TCURT = SPACE. "initial structure TCURT.

What does this line do? And in the comment beside it is written "initial structure TCURT" !

Can anyone please tell me what it's use / purpose?

With Warm Regards,

Namrata