on 07-02-2008 11:21 AM
HI FRIENDS,
I WANT TO SUPRESS THE ZERO'S
MY MATNR NUMER IS 0000000025.
I WANT TO DISPLAY IN MY SMART FORM ONLY 25
TO DISPLAY MATNR THE VARIABLE NAME IS MATNR
IN MY SMARTFORM.
I USED &MATNR(Z)& IN THE TEXT.
BUT THE OUT PUT IS SHOWING LIKE THIS
0000000025.
HOW TO SUPRESS.
Hi Sripathi,
When certain symbol values are printed with leading zeros and if you want to suppress these, use the Z option.
Syntax :
&symbol(Z)&
Assuming the current date is 1.1.1994,
&DAY& -> 01
&DAY(Z)& -> 1
Regards,
Swapna.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
check your formatting option whether it is in lower case or upper case... this does make difference...
IT should be in capitals
regards
padma
Edited by: Padmavathi Palli on Jul 3, 2008 12:07 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Depending on the declaration of the variable matnr
you can use these 2 lines (in the program or in the smartform directly)
SHIFT matnr LEFT DELETING LEADING SPACE.
or
SHIFT l_pcsd LEFT DELETING LEADING '0'.
Bests,
Nadja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
by calling this fm u can supress the zeros.
CONVERSION_EXIT_MATN1_OUTPUT
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
&field(Z)& should have worked..(did u use Z in caps?)
ne ways...you can use this
SHIFT field LEFT DELETING LEADING '0'.
so...if say field = 00025 then it will become 25.
or else you use the fm(conversion exit)
CONVERSION_EXIT_MATN1_OUTPUT
reward if helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sripathi,
u can use the FM CONVERSION_EXIT_ALPHA_OUTPUT for this.
regards,
Vasuki
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
DATA:wf_field(20) type c.
wf_field = wf_matnr.
SHIFT wf_field left DELETING LEADING '0'.
try this..it ll work...
reward points if helpful..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
USe FM CONVERSION_EXIT_MATN1_OUTPUT.
Regards
Raju Chitale
Edited by: Raju Chitale on Jul 2, 2008 12:24 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.