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

Reg : Leading zeros

hi,

In my report Iam using two parameter values .

P_BUKRS of length 4 chars and has a value of 0600

P_VBUND of length 6 chars and has a value of 470.

Now I need to interchange these values. i.e. P_BUKRS should be 0470 and P_VBUND should be 0600.

now my question is : as P_VBUND is of 6 chars in length I want the value to be 000600.

how to get this?

Regards

vaja

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Nov 20, 2007 at 12:17 PM

    FM 'CONVERSION_EXIT_ALPHA_INPUT' will put the correct number of leading zeros on for you.

    i.e.

      call function 'CONVERSION_EXIT_ALPHA_INPUT'
        exporting
          input  = p_vbund
        importing
          output = p_vbund.

    matt

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 12:17 PM

    Hi,

    Use conversion routines

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 12:25 PM

    Hi Vaja,

    Goto ur field VBUND , double click on domain. u will see conversion routine alpha. double click over there. See FM for convertion

    Use CONVERSION_EXIT_ALPHA_RANGE_I

    u will get the leading Zer0.

    If it is helpfull reward pts pls.

    Regards

    Srimanta

    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.