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

Tab

Former Member
0 Likes
624

Help!!

Do you know the counterpart of tab in sap?? as in tab space.

I have a code like this:

LOOP AT gt_pr INTO wa_pr.

WRITE wa_pr-pstatu.

ENDLOOP.

wa_pr-pstatu has a value of (1pr , 2rq, 3po).

I need to have an output like this 1pr , 2rq, 3po with a condition that the line is indented.

Do you know how to do it???

Help me please....

3 REPLIES 3
Read only

Former Member
0 Likes
585

Hi,

Check out the Class CL_ABAP_CHAR_UTILITIES.

regards,

Navneeth K.

Read only

Former Member
0 Likes
585

press F1 on write statement...there are various options in write statement only....

u can format it as per ur requirement....

reward points if helpful

Read only

Former Member
0 Likes
585

data : l_string(255) type c.

LOOP AT gt_pr INTO wa_pr.

COncatenate wa_pr-pstatu l_string into l_string separated by cl_abap_char_utilities=>horizontal_tab.

ENDLOOP.

write 😕 l_string.