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 date format conversion

Former Member
0 Likes
972

I am getting the date from a third party interface in the packed form of size 4 char of bit data type. Can this be converted into the SAP format?

3 REPLIES 3
Read only

Former Member
0 Likes
525

can you give one sample Date data so i can change the one and tell you the required step.

Aman

Read only

0 Likes
525

The date would be coming in the asci format . This has to be converted into the SAP format.

Read only

Former Member
0 Likes
525

HI

When converting decimal figures with numbers following the decimal point into binary floating-point numbers, unavoidable rounding errors occur. This is because many decimals (for example, 0.1) correspond to periodic fractions, and are therefore unable to be displayed exactly.

If you choose Calculate with Packed Numbers in the query monitor, packed numbers (ABAP data type P, with nine decimal places) are used as the internal number format for all query key figures instead of binary decimals. Rounding errors are avoided with commercial calculations with this fixed-point number, because in doing so no conversion of numbers into the dual system takes place.

Choose this option for those application areas in which a high accuracy is required (for example, for queries in the accounting and cost accounting areas).

Because calculating with packed numbers causes a high processing status overall, we recommend not using this number format for all query key figures, but rather only for those key figures for which a very high degree of accuracy is required.

You have to make this setting in the InfoObject maintenance for the respective key figure:

1)From the SAP Easy Access Menu, choose Modeling ® Object Maintenance ® InfoObject.

2)Enter the name of the key figure and choose Maintain.

3)To calculate with packed numbers, choose from the Additional Properties tab page under Diverse with the option Key Figure with Maximum Accuracy.

with regards

vinayaka