Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Packed Integer

Former Member
0 Likes
1,444

Hi Everybody,

I want to know what is the date type at Dictionary level for Packed Integer.

I mean i am defining a field that stores amount value and it will have decimal values so what should be the data type for it in data dictionary.

Regards,

Aima

9 REPLIES 9
Read only

Former Member
0 Likes
1,114

Hi,

Use data element WERTV8 (this can store +/-) OR use data element WERT8 if you dont want to store negative amounts

OR if you want your own field labels then you can use

domains WERTV8 or WERT8 and create your own data element using these..

Sri

Message was edited by: Srikanth Pinnamaneni

Read only

Former Member
0 Likes
1,114

Hi aima,

Try the following

Data Type AMUNT

or

Domain: BETRG

Thanks,

Ravi

Read only

andreas_mann3
Active Contributor
0 Likes
1,114

Hi,

data type is CURR.

example : bseg-wrbtr with domain WERT7

regards Andreas

Read only

Former Member
0 Likes
1,114

Hi,

You can use data type CURR for currency fields.

There are different data elements existing in ABAP for these. You should probably check out domains that start with CURR. For eg: CURR12 is 12 characters + 2 decimal places.

Regards,

Sudha

Read only

0 Likes
1,114

Hi Sudha,

If i am defining Curr as my data type in my domain then it is asking me the Check Table ,so could any one say me the check table for the data type CURR.

Regards,

Aima.

Read only

0 Likes
1,114

Hi Aima,

When you assign a CURR type to any field, SAP expects that field to be linked with a currency type (USD, GBP,..). Any currency you enter in this field will take on the currency defined in the currency type. SAP maintains currencies in the table TCURC.

I suggest you create another field in the table, of data type CUKY, which will hold the currency type. The reference table and field for the CURR field will be this CUKY field, and the CUKY field will in turn refer to the TCURC table.

Hope this makes sense.

Sudha

Message was edited by: Sudha Mohan

Read only

0 Likes
1,114

Hi,

if you have not a field from type cuky in your table,

just use bkpf-waers as reference field for currency amount

Andreas

Read only

Former Member
0 Likes
1,114

You can check out the data types at dictionary level in DD03L table.

specify Table name - VBAK , fieldname - Netwr

then you get the data types at dictionary level.

inttype - P

intlen - 8

Datatype - CURR

length - 15

decimals - 2

This may help you out.

Regards,

Sailaja.

Read only

Former Member
0 Likes
1,114

Note, be careful with SAP: to store an amount of 5 USD into a field with 2 decimals, you store it 5.00 (no problem), but if you store 5 ADP you must store it 0.05. It's the way SAP manages currencies. Table TCURX contains number of decimals by currency.