Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

Tags:
Former Member
replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question