on 02-12-2009 6:57 PM
Hi SDN gurus,
kindly help me ..as i m displaying Shipment number - TKNUM say SAP stores it as 1376..but i want it to display wid its leading zeros 0000001376...
how do i format my text which i m displaying in smartforms..
<< Removed >>
Edited by: Rob Burbank on Feb 12, 2009 2:12 PM
Hi,
After using the &variable(F0)&,, move it to a variable of type n (numeric character). Hope this'll help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried this for Invoice number &vbeln(F0)& but it is not working for me. What am i doing wrong? pls help!
In my case vbeln is a dictionary field of length 10. internally the value for the field is 0012345678 but it is displayed in the form as 12345678.
I tried multiple format options none work. please help asap. thanks.
Resolved by moving it to a variable of type n and formatted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can use
as:
&EKPO-MENGE(T)&
this will remove the comma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
&TKNUM(F0)&
This will fill the leading spaces with 0.
Thanks,
Nithya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nithya,
Thanks for ur reply...
my shipment number tht i wanted to display is 0000001376.. TKNUM..
by using ur suggestion --> &TKNUM(F0).. with this zeros are placed at the required position (leading)
..which is why thanks for tht..but i have declared TKNUM as integer type only then i get leading zeros..& output as 0000001,376 & not as 0000001376..where comma should be avoided..any idea abt this????
create program lines inside your smartform and use FM, CONVERSION_EXIT_ALPHA_INPUT which will pre-fix zero's.
close the thread once your question is answered.
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Before Display UNPACK it to a variable of desired length and use that variable for display.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.