cancel
Showing results for 
Search instead for 
Did you mean: 

Printing the invoice number

adel_adel
Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (0)