Showing results for 
Search instead for 
Did you mean: 

Sapscript delete zero

Former Member
0 Kudos

Hello Experts,

I have one problem in one sapscript. The problem is that i display in two columns two fields I_LTAP-CHARG and I_LTAP-VLENR.

After to pass them to my form i delete zero at the left with the MF: CONVERSION_EXIT_ALPHA_OUTPUT.

The first column is for I_LTAP-CHARG and the last one is for I_LTAP-VLENR.

In the sapscript, i call them like this: &I_LTAP-CHARG& and &I_LTAP-VLENR&.

So, the problem that the first field I_LTAP-CHARG is displayed correctly but for I_LTAP-VLENR

is truncated in the begin.

Example: I_LTAP-VLENR = 00000000001200000565

After the call of CONVERSION_EXIT_ALPHA_OUTPUT --> I_LTAP-VLENR = 1200000565

And in the form the value displayed is : 00000565 (Without the two first caracters)

I switch the order of the columns but the same problem, i change the Alignment for paragraph format and the tabulation but always the same problem.

What i don't understand is why the problem occurs just for I_LTAP-VLENR and not for I_LTAP-CHARG and just before Write_Form of the main the value of I_LTAP-VLENR is always correct 1200000565 but when we display the form the value displayed no es correct, why the system truncates the two first letters!!!!

If can anybody explain me why and what is the solution for this problem.

Thank you very much.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos


u can try this:

data: v_vlenr(20) type c.

v_vlenr = ltap-vlenr


This should work. Take note that the 'Z' must be in CAPS.

reward if helpful.

Former Member
0 Kudos

Hello Pratik,

Thank you very very very much.

Your solution solved my problem and now the value is displayed correctly.

Thank you.

Answers (2)

Answers (2)

Former Member
0 Kudos


once value get into I_LTAP

in script text elements give like this



If helpful please reward points



Former Member
0 Kudos

Hi Bhupal,

Thank you for your response.

I tried &I_LTAP-VLENR(Z)& but doesn't work!!!!

What i don't understand why the same logic works for I_LTAP-CHARG and not for I_LTAP-VLENR!!!!!!!!!!!!!!!!!!!!!!

Thank you very much, if you have any other idea give me it pleassse.

Former Member
0 Kudos


try this ,instead of field name give as &fieldname(z)&

you might get it.

reward points if useful,


Former Member
0 Kudos

Hi Siri,

Thank you for your response but unfortunately i tried it but doesn't work!!!!

Thank you very much, if you have any other idea, doesn't hesitate a give me it.