DWS grouping in V_T508A- Urgent
hi Everyone,
I am trying to create a New work Schedule Rule through the Table V_T508A.
but when Iam creating new entries , the grouping for daily work schedule appears to be grayed out field and already there is an entry there.
Please tell me how to enable the field so as i could enter the entries.
Thanks & Regards
Srijit
hi
Firstly are you trying to over wright the entries or creating the new rule
because i have encountered the same issue recently
the status of the WSR review of holidays where changes are made via PT02
all the changes are in SCAL (THO* tables)
Reward Points
Similar Messages
-
SQL Query Group By Issues - Urgent
I currently have an issue writing a pl\sql report, I can get part of the way to the results I want but the group by clause is causing problems, because I have to add more columns to the group by, dispersing the figures further, I have tried it with coalesce for each of the task types but I still get the same results, I am getting close to the results I need but not quite there yet. I would really appreciate it if someone could take at look at this for me as it is an urgent requirement.
The report is based on the tables similar to the following:
TASKS, ORGANISATIONS, POSITIONS
A position is a member of an organisation.
A task has a position assigned to it.
The SQL for the tables and to insert the data that would produce the report is detailed below:
CREATE TABLE TASKS
( TASK_ID NUMBER NOT NULL ENABLE,
TASK_TYPE VARCHAR2 (15 BYTE) NOT NULL ENABLE,
STATUS VARCHAR2 (15 BYTE) NOT NULL ENABLE,
POS_ID NUMBER NOT NULL ENABLE,
CONSTRAINT TASKS_PK PRIMARY KEY (TASK_ID));
CREATE TABLE ORGANISATIONS
( ORG_ID NUMBER NOT NULL ENABLE,
ORG_NAME VARCHAR2 (15 BYTE) NOT NULL ENABLE,
CONSTRAINT ORGANISATIONS_PK PRIMARY KEY (ORG_ID));
CREATE TABLE POSITIONS
( POS_ID NUMBER NOT NULL ENABLE,
POS_NAME VARCHAR2 (25 BYTE) NOT NULL ENABLE,
ORG_ID NUMBER NOT NULL ENABLE,
CONSTRAINT POSITIONS_PK PRIMARY KEY (POS_ID));
INSERT INTO ORGANISATIONS (ORG_ID, ORG_NAME) VALUES (1,'ABC');
INSERT INTO ORGANISATIONS (ORG_ID, ORG_NAME) VALUES (2,'DEF');
INSERT INTO ORGANISATIONS (ORG_ID, ORG_NAME) VALUES (3,'EFG');
INSERT INTO POSITIONS (POS_ID, POS_NAME, ORG_ID) VALUES (1,'ABC-1', 1);
INSERT INTO POSITIONS (POS_ID, POS_NAME, ORG_ID) VALUES (3,'ABC-2', 1);
INSERT INTO POSITIONS (POS_ID, POS_NAME, ORG_ID) VALUES (2,'ABC-3', 1);
INSERT INTO POSITIONS (POS_ID, POS_NAME, ORG_ID) VALUES (5,'DEF-2', 2);
INSERT INTO POSITIONS (POS_ID, POS_NAME, ORG_ID) VALUES (4,'DEF-1', 2);
INSERT INTO POSITIONS (POS_ID, POS_NAME, ORG_ID) VALUES (7,'EFG-1', 3);
INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (12,'TASK_TYPE_3','LIVE',3);
INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (11,'TASK_TYPE_2','LIVE',3);
INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (10,'TASK_TYPE_2','LIVE',2);
INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (9,'TASK_TYPE_2','LIVE',2);
INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (8,'TASK_TYPE_1','LIVE',3);
INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (7,'TASK_TYPE_1','LIVE',3);
INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (6,'TASK_TYPE_1','LIVE',3);
INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (5,'TASK_TYPE_1','LIVE',3);
INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (4,'TASK_TYPE_1','LIVE',2);
INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (3,'TASK_TYPE_3','LIVE',1);
INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (2,'TASK_TYPE_1','LIVE',1);
INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (1,'TASK_TYPE_1','LIVE',1);
INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (13,'TASK_TYPE_3','LIVE',3);
The report should detail the following information based on the information in the tables:
1st Column
Organisation
ABC
DEF
EFG
2nd Column
No. of Positions in Organsiation
3
2
1
With total of the number of people in all of the organisation 6
3rd Column
Number of tasks assigned to the organisation of task type1
2
1
4
4th Column
Number of tasks assigned to the organisation of task type 2
0
2
1
5th Column
Number of tasks assigned to the organisation of task type 3
1
0
2
Total no of tasks assigned to the Organisation
3
3
7
Message was edited by:
Suzy_r_82
Message was edited by:
Suzy_r_82Hi,
Apologies, my insert statements where incorrect, if you try the data below instead it should give you output I was expecting
INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (1,'TASK_TYPE_1', 'LIVE',1);
INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (2,'TASK_TYPE_1', 'LIVE',2);
INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (3,'TASK_TYPE_1', 'LIVE',5);
INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (4,'TASK_TYPE_1', 'LIVE',7);
INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (5,'TASK_TYPE_1', 'LIVE',7);
INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (6,'TASK_TYPE_1', 'LIVE',7);
INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (7,'TASK_TYPE_1', 'LIVE',7);
INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (8,'TASK_TYPE_2', 'LIVE',4);
INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (9,'TASK_TYPE_2', 'LIVE',5);
INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (10,'TASK_TYPE_3', 'LIVE',1);
INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (11,'TASK_TYPE_3', 'LIVE',7);
INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (12,'TASK_TYPE_2', 'LIVE',7);
INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (13,'TASK_TYPE_3', 'LIVE',7);
The results I would like are
ORG No. of Pos No of Task No of Task No of Task Total no
In Org Type1 for Type2 for Type3 for of Tasks
Org Org Org for Org
ABC 3 2 0 1 3
DEF 2 1 2 0 3
EFG 1 4 1 2 7
Total 6The results I get are multiple lines for each organisation, I would like to rollup these lines so I can have one line per organisation.
Hope this helps a bit more, I appreciate the help, let me know if you need more information
Thanks
Suzy -
Cancellation of Transfer Order for Grouped Deliveries (Outbound) -Urgent!
Hi SAP Experts,
One of our users created a group for several outbound deliveries. Now the user decided to cancel one of the deliveries for administrative reasons. He cannot cancel the delivery since a transfer order has been created. How can we cancel this TO and the delivery as well?
Please help us with this issue. This is an urgent matter. I am willing to assign points to helpful answers.
Thanks in advance!Hello
Steps to reverse and delete delivery
1. With tcode VL09 reverse the PGI.. ( I hope u did this already)
2. Reverse TO with tcode LT0G
Here u enter WH no and delivery no to be reversed, Movt type 999 and putaway view as 'delivery view' and execute.
Select the line with delivery no and click on 'Return to stock'
this will again generate reversal TO, confirm it.
3. VL02N - Delete the delivery.
Hope this solves ur problem
Award points if found suitable
Amol -
User Exit for Material Group...Urgent help needed
Does anybody have an idea of which user exit can be used to capture the changes made to material group in MM02(Material)..... Urgent help needed...
See the below user exit and this will trigger under MM01,MM02 and MM17 Transaction
Enhancement name : MGA00001
Function module :EXIT_SAPLMGMU_001
Include : ZXMG0U02
Reward Points if it is helpful.
Thanks
Seshu -
Not a single-group group function very urgent
HI,
select sum(avg(wait_to))+sum(avg(idle))+sum(avg(users))+sum(avg(system)) from system_cpu
where hostid='DSCP02469' group by cpuid
this query is working
but i want cpuid group to be displayed
so i wrote query like this.
select cpuid,sum(avg(wait_to))+sum(avg(idle))+sum(avg(users))+sum(avg(system)) from system_cpu
where hOstid=' ' group by cpuid it is throwing a error
not a single-group group function.
how can get sum of avg of colums,column based on some coloum
group by column
id,sum(avg( )) i have to get
please give me solution.
send me mail to [email protected]hi,
thanku for immediate reply but
if i do that
select cpuid, a+b+c+d total_value from (select cpuid,
sum(avg(wait_to)) a, sum(avg(idle)) b,sum(avg(users)) c,sum(avg(system)) d
from system_cpu where hostid='DSCP02469' group by cpuid)
SQL> /
select cpuid, a+b+c+d total_value from (select cpuid,
ERROR at line 1:
ORA-00937: not a single-group group functionelse
select cpuid, a+b+c+d total_value from (select
sum(avg(wait_to)) a, sum(avg(idle)) b,sum(avg(users)) c,sum(avg(system)) d
from system_cpu where hostid='DSCP02469' group by cpuid)
SQL> /
select cpuid, a+b+c+d total_value from (select
ERROR at line 1:
ORA-00904: "CPUID": invalid identifier2)
can we use select in select case
can we use select sal, case when sal then select * from emp like this
with regards
shannu sarma -
Display PO Release group Approval Information-urgent
Hi All,
In my report i have to display PO Release Date, PO Release group in various level,based on Approval From Release i have to display the PO Status(Released or not).In Our project we have 3 level of approval in PO Release group such as PO(Purchase officer),PM(purchase manager),GM(General Manager).So finally my output like this.....
Release Date ReleaseGroup Status
PO PM GM Pending
So guide me where can i get the fields for
PO Release Date,
Release Group and their approval status,status of POHi Cristophe,
I checked the table BBP_WFLOCK and could not find any entry.
However in transactional RFC I could see an entry for this user XXXX and tried to delete this entry but I am not able to do so,below are the details observed in SM58
SWW_WI_EXECUTE_INTERNAL_RFC is the Function module.
WORKFLOW_LOCA is the target system.
Error in the module RSQL accessing the database is the status text.
Also I checked the FM BBP_PDH_WFL_CHECK_WF_BUSY but did not find any error.
One thing I would like to mention is that in BBP_PD the workflow status is completed for the PO but only in the web browser it is showing the status Awaiting Approval.
Again I tried to change the PO but again I received the same warning error "Document is still being processed in the background,try again later".
Regards,
Raj -
Using GR55 T code - Profit center groups Very very urgent
Hi frds,
Currently the report provides drill down to specific profit center groups by double clicking on the group. we can also save this into excel worksheets for individual profit center. Instead of displaying individual profit center group we want to have one report whcih gives all the profit centers data.
Our requirement is to show profit center groups on one sheet with the actual and budget by profit group as columns for the profit centers.
I am able to modify the report using the T code GRR2 but dont know how to copy that and modify.can you give me step by step process.Hi
Try to explode 'Profit Center Group'
Assign points if useful
Sunoj -
Special gl activity and groups not assigned urgent
hai all
plese any one can help me out i am getting error in special purpous ledger
This document will not be posted in a FI-SL ledger, because no ledger is assigned to the combination activity/company code or activity/global company.
System response
The posting is not carried out.
Procedure
Check the assignment of the ledgers to the activity/company code or activity/global company.
Customizing Ledgers
This error message only appears if you defined the activity, so that each document line has to be posted to FI-SL.
Customizing Activities
error in abve transacton cods
kindly needful urgent
thanking you
babu
Edited by: babu sap on Apr 14, 2008 7:16 AMHello,
Please check the transection code GCG2 make proper assigment there.
Regards
Ravi -
Regarding Dynamic distribution Group filtering! - URGENT HELP
Hello Friends,
We have some employess in our company having primary SMTP address as
[email protected] as well as [email protected] as alias name.
I want to create Dynamic distribution group using recipient filter option.. I have tried various option.. nothing is worked out. can you please someone help on how to do this?
NOTE: I can able to filter using EMC filter : using "emailadresses" + "contains" @company2.com.......
KarthickYour requirement is unclear. reply back with what you are actually looking for!
if you want to use -RecipientFilter to Create/Manage Dynamic Distribution Groups then below are the few links which has the information about the values that you may use for -RecipientFilter
Filterable properties for the -RecipientFilter parameter
Filters
in recipient Shell commands
Using
PowerShell to Manage Dynamic Distribution Groups and Recipient Filters in Exchange Server
Create
Dynamic Distribution Groups Using Customised Filters
M.P.K ~ ( Exchange | 2003/2007/2010/E15(2013)) ~~ Please remember to click “Vote As Helpful" if it really helps and "Mark as Answer” if it answers your question, “Unmark as Answer” if a marked post does not actually answer your question. ~~ This
Information is provided is "AS IS" and confers NO Rights!! -
Mandatory Excise Group in Order (Urgent)
Hi,
I need to make it mandatory to select respective Plant / Excise Group / Series only, so that no-body can select other plant except the respective document.
Rgdsthe scenario is as follows:
there r different depots for which difeerent Excise groups & different series groups are maintained.
now while doing J1IJ i m putting delivery no, excise group, but i can select any series group from the list, which i dont want......
It must only be possible to select the series group defined for the particular plant.
And plant(Depo) is having only one series group not two hence how cud ur sugesstion be mapped as it has only one series group assigned
And when in J1IJ i enter any series group which is assigned to other plant it takes that too and i dont wanna that to happen.
I understand what u r saying is to diffrentiate the series groups as "Domestic" and "ARE1". but in my case the plant is used as a depo and there's only one series group assigned to it.
Thanks in advance for all ur help and time
Rgds
Edited by: SAP SD GUY on Apr 15, 2008 9:36 AM -
Assignment of Tolerance Group to Customers - Urgent
Hi all,
I have created a new tolerance group (for limiting 10 rs gain and 10 rs loss) for customers in OBA3.
Now the issue is that I want to assign that tolerance group to all customers of plant 5000. How can i do that?? Its a front end activity or I have to do it in SPRO??
Regards,
Aisha Ishrat
ICI Pakistan Ltd.hi,
please check this,
1.have u maintained company code data for exsiting customers.if not please maintain the company code data
2. If u want to update the tolerance group to number of records, then use LSMW to upload the data.
please follow this link for uploading the data, this gives u overview of LSMW
<a href="http://www.slideshare.net/arun_bala1/sap-sd-lsmw-legacy-system-migration-workbench">LSMW</a>
regards,
Arun prasad -
Dear gurus,
Please could anyone guide me through negative time configurations, If you have some configuration documents that will be of great use.
thanks in advance
jeevaHi,
The configuration of TIMEMANAGEMENT starts with defining of work schedules, which further is assigned to employees for calculation of Payroll. Work Schedule Work schedules are very essential for employee to exist in the system. The following process explains creation of work schedules without which the employee times cannot be recorded and the Payroll also cannot be executed. Work schedule is a Pattern of daily working Times of an employee scheduled to work and act as a guideline for employee working time. When employee is hired the work schedule rule is attached. As and when there is a change in employee working pattern the same will be changed in Infotype 0007. The Work schedule rule will give the following details: Daily working Hours with begin Time and end time of work (Includes the tolerance Limits) Weekly working Hours Monthly working Hours Annual Working Hours HOLIDAY CLASSES/CALENDAR Public Holidays are predefined in SAP. The Holiday calendar creation process is explained below: IMG Path: Personnel Time management ->Work schedules->Define Public Holiday classes Table/View: NA Transaction Code: SCAL /OY05 Holiday Class: In Bill Forge Public Holiday class 1 is used for all holidays. There will be two types of Public holidays (PH) defined for Project namely Fixed Date: The PH days which fall on a fixed date e.g.15th August Floating public Holiday: The FPH is a movable holiday, which means the holiday doesnu2019t fall every year on the same day (Eg: Diwali /Holi) Fixed Holiday Incorporate the following while creating the Public Holiday on a fixed day: Date of the Month (day) Month Holiday class and Holiday short Text and Long Text. Creation of Floating Public Holiday: Incorporate the following while creating the Floating Public Holiday Year, Month and date of the Month (day) e.g. 14th MARCH 2007 --HOLI Holiday Class Public Holiday short Text and Long Text. Sort Criteria Public Holidays define List of holidays for each region are attached as the annexure I. Holiday Calendar Here the Public Holidays are attached to Holiday calendar Holiday Calendar defined for . The List of holidays that fall under each of the holiday calendar is listed below. BF HOLIDAY CALENDAR Factory Calendar : In 2 holiday calendars have been created and one assigned to a factory calendar, to differentiate the plant level working days in PP module. As they have no specified holidays. GROUPINGS FOR WORK SCHEDULES DWS Grouping Here Daily work Schedule grouping is attached to the Personnel Subarea grouping. The grouping is required to cater to the different requirements and time rules in the company. IMG Path: Personnel Time Management.. work Schedule.. Personnel Subarea Groupings (PSG).. Set groupings for the Daily Work schedules (DWS). Table/View: T508Z The personnel subareas have to be grouped for work schedules so that different personnel subareas can have different work schedules. IMG Path: Personnel Time Management.. work Schedule.. Personnel Subarea Groupings.. Set groupings for the work schedules. Table: V_001P_N. DAILY BREAK SCHEDULES Here the Daily break schedule is variable, for a period of 60 minutes which is paid and can be availed any time between three hours depending on the Shift working times. IMG Path: Personnel Time Management.. work Schedule.. Daily Work schedules .. Define daily break Schedules.. Determine Break Schedules. Table/View: V_T550P. Breaks grouping for Daily work Schedule is u201801u2019 DAILY WORK SCHEDULES Daily Work schedule consists of the number of working hours and planned working time of the schedule. If the schedule consists any breaks they also have to be attached to the work schedule. IMG Path: Personnel Time Management.. work Schedule.. Daily Work schedules (DWS).. Define daily work schedules. DWS grouping for Daily work Schedule is u201801u2019 Table/View: V_T550A. 2. DWS FOR NORMAL WORKING TIME 3. DWS FOR SUNDAY PERIOD WORK SCHEDULE Periodic work schedule is the combination of DWS for a period (i.e. a Week). As operates 6 days a week (Monday to Saturday) for these days the DWS would be that of a Working day and for Sunday DWS off would be used. IMG Path: Personnel Time Management.. work Schedule.. Period work schedules .. Define period work Schedules. Table/View: V_T551A Day Types No new day types are defined. SAP standard ones are used. Blank - work/Paid - If the employ works then only salary is paid. 1. O/Pd - Off /Paid - The day is off and its paid off. 2. O/Up - Off/ Upd - The day is off and is unpaid off day. 3. O/Spd - Off/Spd - This day is special day like company formation day IMG Path: Personnel Time Management.. work Schedule.. Day types.. Define Day types. Table/View: V_T553T Day Selection Rule The selection rule will decide whether the day is working day or non-working day and the settings are to be configured as per the requirement. IMG Path: Personnel Time Management.. work Schedule.. Day types .. Define selection Rules. Table/View: T553A Transaction code: NA Blank = work and get Paid (applies for weekday/Saturday and Sunday) = Holiday means off and paid. = Off and Unpaid EMPLOYEE SUBGROUP GROUPING No new employee groups are defined. The two standard groups available in SAP are 1. Industrial Workers 2. Salaried Employees IMG Path: Personnel Time Management.. work Schedule.. work schedule rules and work schedules.. Define employee subgroup groupings.. Define Employee Subgroup Grouping. Table/View: V_T508T Employee subgroup grouping for work schedules Here the employee subgroups are grouped as employee subgroup grouping 02. IMG Path: Personnel Time Management.. work Schedule.. work schedule rules and work schedules.. Define employee subgroup groupings.. Group Employee Subgroups for Work Schedules Table/View: Table: V_503_D Groupings for the Public Holiday Calenda As there is only one holiday calendars defined for , each holiday calendar has to be assigned to the concerned Personnel Sub Area. IMG Path: Personnel Time Management.. work Schedule.. work schedule rules and work schedules .. Define groupings for the public holiday calendar. Table/View: V_001P_M Different Holiday calendars are defined and attached based on the holidays declared. SET WORK SCHEDULE RULES AND WORK SCHEDULES Here the work schedule Rules are defined using employee subgroup grouping, holiday calendar, personnel subarea grouping, work schedule rule (we can name as per the naming conventions), from date and to date, under the working time (No. of working hours per day, weekly working hours, weekly workdays, monthly working hours and annual working hours, rules for day type, grouping for daily work schedule (normally this comes automatically since the settings are made initially), Under period work schedule attach the Period work schedule). IMG Path: Personnel Time Management.. work Schedule.. work schedule rules and work schedules.. set work Schedule rules and work schedules. Table/View: V_T508A WORK SCHEDULE RULE General which is for a fixed period of 7.50 hrs from 10:30 to 18:00 hrs and Create/Generate work schedules Work schedules are to be generated for a specified period. There are two methods of generation namely Manual Generation Batch Manual generation: Generating the work schedule rule manually will help in finding out any configuration errors and eliminating problems by rectifying them. IMG Path: Personnel Time Management.. work Schedule.. work schedule rules and work schedules.. Generate Work schedules manually. Transaction code: PT01 Work Schedules holiday calendars are created from 1950 to 9999 years. To handle the legacy data and the previous employees date of joining. The work schedules are generated from 2007 to till date. SET DEFAULT VALUE FOR WORK SCHEDULES Feature SCHKZ is used to default the work schedule to a particular Personnel area / Sub area. If this is done this would get defaulted in the IT 0007 so that it may not be maintained manually. IMG Path: Personnel Time Management.. work Schedules.. planned working time .. Set default value for the work schedules. Transaction code: PE03 Feature SCHKZ Feature TMSTA IMG Path: Personnel Time Management.. work Schedule.. work schedule rules and work schedules.. Generate Work schedules manually After that you can goahead for Absence quota Config.
Then go se38 give RPTQTA00 and execute ......
Thanks and Regards,
Revathi. -
Hello,
Oracle:Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
OS: Windows XP SP-3
create table dws(coll_cd varchar2(6),tot float,dtcd varchar2(2),distname varchar2(20),schtype varchar2(1),year varchar2(4));
insert into dws values('01001',103,'01','DIST1','1','2008');
insert into dws values('01001',23,'01','DIST1','1','2007');
insert into dws values('01115',39,'02','DIST2','2','2008');
insert into dws values('01715',39,'02','DIST2','1','2007');
insert into dws values('01415',120,'02','DIST2','2','2008');
insert into dws values('01749',200,'01','DIST1','1','2006');
insert into dws values('01449',200,'01','DIST1','2','2006');
Year column will contain only 2006,2007 and 2008 and only 1,2 in schtype column.
Output required: (Count of records as per year and schtype group by dtcd)
2008 2007 2006
DTCD DISTNAME TYPE1 TYPE2 TOTAL TYPE1 TYPE2 TOTAL TYPE1 TYPE2 TOTAL
01 DIST1 1 0 1 1 0 1 1 1 2
02 DIST2 0 2 2 1 0 1 0 0 0I tried by following:
select dtcd,
sum(case when(year='2008' and schtype='1') then 1 else 0 end) A,
sum(case when(year='2008' and schtype='2') then 1 else 0 end) B,
sum(case when(year='2007' and schtype='1') then 1 else 0 end) C,
sum(case when(year='2007' and schtype='2') then 1 else 0 end) D,
sum(case when(year='2006' and schtype='1') then 1 else 0 end) E,
sum(case when(year='2006' and schtype='2') then 1 else 0 end) F
from dws group by dtcd,govtpvtn order by 1
but it is not which i want.
Please help me how to write the query to get the required output.
Thanks & Regards
Girish Sharma
Edited by: Girish Sharma on Dec 22, 2008 10:28 PMThere could be several ways to frame this query. One of the ways could be as follows:
SELECT
DTCD,
DISTNAME,
(SELECT COUNT(1) FROM DWS B WHERE A.DTCD = B.DTCD AND A.DISTNAME = B.DISTNAME AND B.YEAR = '2008' AND B.SCHTYPE = '1') TYPE1_2008,
(SELECT COUNT(1) FROM DWS B WHERE A.DTCD = B.DTCD AND A.DISTNAME = B.DISTNAME AND B.YEAR = '2008' AND B.SCHTYPE = '2') TYPE1_2008,
(SELECT COUNT(1) FROM DWS B WHERE A.DTCD = B.DTCD AND A.DISTNAME = B.DISTNAME AND B.YEAR = '2008') TOTAL_2008,
(SELECT COUNT(1) FROM DWS B WHERE A.DTCD = B.DTCD AND A.DISTNAME = B.DISTNAME AND B.YEAR = '2007' AND B.SCHTYPE = '1') TYPE1_2007,
(SELECT COUNT(1) FROM DWS B WHERE A.DTCD = B.DTCD AND A.DISTNAME = B.DISTNAME AND B.YEAR = '2007' AND B.SCHTYPE = '2') TYPE1_2007,
(SELECT COUNT(1) FROM DWS B WHERE A.DTCD = B.DTCD AND A.DISTNAME = B.DISTNAME AND B.YEAR = '2007') TOTAL_2007 ,
(SELECT COUNT(1) FROM DWS B WHERE A.DTCD = B.DTCD AND A.DISTNAME = B.DISTNAME AND B.YEAR = '2006' AND B.SCHTYPE = '1') TYPE1_2006,
(SELECT COUNT(1) FROM DWS B WHERE A.DTCD = B.DTCD AND A.DISTNAME = B.DISTNAME AND B.YEAR = '2006' AND B.SCHTYPE = '2') TYPE1_2006,
(SELECT COUNT(1) FROM DWS B WHERE A.DTCD = B.DTCD AND A.DISTNAME = B.DISTNAME AND B.YEAR = '2006') TOTAL_2006
FROM
DWS A
GROUP BY DTCD, DISTNAME
DT DISTNAME TYPE1_2008 TYPE1_2008 TOTAL_2008 TYPE1_2007 TYPE1_2007 TOTAL_2007 TYPE1_2006 TYPE1_2006 TOTAL_2006
01 DIST1 1 0 1 1 0 1 1 1 2
02 DIST2 0 2 2 1 0 1 0 0 0 -
Error in Creating WS Rule (Manual)
Hi,
I face a customizing error reading 'Customizing Error in Work Schedule Rule 2 T2 01 WSRTAP2 ' while creating WS Rule. Details are as below:
I. Public holidays - Independence Day, Gandhi Jayanti & Republic Day with fixed data were created & then assigned to public holiday calendar T2 which was copied from entity IN in the public holiday calendar list & then customized
II. The Public Holiday calendar T2 was then assigned to Personnel Area TRS2 & subarea HRA0 through the following IMG Path: Time Management -> Work Schedule Rules & Work Schedules -> Define Groupings for Public Holiday Calendar
III. PSA Grouping 01 assinged to Personnel Area TRS2 & PSA HRA0 through the following IMG Path: Time Management -> Work Schedules -> Personnel Subarea Groupings -> Group PSAs for the Work Schedules
IV. Break TAP2 with Grouping 01 & 9.0 hrs as working hrs created as a new entry for working days
V. Defining a Daily Work Schedule:
1. A Daily WS named WST2 was created as a new entry with following details & through its IMG Path (Time Mgmt -> Work Schedules -> Daily Work Schedules -> Define Daily Work Schedules): DWS Grouping = 01, Daily Work Schedule Code: WST2, DWS Selection Rule = 01, Planned Working Hours = 09.00 hrs, Planned Working Time = 09:00 to 18:00, Begin Tolerance = 08:50 to 09:10, End Tolerance = 17:50 to 18:10, Work break Schedule = TAP2, Daily WS Class = 1, Reaction to Overtime = W (Warning), Break Assigned = TAP2
2. Another DWS named WOT2 with no planned working hours created as a new entry for weekly offs with same properties as for Daily WS WST2
VI. Generating a Period Work Schedule:
1. DWS WST2 assigned for week days starting from day 001 and DWS WOT2 assigned to week off (day 007) to the Period WS named PWST with PWS Grouping 01, Week No. 001
VII. Generating WS Rule:
1. Defined ESG Groupings from the IMG Path: Time Mgmt -> Work Schedules -> WS Rule & WS -> Define Employee Subgroup Groupings & assigned ES Grouping 2 (Salaried Staff)
2. Country Grouping 40 (for India) assigned as country crouping (Determine Work Area Entry window) to Group Ee Subgroups for Work Schedules & ESGGrouping 2 assigned to employee subgroup T (Active, Monthly Salaried)
3. Defining Groupings for Public holiday Calendar: (IMG: Time Mgmt -> Work Schedules -> WS Rules & WS -> Define Groupings for Public Holiday Celendar): Calendar T2 has already been assigned to personnel area TRS2
VII. Set Work Schedule Rules & Work Schedules:
1. WSRTAP2 being generated as WS rule with PS Grouping 01, Holiday Calendar T2, Daily Working Hrs 9.00, Weekly working days 06, Weekly working hrs 54, Montly working hrs 234.00, Annual Working Hours 2808.00 & PWST as the period work schedule.
VIII. Generating WS Manually (IMG Path: Time Management -> Work Schedule -> WS Rules & WS -> Generate WS Manually)
1. Ee Subgrouping: 2 (Salaried)
2. Holiday Calendar: T2
3. PSA Grouping: 01
4. WS Rule: WST2
5. Period: 022010 to 129999
ERROR
'Customizing Error in Work Schedule Rule 2 T2 01 WSRTAP2
type this error in search forum There are lot of threads relateing to this issue
Some where Grouping problem of the below
1. Ee Subgrouping: 2 (Salaried)
2. Holiday Calendar: T2
3. PSA Grouping: 01
4. WS Rule: WST2
Edited by: Sikindar on Mar 28, 2010 9:27 PMAppreciate your feedback on this. This error comes on weblogic 10.3
Thanks
Hareendra -
Error "No entry in table T551A" while creating set work schedule rule.
Dear Team,
I am getting following error while creating set work schedule rule.
Error "No entry in table T551A" for key 22 BBB [ here BBBB is my period work schedule]
The actual prob is i configured all the necessary steps but when i tried to create work schedule rule im getting this error. Also, in the same screen there is one field DWS grouping initially value in this is 00 and gread mode. But after giving ES grp, holiday calander ID etc etc when i try to save that screen that value is chainging to 22 from 00.
My ES grop=2 and PS grop=2 . Is that value is my ES and PS grouping..?? or some other thing.
Request you to please help me out.
Regards
Shab.HI, there are 8 steps you need to do below:
1. Group Personnel Subareas for the Daily Work Schedule
2. Group Personnel Subareas for the Work Schedule
3. Define Break Schedules
4. Define Daily Work Schedules
5. Define Period Work Schedules
6. Define Employee Subgroup Groupings
7. Define Groupings for the Public Holiday Calendar
8. Set Work Schedule Rules and Work Schedules
All of them belong to TIME MANAGEMENT. I think you miss some steps above.
Please check it again.
Regards!
Minh
Maybe you are looking for
-
Cannot create new posting period
Hi, A customer is unable to create a new posting period for year 2012. The following error message appears: "No matching records found. Period Category (OACP) ODBC-2028. Message 131-133". SAP version: 8.81 I searched in notes & forums but I couldn't
-
How to record iSight video in widescreen format
Does anyone know the answer to this? It seems bizarre that although when recording video in iMovie the video window itself is in 16:9 format, the actual video is still in 4:3. Are there any video settings that i've missed? It's driving me nuts.
-
Hi, Is there a list of all the the BW reporting features, that is what are the things that BW reporting can do? Thanks http://www.despair.com/viewall.html
-
How to make div id properties drop down wider?
When working with div's you can assign/create a div ID name to them. These are all remembered throught Dreamweaver so you could apply the same div ID to another div having the CSS properties already created quickly applied to this new div. My issue i
-
Repeatable DVDSP crash, 4.2.1
I have built another generation of my first HDDVD for burning on SDDVD physical media. The first one worked so well that I added more pictures and some HD video to get it up to 4.6 GB. It simulates well, so I tried building and formatting. DVDSP cras