Type P (Packed Number) Specifications ?
Hi Experts,
Are there any document to get detailed information about data types especially type P (Packed) data types.
Hi,
Check the link below
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2fd9358411d1829f0000e829fbfe/content.htm
http://abap4.ru/doc/1/types.htm
ABAP/4 Data Type
In ABAP/4, we can declare data by command DATA.
Type Description Initial Value
C Character Space
D Date 00000000
F Floating Point 0.0
I Integer 0
N Numeric Text 0
P Packed Decimal 0
T Time 000000
X Hexadecimals X00
Packed numbers - type P
Type P data allows digits after the decimal point. The number of decimal places is generic, and is determined in the program. The value range of type P data depends on its size and the number of digits after the decimal point. The valid size can be any value from 1 to 16 bytes. Two decimal digits are packed into one byte, while the last byte contains one digit and the sign. Up to 14 digits are allowed after the decimal point. The initial value is zero. When working with type P data, it is a good idea to set the program attribute Fixed point arithmetic.Otherwise, type P numbers are treated as integers.
You can use type P data for such values as distances, weights, amounts of money, and so on.
Similar Messages
-
New Document Types and new Number Ranges
Hi,
Plz tell me How to configure New Document Types and new Number Ranges for Services and Asset Purchases.
How can i maintain Services with or without Master data.
Plz tell how much services are there and how to configure step by stepHi
New document type can be configured in SPRO - SAP IMG- Material management - Purchasing - Purchase order - Define number rabges / define document types.
With out service master straightaway you can create the Service PO with account assigment.
AC03 - Create service master record.
ML10 - Model service specifications
Then Service conditions ML33 or ML39 or ML45
Create the PO and then do the service entry in ML81N
Regards,
Raman -
Floating point Number & Packed Number
Hai can anyone tell me what is the difference in using floating point & packed Number .
when it will b used ?<b>Packed numbers</b> - type P
Type P data allows digits after the decimal point. The number of decimal places is generic, and is determined in the program. The value range of type P data depends on its size and the number of digits after the decimal point. The valid size can be any value from 1 to 16 bytes. Two decimal digits are packed into one byte, while the last byte contains one digit and the sign. Up to 14 digits are allowed after the decimal point. The initial value is zero. When working with type P data, it is a good idea to set the program attribute Fixed point arithmetic.Otherwise, type P numbers are treated as integers.
You can use type P data for such values as distances, weights, amounts of money, and so on.
<b>Floating point numbers</b> - type F
The value range of type F numbers is 1x10*-307 to 1x10*308 for positive and negative numbers, including 0 (zero). The accuracy range is approximately 15 decimals, depending on the floating point arithmetic of the hardware platform. Since type F data is internally converted to a binary system, rounding errors can occur. Although the ABAP processor tries to minimize these effects, you should not use type F data if high accuracy is required. Instead, use type P data.
You use type F fields when you need to cope with very large value ranges and rounding errors are not critical.
Using I and F fields for calculations is quicker than using P fields. Arithmetic operations using I and F fields are very similar to the actual machine code operations, while P fields require more support from the software. Nevertheless, you have to use type P data to meet accuracy or value range requirements.
reward if useful -
Hi.
Net connector returns the string and when I parse it I end up with packed number format in STRING data type.
Is there some function in connector or external library that simply and quickly transforms BCD string to Decimal and vice versa?
Or any trick to do that. Tried to retype via net connector, but says string cannot be converted to decimal.
Am I only one who needs this functionality. Was digging google half day found nothing.
Thx
JurajHi Gaurav,
I tried a small program and found no problem in moving the data. Just check the length of char field..or try this program
DATA: pack TYPE p DECIMALS 5,
char(10) TYPE c.
pack = '5.00345'.
MOVE pack TO char.
WRITE char.
//Kothand -
How can i restrict the Expenditure Type values at a specific OU ?
Dear Guys,
I would like to ask about the Expenditure Types,
I have implemented two projects for different Operating Units ,
when navigating to any Projects responsibilty,and navigating the Expenditure Type field
the values exist are all the values implemented across the OU not the values entered at this OU
How can i restrict the Expenditure Type values at a specific OU
Regards
Amr HussienHello
When you set up a project there is an option called Transaction Control.
This option allow you to list the allowed or restricted elements of costs for the project.
You may enter the transaction control on a project template and that will be copied to any new project.
The cost elements may be expenditure types, expenditures categories, suppliers, employees, etc.
In your case, I suggest to set up specific project templates for each operating units. On each template enter the list of allowed expenditures types for that OU.
Doing so, the system restricts users from entering any expenditure item, supplier invoice, purchase cost etc, against an expenditure type, which is not allowed.
Dina -
How can I create accurate decimal dimensions when creating a new document or using the art board in Illustrator CS6? When I type in a number with a decimal, it automatically rounds the number up.
For my part you are welcome, sdowers.
Unfortunately, the uncertainty arising from the rounding has been up several times here in this forum.
I just came to remember a warning that needs to be given:
The rounding of the representation of a numerical value may be harmless in itself, but if you use it for any operation that changes the value, such as multiplication or whatever, things will go wrong because the operation will be made on the basis of the rounded value instead of the true value. So, as in your first case in post #2, 39.625 rounded to 39.63 will become 79.26 instead of 79.25. -
Define type of partner number - Table TVPA
Hi,
Do you know if it's possible to manage a new entry in table TVPA in order to add a new type of partner number please ?
I want to add a partner type like a purchasing group (EKGRP).
Thanks for your help.
AlexYou can't make any entry in this table as the delivery class reads S-System table, maint. only by SAP, change = modification.
Regards, -
Reg: Document type should allow only one Material Type or a number series
Dear Experts,
In my project , clients requirement is to restrict the Material Type or the number range assigned to a Matreial Type for a perticular PO Document Type. We have one document type for Local Work Order -YLWO in which we want to enter the DIEN material type material code only. since we want to use the Po document type to procure service from local vendor and same time we dont want to use the SERVICE Entry Sheet for the external service. Please guide me...
My opinion is -- We can try with USEREXIT or BADI.
If I am right then can any body suggest me Badi or USEREXIT name....
We are using 4.6C so I am facing some problem .
Thanks in advance.
Regards
DibyaCheck the following BADI with your ABAP Consultant
ME_PROCESS_PO_CUST
I have used this BADI for controlling the type of vendors according to PO document type. Currently I do not have access key to check the fields in this user exit. Check with your ABAPER on this whether it can fulfill your requirement.
The use of item category D results into the service entry sheet. If you want to use DIEN material type then you have to do GR.
what is the difference from your requirement ???
Service entry sheet is nothing but the GR only.
DEIN material type is used basically from SD or Customer service module.
please make clear to forum what is your some problem by using 4.6C. It is too generic a statement. -
How to type in one number do a LOOKUP function on that number.
I want to be able to type in a number in one cell. I want the LOOKUP function to find that number in a column and produce another number in a corresponding column.
I want to type in a number in A1. Then in another cell lookup the number in A1 in b1:b40 and then display the corresponding number in c1:c40.
I want something like this...
=LOOKUP(A1, B1:B40, C1:C40)
ThanksYour lookup function looks in B1:B40 to find a match to the number in A1 and returns with the corresponding value from C1:C40. Typically, B1:40 and C1:C40 would be in another table (i.e., a lookup table) and this function would be in the original table next to A1.
Cell B1 = LOOKUP(A1, Table 2::B1:B40,Table 2::C1:C40) -
Packed Number Sign Format to Ascii equivalent java program
Hi
I have a requirement to convert the packed Number Sign Format(usually used in MainFrame Platforms) to Ascii equivalent .
please help me out with java code or steps to be done to achieve these task
thank's
habeeb
[email protected]
[email protected]Already answered in other thread.
-
Text data for condition type & customer po number
Will there be any text datsrc available for condition type & customer po number
Example I am displaying condition type data & customer po number data in my report
condition typ customer po nu
JASS 1001
JEEP 121Hi,
goto Tx LBWE, application 11, maintain extract structure MC11VA0HR.
Check if your field is on the right side, you should find at least the following
MCVBAK CMFRE release date
MCVBAK KTEXT Description
if they're on the right pane, then you'll have to include them for extraction; depending on if the delta is already initialez or not, if you want past history as well, the procedure might be more less complicated.
regards
Olivier. -
Error type mismatch unparseable number
we are upgrading to crystal 2008 and i am running my report thru info view using activex viewer - i have some parameters that i check set to null values when i do this i get the following
error
error type mismatch unparseable number
this report calls a store procedure
has anyone seen this errorHi Dilia,
I'm not sure if I understand you correct. You are upgarding to CR2008 but running your reports through infoview active X viewer. Do you mean you created your reports in CR2008 and exported them to your BOE XIR3 enterprise system and you face the problem there?
Coudl you clarify this please and let me know which BOE version you use?
Re. the stored procedure....
If you got a SP with IN parameters (see example below) please make sure you handle actually parameters with NULL values in your SP.
Create procedure test (IN Name VARCHAR(30))
P1:BEGIN
DECLARE CURSOR ....
IF (NAME IS NULL) THEN
set dynstatement = 'select * from testtable'; -
S30 Machine type and Serial Number are INVALID
Hello, I am wondering if I can get some help here.A while back I had a motherboard replaced by lenovo service. The machine arrived turned on once and then it died.Once the tech left the machine was used a handful of times and then stored. I a now working on it and I noticed this screen, which appreared after the mobo replacements. Iam wondering if anyone knows how to fix this issue. What is Error 00CE really saying? Thanks
It's really saying what shows on the screen there....the serial number and machine type are invalid. My guess is the tech that replaced your board did not update the MTM/SN fields when he flashed BIOS on the new board (if he flashed BIOS at all), and those fields are still listing the defaults that are populated by the board manufacturer.
Run the latest DOS BIOS flash package (I think current BIOS is 45 maybe for the A0 branch), and when prompted, enter the correct information from your system for the machine type and serial number. That should alleviate the POST error you're seeing. -
HT5012 Where to type the serial number for wifi
Where can I type the serial number for my IPhone 4s
The serial number of your phone has nothing at all to do with WiFi. Please rephrase the question or post in your native language.
-
How to get Class Type form Material Number
Hi All,
Based on the Material Number I have to get the Class Type and Class Number.
I tried with FM -- QMSP_MATERIAL_BATCH_CLASS_READ
but it always shows Class type = 023
and database table for object = MCH1 for any given material number.
Please help me out.
Thanks & Regards,
MoniHI Moni,
Please check these FM.
CLAF_CLASSIFICATION_OF_OBJECTS
CUD0_GET_VAL_FROM_INSTANCE
CE_I_GET_CONFIGURATION
VC_I_GET_CONFIGURATION
VC_I_GET_CONFIGURATION_IBASE
look for the characteristics and charactertic values in tables
ALLOCVALUESNUM
ALLOCVALUESCHAR
ALLOCVALUESCURR
if this is not working
you can also get these information directly from the tables.
KSSK - object class assignment
and KSML - class characteristic assignment
and for char values use table AUSP
Thanks!
Maybe you are looking for
-
Adobe Bridge CS4 stopped working after Mavericks 10.9.3 upgrade
I don't know if it is due to the upgrade today or something else, but since upgrading, I cannot use the file folder function in adobe bridge cs4. The files are on the drive and can easily be found in finder but the favorites in bridge and folder func
-
Hi, I have just got a brand new 23' Apple Cinema display working with me new mac pro. About two days in to it's use the top half of the screen has started to flicker at random times and for no set time. I have got all the power cables as far away as
-
Performa 600 repair/replace options
I have a 15 year old Performa 600 that will no longer power up.I have used it for record keeping and financial information that I would like to keep. I'm unsure about the operating system(OS 8.0?). I would like to replace, repair or access the inform
-
SNP Heuristics is not picking up contracts as source of supply
Hi Experts, I have a strange situation here. I have integrated a vendor contract with APO, which has created an external procurement relationship and a valid transportation lane. When I create a receipt element manually through /n/sapapo/rrp3, the
-
Stage wise payment for Service orders
Hi techies, stage wise payment for Service orders. Following items are required in SAP while creating & releasing Service Entry. Matter has detailed by following example: Stage wise payments for an item for eg: Rate is Rs 100 per Rmt. Item shall be c