Issue in understanding the negative Wasted space value for a table while fragmentation
Hi All,
After running the command for getting Fragmentation on tables, i am getting a negative wasted_space for my table. However for rest of the tables i am getting positive value. Can anybody help me to understand that.
OWNER TABLE_NAME size (kb) actual_data (kb) wasted_space (kb)
PROVPROD BATCH_REQUEST_RESPONSE 4736696 4840637,48 -103941,48
Regards,
Arun Singh
Thanks for such a detailed explanation. Here are the DDL for table.
CREATE TABLE
"PROVPROD"."BATCH_REQUEST_RESPONSE"
"REQUESTRESPONSEID" NUMBER,
"WORKINGID" NUMBER
NOT NULL ENABLE,
"BATCHUID"
NUMBER NOT NULL ENABLE,
"SOURCEAGENTID" VARCHAR2(32 BYTE) NOT NULL
ENABLE,
"TRANSACTIONID" VARCHAR2(256 BYTE),
"BATCHENVNAME" VARCHAR2(64 BYTE) NOT
NULL ENABLE,
"FILETYPE"
VARCHAR2(8 BYTE) NOT NULL ENABLE,
"ISHEADER"
VARCHAR2(1 BYTE) NOT NULL ENABLE,
"ROWNUMBER" NUMBER
NOT NULL ENABLE,
"ROWVALUE" BLOB NOT NULL ENABLE,
"SOSTATE" VARCHAR2(16 BYTE) NOT NULL ENABLE,
"SORESULT" NUMBER,
"SOQUEUEDTS" TIMESTAMP (6),
"SORESPONSETS" TIMESTAMP (6),
"SOREQUESTXML" BLOB NOT NULL ENABLE,
"SORESPONSEXML" BLOB DEFAULT EMPTY_BLOB(),
"SOPRIORITY" NUMBER NOT NULL ENABLE,
"SODELAY"
NUMBER NOT NULL ENABLE,
"SOTYPE" VARCHAR2(32 BYTE) NOT NULL ENABLE,
"SOID" NUMBER,
"ACKREC" VARCHAR2(1 CHAR) DEFAULT 'N',
"FILENAME" VARCHAR2(64 BYTE) NOT NULL ENABLE,
PRIMARY KEY
("REQUESTRESPONSEID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS
2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "PROVPROD_DATA"
ENABLE
SEGMENT CREATION
IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE
INITIAL 65536
NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1
FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE
DEFAULT
TABLESPACE
"PROVPROD_DATA" LOB
"ROWVALUE"
STORE AS BASICFILE
TABLESPACE
"PROVPROD_DATA" ENABLE STORAGE IN ROW CHUNK 8192 RETENTION NOCACHE
LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE
DEFAULT CELL_FLASH_CACHE DEFAULT)
LOB
"SOREQUESTXML"
STORE AS BASICFILE
TABLESPACE
"PROVPROD_DATA" ENABLE STORAGE IN ROW CHUNK 8192 RETENTION NOCACHE
LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE
DEFAULT CELL_FLASH_CACHE DEFAULT)
LOB
"SORESPONSEXML"
STORE AS BASICFILE
TABLESPACE
"PROVPROD_DATA" ENABLE STORAGE IN ROW CHUNK 8192 RETENTION NOCACHE
LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE
DEFAULT CELL_FLASH_CACHE DEFAULT)
CREATE UNIQUE INDEX
"PROVPROD"."SYS_C0012044" ON
"PROVPROD"."BATCH_REQUEST_RESPONSE"
"REQUESTRESPONSEID"
PCTFREE 10 INITRANS 2
MAXTRANS 255 COMPUTE STATISTICS STORAGE
INITIAL 65536
NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1
FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE
DEFAULT
TABLESPACE
"PROVPROD_DATA" ;
CREATE UNIQUE INDEX
"PROVPROD"."SYS_IL0000064787C00016$$" ON
"PROVPROD"."BATCH_REQUEST_RESPONSE"
PCTFREE 10
INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1
MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL
DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE
"PROVPROD_DATA" PARALLEL (DEGREE 0 INSTANCES 0) ;
CREATE UNIQUE INDEX
"PROVPROD"."SYS_IL0000064787C00015$$" ON
"PROVPROD"."BATCH_REQUEST_RESPONSE" ( PCTFREE 10 INITRANS 2
MAXTRANS 255 STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS
2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE
"PROVPROD_DATA" PARALLEL (DEGREE 0 INSTANCES 0) ;
CREATE UNIQUE INDEX
"PROVPROD"."SYS_IL0000064787C00010$$" ON "PROVPROD"."BATCH_REQUEST_RESPONSE"
( PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 NEXT 1048576
MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE
"PROVPROD_DATA" PARALLEL (DEGREE 0 INSTANCES 0) ;
CREATE UNIQUE INDEX
"PROVPROD"."TRANSACTIONIDINDX" ON
"PROVPROD"."BATCH_REQUEST_RESPONSE"
("TRANSACTIONID") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE
STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS
2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE
"PROVPROD_DATA" ;
CREATE INDEX
"PROVPROD"."METRICSRESULTINDX" ON
"PROVPROD"."BATCH_REQUEST_RESPONSE"
"BATCHUID",
"SOURCEAGENTID",
"BATCHENVNAME"
PCTFREE 10
INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0
FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
CELL_FLASH_CACHE DEFAULT
TABLESPACE
"PROVPROD_DATA" ;
Similar Messages
-
Where could we find the CT and PT values for Particular Device ???
I 'm facing a scenario in a report i need to place a field device number and assosiated CT's and PT's .
where could we find the CT and PT values for Particular Device ??? basically im MM consultant we don't ahave DM consultant please help with this issue???
means actually i got the table and field details for transformation ratio (or) CT/PT ratio
ETYP_UEBERVER. from the screen EG03 , t-code
but im not sure this is the exact field that i require ....
can any one help .... i will be very thankfull to your solution inadvance....The transformation ratio are the attributes of a "Winding Group". Find winding group of a device and then you'll get the desired information.
-
To retain color space value for Monochrome images during flattening.
In our project, we are extracting image content from PDF file and doing some raster operation by using LeadTool and then flattening the processed image in PDF file.
Input PDf file: One page which has monochrome image
For extracting image content from PDF file, we are using below Acro Plugin API:
AVConversionConvertFromPDFWithHandler
After this, we will perform some raster operations by using LeadTool and then flattening will happen.
While doing flatten we are performing below operations in sequence:
1. Set bitspercomponent =1.
2. Create a new color table using DeviceRGB.
3. Create image by using below Acro Plugin API:
pdeimage = PDEImageCreate(&attrs, sizeof(attrs), &matrix, 0, cols1, NULL, &fil, asstm, NULL, 0);
4. Add image in PDF content.
Now flattening is successful, but monochrome(Original Image format) is changed to RGB. We want to retain the color space(DeviceGrey).
We have tried the below solution to retain the color space:
1. Using the old image's color space value for new image creation. But this gives inverted color(Black to White and vice versa)
Please help us to retain the color space while flattening.We are using JPG file format.
Please find below the code portions which we used to add image in PDF file,
//Read Image Data
========================================================================================== ==================
ASBool ret = TRUE;
// analyze img
ASInt32 index = 0, quadSize = 0;
BITMAPFILEHEADER* bmfh = NULL;
// BITMAPFILEHEADER
if( !bQuadSize )
bmfh = (BITMAPFILEHEADER*)img;
index += sizeof(BITMAPFILEHEADER);
// BITMAPINFOHEADER
BITMAPINFOHEADER* bmih = (BITMAPINFOHEADER*)(img+index);
index += sizeof(BITMAPINFOHEADER);
// RGBQUAD
if( !bQuadSize )
quadSize = bmfh->bfOffBits - sizeof(BITMAPFILEHEADER) - sizeof(BITMAPINFOHEADER);
else
quadSize = size - bmih->biSize - bmih->biSizeImage;
ASInt32 rgbquadNum = 0;
char* quad = NULL;
if (quadSize > 0)
rgbquadNum = quadSize/sizeof(RGBQUAD);
quad = (char*)(img+index);
index += quadSize;
// Image
//ULONG imgSize = size - bmfh->bfOffBits;
char* image = (img+index);
DURING
if(!pd)
E_RETURN(FALSE);
PDPage pp = PDDocAcquirePage(pd, page-1); // Get Page(PDPage) of specified page number
PDEContent pdeContent = PDPageAcquirePDEContent(pp, gExtensionID); // Get PageContent(PDEContent)
ASInt32 numElems = PDEContentGetNumElems(pdeContent); // Get PageContent num
// Check BitMap width, height, biXPelsPerMeter, biYPelsPerMeter changed
ASFixedRect mb;
PDPageGetMediaBox(pp, &mb);
ASFixedRect chgMediaBox;
memset(&chgMediaBox, 0 , sizeof(ASFixedRect));
if (paperSizeChangeType == PAPERSIZE_SIZESPECIFICATION)
chgMediaBox.right = width;
chgMediaBox.top = height;
// Get PDEImage's Attributes & Filters & ColorSpace from Old Image in PDF file
========================================================================================== ===================================
PDEElement pdeElement;
ASInt32 importIndex;
ASInt32 type;
PDEImageAttrs attrs1;
PDEColorSpace cols1;
//ASAtom colname;
PDEFilterArray fil1[20];
ASInt32 filNum1;
ASFixedMatrix matrix1;
bool isTransformedPage = false; //EV2.8.02000_19651_Retain color space_20141016
for (int i = 0; i < numElems; i++)
pdeElement = PDEContentGetElem(pdeContent, i);
PDEObject obj=_objHelper.TraversePDPageContentsImage((PDEObject)pdeElement);
if(obj == NULL)
continue;
pdeElement= (PDEElement)obj;
type = PDEObjectGetType((PDEObject)pdeElement);
if (type == kPDEImage)
// Get Attr
PDEImageGetAttrs((PDEImage)pdeElement, &attrs1, sizeof(PDEImageAttrs));
// Get ColorSpace
cols1 = PDEImageGetColorSpace((PDEImage)pdeElement);
// Get Filter Array
filNum1 = PDEImageGetFilterArray((PDEImage)pdeElement, fil1);
// Get ASFixedMatrix
PDEElementGetMatrix(pdeElement, &matrix1);
//EV2.8.02000_19651_Retain color space_20141016 - Start
if (matrix1.a < 0 || matrix1.b < 0 ||
matrix1.c < 0 || matrix1.d < 0 ||
matrix1.h < 0 || matrix1.v < 0)
isTransformedPage = true;
//EV2.8.02000_19651_Retain color space_20141016 - End
// Set Import and Delete Index
importIndex = i;
break;
// Create image data (for PDEImage)
========================================================================================== =================================
ASInt32 bitPerComponent = bmih->biBitCount;
ASInt32 bitWidth = 0;
ASInt32 width1 = bmih->biWidth;
ASInt32 height1 = bmih->biHeight;
// Create image size
if (bitPerComponent == 1)
if (width1%8)
bitWidth = (width1/8) + 1;
else
bitWidth = width1/8;
else if (bitPerComponent == 4)
if (width1%2)
bitWidth = (width1/2)+1;
else
bitWidth = width1/2;
else if (bitPerComponent == 8)
bitWidth = width1;
else if (bitPerComponent == 32)
bitWidth = width1*4;
else // if (bitPerComponent == 24)
bitWidth = width1*3;
ASInt32 imgSize4Acrobat = height1 * bitWidth;
char* image4Acrobat = (char*)ASmalloc(imgSize4Acrobat);
if( image4Acrobat == NULL )
E_RETURN(FALSE);
memset(image4Acrobat, 0, imgSize4Acrobat);
// Create image
ASInt32 nokori = (bitWidth)%4;
ASInt32 bitWidth4hokan = 0;
if (nokori)
bitWidth4hokan = bitWidth + (4-nokori);
else
bitWidth4hokan = bitWidth;
ASInt32 hbw = 0;
ASInt32 hbw4hokan = 0;
if (bitPerComponent == 1)
for (int k = height1-1, l = 0; k >= 0; k--, l++)
hbw = l*bitWidth;
hbw4hokan = k*bitWidth4hokan;
memcpy((image4Acrobat+hbw), (image+hbw4hokan), bitWidth);
else if (bitPerComponent == 4)
for (int k = height1-1, l = 0; k >= 0; k--, l++)
hbw = l*bitWidth;
hbw4hokan = k*bitWidth4hokan;
memcpy((image4Acrobat+hbw), (image+hbw4hokan), bitWidth);
else if (bitPerComponent == 8)
for (int k = height1-1, l = 0; k >= 0; k--, l++)
hbw = l*bitWidth;
hbw4hokan = k*bitWidth4hokan;
memcpy((image4Acrobat+hbw), (image+hbw4hokan), bitWidth);
else if (bitPerComponent == 32)
for (int k = height1-1, l = 0; k >= 0; k--, l++)
hbw = l*bitWidth;
hbw4hokan = k*bitWidth4hokan;
for (int kk = 0; kk < bitWidth; kk += 4)
*(image4Acrobat+hbw+kk) = *(image+hbw4hokan+(kk+3));
*(image4Acrobat+hbw+kk+1) = *(image+hbw4hokan+(kk+2));
*(image4Acrobat+hbw+kk+2) = *(image+hbw4hokan+(kk+1));
*(image4Acrobat+hbw+kk+3) = *(image+hbw4hokan+(kk));
else
for (int k = height1-1, l = 0; k >= 0; k--, l++)
hbw = l*bitWidth;
hbw4hokan = k*bitWidth4hokan;
for (int kk = 0; kk < bitWidth; kk += 3)
*(image4Acrobat+hbw+kk) = *(image+hbw4hokan+(kk+2));
*(image4Acrobat+hbw+kk+1) = *(image+hbw4hokan+(kk+1));
*(image4Acrobat+hbw+kk+2) = *(image+hbw4hokan+(kk));
//Invert Image Data
========================================================================================== ================================
for(int it = 0; it < imgSize4Acrobat; it++)
image4Acrobat[it] = 255 -image4Acrobat[it];
// Open Image Data
========================================================================================== ================================
ASStm asstm = ASMemStmRdOpen(image4Acrobat, imgSize4Acrobat);
// Create PDEImage Attribute etc.
========================================================================================== ================================
PDEImageAttrs attrs;
memset(&attrs, 0, sizeof(PDEImageAttrs)); // necessary
attrs.width = width1;
attrs.height = height1;
if (bitPerComponent == 1) {
attrs.bitsPerComponent = 1;
if (rgbquadNum) {
attrs.flags = kPDEImageIsIndexed | kPDEImageExternal; // Indicates image uses an indexed color space.
} else {
attrs.flags = kPDEImageExternal; // Indicates image is an XObject.
// B&W
} else if (bitPerComponent == 4) {
attrs.bitsPerComponent = 4;
if (rgbquadNum) {
attrs.flags = kPDEImageIsIndexed | kPDEImageExternal; // Indicates image uses an indexed color space.
} else {
attrs.flags = kPDEImageExternal; // Indicates image is an XObject.
} else if (bitPerComponent == 8) {
attrs.bitsPerComponent = 8;
if (rgbquadNum) {
attrs.flags = kPDEImageIsIndexed | kPDEImageExternal; // Indicates image uses an indexed color space.
} else {
attrs.flags = kPDEImageExternal; // Indicates image is an XObject.
} else if (bitPerComponent == 32) {
// not support (acrobat)
} else { // (bitPerComponent == 24)
attrs.flags = kPDEImageExternal; // Indicates image is an XObject.
attrs.bitsPerComponent = 8;
// matrix
ASFixedMatrix matrix;
memcpy(&matrix, &matrix1, sizeof(matrix1));
if (paperSizeChangeType == PAPERSIZE_SIZESPECIFICATION)
matrix.a = chgMediaBox.right;
matrix.b = 0;
matrix.c = 0;
matrix.d = chgMediaBox.top;
matrix.h = 0;
matrix.v = 0;
// Filter
PDEFilterArray fil;
memset (&fil, 0, sizeof (PDEFilterArray));
PDEFilterSpec spec;
memset (&spec, 0, sizeof (PDEFilterSpec));
memcpy(&fil, &fil1, sizeof(PDEFilterArray));
CosDoc cosDoc;
CosObj cosDict;
// Build the CosObj for the filter specification
cosDoc = PDDocGetCosDoc(pd);
cosDict = CosNewDict(cosDoc, false, 2);
CosDictPut(cosDict, ASAtomFromString("K"), CosNewInteger (cosDoc, false, -1));
CosDictPut(cosDict, ASAtomFromString("Columns"), CosNewInteger (cosDoc, false, width1));
//memset the filterspec so there are no garbage values if we leave members empty
spec.encodeParms = cosDict;
spec.decodeParms = cosDict;
spec.name = ASAtomFromString("CCITTFaxDecode");
fil.spec[0] = spec;
// Create PDEImage
========================================================================================== =================================
PDEImage pdeimage;
pdeimage = PDEImageCreate(&attrs, sizeof(attrs), &matrix, 0, cols1, NULL, &fil, asstm, NULL, 0);
// Delete PDEImage at importIndex(==j) of page -> Delete old image in PDF file
========================================================================================== ====================
PDEContentRemoveElem(pdeContent, importIndex);
// Add PDEImage
========================================================================================== ==========================
PDEContentAddElem(pdeContent, importIndex, (PDEElement)pdeimage);
PDPageSetPDEContent (pp, gExtensionID);
PDPageReleasePDEContent(pp, gExtensionID);
// Release object
PDERelease((PDEObject)pdeimage);
PDPageNotifyContentsDidChangeEx(pp, TRUE);
PDPageRelease(pp);
ASStmClose(asstm);
if (image4Acrobat)
ASfree(image4Acrobat);
if (lookupTable)
ASfree(lookupTable);
HANDLER
ret = FALSE;
END_HANDLER
return ret; -
How to get the object class field value in CDHDR table for vendor
hi
how to get the object class field value in CDHDR table for vendorTry KRED/KRED_N as object class in CDHDR for Vendor.
-
HI Experts,
Pls. clarify that, How can I pull the BUKRS (company code) value, for a X_USER (sy-uname) as input?
ThanQ.Check with USRM1 Table
give user name (Uname ) and you get company code (BUKRS)
also check with other tables : USRM* in SE11
Thanks
Seshu -
How to avoid the Amount and Date values for VOID Cheques
Hi All,
I had created a two window i.e For Amount and Date. If I process the cheque the Amount value and Date should not trigger for VOID CHEQUES.
Can any one tel me how to avoid the Amount and Date values for VOID Cheques
Your help will be greatly appreciated.
Regards
YathishHi,
I dont know which tablel you are referring to, is it PAYR table and the field VOIDR?
If a cheque is voided, it would have a reason and it is stored in VOIDR field of this PAYR table.
Check if the field VOIDR is filled, if it is filled, do not print the amount and date.
Regards
Subramanian -
How do I set the shortcut to space bar for the hand tool in illustrator cc?
How do I set the shortcut to space bar for the hand tool in illustrator cc?
Thanks Larry, Mavericks OS. I managed to fix it by quitting Illustrator and reopening it. I have no idea why there was a problem in the first place, it just stopped working with the space bar shortcut and replaced it with a random alphabet.
-
I have Mac mini and there is partition of boot camp but some miss understanding the osx 10.8.2 is deleted and while I m going to recovery mode the portition can not removing and the also cant repaired what I do I need urgent help ???? Please ?????
Do you have a Time Machine backup or clone? If not,
all is lost if you have in fact deleted your OSX partition
and you will have to do a reinstall from Recovery HD
and install all else. -
Hi,
We have added some functionalities in PanelTreeView sample source. In that, we are getting incorrect values for linkQueryResult (ILinkManager) while using InDesign CC debug. But in release version we are getting the correct values for linkQueryResult (ILinkManager). So when debugging our plugin InDesign CC debugger has stopped working. Please find the below source,
IDocument* document = Utils<ILayoutUIUtils>()->GetFrontDocument();
if(document == nil)
//CAlert::InformationAlert("Doc Interface Not Created");
break;
IDataBase *db = ::GetDataBase(document);
InterfacePtr<ILinkManager> linkmanager(document, UseDefaultIID());
if(linkmanager == nil)
//CAlert::InformationAlert("linkmanager Interface Not Created");
break;
LinkQuery Query;
ILinkManager::QueryResult linkQueryResult;
linkmanager -> QueryLinks(Query, linkQueryResult);
for (ILinkManager::QueryResult::const_iterator iter(linkQueryResult.begin()), end(linkQueryResult.end()); iter != end; ++iter)
InterfacePtr<ILink> iLink(db, *iter, UseDefaultIID());
if ( iLink )
InterfacePtr<ILinkResource> resource(linkmanager->QueryResourceByUID(iLink -> GetResource()));
ILinkResource::ResourceState rs = resource->GetState();
PMString fileName = resource -> GetLongName(kTrue); //gets full path
CharCounter lc=fileName.LastIndexOfCharacter('.');
PMString *exten = fileName.Substring(lc+1,3);
if((*exten).Compare(kFalse,"xml")==0)
xmlDataLinkName = fileName;
Kindly help us if anyone has idea regarding this issue.
Thanks,
VIMALA LHi Vimala L,
try to replace
ILinkManager::QueryResult linkQueryResult;
by
UIDList linkQueryResult(db);
Markus -
Trigger how to get new and old value for nested table column?
Hi,
I have created a nested table based on the following details:
CREATE TYPE typ_item AS OBJECT --create object
(prodid NUMBER(5),
price NUMBER(7,2) )
CREATE TYPE typ_item_nst -- define nested table type
AS TABLE OF typ_item
CREATE TABLE pOrder ( -- create database table
ordid NUMBER(5),
supplier NUMBER(5),
requester NUMBER(4),
ordered DATE,
items typ_item_nst)
NESTED TABLE items STORE AS item_stor_tab
INSERT INTO pOrder
VALUES (800, 80, 8000, sysdate,
typ_item_nst (typ_item (88, 888)));
Now I would like to create a trigger on table pOrder for after insert or update or delete
and I would like to track the new and old value for the columns inside nested table.
Can anybody direct me how to do it?
I would like to know the sytax for it like:
declare
x number;
begin
x := :new.nestedtablecolumn;--how to get the new and old value from nested table columns
end;
Hope my question is clear.
Thanks,
LavanHi,
Try like this:
CREATE OR REPLACE TRIGGER PORDER_I
BEFORE INSERT
ON PORDER
REFERENCING OLD AS old NEW AS new
FOR EACH ROW
DECLARE
items_new typ_item_nst;
ordid_NEW NUMBER;
BEGIN
FOR i IN :new.items.FIRST .. :new.items.LAST LOOP -- For first to last element
DBMS_OUTPUT.PUT_LINE(':new.items(' || I || ').prodid: ' || :new.items(I).prodid );
DBMS_OUTPUT.PUT_LINE(':new.items(' || I || ').price: ' || :new.items(I).price );
END LOOP;
END;Regards,
Peter -
How to get the data from pcl2 cluster for TCRT table.
Hi frndz,
How to get the data from pcl2 cluster for tcrt table for us payroll.
Thanks in advance.
Harisumanth.ChPL take a look at the sample Program EXAMPLE_PNP_GET_PAYROLL in your system. There are numerous other ways to read payroll results.. Pl use the search forum option & you sure will get a lot of hits..
~Suresh -
Issues in Processing the Master-Detail Form values
We have a requirement in Oracle Internet Expenses (11.5.10) to fetch the form values from the Expense Allocations Screen.
This page is based on Multiple VOs with Master Detail relationship. The data from the VOs mentioned are displayed in the Hgrid region.
I need to fetch the input values for three fields (from different VOs) and pass them as paramater to the database function to perform the validation.
Here, I am creating the handle for VO objects and using the Row object getting all rows in range (getAllRowsinRange()).
The issue here is always, the Row length() is always fetched as 1 even it has multiple rows.
Any help on this would be highly appreciated.Using Select Options u will get mulitiple values also u will get values like table.
regards,
kumar. -
I don't understand the charges on my credit card for itunes. please help
Your credit card is only linked to one iTunes account, and you've checked the purchase history on it via your computer's iTunes as per the page that you posted from ? And you don't have iTunes Match or any auto-renewing subscriptions (I'm not sure if they show on the purchase history or not, I don't have any so I can't check) : http://support.apple.com/kb/HT4098
And you haven't added or changed your credit card details on your iTunes account ? Each time that you do so a small temporary store holding charge may be applied to check that the card details are correct and valid and that it's registered to exactly the same name and address as on your iTunes account - it should disappear off your account within a few days or so. Store holding charge : http://support.apple.com/kb/HT3702
If you can't find anything on your account's purchase history then you should probably contact your card issuer and get the card cancelled and replaced. You can also contact iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
I don't know what your second post means. -
Custom Report for the Stock and Stock value for a specific date
Hi SAP Gurus,
Is there any SAP standard t-code or any logic to get the transcations (additions (for example: Purchases) and subtractions (Sales) to the inventory) for a particular materials in a plant and with Total Stock and also Total Stock value when that particular transaction happened?
Our system is R/3 4.7
I looked at the MB5B, MBCE, MBCA, MC44, MB51 and some other standard T-codes but could not find the total stock value at the time of Transaction happened.
The history tables MBEWH and MARDH are updated after the month end closing procedures, right, which means I will have the inventory value changing every month if material has Price "S".
Thank you,
-HarterHi Harter,
Unfortunately, you cannot see in a single tcode the value of stock and stock quantity on a specific date. As you yourself have pointed out, we only have to make use of the history table MBEWH, MARDH for the month wise stock quantity and value. Along with that you should also make use of the table MBEW to take teh stock quantity and value. So the total value of stock on a particular date will be
Stock qnty = MBEWH value until the previous month (for teh specific valuation class, period etc) + MBEW value for the present date.
But this will nto work out if you want to find out teh stock quantity and stock value on a past date basis. For past data, only m onthwise data is available. For this anyway you can refer to MC.1 and so on reports. -
BO Webi: How to populate a variable with the set of static values for Graph
Hi All,
I have the data: Order number, Order Date, processing time coming from the SAP Bex query in the below format:
Order No Order Date Processing time (Days)
1 Jan-2011 4
2 Jan-2011 5
3 Feb-2011 6
In BO webi report, I have to report the number of orders which were processed in <1day, <2days, <3days,...<10days in a graphical view. i.e., X-Axis: <1day, <2days, <3days,...<10days(10 static buckets for the processing days)
Y-Axis: Number of Orders.
The graphical output should be like below:
X-Axis: <1day, <2days, <3days,<4days,<5days,<6days,<7days,<8days,<9days,<10days
Y-Axis: 0, 0,0,0,1,2,3,3,3,3 (count(Order No)) (Cumulative count)
I am able to calculate the number of orders individually for each of the 10 buckets. But the problem i am facing is that I am not able to hold the 10 static bucket values in a variable to use it for the x-axis in the Graph, as these 10 static bucket values are not coming from the backend source.
I would like to know if there is way to populate a variable(to use it for the X-Axis in the graph) with the set of 10 static values.
Any help would be highly appreciated.
Thanks,
LeelaHi ,
I think we can use the variable as X-axis in chart.. but Variable Qulaification should be Dimension.
can you try this?.
Using efasion universe
1) Select month and Sold at (unit price) , then run the query
2) create the variable V_Month ==If [Month]=1 Then "Month1" Else "Month2" (Note = Variable Qulaification should be Dimension)
3) Create the variable V_Sum= sum (Sold at (unit price))
4) create another variable V_Cumulative_Sum==[V_Sum]+Previous([V_Sum])
Now add V_Month and V_Cumulative_Sum in table , then convert to chart.. now you can add the variable V_Month as X-axis of the chart.
Hope this will help:)
Thanks
Ponnarasu K
Maybe you are looking for
-
Remote access VPN client gets connected fails on hosts in LAN
Hi, VPN client gets connected fine, I have a inter VLAN routing happening on the switch in the LAN so all the LAN hosts have gateway IP on the switch, I have the defult route pointing to ASA inside interface on the switch, the switch I can reach afte
-
I continue to have issues with Outlook 365 and iCloud. I have had no luck getting these programs to work together. I had no issues with Outlook 2010 and iCloud. Any suggestions? Thanks
-
I had a problem of Final Cut Pro 6.02
my question is, how can i save a project which is able to be opened in the previous version. as long as i update my FCP from 6.0 to 6.02, after i done my editing, and then go to Uni and try to open in my classmate MacPro. the project(save) can be ope
-
Trying to Install latest version of Adobe with no luck
I just purchased a new iMac running Mac OS X Lion 10.7.2. When I go to the adobe site to check my version of adobe it says I have 9.0.124.0. I follow the instructions for dowloading and running the uninstaller and I get a notice that the uninstall
-
IPhoto'11 or iPhoto'09 - which way to go?
I have about 30gb of iPhoto Libraries (about a dozen), all in iPhoto6 format (since my photo work was done on the PBG4). I have iLife'09 on all the rest of the family machines, with some 'play' (couple of dozen photos) libraries in the iLife8 format