Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 table controls in bdc ? What is the difference between bdc and lsmw ?what is the difference between bdc and rfc ? : abap bdc

1093


In select-options, how to get the default values as current month first date and last date by default?

1053


What are the different types of luws. What are they?

1101


Can you define a field without a data element? : abap data dictionary

1101


What are the data types of internal tables?

1022


How many primary keys can be created for a table?

1013


Explain the difference between a pool table and a transparent table and how they are stored at the database level?

1030


What are the aggregate objects in data dictionary? : sap abap data dictionary

1132


What is the tcode to create indexes?

977


I need the coding for BDC program to upload Purchase orders of known vendor (ME21) in Material Management

2190


What do you mean by transparent tables in sap abap? : abap data dictionary

964


What is alv programming in abap?

1080


What are interactive reports?

1005


How to create any functions? How to go about it?

1026


can anybody give me functional specification (or table name & field names) of stock analysis report, work in progress report,generating vendor detailed list

1907