Skip to Content

Printing the invoice number

Hi all,

I try to print the invoice number with &VBDKR-VBELN&.

On my abap program i have the following :

Tables : VBDKR.

For test : I put : VBDKR-VBELN = '000001'.

The value '1' is printed without the leading zeros.

How to solve this ?

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Sep 25, 2008 at 08:01 AM

    Declare a variable with type c and use the following statement

    UNPACK <Source> to <Destination>.

    Eg:

    Data: wrk_vbeln(10).

    UNPACK VBDKR-VBELN to wrk_vbeln.

    Use the variable 'wrk_vbeln' to print.

    Add comment
    10|10000 characters needed characters exceeded