Skip to Content

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

SapScript problem with leading zeros

Hi,

I print field LTAP-NLENR.

But when i use &LTAP-NLENR& leading zeros are cut.

I need to display it with leading zeros. (ex. 0000000000010000000001)

Please help.

Regards,

Greg.

Tags:
Former Member
replied

&LTAP-NLENR(K)& works fine for me with your requirment.

I have defined a L_VAR like this:

data: L_VAR type LTAP-NLENR.
l_var = '0000000000010000000001'.

In my script I use like this:

P1   &L_VAR(K)&

SO, try to pass that value to some other variable and see what happens.

Regards,

Naimesh Patel

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