Size of packed field
hi,
what is the size of packed field
Hi,
By default packed size is 8 bytes, range of the packed data type is 1 to 16 bytes.
If u didn't specify any thing in the declaration. it occupies 8 bytes ... Ex. data num type p.
If u want some then u can specify the bytes how many u want like below..
Ex. data num(2) type p. Here It occupies only two bytes..
Complete syntax of packed type is u should specify the decimals how many u want..
data num type p decimals 3. ... That means after integer it prints 3 decimals. Ex ouptut 2345.123
Thanks and Regards,
surya
Similar Messages
-
what is size of PACKED FILED?
please explainHello,
The value range of type <b>P</b> fields depends on their length and the number of decimal places. P fields can be <b>1 to 16</b> bytes long, with two decimal digits packed into each byte, and one decimal digit and the sign packed into the last byte. There can be up to <b>14</b> decimal places. Auxiliary fields for intermediate results are always <b>16 bytes</b> long and can thus hold up to 31 decimal digits. To ensure that the decimal point is correctly calculated, you should always set the program attribute "fixed point arithmetic". Otherwise, all numbers are specified as integers and all intermediate results for the next integer are rounded. If "fixed point arithmetic" is not set, the decimal places defined for the number only appear when outputting with WRITE.
Fixed point arithmetic is decimal arithmetic and is similar to using a pocket calculator or calculating with paper and pencil.
Type <b>P</b> is typically used for sizes, lengths, weights and sums of money.
Reward if helpful,
Regards,
LIJO -
Edit Size for Numeric fields - 2007 vs. 2005
Hi,
I set up a user-defined field with VB code in 2005 with an edit size of one; no problem. The same code in 2007 fails saying that the field size deviates from legal range [1...11]. The "1" I am using is in the range.
Any ideas?
Thx, mikeDear
The UserFieldsMD.Size property is the actual size of the field in the
database and is set automatically based on the value set in the
UserFieldsMD.EditSize property. You should not assign any value to the
Size property.
So in your code, replace
uf.Size = 1;
with
uf.EditSize = 1;
best regards,
xiaodan an -
How to know the specific size of a field in oracle table
Hello,
oracle 11.2.0.3 on redhat
i have three tables with same structure, table0, table50, table100:
create table table0 (id number, shipment RAW(2000), options RAW(2000));
i inserted 10000 rows in each but with some differences:
table0 has 10000 id, but shipment and options has null values
table50 has 10000 id, but shipment and options has only 5000 rows, the other 5000 are null values
table100 has 10000 rows of id, shipment and options. No null values.
I want to know the specific size of each column, also the size of each row, to know the exactly size of the field.
for example:
row 1, column options of table100 has "asdfasdfagasdgasbabsdgoasdpgiahnwe1129u412094u12"
row 2, column options of table100 has "a".
both are raw datatype, but i think its space will has different size (bytes), how to know it? any query?
I found this query:
select owner,tablespace_name,segment_name,sum((bytes/1024/1024)) Bytes
from sys.dba_extents
where owner in 'MAA' and segment_type='TABLE' and segment_name ='TABLE00'
group by tablespace_name,owner,segment_name
order by owner,tablespace_name,segment_name, bytes; but i think it isn't my solution.thx mr. sb92075
i tried with vsize too but same result:
with table50
SELECT VSIZE(OPTIONS) FROM TABLE00;
VSIZE(OPTIONS)
1000
1000
1000
1000
*with table100
SELECT VSIZE(OPTIONS) FROM TABLE100;
VSIZE(C_ELECCION)
2000
2000
2000
2000
*it's the same size for 'a' like 'abcasdfjañldngaosnbaposnbpaosuqroiwejrklasndiaoshbaposdjgajs'?? It's hard for me to believe.
data is saved in blocks, a extents is a contiguos number of blocks and a group of extensions are segments. If you insert some text in a table field, Oracle create a extension and insert there the data but depend the bytes you insert Oracle will create one or more extents. How to know this specific space in that field? -
Hi - I am typing information into a Adobe document which was created by another user. I would like to change the font size for the field so the complete entry can be viewed. I have Adobe Acrobat Standard version 9 and my operating systems is Windows.
Thanks so much for your help with thisYou have to go to the form edit mode. Check the properties (ctrl-D) to see if you are allowed to edit first.
If so, try the forms menu>edit fields. Right click on the field and select properties. The is often an auto mode that will let the font size adjust if you run out of room.
If you can not do the edit just suggested, then the form was likely created in Designer and you will have to select to edit the form with Designer to make the change. -
Enlarge size of a field on screen
Hello,
I'm looking for a way to enlarge the size of a field on screen. For instance when you have the Delivery screen the field where the name of the customer is shown is quite short. When the customers name is in total 60 characters you only can view 30 characters.
So the see all the characters it would be nice that you could enlarge this field.
I know that the are programs like Screen Painter and add on's like B1UP to alter your screen, but do you really need to use these programs to alter what I would like to do. If so is Screen Painter the only free program to do so.
Best regards,
TimTim,
Just painter is just a tool at design the screen layout, I do not believe you would be able to manipulate an existing B1 form using this.
What tools like B1UP do is generate SDK Code in the background based on your selection and setting in the GUI.
So the answer is you could do it without any Addon's by using SAP's SDK tools
Suda -
Maximum Size for a Field in a TABLE.
Hi All,
I need to create a field in a ZTABLE which can hold the maximum data. This is intended to hold a structure (of any kind) on a temporary basis untill another event is completed.
What can be the maximum recommended size of a field in a ZTABLE.
Thanks in advance..!
Jr.It seems that the maximum is 3000 for a char field...Most recommended...Not sure...Just try to keep it small -:)
Greetings,
Blag. -
How To Increase the Size of Memo Fields 4000 Char in WebCenter 11g?
How To Increase the Size of Memo Fields greater than 4000 Char in WebCenter Content (UCM) 11g?
I was able to increase the size of Memo field from 2000 Char to 4000 by setting parameter value MEMOFIELDSIZE=4000 . But the requirement is to increase the size more than 4000 around 7000 char but Database(Oracle 11G) is not supporting more than 4000 char.
Is there any other way to increase the size of Memo field?
Thanks in Advance!!
Regards
RamHello All,
Thanks for your responses.
Let me explain the scenario again in detail:
1. we have three meta-data fileds xProductCategory,xProductFamily and xProducts
2. These fields are related with DCL feature and corresponding values are being stored in corresponding custom Views
3. xProducFamily is dependent of xProductCategory and xProduct is dependent on xProductFamily
4. currently, there are around 250 Product values and average name of Product can be of 25 Char, so if we are selecting all product values for some Contents then Product Values are being stored in DocMeta table as comma separated values with one space, so total characters are being very high than 4K Char.
5. Currently view that is storing the Product values, stores "Name" column instead of ID(like 1,2,3....)
6. And our Content Server is integrated with Oracle WebSenter Portal, where logic has written to retrieve the contents based on "Product Name" instead of "Product ID" and already we are in UAT phase.Currently we are not in situation to revert the changes from Product Name to Product ID.
7. Also if we are storing the values on the basis of Product ID, then again the issue may arise in Future, if the number of Products increased.
Hoping the issue explanation is clear now and waiting for some possible solution for increasing the length of memo field.
Thanks in Advance !!
Regards
Ram -
Help in changing the size of a field length.
hello,
i need to change the size of a field in the table PAYR for the field CHECT.
Present size is 13. I want to make it as 20. Is there any OSS notes for this. If yes, Please let me know how to implement that.
Thanks
SenthilI hope there will not be any note for this.
Please follow the procedure.
Go to the domain and Check the domain where it is used and meke sure that it will effect all the tables where it is embeded.
If you want to change this leangth you have to take the OSS key for that hope you have service.sap login id right.
There you have to give the details of that domain object and go for the generate key.
The domain details you have to provide while generating the key .
these details we will call it as object directry enties.
Take all those things and give while you are genereating the key.
Hope you will do it.
Regards,
Madan. -
Packed field contains incorrect BCD format. : HELP!!
HI All ,
I have a Business Connector Error message which I am not able to resolve. When I try to pass test data to SAP from BC using "Run" function I get the following message "Packed field contains incorrect BCD format"
I know this message is related to the amount fields : I am calling a SAP Bapi /POSDW/BAPI_POSTR_CREATE .
I have tried a lot of combinations of sending the amounts but I always get this message. The SALESAMOUNT field in SAP in the BAPI is DEC with length 28 and DEC as 9.
Pl advice how should the amount fields be formatted ? if possible with an example ,,say if my amount is 100.00 then what should I mention in the test run ??
I am really new to Business Connector hence any help will be greatly appreciated.....
Thanks and RegardsDaniel,
Try moving yout total to a charcater fields.
When loading data inti IT0008 ANSAL has to be type c otherwise the data doesn't load.
So once you have your total move to L_total and use this in your BDC.
Cheers
Julie -
Problem in increasing the size of the fields in predifined forms.
Hello All,
I am facing aproblem while increasing the size of a field in predefined forms.I want to increase the size of remark field from 254 character to like 400 characters in A/R Invoice form of sales A/R module.
I tried to update the related field (OINV- Comments) directly from sqlserver but its not reflecting in sSAP form and still remark field is taking 254 characters only.
Please help to how to Increase the size of the fields in predifined forms.
Please reply ASAP, its very urgent.
Regards,
Nagababu.First of all you loose support as soon as you modify any table directly from SQL Server. You should NOT change any fields since this may affect how SBO works. Just by resizing a field doesn't mean that it will get resize in the form since you still have the programming part of it.
If you have new functionality or changes of that type I would suggest to post a message to support on the partner portal and/or post a comment in the SAP B1 forum here at SDN on the forum that handles new functionalities request.
Regards,
WB
PS.- Do a search at the SDK forum and there is a post where there is a list of what you can and CAN NOT do to tables beloging to SAP B1. -
Error in outbound queue. Packed field contains incorrect BCD format
Hi,
Can anyone please help me with this.
In the outbound queue of CRM, the queues are stuck up in SYSFAIL state.
The error is ' Packed field contains incorrect BCD format.'
Can anyone suggest what this could mean?
Regards,
PratimaHi Pratima,
In the CRM Server, the structure has more fields than in the R/3 System. Fields BAPISDIT-TAX_AMOUNT, BAPISDIT-CR_EXCHRAT_V and BAPISDIT-EXCHRATEST_V have data type 'DEC' and do not exist in the R/3 System. During the initial download, the fields receive the value '020202...' and cause the termination "The packed field does not contain a correct BCD format" in function module CRM_SALESDOC_MAP_BAPI2MBDOC.
Use Transaction SE11 to add the following fields at the end of structure BAPISDIT in the R/3 System:
PLANDLVSCH PLAVO CHAR 4
SEQUENCENO CHAR35 CHAR 35
CREDPRIC UMREFF FLTP 16
PAY_GUARAN CHAR2 CHAR 2
GURANTEED UMREFF FLTP 16
CFOP_CODE CHAR5 CHAR 5
TAXLAWICMS CHAR3 CHAR 3
TAXLAWIPI CHAR3 CHAR 3
SD_TAXCODE CHAR2 CHAR 2
VALCONTRNR CHAR10 CHAR 10
VALCONTRIT POSNV NUMC 6 *
ASSORT_MOD W_SORTK CHAR 18 *
VALSPECSTO KZBWS CHAR 1
MATGRHIE1 CHAR18 CHAR 18
MATGRHIE2 CHAR18 CHAR 18
PROMOTION KNUMA_PI CHAR 10 *
SALES_DEAL KNUMA_AG CHAR 10 *
FLGLEADUNI CHAR1 CHAR 1
FREE_GOODS CHAR1 CHAR 1
VALID_OBJ TECHS CHAR 12
TAX_AMOUNT BAPICUREXT DEC 28
MRP_AREA BERID CHAR 10
CUST_MAT35 CHAR35 CHAR 35
CR_EXCHRTV STCUR_AP DEC 9
EXCHRATSTV STCUR_AP DEC 9
or Implement SAP Note: 498317.
Thanks -
What has to be done to the packed fields before submitting to a BDC sessio
What has to be done to the packed fields before submitting to a BDC session.
12) What is a instance ?Packed field value needs to be moved to a character variable. This character variable you can pass to BDC.
If this answers your question, please close the thread. -
Special Characters in Packed Field After Upgradation from ECC 5 to ECC 6
Hi All,
After Upgraded from ECC 5 to ECC 6, we are getting error as 'Packed field contains incorrect BCD format'.
I found the error in below code..
CALL METHOD cl_abap_container_utilities=>read_container_c
EXPORTING
im_container = j_2iextrct-extrctdata
IMPORTING
ex_value = i_rg23part2-i_part2_typ
EXCEPTIONS
illegal_parameter_type = 1
OTHERS = 2.
i_rg23part2-i_part2_typ-EXAED = 0.<0
i_rg23part2-i_part2_typ-CESS = 0.<0
for some packed fields special characters are appearing, which leads to a short dump.
Any Suggestions.....
Thanks,
Satish Reddy.
Edited by: Sathish Reddy on Jun 25, 2010 4:49 PM
Edited by: Sathish Reddy on Jun 26, 2010 11:01 AM
Edited by: Sathish Reddy on Jun 29, 2010 12:58 PM
Edited by: Sathish Reddy on Jun 30, 2010 11:51 AMHELLO,
Search the form you will get few links.
Also many companies have gone technical upgradation , but not functional upgradation.
Thanks
RK -
Changing text size in form field (rich text formatting enabled)
Hi all,
I'm hoping someone can help me out here. I've created an interactive PDF with form fields with "Rich Text Formatting" enabled.
My client has filled in the fields and would like to make the text bigger. When right-click, there are only options to change the text style (bold, italics etc) but nothing to change the text size. I'm not keen on disabling and then re-enabling the "Rich Text Formatting" options as the text have been formatted (bold, italics, superscript, subscript etc) and approved, and this will remove all the existing formatting.
Can anyone help?
Acrobat 9.4.6
Mac 10.6.8
Cheers,
TriciaThanks so much!! Really appreciated!
Strangely enough, I found the Form Field Text Properties dialogue box by randomly choosing "Hyperlink" in the right-click options. Who would have thought!
Maybe you are looking for
-
Hello I work usually with large PDF documents, and I was trying to convert a PDF document of 1000 pages ONE THOUSAND PAGES, to little PDF documents of 10 MB each one. When I tried to convert the PDF file into little ones, craaashhhhhhhhhhhhhhhhhh I g
-
MDM Console Connectivity to MDM Server
Hi, My scenario is that I have install MDM Server on one machine with Oracle as Database. Now when I try to connect to connect to that MDM Server using MDM Console from other machine it is not connecting. The machine on which Console is installed is
-
Hi All, how do you change the share via mail / PDF to work with outlook for MAC. I have set Outlook to be my default email client but i want all my iwork apps to work with Outlook and not mail. Is there a way to change this or are we locked into Appl
-
Setting background transparent
How do I set the background of an existing graphic to transparent? I am using Photoshop Elements 9.
-
When printing from the ipad, it will only print small size. I want it to print full sheet. Any suggestions?