Findout the record in the same table
Hi dear
i have attendance table which have following columns
CO_CODE NOT NULL VARCHAR2(2)
CARD_NO NOT NULL VARCHAR2(6)
PERIOD NOT NULL VARCHAR2(6)
ATTEN_DATE NOT NULL DATE
TIME_IN NOT NULL DATE
TIME_OUT DATE
BREAK_CODE NOT NULL NUMBER(1)
in the table break_code = 2 its mean 'lunch break'
and break_code = 3 its mean 'out door duty'
break_code = 1 its meaning 'duty off'
card_no period date time_in time_out break_code
000220 200801 01-JAN-08 08:00 16:30 1
000220 200801 02-JAN-08 08:01 09:30 3
000220 200801 02-JAN-08 14:25 16:30 1
000220 200801 03-JAN-08 08:00 08:45 3
000220 200801 03-JAN-08 10:10 16:30 1
000220 200801 04-JAN-08 08:00 16:30 1
i just find the records which date have break_code and also duty off.
please send us the query
result will be as
000220 200801 02-JAN-08 08:01 09:30 3
000220 200801 02-JAN-08 14:25 16:30 1
000220 200801 03-JAN-08 08:00 08:45 3
000220 200801 03-JAN-08 10:10 16:30 1
an early response will be highly appreciated.
thanks
regards
abid
1 = duty off
3 = out door duty (perform duty out side the plant)
I just select those records which card have two rows and break_code (1,3).
CARD_N PERIOD ATTEN_DAT TIME_IN TIME_out BREAK_CODE
000220 200801 01-JAN-08 08:00 16:33 1
000220 200801 02-JAN-08 08:02 11:00 3
000220 200801 02-JAN-08 12:53 16:32 1
000220 200801 03-JAN-08 07:49 10:18 3
000220 200801 03-JAN-08 11:12 16:33 1
000521 200801 04-JAN-08 07:57 16:34 1
000521 200801 05-JAN-08 07:56 10:38 3
000521 200801 05-JAN-08 11:59 16:34 1
000521 200801 07-JAN-08 08:00 08:31 3
000521 200801 07-JAN-08 10:08 16:36 1
000521 200801 08-JAN-08 08:00 09:36 3
000521 200801 08-JAN-08 11:10 16:37 1
000526 200801 09-JAN-08 08:00 10:20 3
000526 200801 09-JAN-08 11:57 16:33 1
000526 200801 10-JAN-08 08:21 16:34 1
000526 200801 11-JAN-08 08:05 10:26 3
000526 200801 11-JAN-08 11:34 12:37 2
000526 200801 11-JAN-08 13:35 16:35 1
000526 200801 12-JAN-08 08:00 09:02 3
000526 200801 12-JAN-08 09:52 16:36 1
000542 200801 14-JAN-08 07:50 16:35 1
000542 200801 15-JAN-08 07:59 10:20 3
000542 200801 15-JAN-08 12:17 16:32 1
000542 200801 16-JAN-08 07:52 10:34 3
000542 200801 16-JAN-08 11:40 16:35 1
000542 200801 17-JAN-08 07:53 16:35 1
000513 200801 18-JAN-08 07:59 16:35 1
000513 200801 21-JAN-08 07:54 10:47 3
000513 200801 21-JAN-08 11:52 16:33 1
000513 200801 22-JAN-08 07:54 09:35 3
000513 200801 22-JAN-08 10:36 16:31 1
000520 200801 23-JAN-08 07:52 11:15 3
000520 200801 23-JAN-08 11:55 16:32 1
000520 200801 24-JAN-08 08:04 10:54 3
000520 200801 24-JAN-08 12:27 16:32 1
000520 200801 25-JAN-08 08:04 16:33 1
000520 200801 26-JAN-08 07:51 10:15 3
my result should be.
CARD_N PERIOD ATTEN_DAT TIME_IN TIME_out BREAK_CODE
000220 200801 02-JAN-08 08:02 11:00 3
000220 200801 02-JAN-08 12:53 16:32 1
000220 200801 03-JAN-08 07:49 10:18 3
000220 200801 03-JAN-08 11:12 16:33 1
000521 200801 05-JAN-08 07:56 10:38 3
000521 200801 05-JAN-08 11:59 16:34 1
000521 200801 07-JAN-08 08:00 08:31 3
000521 200801 07-JAN-08 10:08 16:36 1
000521 200801 08-JAN-08 08:00 09:36 3
000521 200801 08-JAN-08 11:10 16:37 1
000526 200801 09-JAN-08 08:00 10:20 3
000526 200801 09-JAN-08 11:57 16:33 1
000526 200801 11-JAN-08 08:05 10:26 3
000526 200801 11-JAN-08 11:34 12:37 2
000526 200801 11-JAN-08 13:35 16:35 1
000526 200801 12-JAN-08 08:00 09:02 3
000526 200801 12-JAN-08 09:52 16:36 1
000542 200801 15-JAN-08 07:59 10:20 3
000542 200801 15-JAN-08 12:17 16:32 1
000542 200801 16-JAN-08 07:52 10:34 3
000542 200801 16-JAN-08 11:40 16:35 1
000513 200801 21-JAN-08 07:54 10:47 3
000513 200801 21-JAN-08 11:52 16:33 1
000513 200801 22-JAN-08 07:54 09:35 3
000513 200801 22-JAN-08 10:36 16:31 1
000520 200801 23-JAN-08 07:52 11:15 3
000520 200801 23-JAN-08 11:55 16:32 1
000520 200801 24-JAN-08 08:04 10:54 3
000520 200801 24-JAN-08 12:27 16:32 1
Similar Messages
-
Need Help : Urgent : Making one of the record Bold in a Table
Hi Frds,
I am new to OAF.......
I am facing the issue that i have to make one of the record bold in a table...........
By using the query, i m trying to display the payslip
It contains the list of Earnings ,Deductions and NetPay amount..........
this is the part of the query........
select payment_date,element_name,arabic_name,val,balance from
select '0' flag,assignment_id,null payment_date,'Payslip for the Month' element_name,to_char(payment_date,'Month-YYYY')arabic_name,
null val, null balance from xx_payroll_info
where 1 =1
and payment_date = last_day(:2)
and assignment_id = (select assignment_id from xx_people_reporting_info
where person_id = :1)
union all
select '1'flag,assignment_id,payment_date,element_name,arabic_name,
value val,null,balance
from xx_payslip_details_mv
where 1 = 1
and payment_date = last_day(:2)
and earn_deduct = ('E')
and assignment_id in (select assignment_id from xx_people_reporting_info)
union all
select '2' flag,assignment_id,payment_date,'Earnings-Total',null,sum(value) val,null
from xx_payslip_detail_mv
where 1 =1
and payment_date = last_day(:2)
and earn_deduct = 'E'
and assignment_id in (select assignment_id from xx_people_reporting_info
where 1 =1
and person_id = :1 )
group by assignment_id,payment_date
My Requirement is : I have to make the Payslip For the month of , Date, Earnings-Total into Bold..... How can i do this.... plz... help me out in this......
Thanks &Regards,
JayaHi Jaya,
Set CSS Class property as OraDataText for respectiveb column.
OR
/In Controller PR
import oracle.cabo.style.CSSStyle;
CSSStyle customCss = new CSSStyle();
customUnCss.setProperty("text-transform","uppercase");
customUnCss.setProperty("font","bold 16px \"Trebuchet MS\", Verdana, sans-serif");//# -red
OAMessageStyledTextBean styledTextBean =(OAMessageStyledTextBean)webBean.findIndexedChildRecursive("POCommentsItem");
if(styledTextBean!=null)
styledTextBean.setInlineStyle(customUnCss);
Thanks,
Dilip -
How to check the records in Master Data Table?
Hi,
I am trying to load the Master Data Table using the Flat File.Now how to check the records in Master Data Table?
I done the following way:
Info Provider->Info Object->Right Click->Display Data or Maintain Master Data
But it's not showing the records.It's asking like CID from......To......
CID(SID)from.............To.......
here CID means customer id(characteristic).
and showing some settings.
Please guide me.
Thanks & RegardsHi Sri,
Go to T- code RSD1 and type your info object name and open the P- table in the infoobject then select execute symbol to see the updated data in to master data info object.
regards
sap -
Not able to edit the records in the table
Hi Experts,
I am not able to edit the records or delete the records from a database table.
Those fields are not enabled.
Edit icon is not at all there.
Wat can i do.
Cheers,
KarthickHi,
In SM30, u can edit or delete records from a table.Before goin to this u need to create table maintainance generator for this table.
regards
lakshmi -
Error while saving the records in the database
Hi,
I am running into a wierd error.
I have built a new page which contains the information about the employees. Some of the fields are updatable fields. The page shows the details of the person who logs into the page.
I am not using EO in this page. The data is queried from the database from VO and displayed in the page and when the records are updated, they are saved in the databased using pl/sql procedure which is
being called from AM. So i am basically not using VO to save the records in the database.
The error which i am getting is,
If 2 users are trying to update the page at the same time, user A's details are updated in user B's page.
This is really causing the issue. Any help is greatly appreciated.
Thanks in advance.
PKI have posted the code used along with the dialog page. Please review.
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Pavan, Start1",OAFwkConstants.STATEMENT);
if (pageContext.getParameter("XYZBack")!=null)
pageContext.setForwardURL("OA.jsp?OAFunc=OAHOMEPAGE"// OAWebBeanConstants.RETURN_TO_MENU_URL also tryed this , same error
,null
,OAWebBeanConstants.KEEP_MENU_CONTEXT
,null //not needed as we are retaining menu context
,null // no parameters are needed,true //retain AM,OAWebBeanConstants.ADD_BREAD_CRUMB_YES
,true
,null
,OAWebBeanConstants.IGNORE_MESSAGES);
if(pageContext.getParameter("XYZUpdate") !=null)//The fields and their values are loaded as soon as the update button is clicked. We do this before calling the oadialog page so that the values are not lost
OAViewObject EmpDetailsVO3 = (OAViewObject)OAAppl.findViewObject("XYZPersInfoVO");
OARow EmpDetailsRow3 = (OARow)EmpDetailsVO3.first(); //Bringing the control over to the first row which is nothing but the displayed row.
if(EmpDetailsRow3 !=null)
s_workphone = EmpDetailsRow3.getAttribute("WorkPhone").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"workphone is: "+s_workphone,OAFwkConstants.STATEMENT);
s_fax = EmpDetailsRow3.getAttribute("WorkFax").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Fax is: "+s_fax,OAFwkConstants.STATEMENT);
s_building = EmpDetailsRow3.getAttribute("Building").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Building is: "+s_building,OAFwkConstants.STATEMENT);
s_room = EmpDetailsRow3.getAttribute("Room").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Room is: "+s_room,OAFwkConstants.STATEMENT);
s_box = EmpDetailsRow3.getAttribute("Box").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Box is: "+s_box,OAFwkConstants.STATEMENT);
s_preferedname = EmpDetailsRow3.getAttribute("KnownAs").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Preferred name is: "+s_preferedname,OAFwkConstants.STATEMENT);
OAException OAExcep1 = new OAException("PER","XYZ_UPDATE_DETAILS");
OAException OAExcep2 = new OAException("PER","XYZ_UPDATE_MESSAGE");
OADialogPage OADialogPG1 = new OADialogPage(OAException.WARNING,OAExcep1,OAExcep2,
OADialogPG1.setOkButtonToPost(true);
OADialogPG1.setNoButtonToPost(true);
OADialogPG1.setOkButtonLabel("Yes");
OADialogPG1.setNoButtonLabel("No");
OADialogPG1.setOkButtonItemName("DoOk");
OADialogPG1.setNoButtonItemName("DoNo");
OADialogPG1.setPostToCallingPage(true);
pageContext.releaseRootApplicationModule();
pageContext.redirectToDialogPage(OADialogPG1);
else if(pageContext.getParameter("DoOk") != null)
OAApplicationModule EmpDetailsAM = pageContext.getApplicationModule(webBean);
Class[] paramtypes = {String.class, String.class, String.class, String.class,String.class,String.class,String.class};
Serializable[] params = {s_personid,s_workphone,s_fax,s_building,s_room,s_box,s_preferedname};
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"personid is :"+s_personid,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"workphone is :"+s_workphone,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"workfax is :"+s_fax,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"building is :"+s_building,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"room is :"+s_room,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"preferredname is :"+s_preferedname,OAFwkConstants.STATEMENT);
pageContext.releaseRootApplicationModule();
OAAppl.invokeMethod("TransactionCommit",params,paramtypes);
OAAppl.invokeMethod("initDetails");
throw new OAException("The Building and Phone Information have been saved successfully"
,OAException.INFORMATION);
thank you -
Trying to retrieve all the records from the file on desktop
HI All
I have one particular problem. I was given a text file which as 7000 records with length 512 each in a continues string. I Changed begining of each record with comma in that text and saved it in .csv , when I try to upload the file into my program's internal table.
It is still giving one record. I used
itab_EXTRACT1 declared as
DATA: begin of itab_extract OCCURS 0,
extract1(512) type c,
end of itab_extract.
call method cl_gui_frontend_services => gui_upload
exporting
filename = Xfile
filetype = 'ASC'
has_field_separator = 'X'
changing
data_tab = itab_EXTRACT1
exceptions
others = 17.
Is there a way how to retrieve all the records into the internal table.
Thanks
RaviHi Ravi,
I don't know if this is the correct solution, but I think it will work.
Declare your internal table (itab_extract) with the maximum length which your file will occupy.
Create another internal table (itab) with field (text) length 512.
Populate the internal table itab_extract using GUI_UPLOAD.
Then write this code
l_index = 1.
itab-text = itab_extract-extract1+0(512).
append itab.
do.
n = ( l_index * 512 ) + 1.
itab-text = itab_extract-extract1+n(512).
append itab.
if ( itab-text is initial ).
exit.
endif.
enddo.
Let me know if I miss anything. -
How to get all the records in the RSA3 extratcion
Hi All
i have problem in seeing the records at RSA3. when i load the data im getting around 14k records when i want to see all the records ,i am not able to see that.. but the records are available in tables...
i want to see the the some asset numbers but for RSA3 its getting me upto 1k records..
I want to check my datasource is that working properly or not.
please help me
regards
AKThanks alot Bhanu ,,,,
Actually i was not concentrating on the first screen ...always going to next screen and searching for defferent searching ...
got the records now thanku very much
Rewarded points
Regards
AK -
Scan through the records in the Form and display the message!
Hello Everyone,
We have a requirement, I do not know how to achieve it.
In a Forms 6i, 2 fields Type, Comment.
Type is a list of Values (1,2,3)
Comment - Free Text Field.
User can enter as much rows of data, but while user saves the data we have to validate that all the records of Same Type(Say 1). If not we have to display a Message.
So how to achieve this? How to scan through the records in the Form. Any comments on it would be great.
Thanks.User can enter as much rows of data, but while user saves the data we have to validate that all the records of Same Type(Say 1). If not we have to display a Message.I am assuming that you want to check from the first record. Suppose in first record the user coosed 1 and you will check for all the entries for 1.
Couple of ways to do this.
1. While user is entering first record. You can keep that selected type value in GLOBAL variable and while he is entering further records you can match type with that global variable. If it is not matching then you can display message.
2. On KEY-COMMIT trigger you can start loop from first record and can check for all the records one by one. Like.
DECLARE
vVal DATATYPE;
BEGIN
GO_BLOCK('BLOCK_NAME');
FIRST_RECORD;
vVal:=:FORM_TYPE_FIELD;
LOOP
IF vVal!=:FORM_TYPE_FIELD THEN
MESSAGE(..);
EXIT;
END IF;
EXIT WHEN :SYSTEM.LAST_RECORD='TRUE';
NEXT_RECORD;
END LOOP;
END;I would go for earlier approach and will use WHEN-VALIDATE-ITEM / PRE-INSERT for type field for this purpose. Because in KEY-COMMIT the system is doing same thing again.
-Ammad
Edited by: Ammad Ahmed on May 15, 2010 12:23 AM
changes not equal sign to != -
Why is the recording on the cd not playable in itunes?
I inserted a cd with a recording. the recording with the ending .WAV is not playable.
can anyone help?
I appreciate your responseI get the same problem. I moved the backup files (B1) to another drive and then itunes generated new backup files (B2) for my iPhone. They seem to be of similar size. Due to my running out of space on my system drive, I've linked the backup folder to another drive. This is where I moved my original backups (B1). After I did that, the iPhone seems to sync but once again, the date of the backup did not change. I have no idea what the issue is. I'll save both B1 and B2.
To be sure you've got an up to date backup, I recommend changing the name of the original backup folder to backup2 and then forcing itunes to make a new backup from scratch.
On a windows machine, the backup folder is found at:
C:\Users\(Username)\AppData\Roaming\Apple Computer\MobileSync\Backup -
How can I numbered the records in the report
Hi, can anyone please show me how do I number the records in the reports in the Report Builder?
Thank you.Hi,
Follow the following steps:
1. Create a summary column in the data model of the report.
2. Select the function as Count.
3. Select the source for which you want to generate the serial no.
4.Reset the column at Report level.
5. Now create a field in the paper layout of the report and select this summary column as the source. The field should be in the same repeating frame as its source.
This will generate the nos. as reqd.
Swati -
BAPI containing the recording of the Tcode XK01
Hi,
We need to create a BAPI containing the recording of the transaction XK01 with all mandatory and required parameters being passed to the code via import parameters and tables. Could anyone please help me out in developing this...
Regards,
Ramesh.Hi Ramesh,
Use BAPI_VENDOR_CREATE.
Also refer the programs RFBIKR00 and RFBIDE00.
Check this links too.
http://help.sap.com/saphelp_47x200/helpdata/EN/01/a9b53e455711d182b40000e829fbfe/frameset.htm
Regards,
Susmitha
Dont forget to reward for useful answers -
How to filter the records in the process of loading data into ODS
Hi All,
I am doing some data extraction from R/3 system. But I need to ignore(don't need to load) the records with a date field (Purchase Order date) that is blank.
So how can I filter out the records with the blank date field?
Some one suggested me to write some select statement (looping the data packages) in the start routine but I am not that experianced with the ABAP routines. So can anyone provide some sample format of the routine or can you suggest me some other way to filter out this data.Ram Kumar,
I used this in the start routine but it gives me an error saying ...
No component exists with the name "TRAN_STRUCTURE-BEDAT"
<b>delete datapak where TRAN_STRUCTURE-BEDAT = '' OR
TRAN_STRUCTURE-BADAT = '' OR
TRAN_STRUCTURE-ERDAT = '' OR
TRAN_STRUCTURE-FRGDT = '' OR
TRAN_STRUCTURE-UDATE = ''.</b>
I have taken out the TRAN_STRUCTURE part and just typed
delete datapak where BEDAT = '' OR
BADAT = '' OR
ERDAT = '' OR
FRGDT = '' OR
UDATE = ''.
This above statement has no syntax errors. but this statement doesn't filter out the records with a the date fields that are blank.
Please help me out here.
This is kind of urgent.
Thanks, -
Keep the record in the view object if deletion failed.
I have a view object which is based on the entity object, when I am trying to delete a row it failed because it has a child record associate with. I know the row is not delete from the database, but the record is deleted fromt the view.
How to keep the record in the View object if delete failed?Hi,
the row is not delete from the database,refresh the view . re-execute query and the view show the row -
Hello there,
I am totally green in web development.
my goal is to, for the user will input a date range from and
to and will out put the records in the intranet when they press a
button.
However, the good news is: I have experience in programming.
I have written applications for desktop in VB>NET and I
understand RDBMS /sql concepts .
But CF and WEB development is new to me.
My current projects involves in connecting to DB and testing
it. (it works fine)
And outputting reports by to a intranet page. (records)
i need help on how to start this asap. I will even do some
practice at home.
Tools I have at work
• Development server(test)
• Home site.
• Toad for db connection.
• Html reference guide
• Cf dummies book.
How can start my projects.
(ex. Create cf, outputpage?)
seriously, I am new to this.
Thanks.Well, I had a really nice response with some concepts and
ideas for you to practise on etc, but these dumb forums timed out
and I lost it all
If you want to pop me an email we could probably do a few
exercises together that way - or even by MSN Messenger if you want. -
How to get the records of the particluar day when delta laod failed (Urgent
Hello BW Gurus,
We are facing one serious issue. Here is the scenario.
1st time the Delta was init and for next consective two loads delta ran sucessfully... then next time delta got failed and the status is in red..... even though system started next delta loading and it has fetched the records and status is in green but not activated ,,,,,its happening still past one month so almost there are 20 requests which are to be get activatetd.
How to resolve this issue.
<b>And how to get the records of the partilcular day when the delta got failed.
</b>
Anyone have come across with this strange issue then help me out and i will rewarrd the points.
Urs,
Raki.Hi
Can you provide more details about your extractor and data targets.
Are you loading delta to an ODS ??
If you are loading to an ODS, The only solution i can see is to get the missing delta records via FULL UPDATE. Because if you delete the error request from ODS it will also delete the 20 successful requests above it.
Cheers
Praveen
null
Maybe you are looking for
-
Error while saving Transaction Type
Hi Everyone, Whenever I try to save a transaction type, then I get the following message.; " APP-FND-01016: Routine FDFRKS. Unknown Structure ID 0 for flexfield code GL # with application ID 101" Though the Accounting Flexfield in GL is OK, and compi
-
Expand volume on Internal RAID
Hello, I set up our new Xserve with three 1TB internal disks. I booted it up, and did all the initial setup. However, I made a booboo I think when migrating the volume to RAID.... Once it was up and running, I went into the RAID admin util, and told
-
Hey guys some one help me out.. 1) How to convert Object to Date and 2) Date to a String in a specified format like "MM : DDD : YYYY". Thanks in Advance :-)
-
How to implement content caching for jsp page ?
Hello everyone, I am reading an article <Servlets and Jsp Best Practice>,at http://developer.java.sun.com/developer/technicalArticles/javaserverpages/servlets_jsp/#author, on one section it is saying : "Cache content: You should never dynamically reg
-
How many appsutil.zip files for database server w/multi application tiers
Hi Gurus, Two questions needing your help: 1) Patching in a multiple application tiers systems, do we need to create the appsutil.zip file from each application tier (three) and ship it to each of the database tier (two) and unzip appsutil.zip? Go to