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 3 types of function modules in sap?
can any one answer these questions 1)How do you convert non-character field to character field? 2)How do you work with semi colon separated files? 3)why cant we use normal function module for data transfer? 4)what is the structure of CTU-PARAMS? 5)can we use transfer dataset to transfer data in internal table?
What are the functional areas? User groups? and how does ABAP query work in relation to these?
What are the different abap editors? What is the used of different editors in abap?
What are the 2 other types of views, which are not allowed in release 3.0?
Can anyone done BDC/LSMW/BAPI for F-02 and F-04.If yes let me know the processs
What are the system fields? Explain?
Static and instance variable and method with live example. Why and when to use
How do you control printer functions from sapscript?
How does the interection between the dynpro and the abap/4 modules takes place?
How to handle error in session method? : abap bdc
How you attach search help to data element? : sap abap data dictionary
What are the different modes of processing batch input sessions? : abap bdc
Lock objects and what are parameters of ENQUEUE FM?
How to use messages in lists?