Please give command for table import
Hi experts,
I know this is a very simple qusetion but i am getting confused and work is very sensitive.
i have to import 4 table from one exported (dmp) file.
I am importing it with DBA user , and tables data should go to BDM schema.
please give me command.
OS SunOS 5.9
oracle 9.2.0.7.0
thanks
Message was edited by:
user628282
Please be aware that IGNORE=Y will lead to imported rows being appended to existing tables. If this is what you want, then use ignore. Otherwise you will have to drop the tables before importing.
Similar Messages
-
Printer go off when we give command for print
when ever we give command for print of adobe file it shows printer not attach to computer
Welcome to the Adobe Forums.
The more information you supply about your situation, the better equipped other community members will be to answer. Please supply the following Information where applicable:
• Adobe product and version number
• Operating system and version number
• Browser and version number (where applicable)
• The full text of any error message(s)
• What you were doing when the problem occurred
• Screenshots of the problem (if possible)
• Computer hardware, such as CPU; GPU; amount of RAM; etc. -
HT201406 my ipad touch screen is not working please give solution for it.
my ipad touch screen is not working please give solution for it.
i have connected ipad to itunes and done it restore seetings then also my touch is not working but
when i connected ipad to i tunes inside functions are working properly but touch screen is not working what can i doIf you have a screen protector on the iPad's screen, try removing it. If you don't or that doesn't help, and restoring the iPad to factory settings has not corrected the problem, then the iPad probably has a hardware problem and will need to be taken or sent to Apple for replacement.
Regards. -
Please give me the table name & field name for plant stock in previous peri
Hi Friends:
When we display a meterial by MM03, under plant stock tab, in the last, there is description of 'Plant Stoicks in previous period'. When I see the field ' Unrestricted Use Stock', there is a value. When I press F1, it looks like its from MARD table, field VMLAB. But when I check the table, there is no value.Please suggest me the table & field name.I also tried the tables MBEWH, MARDH, MCHBH, but its no there. PLease suggest.
Please suggest me urgently.I'll be thankful.
Regards:
GauravDear,
You can see plant stock for previous period of Material with MB5B.
Please check below mention tables.
MARA
MAKT
MARM
MAPE
MARC
MARD
MAST
MBEW
MLGN
MLGT
MDIP
MKOP
EBEW
QBEW
MVER
DVER
MVKE
MLAN
MARC
MAPR
MARD
MCH1
MCHA
MCHB
MDMA
DBVM
MOFF
Regards,
Mahesh Wagh -
Please give good for learning sql and pl/sql site
Hi All,
please give good reference site for learning sql and pl/sql, your suggestion would be appreciated.http://tahiti.oracle.com/
http://www.oracle.com/pls/db112/homepage?remark=tahiti
http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10766/toc.htm
http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/toc.htm
http://download.oracle.com/docs/cd/E11882_01/appdev.112/e17126/toc.htm -
Problem on select command for table AFKO-GSTRS,AFKO-GSUZS
Hi all Abaper,
I faced a problem on using select command to select out the records from table AFKO (Production order header)
If i want to select out records that
AFKO-GSTRS >= 14.4.2006 (schedule start date)
AFKO-GSUZS >= 00:00:00 (schedule start time)
AFKO-GSTRS <= 15.4.2006 (schedule start date)
AFKO-GSUZS <= 00:00:00 (schedule start time)
The select statement:
SELECT AUFNR RSNUM DISPO GSTRS GSUZS
INTO TABLE GT_AFKO FROM AFKO
WHERE
( GSTRS >= GV_ST_DATE AND GSUZS >= GV_ST_TIME )
AND ( GSTRS <= P_DATE AND GSUZS <= P_TIME ).
PS. if GV_ST_DATE = 14.4.06, GV_ST_TIME = '00:00:00'
P_DATE AND = 15.4.06, P_TIME = '00:00:00'
This statement just select out records in
between 14-15.4.06 and at time '00:00:00'.
some Production orders at 14.04.06 ,'09:00:00' will be filter out.
I know the problem on that system just consider the date and time separately.
Does anyone know how to link the date and time up? or does any data type allow for combination of date and time data?
Thx for your reply in advance~Thx Amit and Vijay.
The data type for GV_ST_DATE, P_DATE are <b>SY-datum</b>
and GV_ST_TIME, P_TIME are <b>SY-UZEIT</b>
Actually, P_DATE & P_TIME are user input parameters.
The records I wanna get are the period back 24 hrs from P_DATE & P_TIME.
For example, if user input P_DATE = 15.04.2006,
P_TIME = '10:00:00'.
Then records selected out should be:
from 14.04.2006 , '10:00:00' TO 15.04.2006, '10:00:00'
if production order schedule start = <b>14.04.2006 , 09:00:00</b>
it will be <b>included</b>.
if production order schedule start = <b>15.04.2006 , 01:00:00</b>
it will be <b>excluded</b>.
However, the following statement cannot get the desired records.
Select....
where GSTRS >= GV_ST_DATE AND GSUZS >= GV_ST_TIME
AND GSTRS <= P_DATE AND GSUZS <= P_TIME.
Since GV_ST_TIME & P_TIME are both = '00:00:00',
for Production order( sch start date = 14.04.2006 , sch start time = 09:00:00 ), '09:00:00' is greater than '00:00:00' but it is not less than '00:00:00'.
Thus, this Pro. Order will be filtered!!
However can improve my SQL statement to get the desired data? -
Please give answers for this. This is urgent
1)can u create internal table dynamically ?how?
2)what is the model dialogbox?
3)can u create more than one selectionscreen
4)in which event we will be writing authorization object.Hi
1)can u create internal table dynamically ?how?
Dynamic internal table is internal table that we create on the fly with flexible column numbers.
For sample code, please look at this code tutorial. Hopefully it can help you
Check this link:
http://www.****************/Tutorials/ABAP/DynamicInternaltable/DynamicInternalTable.htm
2)what is model dialog box?
Go to SE51 and create the model dialog box and see.
It is like creating the screen.
3)can u create more than one selectionscreen
Why do you need more than one selection screen for a program,One is enough .
4)in which event we will be writing authorization object.
In general different users will be given different authorizations based on their role in the orgn.
We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
USe SUIM and SU21 T codes for this.
Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
This means you have to allocate an authorization object in the definition of the transaction.
For example:
program an AUTHORITY-CHECK.
AUTHORITY-CHECK OBJECT <authorization object>
ID <authority field 1> FIELD <field value 1>.
ID <authority field 2> FIELD <field value 2>.
ID <authority-field n> FIELD <field value n>.
The OBJECT parameter specifies the authorization object.
The ID parameter specifies an authorization field (in the authorization object).
The FIELD parameter specifies a value for the authorization field.
The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
You program the authorization check using the ABAP statement AUTHORITY-CHECK.
AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
ID 'ACTVT' FIELD '02'
ID 'CUSTTYPE' FIELD 'B'.
IF SY-SUBRC <> 0.
MESSAGE E...
ENDIF.
'S_TRVL_BKS' is a auth. object
ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
This Authorization concept is somewhat linked with BASIS people.
As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a profile and that profile in turn attached to a particular user.
Take the help of the basis Guy and create and use.
In general different users will be given different authorizations based on their role in the orgn.
We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
USe SUIM and SU21 T codes for this.
Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
This means you have to allocate an authorization object in the definition of the transaction.
For example:
program an AUTHORITY-CHECK.
AUTHORITY-CHECK OBJECT <authorization object>
ID <authority field 1> FIELD <field value 1>.
ID <authority field 2> FIELD <field value 2>.
ID <authority-field n> FIELD <field value n>.
The OBJECT parameter specifies the authorization object.
The ID parameter specifies an authorization field (in the authorization object).
The FIELD parameter specifies a value for the authorization field.
The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
You program the authorization check using the ABAP statement AUTHORITY-CHECK.
AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
ID 'ACTVT' FIELD '02'
ID 'CUSTTYPE' FIELD 'B'.
IF SY-SUBRC <> 0.
MESSAGE E...
ENDIF.
'S_TRVL_BKS' is a auth. object
ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
This Authorization concept is somewhat linked with BASIS people.
As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a profile and that profile in turn attached to a particular user.
Take the help of the basis Guy and create and use.
In general different users will be given different authorizations based on their role in the orgn.
We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
USe SUIM and SU21 T codes for this.
Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
This means you have to allocate an authorization object in the definition of the transaction.
For example:
program an AUTHORITY-CHECK.
AUTHORITY-CHECK OBJECT <authorization object>
ID <authority field 1> FIELD <field value 1>.
ID <authority field 2> FIELD <field value 2>.
ID <authority-field n> FIELD <field value n>.
The OBJECT parameter specifies the authorization object.
The ID parameter specifies an authorization field (in the authorization object).
The FIELD parameter specifies a value for the authorization field.
The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
You program the authorization check using the ABAP statement AUTHORITY-CHECK.
AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
ID 'ACTVT' FIELD '02'
ID 'CUSTTYPE' FIELD 'B'.
IF SY-SUBRC <> 0.
MESSAGE E...
ENDIF.
'S_TRVL_BKS' is a auth. object
ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
This Authorization concept is somewhat linked with BASIS people.
As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a profile and that profile in turn attached to a particular user.
Take the help of the basis Guy and create and use.
Reward points if useful
Regards
Anji
Message was edited by:
Anji Reddy Vangala -
Please give answer for ths question
hi
Month end and quarter end support activity like user education in period closing,
and carry forward of balances activity.
guna
[email protected]If you're going to read a date, what's wrong with getDate()? I don't see the point of the StringTokenizer at all. That's got to be wasting time.
But your run time could easilly be dominated by the database retrieval, so I'd focus on that.
Experiment with Statement.setFetchSize(). Try a few hundred, for a start. More than that is unlikely to make a significant difference and that might even be two high.
What database are you using? With some of them there are alternative connection strategies, for example using a unix socket rather than an TCP/IP socket. -
Please give solution for tabing the record
Dear All,
I have a query, that i need to display data on seperate line on single row data.
For example
select 'VENDOR :'||b.value||''||b.name||''||l.c_location_id||''||l.phone||''||l.fax as bpartner_location,
'SHIPPING ADDRESS :'||''||O.ad_org_id||''||c.c_location_id||''||c.tphone||''||c.tfax as company_location
FROM c_order o INNER JOIN c_bpartner_location l
ON (o.c_bpartner_location_id = l.c_bpartner_location_id)
INNER JOIN ad_orginfo c
ON (o.AD_ORG_ID = c.AD_ORG_ID)
INNER JOIN c_bpartner b
ON(b.c_bpartner_id = o.c_bpartner_id)
I need output like
VENDOR : 1234 SHIPPING ADDRESS :
ABC company xyz company
No:14,annasali, No :1234, worli,
Chennai Mumbai
Tel : 044123456 Tel : 02216654
Fax : 0441234567 Fax: 022654656Hi,
You can use chr function to generate a line break. Example:
Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
Connected as hr
SQL> SELECT FIRST_NAME, LAST_NAME FROM EMPLOYEES WHERE EMPLOYEE_ID = 200;
FIRST_NAME LAST_NAME
Jennifer Whalen
SQL> SELECT FIRST_NAME || CHR(13) || LAST_NAME FROM EMPLOYEES WHERE EMPLOYEE_ID = 200;
FIRST_NAME||CHR(13)||LAST_NAME
Jennifer
Whalen
SQL>Regards, -
Please help me for Calendar class
Now i am working in SAP.Now we are doing Internal project for Company Timesheet of the employee,they are using Java,javascript,html,jsp,mysql.
Please give Support for developing this task
I am trying to do employee's timesheet( i.e. daily working hours).Here i attach my documents.here in that screen i am selecting fig1 calendar date for 19th july 2006 now we can see it in fig2 there we will see 15th july 2006 to 21st july 2006 is visible. The scnario is when ever we select the any of the day of the week we need to display whole week sun,mon to sat.
when i am selecting (select week days by using javascript) total weekly working hours should come.please guide me and give me sample code.
I think you understand what i am asking. using javascript calendar i am selecting the date.and from database i have to get the daily working hours of the perticular employee. I am not so familiar in java,that's why only i am asking .Please help me
Advance thanks for You
code i am pasting here
thanks&Regards
Vijaya
********** Java code******************
import java.util.Calendar;
import java.util.Date;
class FirstAndLastDay4
public static void main(String[] args)
//int i=1;
try{
Calendar date=Calendar.getInstance();
int day = date.get(Calendar.DAY_OF_WEEK);
switch(day){
case(1):
{ System.out.println("\n Input date [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK));
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
break;
case(2):
{ System.out.println("\n Input date [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)-1);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
break;
case(3):
{ System.out.println("\n Input date [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)-2);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
break;
case(4):
{ System.out.println("\n Input date [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)-3);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
break;
case(5):
{ System.out.println("\n Input date [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)-4);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
/*for(int i=0,j=1;i<7;i++)
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+i);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
break;
case(6):
{ System.out.println("\n Input date [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)-5);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+6);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
break;
case(7):
{ System.out.println("\n Input date [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)-6);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+6);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+1);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
break;
}catch(Exception e){
e.printStackTrace();
}Hi All,
I am trying to do employee's timesheet( i.e. daily working hours).Here i attach my documents.here in that screen i am selecting fig1 calendar date for 19th july 2006 now we can see it in fig2 there we will see 15th july 2006 to 21st july 2006 is visible. The scnario is when ever we select the any of the day of the week we need to display whole week sun,mon to sat.
when i am selecting (select week days by using javascript) total weekly working hours should come.please guide me and give me sample code.
Thanks in advance
thanks & regards
<code>
import java.util.Calendar;
import java.util.Date;
class FirstAndLastDay
public static void main(String[] args)
try{
Calendar date=Calendar.getInstance();
int day = date.get(Calendar.DAY_OF_WEEK);
switch(day){
case(1):
{ System.out.println("\n Input date [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK));
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+6);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
break;
case(2):
{ System.out.println("\n Input date [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)-1);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+6);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
break;
case(3):
{ System.out.println("\n Input date [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)-2);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+6);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
break;
case(4):
{ System.out.println("\n Input date [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)-3);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+6);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
break;
case(5):
{ System.out.println("\n Input date [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)-4);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+6);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
break;
case(6):
{ System.out.println("\n Input date [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)-5);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+6);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
break;
case(7):
{ System.out.println("\n Input date [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)-6);
System.out.println("First day [" + new java.util.Date(date.getTimeInMillis()) + "]");
date.set(Calendar.DAY_OF_WEEK, date.get(Calendar.DAY_OF_WEEK)+6);
System.out.println("Last day [" + new java.util.Date(date.getTimeInMillis()) + "]");
break;
}catch(Exception e){
e.printStackTrace();
</code> -
How to run the the impersonation permission grant command for multiple users
I have run below command earlier to grant the impersonation for a user called user1
get-mailbox -identity user1 | add-adpermission -user domainname\service application user -ExtendedRights ms-Exch-EPI-May-Impersonate
Now I want to run this command for multiple users like user2, user3, user 4 together. How should I run the command.
This is for Exchange Server 2007 SP2
Abhijeet M. MohiteHi Abhijeet
get-mailbox -identity user1 | add-adpermission -user domainname\service application user -ExtendedRights ms-Exch-EPI-May-Impersonate
I am little bit confused with this command so can you please help me what to right inplace of User1 and domainname\service application user
Example: I wanted to give Impersonate rights to
[email protected] then can you please complete command for me. Thanks in advance.
Warm Regards, Pramod Kumar Singh Manager-IT -
Suggestions for table partition for existing tables.
I have a table as below. This table contains huge data. This table has so many child tables .I am planning to do a 'Reference Partitioning' for the same.
create table PROMOTION_DTL
PROMO_ID NUMBER(10) not null,
EVENT VARCHAR2(6),
PROMO_START_DATE TIMESTAMP(6),
PROMO_END_DATE TIMESTAMP(6),
PROMO_COST_START_DATE TIMESTAMP(6),
EVENT_CUT_OFF_DATE TIMESTAMP(6),
REMARKS VARCHAR2(75),
CREATE_BY VARCHAR2(50),
CREATE_DATE TIMESTAMP(6),
UPDATE_BY VARCHAR2(50),
UPDATE_DATE TIMESTAMP(6)
alter table PROMOTION_DTL
add constraint PROMOTION_DTL_PK primary key (PROMO_ID);
alter table PROMOTION_DTL
add constraint PROMO_EVENT_FK foreign key (EVENT)
references SP_PROMO_EVENT_MST (EVENT);
-- Create/Recreate indexes
create index PROMOTION_IDX1 on PROMOTION_DTL (PROMO_ID, EVENT)
create unique index PROMOTION_PK on PROMOTION_DTL (PROMO_ID)
-- Grant/Revoke object privileges
grant select, insert, update, delete on PROMOTION_DTL to SCHEMA_RW_ROLE;I would like to partition this table .Most of the queries contains the following conditions.
promo_end_date >= SYSDATE
and
(event = :input_event OR
(:input_Start_Date <= promo_end_date
AND promo_start_date <= :input_End_Date))Any time the promotion can be closed by updating the PROMO_END_DATE.
Interval partioning on PROMO_END_DATE is not possible as PROMO_END_DATE is a nullable and updatable field.
I am now to table partition.
Any suggestions are welcome...DO NOT POST THE SAME QUESTION IN MULTIPLE FORUMS PLEASE!
Suggestions for table partition of existing tables -
Give me some PP important tables and Tcodes for abapers
give me some PP important tables and Tcodes for abapers
thank you,
Regards,
Jagrut Bharatkumar Shukla10 Production Planning (PP)
10.1 Work center
CRHH Work center hierarchy
CRHS Hierarchy structure
CRHD Work center header
CRTX Text for the Work Center or Production Resource/Tool
CRCO Assignment of Work Center to Cost Center
KAKO Capacity Header Segment
CRCA Work Center Capacity Allocation
TC24 Person responsible for the workcenter
CRCO Allocation of costcentre to workcentre
S022 Order Operation Data for Work Center
10.2 Routings/operations
MAPL Allocation of task lists to materials
PLAS Task list - selection of operations/activities
PLFH Task list - production resources/tools
PLFL Task list - sequences
PLKO Task list - header
PLKZ Task list: main header
PLPH Phases / suboperations
PLPO Task list operation / activity
PLPR Log collector for tasklists
PLMZ Allocation of BOM - items to operations
10.3 Bill of material
STKO BOM - header
STPO BOM - item
STAS BOMs - Item Selection
STPN BOMs - follow-up control
STPU BOM - sub-item
STZU Permanent BOM data
PLMZ Allocation of BOM - items to operations
MAST Material to BOM link
KDST Sales order to BOM link
10.4 Production orders
AUFK Production order headers
AFIH Maintenance order header
AUFM Goods movement for prod. order
AFKO Order header data PP orders
AFPO Order item
RESB Order componenten
AFVC Order operations
AFVV Quantities/dates/values in the operation
AFVU User fields of the operation
AFFL Work order sequence
AFFH PRT assignment data for the work order(routing)
JSTO Status profile
JEST Object status
AFRU Order completion confirmations
PRTs voor production orders
AFFH PRT assignment data for the work order
CRVD_A Link of PRT to Document
DRAW Document Info Record
TDWA Document Types
TDWD Data Carrier/Network Nodes
TDWE Data Carrier Type
10.5 Planned orders
PLAF Planned orders
10.6 KANBAN
PKPS Kanban identification, control cycle
PKHD Kanban control cycle (header data)
PKER Error log for Kanban containers
10.7 Reservations
RESB Material reservations
RKPF header
10.8 Capacity planning
KBKO Header record for capacity requirements
KBED Capacity requirements records
KBEZ Add. data for table KBED (for indiv. capacities/splits)
10.9 Planned independent requirements
PBIM Independent requirements for material
PBED Independent requirement data
PBHI Independent requirement history
PBIV Independent requirement index
PBIC Independent requirement index for customer req. -
Import for table only in one line
There is the following command for import of the schema:-
imp <userid/password> file=<export dump file location> fromuser=<export user name> touser=<import user name> grants=y constraints=Y rows=y log=<import log file location>
But, what if we want to import only one table, then what should the import statement look like?
I hope, my question is clear.
Please, help in solving the doubt.
regardsJust a query!!
I have a 9GB full dump and i want to recover say 1 table 100MB from it. Suppose, if the table is probably in a schema that is at the last portion of the dump file.
Why does the imp utility search through the whole dump to come accross the table to be imported. Is there any way to cut the time of search in the dump file by imp utility to directly jump on the schema and then start the search for the table?
Please share experiences.
Regards,
Zaffer Khan -
Hi guys please give me sample code for call transaction that handles error
hi guys, please give me sample code for call transaction that handles error,
please send me the sample code in which there should be all decleration part and everything, based on the sample code i will develop my code.
please do help me as it is urgent.
thanks and regards.
prasadnn.Hi Prasad,
Check this code.
Source Code for BDC using Call Transaction
*Code used to create BDC
*& Report ZBDC_EXAMPLE *
*& Example BDC program, which updates net price of item 00010 of a *
*& particular Purchase order(EBELN). *
REPORT ZBDC_EXAMPLE NO STANDARD PAGE HEADING
LINE-SIZE 132.
Data declaration
TABLES: ekko, ekpo.
TYPES: BEGIN OF t_ekko,
ebeln TYPE ekko-ebeln,
waers TYPE ekko-waers,
netpr TYPE ekpo-netpr,
err_msg(73) TYPE c,
END OF t_ekko.
DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
wa_ekko TYPE t_ekko,
it_error TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
wa_error TYPE t_ekko,
it_success TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
wa_success TYPE t_ekko.
DATA: w_textout LIKE t100-text.
DATA: gd_update TYPE i,
gd_lines TYPE i.
*Used to store BDC data
DATA: BEGIN OF bdc_tab OCCURS 0.
INCLUDE STRUCTURE bdcdata.
DATA: END OF bdc_tab.
*Used to stores error information from CALL TRANSACTION Function Module
DATA: BEGIN OF messtab OCCURS 0.
INCLUDE STRUCTURE bdcmsgcoll.
DATA: END OF messtab.
*Screen declaration
SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME
TITLE text-001. "Purchase order Num
SELECT-OPTIONS: so_ebeln FOR ekko-ebeln OBLIGATORY.
SELECTION-SCREEN END OF BLOCK block1.
SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME
TITLE text-002. "New NETPR value
PARAMETERS: p_newpr(14) TYPE c obligatory. "LIKE ekpo-netpr.
SELECTION-SCREEN END OF BLOCK block2.
*START-OF-SELECTION
START-OF-SELECTION.
Retrieve data from Purchase order table(EKKO)
SELECT ekkoebeln ekkowaers ekpo~netpr
INTO TABLE it_ekko
FROM ekko AS ekko INNER JOIN ekpo AS ekpo
ON ekpoebeln EQ ekkoebeln
WHERE ekko~ebeln IN so_ebeln AND
ekpo~ebelp EQ '10'.
*END-OF-SELECTION
END-OF-SELECTION.
Check data has been retrieved ready for processing
DESCRIBE TABLE it_ekko LINES gd_lines.
IF gd_lines LE 0.
Display message if no data has been retrieved
MESSAGE i003(zp) WITH 'No Records Found'(001).
LEAVE TO SCREEN 0.
ELSE.
Update Customer master data (instalment text)
LOOP AT it_ekko INTO wa_ekko.
PERFORM bdc_update.
ENDLOOP.
Display message confirming number of records updated
IF gd_update GT 1.
MESSAGE i003(zp) WITH gd_update 'Records updated'(002).
ELSE.
MESSAGE i003(zp) WITH gd_update 'Record updated'(003).
ENDIF.
Display Success Report
Check Success table
DESCRIBE TABLE it_success LINES gd_lines.
IF gd_lines GT 0.
Display result report column headings
PERFORM display_column_headings.
Display result report
PERFORM display_report.
ENDIF.
Display Error Report
Check errors table
DESCRIBE TABLE it_error LINES gd_lines.
If errors exist then display errors report
IF gd_lines GT 0.
Display errors report
PERFORM display_error_headings.
PERFORM display_error_report.
ENDIF.
ENDIF.
*& Form DISPLAY_COLUMN_HEADINGS
Display column headings
FORM display_column_headings.
WRITE:2 ' Success Report '(014) COLOR COL_POSITIVE.
SKIP.
WRITE:2 'The following records updated successfully:'(013).
WRITE:/ sy-uline(42).
FORMAT COLOR COL_HEADING.
WRITE:/ sy-vline,
(10) 'Purchase Order'(004), sy-vline,
(11) 'Old Netpr'(005), sy-vline,
(11) 'New Netpr'(006), sy-vline.
WRITE:/ sy-uline(42).
ENDFORM. " DISPLAY_COLUMN_HEADINGS
*& Form BDC_UPDATE
Populate BDC table and call transaction ME22
FORM bdc_update.
PERFORM dynpro USING:
'X' 'SAPMM06E' '0105',
' ' 'BDC_CURSOR' 'RM06E-BSTNR',
' ' 'RM06E-BSTNR' wa_ekko-ebeln,
' ' 'BDC_OKCODE' '/00', "OK code
'X' 'SAPMM06E' '0120',
' ' 'BDC_CURSOR' 'EKPO-NETPR(01)',
' ' 'EKPO-NETPR(01)' p_newpr,
' ' 'BDC_OKCODE' '=BU'. "OK code
Call transaction to update customer instalment text
CALL TRANSACTION 'ME22' USING bdc_tab MODE 'N' UPDATE 'S'
MESSAGES INTO messtab.
Check if update was succesful
IF sy-subrc EQ 0.
ADD 1 TO gd_update.
APPEND wa_ekko TO it_success.
ELSE.
Retrieve error messages displayed during BDC update
LOOP AT messtab WHERE msgtyp = 'E'.
Builds actual message based on info returned from Call transaction
CALL FUNCTION 'MESSAGE_TEXT_BUILD'
EXPORTING
msgid = messtab-msgid
msgnr = messtab-msgnr
msgv1 = messtab-msgv1
msgv2 = messtab-msgv2
msgv3 = messtab-msgv3
msgv4 = messtab-msgv4
IMPORTING
message_text_output = w_textout.
ENDLOOP.
Build error table ready for output
wa_error = wa_ekko.
wa_error-err_msg = w_textout.
APPEND wa_error TO it_error.
CLEAR: wa_error.
ENDIF.
Clear bdc date table
CLEAR: bdc_tab.
REFRESH: bdc_tab.
ENDFORM. " BDC_UPDATE
FORM DYNPRO *
stores values to bdc table *
--> DYNBEGIN *
--> NAME *
--> VALUE *
FORM dynpro USING dynbegin name value.
IF dynbegin = 'X'.
CLEAR bdc_tab.
MOVE: name TO bdc_tab-program,
value TO bdc_tab-dynpro,
'X' TO bdc_tab-dynbegin.
APPEND bdc_tab.
ELSE.
CLEAR bdc_tab.
MOVE: name TO bdc_tab-fnam,
value TO bdc_tab-fval.
APPEND bdc_tab.
ENDIF.
ENDFORM. " DYNPRO
*& Form DISPLAY_REPORT
Display Report
FORM display_report.
FORMAT COLOR COL_NORMAL.
Loop at data table
LOOP AT it_success INTO wa_success.
WRITE:/ sy-vline,
(10) wa_success-ebeln, sy-vline,
(11) wa_success-netpr CURRENCY wa_success-waers, sy-vline,
(11) p_newpr, sy-vline.
CLEAR: wa_success.
ENDLOOP.
WRITE:/ sy-uline(42).
REFRESH: it_success.
FORMAT COLOR COL_BACKGROUND.
ENDFORM. " DISPLAY_REPORT
*& Form DISPLAY_ERROR_REPORT
Display error report data
FORM display_error_report.
LOOP AT it_error INTO wa_error.
WRITE:/ sy-vline,
(10) wa_error-ebeln, sy-vline,
(11) wa_error-netpr CURRENCY wa_error-waers, sy-vline,
(73) wa_error-err_msg, sy-vline.
ENDLOOP.
WRITE:/ sy-uline(104).
REFRESH: it_error.
ENDFORM. " DISPLAY_ERROR_REPORT
*& Form DISPLAY_ERROR_HEADINGS
Display error report headings
FORM display_error_headings.
SKIP.
WRITE:2 ' Error Report '(007) COLOR COL_NEGATIVE.
SKIP.
WRITE:2 'The following records failed during update:'(008).
WRITE:/ sy-uline(104).
FORMAT COLOR COL_HEADING.
WRITE:/ sy-vline,
(10) 'Purchase Order'(009), sy-vline,
(11) 'Netpr'(010), sy-vline,
(73) 'Error Message'(012), sy-vline.
WRITE:/ sy-uline(104).
FORMAT COLOR COL_NORMAL.
ENDFORM. " DISPLAY_ERROR_HEADINGS
Hope this resolves your query.
Reward all the helpful answers.
Regards
Maybe you are looking for
-
Error Message** This file does not appear to be a photshop file
Okay.. so I have been researching forums and have seen this message throughout, my issue seems to be slightly different. When I am in Encore CS3 and trying to create a menu, I import my background designed in photoshop, have the buttons set up correc
-
Issue with Backflush when Consuming Fractions
I am having an issue with back-flushing I was hoping Guru's could help me . Here is the issue: In the BOM for every 1 EA of X(Parent) we need .025 EA of Y(Child) The parent part is X. Using CS03 and typing in a quantity of 20 pcs everything looks pe
-
Inconsistent FOTY0001: type error while using translateFromNative
I am getting FOTY0001: type error while using translateFromNative function in assign activity. This error happens only in the below scenarios: 1. Create a BPEL process with file input adapter that accepts simple xml string as input and accepts files
-
'Media Offline' Thumbnails Are Wrong
I accidentally powered down my external scratch disk before closing Final Cut 5. All the media went offline but I reattached everything fine. However, the thumbnails on the clips in the timeline and browser still have that red 'media offline' pic on
-
Does Mac Lion OX 10.7.5 have access to iCloud
For syncing I now use Dropbox, but I would like to use iCloud. My old 2007 MacBook Air will only run Lion OX 10.7.5, and I dont see anything about iCloud. does it not exist on OX Lion 10.7.5? Thanks in advance