Skip to Content
author's profile photo Former Member
Former Member

Tab

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....

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 11, 2007 at 09:04 AM

    Hi,

    Check out the Class CL_ABAP_CHAR_UTILITIES.

    regards,

    Navneeth K.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 11, 2007 at 09:10 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 11, 2007 at 09:18 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.