How to calculate difference and percentage in matrix report dynamic columns in SSRS 2008
Hi Friends,
I need to calculate Difference and Percentage In matrix report SSRS 2008
1) Row grouping based On Product
2) Column Grouping Week and Fiscal Year Current week and Previous Year same Weeks
3)Data Invnetory(Value fileld)
Example:
If value1 and Value2 Available we need to calculate Percentage and Difference.Otherwise Not required NA I need to Show.
For example If Particular week,Current year data is available,Previous year week data is not available No
need to cal Diff and Percentage we need to show Empty.
Below Code is working for If two values is available.
If any one of the fiscal year week data is not there it's taking some garbage values.
I tries with If condition in GetPCT() and GetDiff() It's not working.
Can some one please help me on this.
I am using the custom code
Public Shared Value1 as String
Public Shared Value2 as String
Public Shared previous as string
Public Shared previousweek as string
Public Shared Function GetValue(Value as String,partner as String,Week as String) as String
If partner =previous and Week =previousweek Then
Value2=Value
Else
previous=partner
previousweek=Week
Value1=Value
End If
return Value
End Function
Public Shared Function GetDiff()
return Value2-Value1
End Function
Public Shared Function GetPct()
return (Value2-Value1)/Value1
End Function
How to handle this.
Thank You, Manasa.V
Hi veerapaneni,
According to your description, if one of the fiscal year week doesn’t have data, the custom code returns false results.
For your requirement, if NULL value exists in the database, we should replace it as zero then perform calculate. So within the code, we should judge whether the value is NULL. To achieve your goal, please refer to the steps below:
1. Create a table like below.
create table dif4
([Product Group] varchar(50),
[Week] varchar(50),
[Fiscalyearweek] varchar(50),
value int
insert into dif4 values
('Desktops','W01','FY14W01',0),
('Desktops','W01','FY15W01',45),
('Desktops','W02','FY14W02',null),
('Desktops','W02','FY15W02',30),
('Desktops','W03','FY14W03',12),
('Desktops','W03','FY15W03',50),
('Notebooks','W01','FY14W01',35),
('Notebooks','W01','FY15W01',56),
('Notebooks','W02','FY14W02',45),
('Notebooks','W02','FY15W02',87),
('Notebooks','W03','FY14W03',75),
('Notebooks','W03','FY15W03',105),
('Tablets','W01','FY14W01',34),
('Tablets','W01','FY15W01',46),
('Tablets','W02','FY14W02',49),
('Tablets','W02','FY15W02',96),
('Tablets','W03','FY14W03',42),
('Tablets','W03','FY15W03',113)
2. Add the custom code in the Report Properties.
Public Shared Value1 as Integer
Public Shared Value2 as Integer
Public Shared previous as string
Public Shared previousweek as string
Public Shared Function GetValue(Value as Integer,product as String,Week as String) as Integer
If Value=Nothing Then
Value=0
End If
If product =previous and Week =previousweek Then
Value2=Value
Else
previous=product
previousweek=Week
Value1=Value
End If
return Value
End Function
Public Shared Function GetPct()
If Value1=0 Then
return 0
Else
return (Value2-Value1)/Value1
End If
End Function
Public Shared Function GetDiff()
return Value2-Value1
End Function
3. Design the matrix like below.
4. Then get the expected results.<o:p></o:p>
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support
Similar Messages
-
How to calculates averages and send to a file?(source code)
how to calculates averages and send to a file?(source code) I need to get started but I don't know where to begin...........the book I have doesn't really say how to handle averages and send to a file.................anybody got suggestions on how to get started? I am a newbie so place in layman's terms.............thanx
To calculate an average: add all of the numbers together and divide by how many numbers you added together.
ex: (1 + 2 + 3 + 10)/4 = 4 (4 is the average)
As for writing them to a file, look over the API for random or sequential access files. -
How to calculate excise and vat
can anybody tell me how to calculate excise and vat as i am doing a alv reports from me23n and i have to put excise and vat in respect to document invoice number in me23n.i am using tables mseg,makt,bseg,ekpo so if there any related program please refer me.
In this report i have to calculate excise and vat according to po number and also i dont how to put so plesae solve this if possible......
*& Report ZFA_GRS
*&RD1K903618
REPORT ZFA_GRS.
TABLES : ekpo,EKKO, t001,MSEG,MKPF,komk,komp.
TYPE-POOLS : SLIS.
DATA : IT_FCAT TYPE SLIS_T_FIELDCAT_ALV,
WA_FCAT TYPE SLIS_FIELDCAT_ALV.
DATA : IT_SORT TYPE SLIS_T_SORTINFO_ALV,
WA_SORT TYPE SLIS_SORTINFO_ALV.
DATA: GT_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER,
LS_LINE TYPE SLIS_LISTHEADER.
DATA : BEGIN OF IT_FINAL OCCURS 0,
LIFNR LIKE MSEG-LIFNR,
MATNR LIKE MSEG-MATNR,
MBLNR LIKE MSEG-MBLNR,
BELNR LIKE BSEG-BELNR,
MAKTX LIKE MAKT-MAKTX,
MENGE LIKE MSEG-MENGE,
MEINS LIKE MSEG-MEINS,
BWART LIKE MSEG-BWART,
EBELN like MSEG-EBELN,
EBELP LIKE MSEG-EBELP,
DMBTR like BSEG-DMBTR ,
EXAMT TYPE DMBTR,
WRBTR LIKE BSEG-WRBTR,
EXAMT LIKE BSEG-WRBTR,
HKONT LIKE BSEG-HKONT,
NETVALUE type DMBTR,
VATAMT TYPE DMBTR,
TOTAMT TYPE DMBTR,
MWSBP LIKE KOMP-MWSBP,
EXBED LIKE J_1IEXCDTL-EXBED,
EXSED LIKE J_1IEXCDTL-EXSED,
EXAED LIKE J_1IEXCDTL-EXAED,
CESS LIKE J_1IEXCDTL-CESS,
ECS LIKE J_1IEXCDTL-ECS,
EXADDTAX1 LIKE J_1IEXCDTL-EXADDTAX1,
VAT TYPE KONV-KWERT,
UNIT TYPE EKPO-MEINS,
TOTQNT TYPE MSEG-MENGE,
NETWR TYPE EKPO-NETWR,
PEINH LIKE EKPO-PEINH,
NETPR LIKE EKPO-NETPR,
menge1 like ekpo-menge,
TOTEXC TYPE DMBTR,
TOTVAT TYPE DMBTR,
TOTVAL TYPE DMBTR,
END OF IT_FINAL.
DATA : WA_FINAL LIKE IT_FINAL OCCURS 0 WITH HEADER LINE,
W_J_1IEXCDTL LIKE STANDARD TABLE OF J_1IEXCDTL WITH HEADER LINE.
DATA : WA_FINAL LIKE IT_FINAL OCCURS 0 WITH HEADER LINE.
SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECTION-SCREEN SKIP 1.
SELECT-OPTIONS: P_MBLNR FOR MSEG-MBLNR .
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN : END OF BLOCK B1.
SELECT MATNR MBLNR MENGE MEINS BWART EBELN EBELP DMBTR FROM MSEG INTO CORRESPONDING FIELDS OF TABLE IT_FINAL WHERE MBLNR IN P_MBLNR AND
( BWART = '101' OR BWART = '102' OR
BWART = '113' OR BWART = '114' ) .
DATA : TOTAMT TYPE DMBTR,
NETVAL TYPE DMBTR,
NETVALUE TYPE DMBTR,
NETWR LIKE EKPO-NETWR,
EXAMT TYPE DMBTR.
SORT IT_FINAL BY MBLNR.
LOOP AT IT_FINAL.
ENDLOOP.
LOOP AT IT_FINAL INTO WA_FINAL.
SELECT SINGLE MAKTX FROM MAKT INTO WA_FINAL-MAKTX WHERE MATNR = WA_FINAL-MATNR.
SELECT single DMBTR from BSEG into wa_final-DMBTR where EBELN = wa_final-EBELN .
SELECT SINGLE WRBTR FROM BSEG INTO WA_FINAL-WRBTR WHERE EBELN = WA_FINAL-EBELN.
*WA_FINAL-WRBTR = W_J_1IEXCDTL-EXBED + W_J_1IEXCDTL-EXSED + W_J_1IEXCDTL-EXAED + W_J_1IEXCDTL-CESS + W_J_1IEXCDTL-ECS + W_J_1IEXCDTL-EXADDTAX1.
*wa_final-EXAMT = Wa_final-EXBED + wa_final-EXSED + Wa_final-EXAED + Wa_final-CESS + Wa_final-ECS + Wa_final-EXADDTAX1.
SELECT SINGLE BELNR FROM BSEG INTO WA_FINAL-BELNR WHERE EBELN = WA_FINAL-EBELN.
MODIFY IT_FINAL FROM WA_FINAL TRANSPORTING BELNR
MAKTX
MENGE
MEINS
BWART
EBELN
EBELP
DMBTR
WRBTR
HKONT
LIFNR
NETVAL
NETVALUE
EXAMT
VATAMT
TOTAMT
MWSBP
VAT
UNIT
TOTQNT
TOTNVL
TOTEXC
TOTVAT
TOTVAL
PEINH
netwr
netpr
ENDLOOP.
PERFORM GEN_TOP.
*TOTAMT = NETVAL.
WA_FCAT-COL_POS = 1.
WA_FCAT-FIELDNAME = 'MATNR'.
WA_FCAT-SELTEXT_M = 'MATERIAL NO.'.
WA_FCAT-TABNAME = 'IT_FINAL'.
WA_FCAT-OUTPUTLEN = 18.
APPEND WA_FCAT TO IT_FCAT.
WA_FCAT-COL_POS = 2.
WA_FCAT-FIELDNAME = 'MBLNR'.
WA_FCAT-SELTEXT_M = 'MAT.DOC NO'.
WA_FCAT-TABNAME = 'IT_FINAL'.
WA_FCAT-OUTPUTLEN = 15.
APPEND WA_FCAT TO IT_FCAT.
WA_FCAT-COL_POS = 3.
WA_FCAT-FIELDNAME = 'BELNR'.
WA_FCAT-SELTEXT_M = 'INVOICE DOC NO'.
WA_FCAT-TABNAME = 'IT_FINAL'.
WA_FCAT-OUTPUTLEN = 15.
APPEND WA_FCAT TO IT_FCAT.
WA_FCAT-COL_POS = 4.
WA_FCAT-FIELDNAME = 'EBELN'.
WA_FCAT-SELTEXT_M = 'PO DOC NO.'.
WA_FCAT-TABNAME = 'IT_FINAL'.
WA_FCAT-OUTPUTLEN = 12.
APPEND WA_FCAT TO IT_FCAT.
WA_FCAT-COL_POS = 5.
WA_FCAT-FIELDNAME = 'MAKTX'.
WA_FCAT-SELTEXT_M = 'DESCRIPTION'.
WA_FCAT-TABNAME = 'IT_FINAL'.
WA_FCAT-OUTPUTLEN = 35.
APPEND WA_FCAT TO IT_FCAT.
WA_FCAT-COL_POS = 6.
WA_FCAT-FIELDNAME = 'MENGE'.
WA_FCAT-SELTEXT_M = 'QUANTITY'.
WA_FCAT-TABNAME = 'IT_FINAL'.
WA_FCAT-OUTPUTLEN = 8.
APPEND WA_FCAT TO IT_FCAT.
WA_FCAT-COL_POS = 7.
WA_FCAT-FIELDNAME = 'MEINS'.
WA_FCAT-SELTEXT_M = 'UNIT'.
WA_FCAT-TABNAME = 'IT_FINAL'.
WA_FCAT-OUTPUTLEN = 5.
APPEND WA_FCAT TO IT_FCAT.
WA_FCAT-COL_POS = 8.
WA_FCAT-FIELDNAME = 'BWART'.
WA_FCAT-SELTEXT_M = 'MOVTYPE.'.
WA_FCAT-TABNAME = 'IT_FINAL'.
WA_FCAT-OUTPUTLEN = 8.
APPEND WA_FCAT TO IT_FCAT.
WA_FCAT-COL_POS = 9.
WA_FCAT-FIELDNAME = 'DMBTR'.
WA_FCAT-SELTEXT_M = 'NETVALUE'.
WA_FCAT-TABNAME = 'IT_FINAL'.
WA_FCAT-OUTPUTLEN = 12.
APPEND WA_FCAT TO IT_FCAT.
*WA_FCAT-COL_POS = 9.
*WA_FCAT-FIELDNAME = 'EBELP'.
*WA_FCAT-SELTEXT_M = 'LINE ITEM.'.
*WA_FCAT-TABNAME = 'IT_FINAL'.
*WA_FCAT-OUTPUTLEN = 12.
*APPEND WA_FCAT TO IT_FCAT.
WA_FCAT-COL_POS = 10.
WA_FCAT-FIELDNAME = 'WRBTR'.
WA_FCAT-SELTEXT_M = 'EXCISE'.
WA_FCAT-TABNAME = 'IT_FINAL'.
WA_FCAT-DO_SUM = 'X'.
WA_FCAT-OUTPUTLEN = 15.
APPEND WA_FCAT TO IT_FCAT.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = SY-CPROG
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = 'ALV_TOP_OF_PAGE'
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT =
IT_FIELDCAT = IT_FCAT
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = 'A'
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = IT_FINAL
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
FORM ALV_TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
I_LOGO = 'ZROHALOGO'
IT_LIST_COMMENTARY = GT_TOP_OF_PAGE.
ENDFORM. "alv_top_of_page
*& Form GEN_TOP
text
--> p1 text
<-- p2 text
FORM GEN_TOP .
DATA: INFO(60),
B_DT(10), E_DT(10).
REFRESH : GT_TOP_OF_PAGE.
CLEAR : LS_LINE.
LS_LINE-TYP = 'H'.
LS_LINE-INFO = ' ROHA DYECHEM PVT LTD'.
APPEND LS_LINE TO GT_TOP_OF_PAGE.
CLEAR : LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'Address'.
LS_LINE-INFO =
APPEND LS_LINE TO GT_TOP_OF_PAGE.
CLEAR : LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-INFO =
APPEND LS_LINE TO GT_TOP_OF_PAGE.
CLEAR : LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-INFO =
APPEND LS_LINE TO GT_TOP_OF_PAGE.
CLEAR : LS_LINE.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'Report Name'.
LS_LINE-INFO = 'NEW GRS REPORT'.
APPEND LS_LINE TO GT_TOP_OF_PAGE.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'T-CODE'.
LS_LINE-INFO =
APPEND LS_LINE TO GT_TOP_OF_PAGE.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'Period'.
LS_LINE-INFO = INFO.
APPEND LS_LINE TO GT_TOP_OF_PAGE.
WRITE SY-DATUM TO B_DT.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'Report Dt.'.
LS_LINE-INFO = B_DT.
APPEND LS_LINE TO GT_TOP_OF_PAGE.
ENDFORM. " GEN_TOP -
How to identify display and navigational attributes in report?
To all of thanks to be in SDN, plz send tue clarifications.....?
Q. How to identify display and navigational attributes in report? is there any naming convension differences for both of them?This works fine for "powerusers", but for informational users you have to create your own naming conventions for all navigational attributes which are not unique. For example 0COUNTRY may be a navigational attribute of 0CUSTOMER, OSOLD-TO, 0SHIP-TO, 0BILLTOPRTY, 0PAYER. To make the text clear for your users in reports name it CS Country, SO Country, SH Country, BT country, ... as 0COUNTRY could also be a characteristic from the document.
This means quiet some work especially if you have a multilingual installation, but the information users will be very thankful.
hope this helps
mich -
R12: How to filter AP and PO Accrual Reconciliation Report based on GL Date
Hi,
Anybody know how to filter AP and PO Accrual Reconciliation Report based on GL Date from and GL Date to in R12?
Since we just upgraded from 11.5.10 to 12.1.3 and found we cannot filter those report for specific date. It shown all data included the old data from 8 years ago also.
We need to run the report only for specific date only. Please share with me if anyone know about this.
Thanks.In 12 you can rebuild and run the report for a particular period, but not a single day if that's what's required
-
How to create Profit and loss account using report painter
Dear All,
Can some one guide me as to how to create Profit and loss account using report painter.
If some one can share the document having steps to be done,would be of great help.
Thanks in advance.
Regards,
GokulHi,
Could you please re-phrase your question? As the report painter is a reporting tool I assume you want to report on P&L accounts and not u201Ccreateu201D them. A few more details on what you intend to report would be useful.
Regards
Karl -
How to calculate YTD and Last year YTD on Date in Bex
Hi,
I have a requirement in which I need to show the report as following format.
I need to show Year>monthday as Hierarchy. user will drill down on Month to Date.
Del Qty Ord Qty Del Qty LY Del Qty YTD Del Qty L YTD
Year
> Drill Down to Months
Jan
Feb
Mar
---> 1.03.2010
---> 2.03.2010
---> 3.03.2010
Dec
I have Calday, Calmonth, Calyear all three objects.
Now my question is how I can achive this? On which i need to create hierarchy?
and how to calculate the YTD at day level.
Note:- in the selection calyear is mandatory. User wants to display as per year. So What infoobject I need to take in selection?
and the way to calculate YTD on Day (in the case also ,where user doesn't give the date in selection)
Plz reply asap its uregent !!!
Thanks in advance,
AmitHi,
As per my understanding I think YTD means JAN to current date result. I means say if user enter 062005 then result in YTD should be from 012005 to 062005.
And to do this you need to write a customer exit variable where LOW field of internal table you will put JAN year and HIGH will contain month year entered by user.
Hope this will help you.
Suneel -
How to calculate difference between date in hours?
Hi All.
I need calculate difference between first and last date. I'm using the code below:
int differenceDate = CalendarRule.elapsedDays(fromDate : myFirstDate, toDate : myLastDate);
This code return an result in days. But I need that result was in hours.
Has anybody help me?Interval dif;
dif = myLastDate - myfirstDate;
display((dif.hours));
Hope it helps -
How to calculate interest and tds
friends,
we have one asset where it is provided by our business partner. every month we have to pay interest based on the mail received from business partner. my query is how to post this interest in the system, how to calculate the tds on this,
regards,Hi Subramaniyan,
1. You need to configure interest calculation all the steps.
http://www.sap-basis-abap.com/sapfj001.htm
or
OB46 - Interest Settlement Calculation Type
Int Calc. Type
P - calculate interest based on line items.
S - calculate interest based on account balances.
Secornd, make it avaliable to the interest run program.
OB82 - Interest Terms
Third, determine the interest rate that will be used by the calculation.
OBAC - Define Reference Interest Rates
OB83 - Enter the Reference Interest Rates Value
Fourth, assign the interest indicator to the reference interest rate.
OB81 - Define Time Dependent Terms
Finally, determine the how and to which accounts the interest program will post.
OBV1 - Prepare Interest on Arrears Calculation F.26 A/R: Balance Interest Calculation
2. Create Recurring Entries. fbd1
http://help.sap.com/saphelp_46c/helpdata/EN/6e/1218df9f0411d189b80000e829fbbd/content.htm
3. Process Batch Input sm35
Regards,
Srinivas Muthyala -
How to calculate Date and Days
Hi BW Experts,
I have requirement, I have field original GI Date and it is calculating based on 'Original promise date'-'Transport time'. Formula is 'Original GI Date' = 'Original promise date'-'Transport time'.
We are getting data for original promise date as Date format and Transport time as Days (ex: 1 or 2 days).
Here, how can I convert into Date or how can I calculate Date and Days. I am working on BW3.5 .
Please help me how can I overcome this requirement.
Points will be assign.
regards
Yedu.Hi Ventatesh
It's not a problem
You can subtract days from date to get the resultant date
Original Promise time = GI Date - Transit time ( in days)
Add Original Promise Time in your data target and fill that up with the above rule.
If the above is not working you can use this function module
DATE_IN_FUTURE
Here you need to pass Date and Days to get future date. Only trick you need to apply that if the transit days is 5 days, you pass -5 to this function module.
But this function module is not available in BW system. Just copy the code from ECC system and create a Z FM for BW system
Regards
Anindya
Edited by: Anindya Bose on Feb 9, 2012 4:36 AM -
How can i eliminate the unnecessary symbols and text in matrix report
Hi,
I have create one matrix report using report wizard but that is displaying some boxes including data and the text which i have to display one time,but that is displaying more times.Can anybody suggest how can i format my layout.I also would like to add some morecolumn within that layout is it possible?
Thankshi Ravi,
Thanks for ur reply.I have tried like that also but i am getting something symbols like box[segment1]m like that.Actually i am running that report on oracle apps.there i am getting like that.But in the report builder side its fine.What may be the cause?Can u please suggest me
Thanks -
How to Calculate Line items Total of Matrix Column
hai experts,
Im facing a problem like
1. i have a matrix with a column Labour Costs in that im taking some cost.
2. in footer a have a Edit Text like Total Labour Cost
3 when i enter amount in matrix column it sholud disply that value in total labour cost and when we add new row ,labour cost it should add to 'total labour cost' in footer.Like Invoice Documents.Where do you want to implement this like sapscript / smartforms or adobe forms? please specify.
-
How to Calculate Freight and Acquisition Overheads on Material Price
Hi Gurus,
currently i am working in Product costing. my requirement is to calculate Freight and Acquisition overheads on Material Price.i have maintaind rates for condition types ZFRA , ZA2H and ZAOH by using MEK1 transaction code. eventhough system is not calculating this overheads while running CK11n. system showing only material price no other oveheads.
my intension is to estimate the cost for Purchased parts not for Manufacturted parts. for that i have given the priority in the Valuation Variant is Price from purchase record.
can anybody resolve my problem?
Thanks&Regards
PrasadHi
Thanks for your reply.According to my clients requirement i need to do material cost estimates for purchased materials thru ck11n.for this i have given priority as price from purchase info record in the Valuation Variant. my mm friends maintaind price in the purchase info record ME11.
In additions to this i also maintained rates for Freight,Acquisition and Customs condition types in MKE1.
Now if i run CK11n, system showing only Material Price which is in the Purchase inforecord but system not calculating any required overheads.
I need to calculate Overheads thru Condition types not thru Costing sheet.
If you see Price Simulation system calculating the Overheads accordingly.but same is not getting populating while running the CK11n.
In Valuation Variant under the Deivery Costs tab I have assign all required Condition types to Valuation Variants and Controlling area accordingly.
I hope that i explained my current problem clearly.can anybody give me the solution
Thanks&Regards
Prareddy -
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 -
Question on How to Use LI and NP Data Comparison Report
Hi,
We are trying to figure out how to make the Transaction Code PC00_M42_LLPD (LI and NP Data Comparison Report) work. What file type (.xls, .txt, etc) should be used? Anyone who is familiar with the transaction, please help.
Best Regards,
BrySomewhere in the Oracle 8.0 documentation it is stated that one
enviroment per each thread is required if I want to ensure
complete concurrency of different threads accessing databases.
But isn't this a waste of resources since only Handle Alloc &
Free functions use Enviroment handle, hence they should be
mutexed for access from concurrent threads.
But the most time-consuming functions are ServerAttach &
SessionBegin which shouldn't be mutexed since they have each
their own Server/Session handle.
So my question is if a single OCI Enviroment is enough for the
most demanding tasks or should I create one enviroment per
thread?
Most folks are happy with a single environment. The mutex on the
env handle is only taken when the OCI library is allocating some
memory for internal operations.
Tomislav.
Maybe you are looking for
-
Purchased music won't play on ipod 5g 60gb - need help!
hello everyone, i've been looking for help all over the internet for hours and hours, and i have yet to find an answer. i wrote the whole sequence of events down so everyone will know which troubleshooting steps i have already gone through. i have an
-
Mail is telling me I have 2 emails but I can't see them in my inbox. I've changed the settings so there is no limit to mail days to sync,as lots of messages seemed to be disappearing, but I'm stuck now!
-
MIGO/MIRO Posting date to Display mode
HI all, How can we set MIGO/MIRO Posting date field to Display mode. Can this be set for User specific. Please advise.Its Urgent. Regards, Jag
-
My charger port wont work what do i do?
Last night i put my ipod away in my bad (there was nothing in it) and it stopped charging this morning. I bought a new charger and everything. I know that i didnt break any part in the charger port but im not sure what to do. My ipod is on low batter
-
Much more cumbersome than CS2, several questions
I just got back from a 10 day trip having shot about 2000 picutures and dowloading them to Aperture day by day. I had previously used Abobe CS2 but since I have a new Macbook Pro I decided to give Aperature a try. Now I'm not sure I won't regret the