PO Qty is getting Aggregated.
Hi All,
I am having a requrement like i need Invoice Accouting Doc No, GR Accouting Doc No,GR Qty.IR Qty ,PO no and PO Qty.
I have created one cube which is getting updated from FI ODS
for the PO No and PO Qty i have written a routine in Update rules which will update from PO ODS.
My Problem was while updating the PO Quantity from PO ODS to Cube The PO qty is displaying for each Accounting document number (WE and RE) and in report level its getting aggregated.
PO Number | Item | Accounting Doc No | Type | PO Qty
2520555 10 45465454 WE 100
2520555 10 43546546 RE 100
2520555 20 465464 RE 200
this is how its coming which should not come ..
for the PO the PO Qty is 300 but is aggregating and showing 400 in the report..
Kindly provide me the logic how to handle this one..
Hi All,
We have created one Z programfor fetching the PO Qty only once for all the accouting document nos per PO and its working fine .So we copied the same code in update rules for PO Qty and its not working there its taking ZERO's for the entire PO's.
Pls find the below Code and kindly let me know how to correct the code in the update rules .
iam doing a lookup for PO qty.
Code in Zprogram.
DATA : begin of itab occurs 0,
Doc_Num type /BI0/OIOI_EBELN,
AC_DOC_NO type /BI0/OIAC_DOC_NO,
Item_Num type /BI0/OIOI_EBELP,
qty type /BI0/OIORDER_QUAN,
end of itab.
DATA : Temp type /BI0/OIOI_EBELN,
Temp1 type /BI0/OIOI_EBELP.
SELECT DISTINCT
OI_EBELN
AC_DOC_NO
OI_EBELP
ORDER_QUAN
FROM /BIC/AYSPND_O300 INTO table itab WHERE /BIC/YSPNDIND = 'IT'.
SORT itab BY Item_Num.
Loop at itab.
IF Temp <> itab-Doc_Num OR Temp1 <> itab-Item_Num.
write : / itab-Doc_Num, itab-AC_DOC_NO, itab-Item_Num, itab-qty.
ELSE. write : / itab-Doc_Num, itab-AC_DOC_NO, itab-Item_Num, '0'.
ENDIF.
Temp = itab-Doc_Num.
Temp1 = itab-Item_Num.
endloop.
CLEAR itab.
Thnx
Similar Messages
-
hello gurus....
iam designing a infocube in which there is a keyfigure 'partcost'.when i execute a query on this infocube, the part cost values for a particular part id are getting summed up. but the part cost ,whether for single or 100's of parts ,should be the same.
i dont want these part cost values in the query to be aggregated. what i should do now. declare this part cost as non cumulative kf or is there any solution for this ?
i have gone thru the sap help site, but unable to find a solution for this?
how to declare it as a non cumulative kf ?
can any one suggest me a with some detailed steps what should be done for this? very urgent . my project deadline is with in 2 days. i will be really thankful to u..Hi Lokesh,
Pls check your post in BI General. part cost kf values are getting aggregated ......... can any one help me?
Regards
Hari
Message was edited by: Hari Krishnan K -
Order, Rounded & Confirmed qty all gets populated when creating Sales Order
Hello Experts,
I'm creating a number of sales orders for custom materials (1400-510-01, 1400-510-02, 1400-510-03). Under Schedule lines I've observed Order and Rounder qty reflects the 5, which i provided for Quantity for this material. However Confirmed qty also gets per-populated with 5 and its locked. This is causing then I try to create Transfer Order. Does anybody will know why Confirmed qty also getting populated beside Order and Rounder qty. If yes then how i can get ride of it.
Many thanks in advance.Hi,
The confirmed quantity is based on the available quantity in the stock which is confirmed based on the order quantity. This will only change if
1) there is not sufficient stock
2) if its partially confirmed and confirmed in future in full -
Data in the Cube not getting aggregated
Hi Friends
We have Cube 1 and Cube 2.
The data flow is represented below:
R/3 DataSource>Cube1>Cube2
In Cube1 data is Stored according to the Calender Day.
Cube2 has Calweek.
In Transformations of Cube 1 and Cube 2 Calday of Cube 1 is mapped to Calweek of Cube 2.
In the CUBE2 when i upload data from Cube1.Keyfigure Values are not getting summed.
EXAMPLE: Data in Cube 1
MatNo CustNo qty calday
10001 xyz 100 01.01.2010
10001 xyz 100 02.01.2010
10001 xyz 100 03.01.2010
10001 xyz 100 04.01.2010
10001 xyz 100 05.01.2010
10001 xyz 100 06.01.2010
10001 xyz 100 07.01.2010
Data in Cube 2:
MatNo CustNo qty calweek
10001 xyz 100 01.2010
10001 xyz 100 01.2010
10001 xyz 100 01.2010
10001 xyz 100 01.2010
10001 xyz 100 01.2010
10001 xyz 100 01.2010
10001 xyz 100 01.2010
But Expected Output Should be:
MatNo CustNo qty calweek
10001 xyz 700 01.2010
How to acheive this?
I checked in the transformations all keyfigures are maintained in aggregation summation
regards
PreetamJust now i performed consisyency check for the cube:
I a getting following warnings:
Time characteristic 0CALWEEK value 200915 does not fit with time char 0CALMONTH val 0
Consistency of time dimension of InfoCube &1
Description
This test checks whether or not the time characteristics of the InfoCube used in the time dimension are consistent. The consistency of time characteristics is extremely important for non-cumulative Cubes and partitioned InfoCubes.
Values that do not fit together in the time dimension of an InfoCube result in incorrect results for non-cumulative cubes and InfoCubes that are partitioned according to time characteristics.
For InfoCubes that have been partitioned according to time characteristics, conditions for the partitioning characteristic are derived from restrictions for the time characteristic.
Errors
When an error arises the InfoCube is marked as a Cube with an non-consistent time dimension. This has the following consequences:
The derivation of conditions for partitioning criteria is deactivated on account of the non-fitting time characteristics. This usually has a negative effect on performance.
When the InfoCube contains non-cumulatives, the system generates a warning for each query indicating that the displayed data may be incorrect.
Repair Options
Caution
No action is required if the InfoCube does not contain non-cumulatives or is not partitioned.
If the Infocube is partitioned, an action is only required if the read performance has gotten worse.
You cannot automatically repair the entries of the time dimension table. However, you are able to delete entries that are no longer in use from the time dimension table.
The system displays whether the incorrect dimension entries are still being used in the fact table.
If these entries are no longer being used, you can carry out an automatic repair. In this case, all time dimension entries not being used in the fact table are removed.
After the repair, the system checks whether or not the dimension is correct. If the time dimension is correct again, the InfoCube is marked as an InfoCube with a correct time dimension once again.
If the entries are still being used, use transaction Listcube to check which data packages are affected. You may be able to delete the data packages and then use the repair to remove the time dimension entries no longer being used. You can then reload the deleted data packages. Otherwise the InfoCube has to be built again. -
Price Value getting aggregated
Hey everyone...
Here is my scenario...
I'm having a report of inventory value by material group and storage location...
Matgrp Qty Value Total
1
Material 10 3 5 15
Material 20 5 7 35
50
Instead of the total showing as 50 , I'm getting (35)*(57)= 8*12=96. for the material grp 1.
I'm not showing the materials on the report...
No, I'm not having aggregation on the CKF's as After Aggregation.
Please help me out...
any suggestions/pointers...
Thanks for your time..
/TravisOk....sorry for not able to explain it better...
Here si the scenario...
I have 2 materials under a Mat grp
Material1 with qty 3 value 5/material which makes my total value @ 15 for material1
Material2 with qty 5 value 7/material which makes my total value @ 35 for material2.
When I have a report at Material Grp level
I'm getting the value as
Matgrp with qty 8 value 12 and making the total 96. which is wrong. The total shld be 50.
I'm missing a restriction somewhere or sth minor....I'm not able to figure out.....
any suggestions/pointers.
Thanks
/t -
Getting aggregated data based on Date in Webi.
Hi,
I have a requirement to display last 6 Months Receviables Month Wise in Webi. And i am getting data based on clearing Date in Bex query. And data from Bex query will be like
Month Measure
01.01.2014 12
06.01.2014 15
15.01.2014 16
02.02.2014 8
05.02.2014 10
12.03.2014 4
14.03.2014 6
18.03.2014 10
21.03.2014 20
30.03.2014 30
03.04.2014 30
And i want aggregated data as
Month Measure
Jan 43
Feb 18
Mar 66
Apr 30Hi Satish,
Have you tried below:
Create Month1 object as =Month([Month]) and [total]as =Sum([Measure])
Then drag both Month1 and total objects in report block.
Regards,
Yuvraj -
BOM component Qty is getting rounded to next value in Process Order and BOM
We are in ECC 6.0, and maintaining BOM where Item quantities are decimal places e.g 0.3lb with respect to Hader qty. Now when we are craeting process order or exploding in CS11, we are seein that item quantities are getting rounded to next full integer e.g 1, 2 or 3.
What could be the reason for this behaviour.In standard "lb' doesn't have decimal point
If you want decimal point
go to CUNI
select the mass
you can find the lb
maintain the decimal point as 3, & decimal point rounding as as 3, system will show 3 decimal point in process order and in CS11 -
Closing Balance is getting aggregated
Hi,
I have a FI Infocube which have 0calday, 0sold_to & Closing Balance. For a Particular Calday, say 10.10.2011, I have 10 records in closing balance for the same Sold to party. All this records have the same closing balance value, say 1234, as there are 10 transactions happening on that day. When i execute the report built on this Infoprovider for this particular calendar day 10.10.2011, i am getting the sum of all this 10 values i.e 12340 in the row pertaining to Sold to party. But what i need is only one value to be displayed i.e 1234.
I tried putting maximum in both Aggregation & Calculation property in CKF but it didnt work.
How do i bring only one closing balance value for the sold to party which have 10 transactions on a particular calday itself?
Thanks & Regards,
MuraliHi,
can i ask you what is the reference characteristic you are using while applying exception aggregation.
You need to identify the unique characteristic for which you are getting 10 records.
It can be one characterstic or it may be set of characterstic.
Please share you report output.
Regards,
AL -
How to get aggregation at Year-Month level??
Hi experts,
I've Date and Qty column in rpd. I've created the aggregated column in rpd with Sum aggregation (Sum Qty)
My report is coming in this format..
Date...........Sum(qty)
1/1/2009..........5
1/2/2009..........4
1/6/2009..........10
2/3/2009.........2
2/4/2009..........6
But I need the report like this....
Year-Mon.........Sum(qty)
2009-01-----------19
2009-02-----------8
Please helphi bob,
1) Create a logical column yyyy/mm format using date col
CAST ( EXTRACT( YEAR FROM "Sample".""."Samplesales"."Dim-Date"."Start Date") AS CHARACTER ( 4 )) || '/' || CASE WHEN EXTRACT( MONTH FROM "Sample".""."Samplesales"."Dim-Date"."Start Date") BETWEEN 10 AND 12 THEN CAST ( EXTRACT( MONTH FROM "Sample".""."Samplesales"."Dim-Date"."Start Date") AS CHARACTER ( 2 )) ELSE '0' || CAST ( EXTRACT( MONTH FROM "Sample".""."Samplesales"."Dim-Date"."Start Date") AS CHARACTER ( 1 )) END
2) Set the aggregate/content level to this column (yyyy/mm) format to the fact table
thanks,
saichand.v -
BAPI_SALESORDER_CHANGE, QTY FIELD GETTING ADDED INSTEAD OF OVERWRITING
Hi,
I am using BAPI_SALESORDER_CHANGE FM, I am trying to use the Update flag as 'U' I have passed the HEader and HEader_inx with sales area and the sales order number. In Item I have passe item number, material number, quantity and in Items_INx I have passed Update fklag as 'U' and 'X' to target quantity, and in schedule_lines table again I have passed item number scedule line number and Req_qty and then passed schedule_lines_inx with updateflag as U and req_qty as 'X', the qty which I am giving insterad of getting over written it is adding to the previous value.
For eq if the previous qty value is 10 if I pass 8 using this FM after comminting it is becoming as 18 , is this the functionality of this FM or can we over write the existing qty ?
Any updates ?
Edited by: Varun on Nov 24, 2009 12:33 PMHI Varun,
To Change the Item Quantity you need to pass only item no and material in Item and do not pass target quantity in the Item.
And do the same in Item_inx, so in Item_inx pass only Item number, Update Flag = 'U' and material = 'X'.
In scedule lines you pass item number,sched line and req quantity eq '8'.
In scedule lines inx pass item number,sched line,Update Flag = 'U' and req_qty = 'X'.
wa_order_item_in_chg-itm_number = '000010'.
wa_order_item_in_chg-material = 'YYY'.
APPEND wa_order_item_in_chg TO it_order_item_in_chg.
wa_order_item_inx_chg-itm_number = '000010'.
wa_order_item_inx_chg-updateflag = 'U'.
wa_order_item_inx_chg-material = 'X'.
APPEND wa_order_item_inx_chg TO it_order_item_inx_chg.
wa_schedule_lines_chg-itm_number = '000010'.
wa_schedule_lines_chg-sched_line = '0001'.
wa_schedule_lines_chg-req_qty = '8'.
APPEND wa_schedule_lines_chg TO it_schedule_lines_chg.
wa_schedule_linesx_chg-itm_number = '000010'.
wa_schedule_linesx_chg-sched_line = '0001'.
wa_schedule_linesx_chg-updateflag = 'U'.
wa_schedule_linesx_chg-req_qty = 'X'.
APPEND wa_schedule_linesx_chg TO it_schedule_linesx_chg. -
Getting aggregated values on disaggregated level...
Hi all,
For example I have the following selection in my query:
Query 1.
City Store Item Sales @ UOM
City1 Store 1 Item1 100
Item2 150
Store 2 Item1 200
Item2 125
Item sales quantity on the City level will be the following:
Query 2.
City Item Sales @ UOM
City1 Item1 300
Item2 275
And I need to use this data in the first query, so I could access the aggregated city sales data in each disaggregated row, like this:
Query 3.
City Store Item Sales @ UOM Sales @ UOM (City lvl)
City1 Store 1 Item1 100 300
Item2 150 275
Store 2 Item1 200 300
Item2 125 275
Does anyone have an idea how this could be achieved?
I've already tried restricted and calculated key figures, and it seems that this isn't an option in this case...
Thanks.
Best regards,
AndreyHi Andrey,
I have tried the same at my end. And yes you are right. It is coming as you have showed here.
But i have tried the same requirement around a year back and I had achieved it, unfortunately I am not able to completely recall the same.
However there is one way which you can achieve a similar display.
You could view the report to this level
City Item Store Sales @ UOM Sales @ UOM (City lvl)
City1 Item 1 Store1 100 300
Store2 200 300
Item 2 Store1 150 275
Store2 125 275
You can achieve the above display by doing the below
for the second key figure (city level) - use formula (sumct (base KF) )
With this we will get the above view, but one disadvantage is we have to let the result rows for "store" be displayed. If it is removed the second KF will change.
But I am still trying at my end and will let you know as soon as I figure it out.
Regards,
Joe -
Hi All
We have a scenario where when we create a sale order, the qty is not avaialble, so the system carry's out the AVCheck and in the schedule like the cofirmed qty is 0.(Schedule line is CP, Req type is KSVS)
After the qty is avaialble when i clicl on Availability the system is not considering and still the confirmed qty remains o and iam not able to deliver the order.
Any help please.
ThanksCheck this thread
[Re: Reg Strategy 52|Re: Reg Strategy 52;
thanks
G. Lakshmipathi -
Tasks created in workflow don't get aggregated
We have the My Tasks portion working fine for aggregating tasks from our Sharepoint sites when users create the tasks inside the browser. I created a workflow to create tasks and assign them to users which seems to be working fine. The only problem is that
none of the tasks that are created during the workflow show up in the user's My Tasks aggregation page.
Search is on a continuous crawl, Work Management is using the same account as the My Site application pool and tasks appear in the My Tasks page if users go through SP and create the tasks, so I know Work Management is working.
I have tried running the workflow in regular mode and in an app step but I still don't see them aggregated. I can go to the workflow list and see all the tasks created and I've even waited 24 hours, but they never show up.
Anyone ever create tasks inside a workflow and have them show up in your My Tasks?Hi,
Based on your description, my understanding is that none of the tasks that are created during the workflow show up in the My Tasks aggregation page.
When a user created a workflow, here is a choice of Task List and History List.
Choosing a task list and updating the workflow to stores the tasks, compare the results.
Best Regards,
Lisa Chen
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Lisa Chen
TechNet Community Support -
IDs of smartlists getting aggregated
Hi,
I have a custom application with 52 weeks and months as the summary time period. I have few accounts which are smartlists. The values for this smartlists are Volume(ID-1),Minutes(ID-11),Hours(ID-111) and Headcount(ID-1111).The value of this does not change over months. Hence the user gives this value in one month and i use a run time prompt to get from which month it has to be copied to the other months. My scripts runs fine and copies the value to the other months. If the user has selected volume for Jan, my scripts copies this value to months and weeks and shows as Volume. But when i see this at a later point of time, The value in the month is 5 if the value which had already been existing there was volume. It is 5555 if the value was Headcount. This is really annoying. It should display the text everywhere. The time balance for this account is Flow.
FIX("Billing Basis")
"Jul"
(IF(Jul != #missing)
Jul =Jul;
Else
Jul = [SourceMnthToBeCopied];
ENDIF;)
Repeats for other months
ENDFIX
This copies the values to the other month but not to the weeks. The below script copies the values to the weeks.
FIX(@LEVMBRS(Period,0)
"Billing Basis" = @PARENTVAL(Period,"Billing Basis");
ENDFIX
This problem sounds difficult for me to handle. Your help will be appreciated.
Regards,
Ragav..oO(AngryCloud)
>On my site I have a private messaging feature. I use a
script similar to the
>one below to display a single message on the 'private
message' page.
>
> I want to add 'Next Message' and 'Previous Message'
links to the page, but I
>need to get the IDs of the next and previous messages in
order to create a URL
>for these links. How do I get those IDs?
A quick untested shot:
SELECT id
FROM private_messages
WHERE recipient_id = $user_id
AND id < $message_id
ORDER BY id DESC
LIMIT 1
This should return the ID of the previous message. Getting
the next ID
would be a similar query (with > instead of < and ASC
instead of DESC).
Both queries could be combined with a UNION clause, so that
you'll get
both IDs with a single record set.
> //Defines queries
> $query_private_message = mysql_query("SELECT * FROM
private_messages WHERE id
>= '$message_id' AND recipient_id = '$user_id' AND status
!= 'deleted'") or
>die(mysql_error());
Are the IDs numeric? Then you should remove the single quotes
around
them. Only strings are quoted in SQL.
HTH
Micha -
Hi ,
I am having DSO in which data is coming from cube .In transformation ( Cube --> DSO ) Rule Type EQ "Direct Assignment & Aggregation EQ 'Overwite' & there is no Start & End routine present .
Cube Data
Planning Area Plant Country Customer Group Chiild Material Parent Material Quantity
xxx yy z ABC 100 10 250
xxx yy z ABC 100 20 150
xxx yy z ABC 100 30 50
DSO Data ( Planning Area, Plant , Country, Customer Group, Chiild Material are Key Field & Quanity is data field )
Planning Area Plant Country Customer Group Chiild Material Quantity
xxx yy z ABC 100 450
Ideally when data flowing from cube to dso ,dso data should get overwrite if key field are same but in mine case quanity is getting added .I don't know please guide me .Hi ,
If you need different records in DSO as per your example (without adding the parent material) ,then load two different plant values in the InfoCube and see the result. For example , load Plant '100' and Plant '200' into your InfoCube first and then load these two records into your ODS. The records will not get aggregated and you will find two records in your ODS .But if you want only the last record,then you may need to write routine in your update rules.
Hope it clarifies your doubt.
Thanks.
Maybe you are looking for
-
Search function no longer works after upgrading to 10.5.6
After upgrading to 10.5.6 I noticed that the search command no longer finds anything on my connected AFP Server (OS X Server 10.3. 9). When I start a search in the finder, even though I can see the item on the screen it gives a result of zero. Is any
-
R12.1.1 installation.
Hi All, We get the following error for R12.1.1 installation. This error is from the installer window.. " RW-50004:Error code received when running external process. Check log file for details. Running Database install Driver for NAC03R12 instance " T
-
Any programs like ISIS Draw or Autonom for Mac OS X
Hi, I am a student and its frustrating that I cant seem to get any of these programs. These programs draw molecular formulas out for my Pharmacy Course. Ppl with pcs laptops etc are able to and it puts me in a great disadvantage. And there are other
-
I have a PDF file I want converted to a WORD file.
How do I do that?
-
Hi I want to take data from a mySQL database and show it in an applet as a graph. The problem I'm having is creating the graph. Does anyone know a fairly simple way to do this? thanks