In an Internal table how do you suppress or add the leading
Zeroes for a particular field in your itab?
Answer Posted / 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 |
Post New Answer View All Answers
How can you find the field/data underlying a transaction?
What happens if only one of the commands set screen and leave screen is used without using the other?
What are the events we use in dialog programming and explain them?
What is meant by payscale structure? How did you configure pay scale structure? : sap abap hr
if while coding power goes off , how to retrieve the codes?
Double click function on the lists, identifying the line selected by the user on the list?
What are the different methods of bdc? : abap bdc
In sap script how to print bar code in vertical manner
What are the advantages and disadvantages of ABAP query tool?
What are the prerequisites for creating foreign key relationship?
Explain the advantages and disadvantages of abap query tool?
Explain buffering
What is a report?
How do you send files to the legacy systems from sap and vice versa? How does one know that the legacy files have come on to the sap server you are working on? : abap bdc
What is check table?