Application Development 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: 

&CAUFVD-MATNR& with leading zeros in sapscript

Former Member
0 Kudos

Hi,

i use &CAUFVD-MATNR& in an sapscript-formular for an PP-Order.

It prints the MATNR without leading zeroes.

How is it possible to print this field with leading Zeros?

Thanks.

Regards, Dieter

6 REPLIES 6

GauthamV
Active Contributor
0 Kudos

hi,

use these function modules.

CONVERSION_EXIT_ALPHA_INPUT Conversion exit ALPHA, external->internal

CONVERSION_EXIT_ALPHA_OUTPUT Conversion exit ALPHA, internal->external

reward points if hlpful.

Former Member
0 Kudos

Hi!

Try it this way: &CAUFVD-MATNR(Z)&

Regards

Tamá

0 Kudos

Hi tamas,

thanks for answer. I have tried it, but don't get leading zeros.

Hi gautham,

thanks for answer but how can i use this FM's in sapcript?

Ragards, Dieter

0 Kudos

hi,

use perform statements in ur script and write the form in seperate program.

in the form after u selected data related to matnr.

just use the function module and pass matnr value.

reward points if hlpful.

Former Member
0 Kudos

Use &CAUFVD-MATNR(F f )&

Where f = fill character

Ex:

&KNA1-UMSAT& -> 700.00

&KNA1-UMSAT(F*)& -> **700.00

&KNA1-UMSAT(F0)& -> 00700.00

Regards,

Joy.

Former Member
0 Kudos

thanks to all,

i solve it with perform in script

, special thanks to gautham.

Regards,

Dieter