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


Please Help Members By Posting Answers For Below Questions

What are the 3 types of function modules in sap?

706


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?

1654


What are the functional areas? User groups? and how does ABAP query work in relation to these?

800


What are the different abap editors? What is the used of different editors in abap?

668


What are the 2 other types of views, which are not allowed in release 3.0?

713






Can anyone done BDC/LSMW/BAPI for F-02 and F-04.If yes let me know the processs

2039


What are the system fields? Explain?

755


Static and instance variable and method with live example. Why and when to use

1021


How do you control printer functions from sapscript?

827


How does the interection between the dynpro and the abap/4 modules takes place?

768


How to handle error in session method? : abap bdc

781


How you attach search help to data element? : sap abap data dictionary

788


What are the different modes of processing batch input sessions? : abap bdc

745


Lock objects and what are parameters of ENQUEUE FM?

1355


How to use messages in lists?

693