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 |
can anyone told me name of abap interview question book with autor name?
How to handle Errors in Function Modules?
Why do we use dynamic where conditions?
What is Buffering Concept? When should a Table be buffered?
2 Answers Cadila, IBM, ITC Infotech,
What happens when you post goods issue after delivery?
Explain Sales Flow?
in ALV reports how double click event works?
18) Difeerence between various BDC method.Which is the best one?
What are the problems in processing batch input session?
how many types of data is there ?what is customizing data?
What is the system field that stores the level of the list?
Can a transparent table exist in data dictionary but not in the data base physically? : sap abap data dictionary