on 01-12-2010 3:24 PM
Hi experts!
I have this problem: I have a value of variable that is displayed in a cell of my table. This variable is type char, but the value is numeric for ex. 000000000176. I have to delete in this visualization this zeros. Is there a simple method for delete this zeros directly as property of the field of the table that I visualize in the web dynpro?
Use function module 'CONVERSION_EXIT_ALPHA_OUTPUT' before the binding the table with the context
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use CONVERSION_EXIT_ALPHA_OUTPUT Conversion Exits to trim the preceeding zeros.
DATA: TEMP TYPE C LENGTH 10 VALUE '000000123'.
DATA TEMP1 TYPE C LENGTH 10.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = TEMP
IMPORTING
OUTPUT = TEMP1
.
" TEMP1 will have '123'.
I hope it helps.
Regards
Arjun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Go to the properties of context attribute to which this table column is binded. There is a option to remve leading zeros. or before binding the table to context node. remove the leading zeros by this statement:
shift <your variable containing values> left deleting leading 'O'. now bind the table to node.
Regards
Vishal Kapoor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
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.