Skip to Content

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

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 ?


Former Member replied

Declare a variable with type c and use the following statement

UNPACK <Source> to <Destination>.


Data: wrk_vbeln(10).

UNPACK VBDKR-VBELN to wrk_vbeln.

Use the variable 'wrk_vbeln' to print.

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