Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Filler

Former Member
0 Likes
1,002

I need to create a field filler and initialize it to 6 spaces. What is the best way to do that

filler = ?

Thanks

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
726

Define the field as a character field with 6 characters. You do not need to fill it if it is just to be 6 spaces.

data: filler(6) type c.

Regards,

Rich Heilman

3 REPLIES 3
Read only

former_member194669
Active Contributor
0 Likes
726

data : v_filler(6) type c.

aRs

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
727

Define the field as a character field with 6 characters. You do not need to fill it if it is just to be 6 spaces.

data: filler(6) type c.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
726

Hi,

You can try something like this.


DATA: BEGIN OF ITAB OCCURS 0,
        FIELD1(10),
        FILLER_1(6),
        FIELD2(10),
        FILLER_2(6).
DATA: END OF ITAB.

Regards,

Ferry Lianto