Skip to Content

String Field

I am having one string field...

data : lv_str type string...

i m passing lfa1-name1 which is having around 10 char(suppose)...in the output i need to set this field as 24 chars..

if pass lv_str = 'RAM'.

the left space for the string field set as 24 chars i need to pass as null spaces...

so..for this lv_str in the output i need tp show RAM and 21 blank spaces after it...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Sep 08, 2009 at 05:09 PM

    Hi,

    Check this.

    Instead of string try with char

    data : lv_str(24) type c.
    
    lv_str = 'RAM'.
    
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = lv_str
    IMPORTING
    OUTPUT = lv_str.
    
    write: lv_str.
    
    

    Regards,

    Vikranth

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 08, 2009 at 05:53 PM

    21 blank spaces after it

    ???

    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.