Highest amount among children in a BW hierarchy
Hi All
I have a Webi report directly using a BeX query with 0COSTCENTRE hierarchy. My report only displays information about Level 3 cost centers but I want to show the highest [Amount] among Level 4 children of that particular Level 3 cost center.
Can anybody please let me know whether this is possible. If so, can you please share instructions on how to do this.
Regards
Umesh
Was able to figure this out myself.
Max([measure];[0COSTCENTRE].Children)
Furthermore I was able to show the Level 4 Cost center text and amount along side level 3 parent cost center.
It was bit of a lengthy path; Hope somebody can improve it. Steps are as follows....
MaxChildAmount = Max([Amount];[0COSTCENTRE].Children)
MaxParentAmount = Max([MaxChildAmount ];[0COSTCENTRE].Parent)
CostCentreName = If([Amount]=[MaxParentAmount ];[0COSTCENTRE.text])
MaxChildName = Max([CostCentreName ];[0COSTCENTRE].Children)
Now you can use MaxChildName in the same row as Parent name
Thanks all
Similar Messages
-
Inclue children and exclue children in a single hierarchy in parent child dimension in mdx
hi,
include children and exclude children in a single hierarchy in parent child dimension in mdx
*12-parent
**20-parent
- 9-parent
--250-child1
--210-child2
--240-child3
aggregation of 12-parent only
aggregation of 20-parent only
aggregation of 9 with children
regards,
ManishHi manishcal16PPS,
According to your description, you have a parent child dimension in your cube. Now you want to use one measure use show aggregation value including/excluding child member based on different parent level member. Right?
In this scenario, we could use IIF() in the calculated measure to apply different calculation depends on the current dimension member. Please refer to query below:
with member [x] as
IIF([Dim].[Hierarchy].CurrentMember is [Dim].[Hierarchy].[Parent].&[9]
sum(Descendants([Dim].[Hierarchy].CurrentMember,
[Date].[Calendar].[Parent]),
[Measures].[Amount])
sum([Dim].[Hierarchy].CurrentMember,[Measures].[Amount])
select [x] on 0,
[Date].[Calendar].[Parent].members on 1
from
[Cube]
Best Regards,
Simon Hou
TechNet Community Support -
I have a table "History" where all bids for a particular Item are recorded. Is there a way I could query this table to get only the highest Bidder?
Below is my query returns all records.
select Itm,Max(Amntbid)
From history
Group By Itm,Amntbid
order by Amntbid DESC
The above works by sorting starting with the Highest amount. But is there a way to get only one record with the highest amount?Sorry, I should have added, it's unclear from your requirements if you are looking for highest bid per item or if you are just looking for the highest bid overall. If you are just looking for the highest bid over you can remove the PARTITION BY clause:
All items with highest bid:
select itm, amntbid from
(select itm, amntbid, dense_rank() over (order by amntbid desc) rnk
from history)
where rnk = 1;Selects only one item (even if there are multiple items) with highest bid:
select itm, amntbid from
(select itm, amntbid, row_number() over (order by amntbid desc) rnk
from history)
where rnk = 1; -
R11i, Allocation of amounts among Legal Entities
Hi
We are on Release 11i and have one generic requirement to distribute the amounts in different legal entities
We have three legal entities and some resources are shared like salary of IT employees who are supporting three companies, this amount should be allocated amount these three LE's proportionately
Presently accountants are passing manual JV in Oracle GL in each legal entity, how can we put system control …I don’t think we can use mass allocation as it will distribute the amount in within one legal entity. what are the other options available for us.
Appreciate your immediate help
Regards
Irfanhi
as for u r scenario you can cannot restrict employees to position that is not possible and what i suggest is you mighr have grouped employee sub groups to country wise and while creating personal are you assign company codes to personal area there you can restrict .what i conclude if the person maintained wrong position suppose he has taken a position for Australia and in the employee group and employee sub group he has to maintain the same employee group ,employee sub group and personal Area belong to Australia other wise you get the error ..so i Think that is how you the system checks -
How can I get 1750 songs on my 8GB iPOd Touch?
You would have to have songs with smaller file sizes.
Reduce the quality of the files and you can save some room. -
hi experts
I am working on FI module cash weekly summary, in my output i should get particulars as
1-Apr to 7-Apr 85,610.00 5,38,474.00 1,73,860.00 Dr
8-Apr to 14-Apr 77.00 1,21,100.00 52,837.00 Dr
15-Apr to 21-Apr 45,685.00 52,077.00 46,445.00 Dr
1.here the dates should be calculated as 1-apr + 6 = 7-apr, etc according to the date what we enter in the selection screen. what ever date we enter it should be divided by 7 and the balance days should be displayed.
2. amount 85,610.00 is the sum of 1-apr to 7-apr, similarly the other calculations also
3. to find the highest amount among the selection screen date
iam attaching the specs and codes plz help me
thanks in advance
maaya
specs:-
Cash
Weekly Summary
1-Apr-2007 to 19-Jul-2007
Page 1
P a r t i c u l a r s Transactions Closing
Debit Credit Balance
Opening Balance 26,724.00 Dr
1-Apr to 7-Apr 6,85,610.00 5,38,474.00 1,73,860.00 Dr
8-Apr to 14-Apr 77.00 1,21,100.00 52,837.00 Dr
15-Apr to 21-Apr 45,685.00 52,077.00 46,445.00 Dr
22-Apr to 28-Apr 1,04,382.00 1,02,619.00 48,208.00 Dr
29-Apr to 5-May 3,01,532.00 2,78,110.00 71,630.00 Dr
6-May to 12-May 46,607.00 73,202.00 45,035.00 Dr
13-May to 19-May 91,607.00 1,01,719.00 34,923.00 Dr
20-May to 26-May 77,485.00 62,889.00 49,519.00 Dr
27-May to 2-Jun 62 ,411.00 69,738.00 42,192.00 Dr
3-Jun to 9-Jun 2,79,008.00 2,83,598.00 37,602.00 Dr
10-Jun to 16-Jun 1,02,153.00 93,729.00 46,026.00 Dr
17-Jun to 23-Jun 5,28,608.00 5,32,870.00 41,764.00 Dr
24-Jun to 30-Jun 43,333.00 46,299.00 38,798.00 Dr
1-Jul to 7-Jul 2,49,350.00 2,18,776.00 69,372.00 Dr
8-Jul to 14-Jul 27,095.00 58,599.00 37,868.00 Dr
15-Jul to 19-Jul 15,000.00 7,233.00 45,635.00 Dr
G r a n d T o t a l 26,59,943.00 26,41,032.00 45,635.00 Dr
A v e r a g e 1,66,246.44 1,65,064.50 55,107.13 Dr
Highest (dt. 19-Jun-2007) (dt. 19-Jun-2007) (dt.4-May-2007)
Balance 4,83,238.00 4,95,563.00 2,88,728.00 Dr
Lowest (dt. 14-Apr-2007) (dt. 14-Jul-2007) (dt. 2-Apr-2007)
Balance 77.00 533.00 23,724.00 Dr
my codings are as follows
*& Report ZCASH_WEEK
REPORT ZCASH_WEEK no standard page heading line-size 200.
tables: bkpf,
bseg,
skb1.
data: begin of it_skb1 occurs 0,
saknr like skb1-saknr,
end of it_skb1.
data: begin of it_bkpf occurs 0,
belnr like bkpf-belnr,
gjahr like bkpf-gjahr,
blart like bkpf-blart,
budat like bkpf-budat,
monat like bkpf-monat,
end of it_bkpf.
data: begin of it_bseg occurs 0,
budat like bseg-augdt,
date(60),
belnr like bseg-belnr,
koart like bseg-koart,
shkzg like bseg-shkzg,
dmbtr like bseg-dmbtr,
hkont like bseg-hkont,
end of it_bseg.
data : it_closedbal like it_bseg occurs 0 with header line.
data : Begin of it_data occurs 0,
budat like bkpf-budat,
debit like bseg-dmbtr,
credit like bseg-dmbtr,
clbal like bseg-dmbtr,
end of it_data.
data : Begin of it_clbal occurs 0,
budat like bkpf-budat,
debit like bseg-dmbtr,
credit like bseg-dmbtr,
end of it_clbal.
data : v_closedate like bkpf-budat,
v_closebal like bseg-dmbtr,
v_cldeb like bseg-dmbtr,
v_clcre like bseg-dmbtr,
v_days(3) , v_week(4),
v_budat like bkpf-budat,
v_date(60), v_date1(11), v_dat(7),
v_max_credit like bseg-dmbtr,
v_min_credit like bseg-dmbtr,
v_max_debit like bseg-dmbtr,
v_min_debit like bseg-dmbtr,
v_max_closebal like bseg-dmbtr,
v_min_closebal like bseg-dmbtr,
v_avg_credit like bseg-dmbtr,
v_avg_debit like bseg-dmbtr,
v_avg_closebal like bseg-dmbtr,
v_grd_credit like bseg-dmbtr,
v_grd_debit like bseg-dmbtr,
v_grd_closebal like bseg-dmbtr.
Selection-screen :begin of block b1.
Parameter: p_bukrs like bkpf-bukrs obligatory,
p_saknr like ska1-saknr.
p_hkont like bseg-hkont.
select-options: s_budat for bkpf-budat.
selection-screen end of block b1.
start-of-selection.
to fetch data.
perform get_data.
to calculate the days.
perform get_days.
to fetch the closing balance
perform get_CLOSEDBAL.
to display the output
perform get_output.
to get the grand total.
perform get_grandtot.
to get the average balance
Perform get_average.
to get the max & min balances
perform get_high_low_bal.
end-of-selection.
*& Form get_data
text
--> p1 text
<-- p2 text
FORM get_data .
select saknr from skb1 into table it_skb1 where bukrs = p_bukrs
and saknr = p_hkont.
select * from bkpf into corresponding fields of table it_bkpf
where bukrs = p_bukrs
and budat in s_budat.
select * from bseg into corresponding fields of table it_bseg
for all entries in it_bkpf
where belnr = it_bkpf-belnr and
hkont = p_hkont.
select * from bseg into corresponding fields of table it_bseg
for all entries in it_skb1
where hkont = it_skb1-saknr.
loop at it_bseg.
select single budat from bkpf into it_bseg-budat where belnr = it_bseg-belnr.
modify it_bseg.
endloop.
break-point.
***select max( dmbtr ) from it_bseg into v_max_credit where budat between s_budat-low and s_budat-high
shkzg = 'H'.
perform get_day.
**move the documents into itab where date lies between input dates low & high
loop at it_bseg. "where budat between s_budat-low and s_budat-high.
if it_bseg-budat >= s_budat-low or it_bseg-budat <= s_budat-high.
it_data-budat = it_bseg-budat.
if it_bseg-shkzg = 'H'.
move it_bseg-dmbtr to it_data-credit.
else.
move it_bseg-dmbtr to it_data-debit.
endif.
endif.
append it_data.
endloop.
**move the documents into itab_close one day less than low range ( s_budat-low - 1 )
v_closedate = s_budat-low - 7.
loop at it_bseg.
where budat between v_closedate and s_budat-low .
if it_bseg-budat >= v_closedate or it_bseg-budat <= s_budat-low.
move it_bseg-budat to it_clbal-budat.
if it_bseg-shkzg = 'H'.
move it_bseg-dmbtr to it_clbal-credit.
else.
move it_bseg-dmbtr to it_clbal-debit.
endif.
endif.
append it_clbal.
endloop.
ENDFORM. " get_data
*& Form get_days
text
--> p1 text
<-- p2 text
FORM get_days .
v_days = s_budat-high - s_budat-low.
v_week = v_days / 7.
*write:10 'days', v_days,
50 'week', v_week.
ENDFORM. " get_days
*& Form get_closedbal
text
--> p1 text
<-- p2 text
FORM get_closedbal .
*break-point.
loop at it_clbal.
*sum.
v_cldeb = v_cldeb + it_clbal-debit.
v_clcre = v_clcre + it_clbal-credit.
v_closebal = v_cldeb - v_clcre .
v_closebal = v_clcre - v_cldeb .
endloop.
skip 2.
*write: 'Opening Balance' , v_closebal.
ENDFORM. " get_closedbal
*& Form get_day
text
--> p1 text
<-- p2 text
FORM get_day .
*break-point.
loop at it_bseg.
v_budat = it_bseg-budat.
CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
EXPORTING
INPUT = v_budat
IMPORTING
OUTPUT = v_date.
v_dat = v_date+0(6).
move v_dat to it_bseg-date.
write:/10 v_date , v_dat.
modify it_bseg.
endloop.
ENDFORM. " get_day
*& Form get_output
text
--> p1 text
<-- p2 text
FORM get_output.
WRITE : /60 'Cash'.
WRITE : /55 'Weekly Summary'.
WRITE : /30 v_budat-low, 50 v_budat-high.
write :/125 'Page 1'.
skip 1.
uline (135).
write : /5 'Particulars', 45 '|', 60 'Transactions', 120 'Closing'.
write : /45 sy-uline(71), 120'Balance'.
write : /45 '|', 55 'Debit', 90 'Credit', 115 '|'.
write : / sy-uline(135).
write : / 'Opening Balance' , 120 v_closebal.
write : / v_dat1.
*loop at it_data.
WRITE : /1 sy-vline, IT_DATA-
ENDFORM. " get_output
*& Form get_grandtot
text
--> p1 text
<-- p2 text
FORM get_grandtot .
break-point.
loop at it_data.
sum.
endloop.
move it_data-credit to v_grd_credit.
move it_data-debit to v_grd_debit.
v_grd_closebal = v_closebal + v_grd_debit - v_grd_credit.
uline.
write: 'Grand Total', 55 v_grd_credit, 90 v_grd_debit, 120 v_grd_closebal.
uline.
ENDFORM. " get_grandtot
*& Form get_average
text
--> p1 text
<-- p2 text
FORM get_average .
write:/ 'Average' ,55 v_avg_credit, 90 v_avg_debit, 120 v_avg_closebal.
skip 1.
ENDFORM. " get_average
*& Form get_high_low_bal
text
--> p1 text
<-- p2 text
FORM get_high_low_bal .
write:/ 'Highest',55 '(dt. )' , 90'(dt. )', 120 '(dt. )'.
write:/ 'balance',55 v_max_credit,90 v_max_debit, 120 v_max_closebal.
skip 1.
write:/ 'Lowest' , 55 '(dt. )' , 90'(dt. )', 120 '(dt. )'.
write:/ 'balance',55 v_min_credit,90 v_min_debit ,120 v_min_closebal.
uline.
ENDFORM. " get_high_low_balIf you have any suggestions that you think might enhance the Apple Watch you can send Apple your feedback here.
-
What is the highest node in Cost Center Hierarchy.
hi SAP gurus,
can anybody tell me what is the highest node in Cost Center Hierarchy.
thanksHi,
In Cost Centre Hierarchy highest node is Operating concern -> controlling Area
Hierarchy of controlling is-
Client
Operating Concern
Controlling area
Company codes
Business Areas
Rgds
shekar
hi SAP gurus,
can anybody tell me what is the highest node in Cost Center Hierarchy.
thanks -
Update parent status based on all children status and sum of children amount.
Hi,
I need to write sql query for the following scenarios.
We have 3 financial systems (sys1, sys2, sys3) where a same transaction gets entered independently into each system OR entered into one and exported to the other system. Transaction need not be in all 3 systems.
We need to create reconcile report to see the status of transaction and display if it is reconciled or not. For this, in our stored procedure we are pulling data from 3 systems into temp tables and using CTE and other logic marking each transaction status
in each system temp table. One of the systems (eg sys1), we made it as source.
Sys1 temp table has both parent and child records and are distinguished using type. Sys2 and sys3 has only children records. When report is created, we are showing parent from sys1 temp table and
children from new temp table where children status is updated based on availability of it in all 3 systems.
DECLARE
@sys1 TABLE
ID int,
childID varchar(20),
ParentID varchar(20),
RecType decimal(3,0),
SettleDate smalldatetime,
Principal money,
Sys3ID varchar(16)
NULL,
Sys2ID int
NULL,
Status varchar(25) NULL
DECLARE
@sys2 TABLE
TxID int
PRIMARY KEY NOT
NULL,
CommonTransactionID varchar(16),
SettleDate smalldatetime,
Par money,
Sys3ID varchar(16) NULL,
Sys1ChildID,
Sys1ParentID bigint
DECLARE
@sys3 TABLE
Sys3ID varchar(16),
REFERENCE
varchar(16),
VALUE_DATE datetime,
DIRECTION char(1),
AMOUNT money,
RecSource varchar(2)
Insert Into @sys1 (ID, childID, ParentID, RecType, SettleDate, Principal)
Select 172876, 217955, 217954, 100, ‘2015-03-01’, 100.00
Union
Select 172877, 217956, 217955, 50, ‘2015-03-01’, 15.00
Union
Select 172878, 217957, 217955, 50, ‘2015-03-01’, 25.00
union
Select 172879, 217958, 217955, 50, ‘2015-03-01’, 10.00
Union
Select 172880, 217959, 217955, 50, ‘2015-03-01’, 10.00
union
Select 172881, 217960, 217955, 50, ‘2015-03-01’, 40.00
Insert Into @sys2(TxID, Sys1ID, settleDate, Par)
Select 4336620, 217956, ‘2015-03-01’, 15.00
Union
Select 4336621, 217957, ‘2015-03-01’, 25.00
union
Select 4336613, 217958, ‘2015-03-01’, 10.00
Union
Select 4336614, 217959, ‘2015-03-01’, 10.00
union
Select 4336615, 217960, ‘2015-03-01’, 40.00
Insert into @sys3(Sys3ID, Reference, Value_Date, Direction, Amount)
Select 1, ‘5654471 4336620’, ‘2015-03-01’, ‘O’, 15.00
Union
Select 2, ‘5654481 4336621’, ‘2015-03-01’, 'O',25.00
Union
Select 3, ‘5654491 4336613’, ‘2015-03-01’, 'O',10.00
Union
Select 4, ‘5654501 4336614’, ‘2015-03-01’, 'O',10.00
Union
Select 5, ‘5654511 4336615’, ‘2015-03-01’, 'O', 40.00
After going thru lot of other logic, final temp table will have only children with status assigned. The above temp table data is only for 1 scenario.
The following are status of children.
This is how status of children is determined:
Not Settled – All child records start as Not settled in temp tables.
Settled – when record exists in sys3 and other criteria is met.
Partially settled – record exists in sys3 and either in sys1 or sys2 or other criteria is not met.
Reconciled – child record should exist in all 3 systems and all criteria is match
Mismatched – record has wrong amount when compared in any of 2 systems.
**************** My Part below*******************
My part is to update the status of parent based on children status and parent amount must match sum of child amounts. If amounts don’t match, then leave the status of parent as null.
Determining the status of parent:
Not Settled – None of children has yet settled.
Settled – All children are settled.
Partially settled – some of children are as settled OR 1+ children are partially settled.
Reconciled – All children are reconciled.
Partially Reconciled – some children are partially reconciled.
Null – 1 or more childen has a status of mismatched.
AND sum of children amount should match parent amount
How can I update the status of parent based on all children and sum of amount of children equal to parent amount.
Thanks,
Spunny>> We have 3 financial systems (sys1, sys2, sys3) where the same transaction gets entered independently into each system OR entered into one and exported to the other system. Transaction need not be in all 3 systems. <<
Your design is fundamentally wrong. In RDBMS, we want to have one fact, one way, in one place in the schema. The goal of all databases is to remove redundancy, not increase it. This not just SQL; this was true for hierarchical and network databases before them!
>> We need to create reconcile report to see the status of transaction and display if it is reconciled or not. For this, in our stored procedure we are pulling data from 3 systems into temp tables and using CTE and other logic marking each transaction
status in each system temp table. One of the systems (eg sys1), we made it as source. <<
You have re-invent the worst of 1970's file processing, but you want to use a temp table instead of scratch tape. This is not RDBMS or good SQL.
>> Sys1 temp table has both parent [sic] and child [sic] records [sic] and are distinguished using type. Sys2 and sys3 has only children [sic] records [sic]. When report is created, we are showing parent from sys1 temp table and children from new temp
table where children [sic] status is updated based on availability of it in all 3 systems. <,
The terms “child” and “parent” are not part of RDBMS. They come from network databases. You are building fake pointer chains we do have referenced and referencing tables. Or do you mean to model weak and strong entities? Where is the DRI actions?
These things are not tables! They have no keys, so they are called (garbage) piles. But even the garbage is wrong. There is no generic “id” in RDBMS; it has to be “<something in particular>_id” to be valid. Since you do not do math on it, it should not
be a numeric.
A “rec_type” is a nominal scale, so it cannot be a numeric either! Likewise, we have no generic “status”, but a status is state of being so it has to have a temporal dimension. And did you know that “reference” is a reserved word in SQL as well as another ISO-11179
violation.
The MONEY data type does not do correct math. Google it! It is another Sybase left-over that nobody should ever use.
Finally, you used the old Sybase INSERT INTO ..SELECT..), .. disaster instead of the ANSI/ISO Standard VALUES table constructor.
>> This is how status of children [sic] is determined: ..
My part is to update the status of parent [sic] based on children [sic] status and parent [sic] amount must match sum of child [sic] amounts.<<
Your narrative describes what Tom Johnston called a Non-Normal Form Redundancy. We do not put summary data in the strong entity; another basic data modeling principle. We build a VIEW that gives us the current summary. Your mindset is still in punch cards and
magnetic tape files.
"No matter how far you have gone down the wrong road, turn around!" -- Turkish proverb.
Can you start over and do it right?
--CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
in Sets / Trees and Hierarchies in SQL -
I want to create a query on a hierachy and filter based on that Hierarchy.
I want to include a specific node of that hierachy and then exclude a lower level node of the one I've just added. But I still want to include the lower level node I've just excluded but seperate from it's parent node.
The example I have is reporting on Data for an org unit. In this case for our Childrens Services org unit. I want to report on Childrens Services but exclude one of it's child nodes Schools. I then want in the same query to seperately report on Schools - the child node.
I want it to look something like this:
Amount
Childrens Services...........10.......
Schools..........................5.........
In the example the amount for Childrens Services does not include a value for Schools even though this is an org unit that is a sub node (e.g. part of) of Childrens Services.
Any ideas?Hello
I think you should maybe try this. Create a structure.
Select the top node (parent) and then select the child you want to exclude and right click to exclude from selection.
Then you make another selection and choose this time the child previously excluded.
Hope this helps.
Rgds -
ABAP Query to display top 5 employees who are having highest salary
How will you write a query in abap to display top 5 emplyeee records who are having Highest Salary Among all the employees.
Please Reply...Hi Kush,
Before writing any Database Query, always keep 2 important thumb rules in your mind :
1. Keep the number of data base access small
2. Keep the amount of data transfer small.
As you mentioned the Database Table has only 100 records, you can locally buffer the Table. So, make a local buffering and then you can sort the table based on the salary.
Select *
from Table_name
into table gt_itab.
Sort gt_itab by salary descending.
Now you can read the entries one after the another based on the index.
Have a look at the following code for an efficient performance feature. Goto SE38 and have a look at the ABAP Examples.
demo_select_some_columns. Package : SABAPDEMOS
Hope this will help.
Thanks,
Samantak. -
Better Practice - split dimension table or split hierarchy?
Hi All,
I have an Org dimension table that has geography and organizational structure within it (columns - state-city-etc.) and (columns division-department-etc.). Is it better to create a dimensional hierarchy with 2 trees (1 being geography sub-hierarchy from ALL and the other being ORG) or is it better to split table at BMM layer and create a logical geo and logical org tables separately. What do you think? Thank youGreat help thank you. I was also leaning towards the same decision, but now I'm just sure. Venkat, when you're saying that OBIEE cannot handle 2 hierarchies, do you mean that a Fiscal Year / Calendar year model wouldn't work - and I think it's how it is in the OBI vanilla marketing app. I just want to make sure I understood your correctly. If yes, then are those 2 expected to have the same amount of children (i.e. I might have Week level in Calendar, but skip it for Fiscal). Thanks
-
Hi Guys,
There are two Volatile Orgnaic Compounds values getting displayed, but our requirement is to get the highest value among the two values.
Please let us know if you have any solution for this.
Regards,
Rafi MohammedHi Ralph,
We have introduced the code we are able to preview the label perfectly. But when our client tries to print the label he is unable to do it.
Below is the log that we received
I000 Trace:
I000 ======
I000 02/10/12 09:16:55 Start Function 'WWI_GENERATE_LABEL'
I000 Initializing parameters
I000 Receiving data from client
I000 wait for semaphore
I000 semaphore allocated
I000 License check: I000 EH&S License verified.
I000 starting resolve for mode L
I000 Writing Result File
W000 WARNING: The height of the labelstock is too small for this amount of rows and margin. Labels may be printed on the next page.
W000 WARNING: The left edge of the shape 1036 is larger than the defined height of the label! The shape will probably not be visible on the label. Please check the template.
W000 WARNING: The right edge of the shape 1036 is larger than the defined height of the label! The shape will probably not be visible on the label. Please check the template.
W000 WARNING: Unknown rotation case! Got following data: PaperWidth=612.050009;PaperHeight=792.050012;LabelWidth=612.077000;LabelHeight=396.050000;LandscapeFlag=0
I000 GenerateLabel got 'SUCCESS' (0) as result from 'WWILABEL.DLL' and cleans up now
I000 Initializing Word connection at 02/10/12 09:16:55
I000 Initializing winword.exe process list
I000 Updating winword.exe process list
I000 Closing Word connection at 02/10/12 09:17:00
I000 process exit code: 0
I000 release semaphore
I000 Initializing result-file for OrderNo. 00000000000000001882
I000 Checking results returned from WWI in the Result-File
I000 Checking existence of generated file C:\WWI\WWI_GENSERVER_SYN_DEST\P00000000000000001882.PRN
We have analyzed it and found that there are some differences in width of the label with respect to the paper which is being used for print. But there is a statement in the log 'I000 GenerateLabel got 'SUCCESS' (0) as result from 'WWILABEL.DLL' and cleans up now', we are unable to understand this. This says the label is SUCCESS and also says WWILABEL.DLL cleans.
Could you please let us know if the label data is getting cleared once it is generated.
Regards,
Rafi -
How can we select the highest value from 3 disfferent #defined values???
Hello,
Sometimes I come across the requirement of having the program automatically select the highest value
among several defined preprocessor command statements. For example:
#include "stdio.h"
#include <math.h>
#define _K_BUF_OTHERS 20
#define _k_BUF_ENV_TAGS 30
#define _k_BUF_REGS 40
#define _k_MAX(x, y, z) (max((max(x, y)), z))
int main(){
unsigned int u;
u = _k_MAX(_k_BUF_OTHERS,_k_BUF_ENV_TAGS, _k_BUF_REGS);
return 0;
In the sample above we have three (3) different define statements called :
_k_BUF_OTHERS
_k_BUF_ENV_TAGS
_k_BUF_REGS
but at any given time in certain C modules (In this case above, the main.c module) I require for the program to know
which of the three is the highest and get that highest value so I can use it downstream of my code. In this case the highest would be 40. So therefore putting the following macro anywhere in my code should make a text substitution of the macro's value
and return 40 to u:
u = _k_MAX(_k_BUF_OTHERS, _k_BUF_ENV_TAGS, _k_BUF_REGS);
But I can't even compile the program!
Here's the error I get in VC++:
1>------ Build started: Project: MinMax, Configuration: Debug Win32 ------
1> Source1.cpp
1>c:\c++_tests\minmax\minmax\source1.cpp(15): error C3861: 'max': identifier not found
1>c:\c++_tests\minmax\minmax\source1.cpp(15): error C3861: 'max': identifier not found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Can someone please have a look and see what I am doing wrong.
All help appreciated...
Thanks
rOn 4/12/2015 4:30 PM, roberto wrote:
1>c:\c++_tests\minmax\minmax\source1.cpp(15): error C3861: 'max': identifier not found
So implement or #define one. C standard library doesn't provide a function named "max".
Igor Tandetnik -
Hi Gurus,
My client want to distribute the credit memo amount among the products, The scenarios is
Ex. For A customer they are selling x,y and Z products worth 5,000,000, for that customer they are giving credit note(irrespective of product, revenues, quantity or sales) for 50000,presently this amount loading based on the customer, this 50000 is possible to load based on the three product? Like that they have more customers (only one gl for all customers.)For that credit memo they have one GL account they assigned in OKB9 to CO-PA.
Scenario 2(Link with above issue)
For A customer having business across India(Different regions south, north, west and east), He comes under different AMs (Area managers), Billing will do based on the AM and region how the credit memo amount will distribute among the AMS?
Please advise meu2026.
Thanks,
ChanduHi Reddy Anna
Top Down Distribution (KE28) is the solution for this
While posting the Cr Memo - you need to populate the Customer No and Other fields like Area (E/W/N/S) in the chars
Later on, using TD, you can allocate it to all products sold upon that Customer / Area
br, Ajay M -
Customer Aging Report by Highest Due Sorted List
Hi
Can any one tell me is there any report where i get Customer Aging Details like S_ALR_87012178 - Customer Open Item Analysis by Balance of Overdue Items. and sorted by highest Due balance Accounts first rather than by Account No.
Thanks
SivaramYou can get this in evaluations F.30, however I think the report you mention can be sorted by the highest outstanding amount.
You cannot however in the report you mentioned sort it by say highest amount over 30 days which you can in evalutions.
Use the search option in the forum about how to create evaluations, I have posted some stuff on it before.
Maybe you are looking for
-
Shut Down window prompt continues to randomly pop up..
The " Are you sure you want to shut down your computer now" continues to pop up when i leave my MacBook (2010, 7,1) idle for a few seconds. It means doing any tasks becomes very frustrating as I have to continue to cancel the operation. It is the sa
-
Hi, I have to create training materials on a regular basis. These materials are generally folders with various forms, role plays cards and general reading. Also, each course demands a different mix of materials - I find my self spending days printing
-
Extend Sales area data of a BP via copy
Hi, Is there any functionality in SAP CRM 2007 to extend the Sales area data for a BP via copying. Example: BP 'A' has been created for Sales area 'AB' and the relevant fields have been populated. Later on the BP 'A' needs to be extended to Sales are
-
I have a MacBook Pro, which I just bought in August. When I try to watch videos on my computer, a message pops up saying, "You are currently browsing the web with Google Chrome and your Video Player might be outdated." I know it's a pop up, but I don
-
How to set a default reminder for ICal to-dos
I would love to be able to set a default reminder for all my Event to-do's in ICal. Right now, I have to choose a reminder, and it's always preset at 11:45 PM. I don't want my phone to remind me in the middle of the night.