Age range change preoblem
SAP deliverd infoobject 0AGE_RANGE with standard age range, but our clients want to have special age range interval and calculate Number of Employees within this range. However HR module doesn't make this kind of range.
1) How to change the range according to customer's expectation?
2) How to calculated Number of Employees within this range due to HR team doesn't maintain this age range in R/3?
3) Should we write ABAP code?
SAP standard age range
1 <20
2 20 - 29
3 30 - 39
4 40 - 49
5 50 - 59
6 60 - 69
7 >= 70
Customer required:
1 <=25
2 26 - 30
3 31 -35
4 36 - 40
5 41 - 45
6 46 - 50
7 51 - 55
8 >= 56
Edited by: hi ni on Apr 19, 2008 5:02 AM
Hi,
take a look at 0AGE doc from help.sap.com I think it should solve your problem:
This characteristic is a derived characteristic. You can use this characteristic to display key figures in accordance with the age of an applicant or an employee.
The characteristic contains the applicant/employees age at the end of a period. You can define an age hierarchy according to the specific requirements of your enterprise, and then display the age structure of your enterprise, for example. To enable you to perform age-based calculations, the system includes an Age in Years key figure (0AGE_KYF).
The age characteristics are calculated using update rules at the end of a period. The period depends on the InfoSource from which it is taken. For example, the end of the period can be at the end of a calendar day or month.
SAP delivers age in years hierarchies in CSV files. (See also InfoSource Age in Years (0AGE)). You can also define hierarchies for the Age in Years characteristic (0AGE). You can determine intervals within the structure as required, for example, in five-year intervals (25 - 29 years, 30 - 34 years, and so on.) Therefore, the age structure that you define yourself offers advantages over the fixed age structure of the Age Range characteristic (0AGE_RANGE).
http://help.sap.com/saphelp_nw70/helpdata/en/e0/afd837aeadd03ce10000009b38f889/frameset.htm
Assign points if it was helpful...
Regards
Andreas
Similar Messages
-
Calculated Age and Age Ranges in a Query
Hello,
We are using 3.5 Query Designer.
I am trying to create age ranges in a query. The InfoProvider at this point (I've gone very simple) is InfoObject, 0PERSON.
I've created a calculated key figure (CKF) called age which I have used a formula to define. The age is calculating correctly. Age has 'Calculate Result As...' = Summation. And in the 'Enhance', 'Time of Calculation' is set to Before aggregation. Number of decimal places set to 0. Now I've created a CKF, AGE_GE_40 which has as its formula 'COUNT(('Age' >= 40)). I've created an additional CKF, AGE_LE_39 which has a formula 'COUNT(('Age'<=39))'. Both of these have the 'Summation' set in the calculation section. The query contains 0GENDER, 0PERSON with AGE_GE_40 and AGE_LE_39 and Number of records as the key figures in the columns. When executed initially, all of the result rows are correct. The problem is when I remove 0PERSON, the result rows only give me 1 per gender. This seems like an easy thing to do, why is it not working?
Thanks for any help,
Diane MerrillDiane,
For each row in the query data, there is only one age value calculated, which is the aggregration of all records which fulfills the row's characteristic value combination. Thus, when there is Gender & Person columns in the query, each row calculates an age value for the Gender/Person combination, which is essentially the same as for each person, because each person has one gender value. However, when you remove person from the columns, there will be only two values for gender, and the age is calculated as the sum of ages for all records with the same gender value. To reveal more on this, you can add the Age key figure into the query columns, and run the query with only the gender (i.e. without person). Once you see the age value for each row, it should be clear to you.
Please reward points if this is helpful.
Wayne -
Blank Rows in Table on Range Change After Add
I have a table and to add rows to it, you click on an add button, enter the information and then click save. After clicking save you return to the first page of the table. If you click on the Next option and change the table range, the table only shows the first record (in that new range) but the rest of the lines are all blank with no data. So for example, if my range is 5 and I have 8 records, after hitting the next button I see the 6th record and then 2 more rows but they are blank. How do I refresh the data after the range change to show the rest of the records properly? (Note, this appears to only happen after adding new records).
Since there is a sequence try this url, this will do the job:
see section "4.12.5 Assigning the Primary Key Value Using an Oracle Sequence"
http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/bcentities.htm#insertedID12 -
Post Author: SunilKanta
CA Forum: General
Hi,
I am new to crystal reports, i am designing a report i.e cross tab report as shown below,
AGE TABLE
0-5
6-10
11-15
16-20
21-25
26-28
CLASS A Count
7
15
CLASS B Count
7
15
CLASS C Count
109
155
120
96
89
Now my questions are,
How to display age ranges i.e 0-5, 6-10,........?
How to group ages in range and get the count or any summarized value ?
Here i am passing three parameters to the report which are
1. prmLowAge
2. prmHighAge
3. prmAgeBand
Above shown sample is characterised with prmAgeBand = 5, prmLowAge = 0 and prmHighAge = 28.
And if possible please try to find the solution for variable age bands.
Please i am very desperate. Please help me in solving this .Post Author: Ishe
CA Forum: General
You can use a Do...While loop. You can use the funtion below:
LOCAL STRINGVAR AGEGRP;LOCAL NUMBERVAR AGECNT := 0;
DO (AGEGRP := CSTR(AGECNT,0) + '-' + CSTR(AGECNT+5,0);AGECNT := AGECNT + 5)WHILE AGECNT < ;
AGEGRP
Also, you may want to use the following funtion to get , because the formula you were going to use would only compare the year of birth to the current year and ignore the number of months and days difference.
Int(DateDiff("d",{table.BirthDate},CurrentDate)/365) -
How to create age range according to customer's requirement
SAP delivered standard age range(0age_range) as below:
1 <20
2 20 - 29
3 30 - 39
4 40 - 49
5 50 - 59
6 60 - 69
7 >= 70
Cusomter's requirement:
1 <=25
2 26 - 30
3 31 -35
4 36 - 40
5 41 - 45
6 46 - 50
7 51 - 55
8 >= 56
How to handle this case if we use 0age instend of fixed age range(0age_range). should we maintain this from external flatfile, if yes, please provider the format. Thank!Hi,
You can write a routine in the update rules for the range as you mentioned.
Plz find the below code which may help u...
DATA: AGE TYPE 0AGE.
IF AGE <= 25.
RESULT = '1'.
ELSEIF AGE > 26 AND AGE <= 30.
RESULT = '2'.
ELSEIF AGE > 31 AND AGE <= 35.
RESULT = '3'.
ELSEIF AGE > 36 AND AGE <= 40.
RESULT = '4'.
ELSEIF AGE > 41 AND AGE <= 45.
RESULT = '5'.
ELSEIF AGE > 46 AND AGE <= 50.
RESULT = '6'.
ELSEIF AGE > 51 AND AGE <= 55.
RESULT = '7'.
ELSEIF AGE >= 56.
RESULT = '8'.
ENDIF.
Hope this helps u...
Regards,
KK. -
Hi I have a table which has 200+ records displaying 20 records perpage. I am setting the values to that table from my backing bean. The problem is that, When ever the range is changed, the next 20 records are displayed but the request doesnot seem to be completed. I mean the seek bar at the bottom showing the progress infinitely. I am calling the method which which sets the values to the table in the tables's range change listener method. The followin is the code.
public void onRangeChanged(RangeChangeEvent rangeChangeEvent) {
this.setTableValues();
please help me...
Thanq.Hi,
if the browser shows busy then for sure its not caused by the code snippet you provide. In your code you may want to try and call response complete on the FacesContext to indicate a complete response
Frank -
AGE RANGE calculation????
hi,
i am working with HR CUBE(0PA_C01) which is personal actions and headcount, please tell me the logic how to calculate AGE RANGE?
thanks in advance
sheeluhi,
points will be assured.
thaks -
Hi All,
I am creating a technical specification document for below report. and as of now i dont have sandbox system
age range , no. employee as per age range , No. of spouse as per age range.
we are having 0age_range and 0age in standard cube 0PA_C01 .
i have a doubt here if i create a calculated keyfigure for age of spouse using DOB add it in my cube and then in query designer if i drag age range in columns and age and spouse age in rows will i get age range wise number of employees and number of spouse ???
ApoorvaYes you can do that. Here is an example from another thread. The chart is using the data in the "stacked bar chart" table which was derived from the raw data. The bars for the first series are formatted so they are invisible (no fill). You can simplify it somewhat if you don't need a median.
-
Match age with dob and age range
I have two table Hist and Geog of which Hist contain case_id, DOB, age, age_range and Geog (reference table) contain case_id, age_low and age_high (range value e.g 30-45) . if age_range is 30-45 means age_low =30 and age_high=45
Query-- find those record from table Hist where age will not match with the age_range (like if age=45 .age range=30-44) and DOB will not match with age range.
select a.case_id,a.age, ag.age_range from Hist a, Geog g
where a.case_id=g.case_id
and a.case_id not in (?????)
Advance thanks for your support.Dear Edsteven
Thanks for your response
Data in my database ls like below
HIST
case_id dob age age_range
121 23-Jan-1988 23 3
123 31-Oct-1968 43 2
122 23-Jan-1978 33 3
125 23-Jan-1999 9 1-------------> Wrong record
Geog
case_id age_range age_low age_high
123 2 36 50
122 3 20 35
125 1 10 19
I want to retrive those record where age_range will not correspond to age an dob also.
select hi.case_id, hi.dob, hi.age, ge.age_low, ge.age_high
from geog ge, (select * from hist hi where age_range not null)
where hi.case_id=ge.case_id
and (hi.age is not null orhi.dob is not null)
and( hi.age<age_low or hi.age>age_high)
and ( TRUNC(MONTHS_BETWEEN(SYSDATE,hi.dob)/12) <age_low or TRUNC(MONTHS_BETWEEN(SYSDATE,hi.dob)/12)>age_high) -
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
<f:view>
<af:document>
<af:form>
<af:table rows="10" rangeChangeListener="#{Events.onRangeChanged}" var="item" value="#{Events.events}" id="tablet" >
<af:column headerNoWrap="true" inlineStyle="width:80px;color:black;">
<f:facet name="header">
<af:selectBooleanCheckbox selected="#{Events.selectAll}" id="check" />
</f:facet>
<af:selectBooleanCheckbox value="#{item.deleterow}" selected="#{item.deleterow}" id="tableSelectOne1" />
</af:column>
<af:column>
<af:selectOneChoice value="#{item.statusCode}">
<f:selectItems value="#{Events.departmentsItems}"/>
</af:selectOneChoice>
</af:column>
</af:table>
</af:form>
</af:document>
</f:view>
I want method
public void onRangeChanged(RangeChangeEvent rangeChangeEvent) {
rangeChange(rangeChangeEvent, "UpdViewNameIterator");
// DCIteratorBinding empViewIter = (DCIteratorBinding)bindings.get(iter);
//empViewIter.setRangeStart(rangeChangeEvent.getNewStart());
//empViewIter.setCurrentRowIndexInRange(0);
System.out.println("range change listener fired");
To set the new set of rows as being first index. Can someone help me with the code?
i am trying to solve this problem
Re: page flipping selectinputchoiceHi,
if the browser shows busy then for sure its not caused by the code snippet you provide. In your code you may want to try and call response complete on the FacesContext to indicate a complete response
Frank -
Lexicographic flag setup and material number range change
Hi gurus,
got the following situation:
AS IS:
Tcode MMNR: Number range for material master part number: AAAAAAAAAAAAAAAAAA to ZZZZZZZZZZZZZZZZZZ (lenght 18, external assignment)
Tcode OMSL: Lexicographic flag IS NOT setup
Tcode OMS2: For all material types flag "External no. assignment w/o check" IS SETUP
Basically we can't create numeric only part numbers.
The new requirement is to be able to create numeric part numbers like:
1234
12345
0123
01234 (where the leading zero is a significant character for the part number)
By doing the following changes:
MMNR: change number range 000000000000000000 to ZZZZZZZZZZZZZZZZZZ
OMSL: setup lexicographic AND leading zeros flag
OMS2: clear flag for External no. assignment w/o check
I see I do achieve the result: numeric part numbers can be created, leading zeros are managed in the correct way and all numeric part numbers are LEFT-aligned, so looking to MARA you would see part numbers like this:
00012345
012345
012345V
09CATALIST1
0AFVAU0001
12345
23225V
23243V
2SIMBACK3210
I did already tried all the above changes in the quality system, then created a numeric part number and an alfanumeric part number, for both of them did create a PO, Inbound delivery, posted MIGO, created a sales order, outbound delivery, PGIed without any issue, stock was displayed and managed correctly by the system, same for material docs.
We already thought about BW, so in case we do the changes BW would be ok.
Apparently everything is fine so I should go for the production system BUT........ in my mind I'm thinking that OMSL Tcode is usually setup day 1 of an Sap project and then usually you forget it... I have the fear that even if everything looks fine (and Sap allows me to change the customizing), I'm going to muck up the system...
Have you ever had the same to do ? I already saw posts similar to this one but already existing conditions were different so to me this case looks like unique so far..
Any help, suggestion, whatever will be highly appreciated, especially cause I have to take a decision by tomorrow morning
Many thanks in advance !!
Enrico
Edited by: Matt on Aug 13, 2011 7:39 AM - profanity removedAs you never had numeric numbers, it should not create a big problem.
I am working in a system with lexicographical setting in use.
But you have to keep in mind that your sort sequence is quite different to numeric numbers, like this:
1
10
11
12
2
3
31
311123
32
32012
4
And you may get the one or other issue if you download material numbers to Excel, with wrong settings you will loose your leading zeros.
A similar effect happens most of the time if user not very familiar with Excel give you a file for an upload, as this often is prepared without leading zeros, which could cause a load to the wrong material if the remaining number would be a duplicate:
0123 and 123
Of course is a selection by number range not that easy as it is with numeric numbers. Usingthe first example a range from 1 to 3 includes materials 10, 11 and 12 as well -
Possible to do limited date range changes in Calendar?
If I set up a filter, say, for days since my last sync AND I'm doing a two-way sync, will only those changes sincy my last sync be synced or will I lose everything not in that date range? Since I make changes to the calendar in Outlook and on the device this is especially important to me. This could save me a lot of time, but I don't want to lose any other calendar data
Also, I assume that I set the filter to use 'start date' and uncheck the box that says ' Delete from device any data that does not match the filter'. I am using DM 4.6 and OS 4.3
IrwinII
Please remember to "Accept as Solution" the post which solved your thread. If I or someone else have helped you, please tell us you "Like" what we had to say at the bottom right of the post.Hi Mark,
Yes, you can pass a date range value to the SUbreport!
Here's how its done:
1) Create a formula in the Main report; call it Start_date:
Minimum({?Date_parameter})
2) Create a second formula in the Main report and call it End_date:
Maximum({?Date_parameter})
3) Insert the sub-report and then Right-click the sub-report > Select Change Subreport links > Move the Start_date and End_date formulas to 'Fields to Link to' area and make sure you uncheck the 'Select data in subreport based on field' option.
4) Edit the sub-report (Right-click > Edit) and insert a Record Selection formula to include the parameters from the Main Report.
Go to Report > Selection Formulas > Record:
{date_field} >= {?Pm-@Start_date} and {date_field} <= {?Pm-@End_date}
Hope this helps!
-Abhilash -
Document number ranges changes
Dear friends,
While creating the document number ranges for current year, user wrongly changed the previous year number ranges, now it is giving new number ranges for new documents which are posted in previous year, how to reset the previous number ranges with out effecting the documents which are already posted.
regards,Dear,
It is the only way to insert a correct number rang to the current year, and change the document No which posted to previous year wrong to the correct fiscal year. then correct the "current number" to the last one posted in previous year.
But these corrections need necesary authorizations and ABAP knowledge.
With Best Regards,
Gladys xing -
Input signals out of range change settings to 1440x900 - 60Hz
I bought a new HP ENVY, I am now trying to re set up my former HP pavilion ..but I keep getting this message on my monitor"Input Signals out if range. Change settings to 1440x900 - 60Hz". I can not get past this! Help!
What is the exact model of PC you have?
What model is the monitor?
It sounds like the PC is trying to transmit the video at a resolution greater than what the monitor can support.
↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓ -
[SOLVED] Xorg 'Out of Scan Range, Change Timing Signal'
Hi, all!
I'm just doing a fresh install and having done my first reboot, I am trying desperately to configure X, before installing xfce.
I have an ATI Radeon card and a Sun-GDM5410 21" CRT monitor. Unfortunately, when I do 'startx', I get a message on my monitor saying
'Out of scan range...change timing signal'
I've tried created custom Xorg files instead of letting Xorg work it out, itself. This didn't solve the problem. So as not to further confuse myself, I have rm'd these files and have let X manage itself, again.
I've read and re-read the Xorg and ATI wiki guides, and Google'd around, but I can't get around this.
Any help really appreciated.
Cheers,
Chris.
Last edited by chris_debian (2011-02-05 18:00:28)I did. I think it may be something to do with module that are loaded, possibly kms?
This is what the lsmod looks like from the LMDE installation; I'm using the Radeon driver for my ATI card.
mint@mint ~/Desktop $ uname -a
Linux mint 2.6.32-5-686 #1 SMP Tue Jun 1 04:59:47 UTC 2010 i686 GNU/Linux
mint@mint ~/Desktop $ lsmod
Module Size Used by
ppdev 4058 0
lp 5570 0
sco 5857 2
bridge 32987 0
stp 996 1 bridge
bnep 7444 2
rfcomm 25167 0
l2cap 21705 6 bnep,rfcomm
crc16 1027 1 l2cap
bluetooth 36327 6 sco,bnep,rfcomm,l2cap
speedstep_lib 2468 0
cpufreq_userspace 1480 0
cpufreq_stats 1940 0
cpufreq_powersave 602 0
cpufreq_conservative 4018 0
binfmt_misc 4907 1
fuse 43758 1
arc4 974 2
ecb 1405 2
rt61pci 15720 0
crc_itu_t 1035 1 rt61pci
snd_intel8x0 19523 2
rt2x00pci 3773 1 rt61pci
snd_ac97_codec 79148 1 snd_intel8x0
ac97_bus 710 1 snd_ac97_codec
snd_pcm_oss 28671 0
snd_mixer_oss 10461 1 snd_pcm_oss
rt2x00lib 19029 2 rt61pci,rt2x00pci
snd_pcm 47214 3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
led_class 1757 1 rt2x00lib
radeon 508914 2
snd_seq_midi 3576 0
mac80211 123258 2 rt2x00pci,rt2x00lib
ttm 33378 1 radeon
snd_rawmidi 12505 1 snd_seq_midi
cfg80211 87601 2 rt2x00lib,mac80211
drm_kms_helper 18305 1 radeon
snd_seq_midi_event 3684 1 snd_seq_midi
rfkill 10264 4 bluetooth,cfg80211
snd_seq 35463 2 snd_seq_midi,snd_seq_midi_event
drm 112020 4 radeon,ttm,drm_kms_helper
eeprom_93cx6 963 1 rt61pci
i2c_algo_bit 3497 1 radeon
i2c_i801 6462 0
snd_timer 12258 2 snd_pcm,snd_seq
tpm_tis 5496 0
tpm 8137 1 tpm_tis
parport_pc 15799 1
snd_seq_device 3673 3 snd_seq_midi,snd_rawmidi,snd_seq
i2c_core 12696 5 radeon,drm_kms_helper,drm,i2c_algo_bit,i2c_i801
pcspkr 1207 0
tpm_bios 3569 1 tpm
shpchp 21220 0
evdev 5609 10
rng_core 2178 0
parport 22554 3 ppdev,lp,parport_pc
snd 34363 13 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
pci_hotplug 18065 1 shpchp
soundcore 3450 1 snd
button 3598 0
processor 26599 0
snd_page_alloc 5045 2 snd_intel8x0,snd_pcm
squashfs 16647 1
loop 9757 2
aufs 107674 1
nls_utf8 908 1
isofs 24608 1
ide_generic 801 0 [permanent]
ide_core 59618 1 ide_generic
usbhid 27980 0
hid 50629 1 usbhid
sg 15968 0
sr_mod 10770 1
sd_mod 25869 0
crc_t10dif 1012 1 sd_mod
cdrom 26487 1 sr_mod
ata_generic 2019 0
ata_piix 17640 1
floppy 40923 0
thermal 9206 0
uhci_hcd 16057 0
e100 22317 0
mii 2714 1 e100
libata 115665 2 ata_generic,ata_piix
ehci_hcd 27763 0
usbcore 98402 4 usbhid,uhci_hcd,ehci_hcd
scsi_mod 101401 4 sg,sr_mod,sd_mod,libata
nls_base 4541 3 nls_utf8,isofs,usbcore
thermal_sys 9378 2 processor,thermal
Last edited by chris_debian (2011-02-04 21:51:16)
Maybe you are looking for
-
Safari 5 constantly crashes - asking for Carolyn's help
It's no fun any more - Safari constantly crashes on me. Here's the latest crash report. Carolyn's help would be greatly appreciated Thank you! Process: Safari [4122] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: com.apple.Safari Ve
-
Files are backed-up. Can I get rid of them on my computer?
Good afternoon. I recently purchased a OWC Mercury Elite Pro external hard drive. My intention is to store all video, music and photo files on this drive and keep only applications on my Powerbook G4. I understand that this will allow my Powerbook to
-
Problems with query via Database-Link (Oracle 7.3.4)
I made the following simple query via database-link. select count (*) from [email protected] I got the result in about 200 miliseconds. Then I4ve tried the following query. select * from [email protected] It took about 2 hours end ended with an error
-
Usage decision - characteristics relavent for usage decision
Hi friends, In usage decision screen, either all characteristics are shown or only characteristics relavent for usage decision is shown. How do we make a charactertics as usage decision relavent, so that it is shown in usage decision screen by defaul
-
Best way to keep a 'history' of cache changes?
Simple question, really, which I guess many people have run into before, so I'm looking for a bit of 'best practice' as regards Coherence. We have a distributed cache which is holding financial data (Portfolio Positions), and we plan to update these