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
What are the table controls in bdc ? What is the difference between bdc and lsmw ?what is the difference between bdc and rfc ? : abap bdc
In select-options, how to get the default values as current month first date and last date by default?
What are the different types of luws. What are they?
Can you define a field without a data element? : abap data dictionary
What are the data types of internal tables?
How many primary keys can be created for a table?
Explain the difference between a pool table and a transparent table and how they are stored at the database level?
What are the aggregate objects in data dictionary? : sap abap data dictionary
What is the tcode to create indexes?
I need the coding for BDC program to upload Purchase orders of known vendor (ME21) in Material Management
What do you mean by transparent tables in sap abap? : abap data dictionary
What is alv programming in abap?
What are interactive reports?
How to create any functions? How to go about it?
can anybody give me functional specification (or table name & field names) of stock analysis report, work in progress report,generating vendor detailed list