In an Internal table how do you suppress or add the leading
Zeroes for a particular field in your itab?
Answers were Sorted based on User's Feedback
Answer / student
We can use a function module 'CONVERSION_EXIT_ALPHA_INPUT'
to add the leading zeros.
example:
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = P_KUNNR
IMPORTING
OUTPUT = P_KUNNR.
Is This Answer Correct ? | 24 Yes | 1 No |
Answer / pramod upadhyay
Unpacks the packed field A and places it in the field B
with leading zeros. If B is too
short, it is truncated on the left.
Example:
DATA: p_field (2) TYPE p VALUE 103,
c_field (8) TYPE c.
UNPACK p_field TO c_field.
WRITE: p_field, c_field.
Output: 103,
00000103.
To delete leading zeros use PACK.
Is This Answer Correct ? | 21 Yes | 0 No |
Answer / nirmalafredrick
to suppress u can use NO-ZERO
ex:
write stnumber no-zero.
here the field stnumber will be displayed without leading zeroes
Is This Answer Correct ? | 2 Yes | 5 No |
What are Standard Texts?
What is occurs in internal table?
in bdc which method best comape to call transaction and session method?with example?
1 Answers vCentric Technologies,
What is a transport?
performance tuning concepts
Give few names of cluster tables in sap ?
What is the use of 'table index'?
Can we modify data in data base table using view?
How debug a back ground job?
6. wat is pf status interactine report?
Companies in India which are working in SAP-ISU?
How are BAPI different from Normal function modules ?