Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Sapscript fill character

Former Member
0 Likes
561

I need to print quotation no(vbdka-vbeln) by adjusting it by zeros to 10 characters. i know that &symbol(F0)& should work. But this does not fill the field.Any suggestions?

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
493

Hi,

Try using &vbdka-vbeln(F0)& for printing quotation # with leading zeros.

Vamsi.

3 REPLIES 3
Read only

Former Member
0 Likes
493

Hi,

Declare a variable of type N length 10 in u r print program. Assign the value of vbdka-vbeln to it and use the same field in the layout for printing.

data:v_num(10) tyne n.

v_num = vbdka-vbeln .

use &v_num& in the layout for printing with leading zeros.

plz reward points.

Thanks,

Vamsi.

Read only

Former Member
0 Likes
493

Hi

you can use a variable (long 10 char) type c to print the number.

The field VBDKA-VBELN is associate to conversion routine ALPHA to remove the zero at the left.

Max

Read only

Former Member
0 Likes
494

Hi,

Try using &vbdka-vbeln(F0)& for printing quotation # with leading zeros.

Vamsi.