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

Insert Space into intenal table

Former Member
0 Likes
1,016

Hi all,

can anybody help me on how to insert space into intenal table field. for your info i just only want to insert space ni my internal table without data..PLSSS..

Hi,

just do like the code below

TYPES : BEGIN OF zmr_tc_cert_header,

lfimg TYPE lfimg,

meins TYPE meins,

END OF zmr_tc_cert_header.

DATA : zmr_tc_cert_header TYPE zmr_tc_cert_header.

DATA : it_try TYPE STANDARD TABLE OF zmr_tc_cert_header.

START-OF-SELECTION.

zmr_tc_cert_header-lfimg = ' '.

zmr_tc_cert_header-meins = ' '.

APPEND zmr_tc_cert_header TO it_try.

revert back if not clear

reward if helpful

4 REPLIES 4
Read only

Former Member
0 Likes
781

Hi

see this program it will give one line as space and next line as values

data : begin of itab occurs 0,

f1 type c,

f2 type c,

end of itab.

itab-f1 = ' '.

itab-f2 = ' ' .

append itab.

clear itab.

itab-f1 = 'w'.

itab-f2 = 'd'.

append itab.

clear itab.

loop at itab.

write 😕 itab-f1, itab-f2.

endloop.

Read only

Former Member
0 Likes
781

Hi,

just do like the code below

TYPES : BEGIN OF zmr_tc_cert_header,

lfimg TYPE lfimg,

meins TYPE meins,

END OF zmr_tc_cert_header.

DATA : zmr_tc_cert_header TYPE zmr_tc_cert_header.

DATA : it_try TYPE STANDARD TABLE OF zmr_tc_cert_header.

START-OF-SELECTION.

zmr_tc_cert_header-lfimg = ' '.

zmr_tc_cert_header-meins = ' '.

APPEND zmr_tc_cert_header TO it_try.

revert back if not clear

reward if helpful

Read only

Former Member
0 Likes
781

Hi,

Do you wnat to add space for all records of innternal table OR single field.

For all records.

DO 10 times.

APPEND itab.

ENDDO.

For sigle field:

While passing the data to that field make field value empty.

Read only

abapdeveloper20
Contributor
0 Likes
781

Hi,

Just do APPEND ITAB whenever you want to insert empty entry in the internal table(space)

Reward points if useful

Lakshmiraj.A