Date functions ,plz help
hi every body
in sql i need a function that when you give it the sysdate it will return the number day of the month
can you please give me the
for example it will gives me that today is 11
plz help
thanks
SELECT to_char(sysdate, 'DD')
FROM dual;
Similar Messages
-
My Macbook pro,s Airdrop isn't functional plz help me to use it
Hi everybody.
My Macbook pro,s Airdrop isn't functional plz help me to use it.Mac Basics: AirDrop helps you share items with others nearby
-
hi i jus hit the restore all button in my settings and my phone is getting a display signal of switching off and it lies in dat mode plz help me out
You need to perform a DFU Mode Restore of the iPhone with iTunes on computer. You must also have a SIM card of the original Carrier that this iPhone was produced for.
-
Cube to Cube "Error in data Selection" plz help
Hi this is Ajay Reddy
when am sending data from Cube to Cube am getting an error
"Error in data Selection" plz helpHi,
It needs a Note implementaion. I got similar problem in version BIW 7 and SP 11. We got the solution with on of the note . I am not able to recollect the note number.
Any way check the notes 920971,155471 may help you or not.
With rgds,
Anil Kumar Sharma .P -
Upgrade HP SAN & Restore the data URGENT Plz Help
Dear All,
We are going to upgrade HP SAN(Drivers and space) in windows 2003.
Please Suggest caution and safety measure .We have to take Full Offline Backup.
If data get crash ,how to recover because sap is also installed in SAN.
Plz suggest Step By Step it is urgent.
Thanks in Advance.
Edited by: pallav mohan on Jul 28, 2008 3:18 PMHi Pallav,
Assuming that the backup device (TAPE Drive/ LTO Drive) is attached to your sap server,You can follow the steps as below..
1, Stop SAP from MMC
2, Shut down the DB server.
3, Start >program>Administrator tools -->Services..
This will open another MMC screen by listing all the Services running. From the list stop SAP services,
Oracle Services.
4, now goto >start> Program > accessories > system tools --> Backup (NTbackup) .
5, in Backup select all the drives, and select "system Information" which will be below the drives.
Hope this help.
regards
Virendra -
Help menu function plz help:)))
Hello there. I've been trying to design a GUI providing the users with help function as well. I create the html file, map file(in .jhm format) and HelpSet (in .hs format) and run the help menu via hsviewer. The first problem is that when the hsviewer runs the application a blank help window appears on the screen. The second one is that when I try to make a link between the help menu and the GUI I have written by using the sample code given in javahelp's pdf file I see a few error messages on NETBEANS' screen. Could anyone help me solve the problems I have faced so far? In addition, aint there any other method, like a template help menu, that I could use to compose my own one?
Quit multi-posting questions: http://forum.java.sun.com/thread.jspa?threadID=5271252&tstart=15
-
HI,
I have a table which has a field called Load_Period of Varchar2(50), it stores the month and year . Ex January, 2007 ; February, 2007 ......etc. It also store values like '13 Series, 2006' '13 Series, 2007' .... etc. Now when I try to convert the field into date format inside a query , I get an error . The error is
ORA-01858: a non-numeric character was found where a numeric was expected
The SQL statement is like this
SELECT TO_DATE('01, '||Load_Period,'mm/dd/yyyy') FROM LOAD_LOG WHERE Account_ID = 54781
AND UPPER(Load_Period) NOT LIKE '%SERIES%'
I am filtering out the 13 Series records . How to fix it . I have the date format as
NLS_DATE_FORMAT MM/DD/YYYY
All help / suggestions appreciated.
thanksYour TO_DATE format is incorrect..... TO_DATE('01, '||Load_Period,'mm/dd/yyyy')
You are trying to match the following:
'01 to 'mm'.
Load_Period to 'dd/yyyy'
You should be using TO_DATE('01, '||Load_Period,'dd Month, yyyy').
If you want it to default to the 1st of the month, then you do not need to concat the
'01' to the TO_DATE.
Try the following:
select to_date('01'||'January, 2007','dd Month,YYYY') from dual
OR
select to_date('January, 2007','Month,YYYY') from dual -
My datafiles are in ASM file system, however the only one file ACIPEN_DATA is the one, which is not in ASM file system, and this the file which is in concern.
We are getting the following exception in the lxkratgas1.lex1.lexmark.com when connecting to ACIPEN_DATA.
This exception is coming up sometimes and the sometimes the file is getting processed successfully
Caused by: java.sql.SQLException: ORA-01157: cannot identify/lock data file 9 - see DBWR trace file
ORA-01110: data file 9: '/oracle/SE/product/10.2.0/db_1/dbs/ACIPEN_DATA'
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:955)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1169)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3368)
at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:278)
at atg.adapter.gsa.SQLStatement.executeUpdate(SQLStatement.java:725)
at atg.adapter.gsa.Table.insert(Table.java:1378)
at atg.adapter.gsa.GSAItemDescriptor.addItem(GSAItemDescriptor.java:6272)
... 61 more
====================================================================
We have checked the datafile, it is absolutely online.
Can some expert jump in and resolve this issue Please.01157, 00000, "cannot identify/lock data file %s - see DBWR trace file"
// *Cause: The background process was either unable to find one of the data
// files or failed to lock it because the file was already in use.
// The database will prohibit access to this file but other files will
// be unaffected. However the first instance to open the database will
// need to access all online data files. Accompanying error from the
// operating system describes why the file could not be identified.
// *Action: Have operating system make file available to database. Then either
// open the database or do ALTER SYSTEM CHECK DATAFILES.is this a RAC database? -
String s = txtReturnDate.getText();
Date todayDate = new Date();
s is a string containing date field
todayDate contains current date
i want to compare "s" and "todayDate" so that i can get the days between both
can any body tell me how to do itYou can look at the SimpleDateFormat class to parse your string into a date, and then you can use the getTime() method of the Date class to subtract the current time in millis from your dates time in millis.
Just as a note, this might have been better answered in the appropriate forum. -
my query is this
SELECT A.FX_DATE, A.FX_TIME,A.FROM_CURRENCY, A.TO_CURRENCY, A.ASK_RATE,
A.BID_RATE, A.time_stamp, A.source,
A.DESCRIPTION, A.FX_TYPE, A.OVERRIDDEN_RATE, A.OVERRIDDEN_BY, A.OVERRIDDEN_DATE,
A.ASK_RATE_INVERSE, A.BID_RATE_INVERSE, A.PX_LAST, A.PX_MID, A.PX_OPEN,
A.PX_HIGH, A.PX_LOW,A.NY_TIME_OF_LAST_PRICE_UPDATE,
A.DATE_OF_LAST_UPDATE, A.PX_BID_AM, A.PX_ASK_AM, A.PX_BID_PM, A.PX_ASK_PM,
A.PX_CLOSE_1D, A.CHG_NET_1D,
A.CHG_PCT_1D, A.PRICING_SOURCE, A.PX_BID_1M, A.PX_ASK_1M, A.PX_BID_1YR,
A.PX_ASK_1YR, A.PX_CLOSE_MTD,
A.PX_CLOSE_YTD, A.FXOPT_COMMODITY_CCY, A.FXOPT_SPOT_FXRATE, A.SPOT_RT_USD_FLAG,
A.PRIOR_CLOSE_BID,
A.PRIOR_CLOSE_MID, A.PRIOR_CLOSE_ASK
FROM CURRENCY_EXCHANGE_TXN A,
( SELECT FX_DATE, MAX(FX_TIME) TIM
FROM CURRENCY_EXCHANGE_TXN
WHERE FX_DATE = '06-JUN-2007'
GROUP BY FX_DATE ) NEW_TAB
WHERE
A.FX_DATE = NEW_TAB.FX_DATE AND A.FX_TIME = NEW_TAB.TIM
it is giving result of specified date
but i want if the data is not available for the specified date then it should give the data of the max date present in the table.
i.e. if table has data for 5 jun and i passed 7 jun and there is no 6 jun data as well as 7 jun also then
query should give 5jun datausing the query I gave you an hour ago:
with t as
(select 'USD' FROM_CURRENCY, 'CLP' TO_CURRENCY, 522.9 ASK_RATE, 522.9 BID_RATE,
to_Date('25-may-07') fx_date, 17 fx_time from dual union all
select 'USD','CNY', 7.6537, 7.6537, to_DatE('26-MAY-07'), 17 from dual union all
select 'USD','CLP', 8522.9, 1522.9 , to_DatE('26-MAY-07'), 15 from dual union all
select 'USD','CLP', 7522.9, 2522.9 , to_DatE('05-JUN-07'), 5 from dual union all
select 'USD','CLP', 6522.9, 3522.9 , to_DatE('05-JUN-07'), 1 from dual union all
select 'USD','CLP', 5522.9, 4522.9 , to_DatE('06-JUN-07'), 7 from dual union all
select 'USD','CLP', 4522.9, 5522.9 , to_DatE('06-JUN-07'), 17 from dual
select max(FROM_CURRENCY) keep (dense_rank last order by fx_date, fx_time) from_curr,
max(to_CURRENCY) keep (dense_rank last order by fx_date, fx_time) to_curr,
max(ask_rate) keep (dense_rank last order by fx_date, fx_time) ask_rate,
max(bid_rate) keep (dense_rank last order by fx_date, fx_time) bid_rate,
max(fx_date) keep (dense_rank last order by fx_date, fx_time) fxd,
max(fx_time) keep (dense_rank last order by fx_date, fx_time) fxt
from t
/we can give it a WHERE CLAUSE!!!!!
with t as
(select 'USD' FROM_CURRENCY, 'CLP' TO_CURRENCY, 522.9 ASK_RATE, 522.9 BID_RATE,
to_Date('25-may-07') fx_date, 17 fx_time from dual union all
select 'USD','CNY', 7.6537, 7.6537, to_DatE('26-MAY-07'), 17 from dual union all
select 'USD','CLP', 8522.9, 1522.9 , to_DatE('26-MAY-07'), 15 from dual union all
select 'USD','CLP', 7522.9, 2522.9 , to_DatE('05-JUN-07'), 5 from dual union all
select 'USD','CLP', 6522.9, 3522.9 , to_DatE('05-JUN-07'), 1 from dual union all
select 'USD','CLP', 5522.9, 4522.9 , to_DatE('06-JUN-07'), 7 from dual union all
select 'USD','CLP', 4522.9, 5522.9 , to_DatE('06-JUN-07'), 17 from dual
select max(FROM_CURRENCY) keep (dense_rank last order by fx_date, fx_time) from_curr,
max(to_CURRENCY) keep (dense_rank last order by fx_date, fx_time) to_curr,
max(ask_rate) keep (dense_rank last order by fx_date, fx_time) ask_rate,
max(bid_rate) keep (dense_rank last order by fx_date, fx_time) bid_rate,
max(fx_date) keep (dense_rank last order by fx_date, fx_time) fxd,
max(fx_time) keep (dense_rank last order by fx_date, fx_time) fxt
from t
where fx_date <= to_date('01-JUN-07')
/just look at the results! there is no data for 01-jun, so what does it do? it gives the answer that is closest without going over (just like Price Is Right) -
Sql date and util date problem: plz help
Hi,
Following is the scenario I am dealing with....
I have two feilds in the DB, of type Datetime. First field say.. 'DBDate' have date in it, and second field 'DBTime' has time in it. This much part I can not change.... I can change rest of the part so please guide me accordingly....
I am getting both the values from the DB using
long day = rs.getDate("DBDate").getTime();
long tme = rs.getTime("DBTime").getTime();Now I have to create a completly new java.util.Date object using this date and time. So, I am adding both the long values and trying to create a new data object usingjava.util.Date ext = new java.util.Date(day+tme); But the ext date over here is 6 hrs later time than actual text of the Date in the DB. that is if the date and time in the DB is "5/27/2003" and "4:40:00 PM" the resulting date is "5/27/2003 10:40:00 PM", which could be equivalent GMT time w.r.t. the DB Timezone.
But I want the final date to be the same as the DB Time Zone.....
if you need more detailed information reply me... i will post it .....
Thank a lot in advance...
RiBut the ext date over here is 6 hrs later time than
actual text of the Date in the DB. that is if the date
and time in the DB is "5/27/2003" and "4:40:00 PM" the
resulting date is "5/27/2003 10:40:00 PM", which could
be equivalent GMT time w.r.t. the DB Timezone.
How do you know that that is the date in java?
Are you doing this?
System.out.println("d=" + mydate);
If so, and as previously pointed out, you are printing out a time that is relative to your time zone. Is the time in the database relative to your time zone? If not then you have a problem. And if the time in the database is relative to any time zone other than GMT then your extraction method is incorrect as well. -
Hi..
I m getting problem when i executing the below proc..
I m taking the string of personid's from frntend and as our COM doesn't support ',' i getting the values seperated by pipe '|' and in proc i m repalcing it to ',' and den i have to chk it in IN condition and take all da records in a Cursor and i hav return bac.. But when i hardcoding the values i m getting result but when i using da variable string it is nt fecthing data..plz help me
CREATE OR REPLACE PROCEDURE prn_tst(strVal IN VARCHAR2)
AS
strl VARCHAR2(40);
cur SYS_REFCURSOR;
strname VARCHAR2(60);
BEGIN
SELECT REPLACE(strval,'|',',') INTO strL FROM DUAL;
DBMS_output.put_line(strL);
SELECT (REPLACE(strl,'+','''')) INTO strL FROM DUAL;
DBMS_output.put_line(strL);
OPEN cur FOR
SELECT name
FROM cmnperson
WHERE TO_CHAR(personid) IN (strL);
LOOP
FETCH cur INTO strname;
EXIT WHEN cur%NOTFOUND;
DBMS_output.put_line('IN' || strname);
END LOOP;
SELECT name
INTO strname
FROM cmnperson
WHERE TO_CHAR(personid) IN (TRIM(strL));
DBMS_output.put_line('IN' || strname);
END prn_tst;i have this procedure it is giving err when i m compling
PLS-00103: Encountered the symbol "))
INNER JOIN PRGNOSSPROGRAM
ON
CDTAPPLICATION.progr" when expecting one of the following:
( - + case mod new null <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count current max min prior sql stddev sum variance execute
forall merge time timestamp interval date
<a string literal with character set specification>
<a number> <a single-quoted SQL string> pipe
CREATE OR REPLACE PROCEDURE prn_ACCertPrintRep(strCandidateid In Varchar2,
strAccode In Cdtapplication.accode %TYPE,
strBatchNo In Cdtapplication.batchno %TYPE,
cur_GetCertDetails Out SYS_REFCURSOR)
AS
strtemp Varchar2(50);
strlist Varchar2(50);
strFinalList Varchar2(50);
strCode Varchar2(20) :='PC';
BEGIN
SELECT replace(strCandidateid,'|',',')
INTO strtemp
FROM dual;
SELECT replace(strtemp,'-','''')
INTO strlist
FROM dual;
dbms_output.put_line(strlist);
OPEN cur_GetCertDetails
FOR
'SELECT cdtapplication.programcode As PrgCode,
programname,
programlevel,
cmnperson.name As PersonName,
icnumber,
acname,
accenter.town As Town,
sctstate.name As State
FROM (CDTAPPLICATION
INNER JOIN CDTPPLEVALUATIONH
ON
CDTAPPLICATION.candidateid = CDTPPLEVALUATIONH.candidateid
AND
UPPER(TRIM(CDTAPPLICATION.wfstatuscode)) = ' || strCode || ')
AND
TO_CHAR(CDTAPPLICATION.candidateid) IN (' || strlist || ')
INNER JOIN ACCENTER
ON
CDTAPPLICATION.accode = ACCENTER.accode
AND
UPPER(TRIM(CDTAPPLICATION.accode)) = UPPER(TRIM(' ||strAccode || '))
AND
UPPER(TRIM(CDTAPPLICATION.batchno)) = UPPER(TRIM(' ||strBatchNo ||'))
INNER JOIN PRGNOSSPROGRAM
ON
CDTAPPLICATION.programcode = PRGNOSSPROGRAM.programcode
INNER JOIN CMNPERSON
ON
CDTAPPLICATION.personid = CMNPERSON.personid)
INNER JOIN SCTSTATE
ON
ACCENTER.statecode = SCTSTATE.statecode;
END prn_ACCertPrintRep; -
Hi,
plz tell me the way to print text/data using printer in flex. I tried the FlexPrintJob class. but it takes object of a container to be printed & prints the visible content of that container(along with scrollbars), bt i want to print all contents of the container(including invisible).
I have tried to print bitmap image through FlexPrintJob but it takes lot of time for spooling... So plz help me out in printing(fast with all content) in flash
I am using flex 3 (flex Builder 3 IDE).
Thanks in advance!!!Hi Sagar,
Don't worry You can use the below work around to print all the contents of the Container including the invisible contents under scrolll with out scroll bar..
So what the idea here is we are seeting the container height to full size with out scrolls before sending the container object to printer and as soon as you print the object you are restoring it to the original height with scrolls...so that you can print the full contents without scrolls...
You may have doubt that by chnaging and restoring the size the user may see momentary resize of the container but it is not so as it is a fraction of a second and user cannot notice this change... Give it a try ..I had already run into this problem recently and I have found a work around for this which is as below:
// Here mainContainer is the container or box id the contents of which you want to print
private function doPrintContainer():void
var printJob:FlexPrintJob = new FlexPrintJob();
if(printJob.start() != true) return;
try
var mainContainerHeight:int = mainContainer.height;
//Increasing the height of the desired component to be printed.
mainContainer.height = mainContainer.measuredMinHeight;
mainContainer.verticalScrollPolicy = "off";
//Adding the resized Component to our FlexPrintjob and then sending the print request
printJob.addObject(this,FlexPrintJobScaleType.MATCH_WIDTH);
printJob.send();
//Resizing the component back to normal size
mainContainer.height = mainContainerHeight;
mainContainer.verticalScrollPolicy = "auto";
catch(error:Error)
trace("Error : " + error.message);
If this post answers your question or helps, please kindly mark it as such.
Thanks,
Bhasker Chari -
URGENT: Date format in Reports Giving me trouble...plz help me out
Hi guru's Can any one help me out
I
n the front end apps we are getting the date value as
BOM_SRS_DATETIME_STANDARD
Where we are entering the date value as MM/DD/RRRR HH24:MI:SS
The date format set in the company is like RRRR/MM/DD HH24:MI:SS
SO I format masked the date parameter in .RDF to RRRR/MM/DD HH24:MI:SS format.
While the actual date format in the data base is like DD/MM/RRRR HH24:MI:SS.
I checked all the old reports and the date format is like they masked the date format to company format and used the afterparameter trigger like bellow:
if :P_SENT_DATE_FROM is not null and :P_SENT_DATE_TO is null then
:P_SENT_DATE_TO := :P_SENT_DATE_FROM;
end if;
if (:P_SENT_DATE_FROM = :P_SENT_DATE_TO) and (:P_SENT_DATE_FROM is not null) then
:WHERE_SQL := :WHERE_SQL || ' AND CREATION_DATE = '||' to_date('''||:P_SENT_DATE_FROM||''''||','||'''DD-MON-RR'')';
else
if :P_SENT_DATE_FROM is not null then
:WHERE_SQL := :WHERE_SQL || ' AND CREATION_DATE >= '||' to_date('''||:P_SENT_DATE_FROM ||''''||','||'''DD-MON-RR'')';
end if;
if :P_SENT_DATE_TO is not null then
:WHERE_SQL := :WHERE_SQL || ' AND CREATION_DATE <= '||' to_date('''||:P_SENT_DATE_TO ||''''||','||'''DD-MON-RR'')';
end if;
end if;
I tried this but i couldnt get the output either.
I am pretty much confused.
Plz help me out...If you want to use a dynamic where caluse in your report query you can use a Reference Cursor using REF CUR QUERY tool in your report like this :
function QR_1RefCurDS return DEF_CURSORS.CHARACT_REFCUR is
temp_CHARACT DEF_CURSORS.CHARACT_refcur;
begin
IF :FROM_NO IS NULL AND :TO_NO IS NULL THEN
open temp_CHARACT for SELECT ACCT_CODE, ACCT_NAME
FROM CHARACT
ORDER BY ACCT_CODE;
ELSIF :TO_NO IS NULL AND :FROM_NO IS NOT NULL THEN
open temp_CHARACT for select ACCT_CODE, ACCT_NAME
FROM CHARACT
WHERE ACCT_CODE=:FROM_NO
ORDER BY ACCT_CODE;
ELSIF :TO_NO IS NOT NULL AND :FROM_NO IS NOT NULL THEN
open temp_CHARACT for select ACCT_CODE, ACCT_NAME
FROM CHARACT
WHERE ACCT_CODE BETWEEN :FROM_NO AND :TO_NO
ORDER BY ACCT_CODE;
ELSIF :TO_NO IS NOT NULL AND :FROM_NO IS NULL THEN
open temp_CHARACT for select ACCT_CODE, ACCT_NAME
FROM CHARACT
WHERE ACCT_CODE<=:TO_NO
ORDER BY ACCT_CODE;
END IF;
return temp_CHARACT;
end;
But first you have to declare a cursor type in a package -
Function group issue in upgrade plz help very urgent
hi gurus,
plz help me
in a big trouble.
deadline is today.
when i activated the function group i found this error in an include
LSVARCLS
and when i clicked to this field it took me to another include
LSVARTOP
here i found
data: f4_params type onf4_event_parameters_type.
FYI:
types: begin of onf4_event_parameters_type.
types: c_fieldname type lvc_fname.
types: cs_row_no type lvc_s_roid.
types: cr_event_data type ref to cl_alv_event_data.
types: ct_bad_cells type lvc_t_modi.
types: c_display type char01.
types: end of onf4_event_parameters_type.
data: f4_params type onf4_event_parameters_type.
error is :
Field "F4_PARAMS-C_FIELDNAME" is unknown. It is neither in one of the
specified tables nor defined by a "DATA" statement . . . . . . . . . .
thanks in advanceFUNCTION-POOL ZVAR MESSAGE-ID DB.
TABLES:
TADIR, " Entwicklungsklasse
TRDIR, " Reportcatalog
LDBD, " logical databases
VARID, " variant properties
RSVAVA, " Variable data in
" variants( sy-datum)
RSVAR, " new RALDB structure
RSVARDESC, " Report, Variante, Dynnr
VARIT, " variants texts
VARIS, " screennr per variant
DD23T, "
DFIES, "DD-Schnittstelle, get_field
TPARAT, "Texte zu Memory-Ids
TVARUVN, "#EC NEEDED
SSCRFIELDS,
t000.
DATA CHOOSE like sy-ucomm value 'PICK'.
DATA G_STATUS like sy-pfkey.
*Includes für Icons
INCLUDE .
Include für Symbole
INCLUDE .
*Equates für SSCR
INCLUDE RSDBCOM2.
*Typen für dynamische Selektionen, verwendet bei RS_REFRESH_...DYNAMICAL
TYPE-POOLS: RSDS, SYLDB, sydb0.
data: GS_TOOLBAR TYPE STB_BUTTON.
include lsvarcls.
Key um unnoetige Datenbankzugriffe zu vermeiden
DATA: BEGIN OF CHECK_KEY,
REPORT LIKE RSVAR-REPORT,
VARIANT LIKE RSVAR-VARIANT.
DATA: END OF CHECK_KEY.
key für get_description
*DATA: old_key LIKE check_key.
CATALOG OF VARIANTS, OLD STRUCTURE. WILL BE DELETED BY FIRST
CALL OF VARIANTS OUT OF FUNCTIONPOOL SVAR.
INFORMATION WILL BE TRANSFERED TO VARID AND VARIT.
DATA: VARCAT LIKE RSVARC OCCURS 20 WITH HEADER LINE.
TEXT (=> VARIT)
DATA: VARCATT LIKE RVART OCCURS 20 WITH HEADER LINE.
SAVE INFORMATION ABOUT VARIANTS
DATA: BEGIN OF SAVEINFO OCCURS 20,
NAME LIKE RVARI-NAME,
NUMB LIKE RVARI-NUMB,
PROTECTED LIKE RVARI-PROTECTED,
FIELDTEXT LIKE RSVAR-FIELDTEXT,
KIND LIKE RVARI-KIND,
TYPE LIKE RVARI-TYPE,
VTYPE LIKE RVARI-VTYPE,
VNAME LIKE RVARI-VNAME,
appendage I= Matchcode, C=Checkbox etc
APPENDAGE LIKE RSVAR-INVISIBLE,
VARIS(1), " TVARV, FUBAU
N= Ausgeblendet von Report,X ausgeblendet in Variante
INVISIBLE,
USER,
MEMORYID LIKE RSSCR-SPAGPA,
nur auf einem Bild vorhanden
GLOBAL,
NO_IMPORT,
SPAGPA,
NOINTERVALS,
OBLIGATORY LIKE RSVAR-OBLIGATORY,
RADIO,
END OF SAVEINFO.
DATA: BEGIN OF SAVEINFO_DYN OCCURS 10,
TABLENAME LIKE RSDSTABS-PRIM_TAB,
FIELDNAME LIKE RSDSTABS-PRIM_FNAME,
FIELDTEXT LIKE RSVAR-FIELDTEXT,
TYPE LIKE RVARI-TYPE,
VTYPE LIKE RVARI-VTYPE,
VNAME LIKE RVARI-VNAME,
VARIS(1),
PROTECTED LIKE RVARI-PROTECTED,
GLOBAL(1).
DATA: END OF SAVEINFO_DYN.
data: saveinfo_sav like saveinfo occurs 0 with header line.
data: saveinfo_dyn_sav like saveinfo_dyn occurs 0 with header line.
key for import of variants from VARI
DATA: BEGIN OF $RKEY,
REPORT LIKE RSVAR-REPORT,
VARIANT LIKE RSVAR-VARIANT,
END OF $RKEY.
vari
DATA: L_VARI LIKE RVARI OCCURS 20 WITH HEADER LINE.
%_SSCR
DATA SELCTAB LIKE RSSCR OCCURS 20 WITH HEADER LINE.
DATA GLOB_SUBMODE(2).
DATA LOC_SUBMODE(2).
screenfields
DATA: XCODE(4).
DATA: FCODE(4) TYPE C,
FUNC(4) TYPE C.
DATA: BEGIN OF INFO OCCURS 20,
FLAG,
OLENGTH TYPE X,
LINE LIKE RSVAR-INFOLINE,
END OF INFO.
DATA: VALUTAB LIKE RSPARAMSL OCCURS 40 WITH HEADER LINE.
Zur allgemeinen Verwendung
FIELD-SYMBOLS: .
DATA ILLEGAL_CHAR. " Wrong sign in variant
copy
DATA: VARIANT2 LIKE RSVAR-VARIANT,
VARIANT1 LIKE RSVAR-VARIANT.
*list of parameters and select-options, screenobjects
DATA: L_SELOP LIKE VANZ OCCURS 20 WITH HEADER LINE.
DATA: L_SELOP_NONV LIKE VANZ OCCURS 20 WITH HEADER LINE."nonv = non visi
DATA: L_PARAMS LIKE VANZ OCCURS 20 WITH HEADER LINE.
DATA: L_PARAMS_NONV LIKE VANZ OCCURS 20 WITH HEADER LINE.
DATA: SCREENOBJECTS LIKE VANZ OCCURS 20 WITH HEADER LINE.
list of all variants concerning one report
DATA: BEGIN OF VARI_LIST OCCURS 40,
MARKFIELD LIKE RSVAR-MARKFIELD,
VARIANT LIKE RSVAR-VARIANT,
TEXT LIKE RVART-VTEXT,
ENAME LIKE RSVARC-ENAME,
AENAME LIKE RSVARC-AENAME,
PROTECTED LIKE RSVARC-PROTECTED,
ENVIRONMT LIKE RSVARC-ENVIRONMT,
XFLAG1 LIKE VARID-XFLAG1.
DATA: END OF VARI_LIST.
*Variablen für das Blättern auf den Dynpros 1303 und 306.
DATA: VARI_LIST_SCROLL LIKE SY-STEPL VALUE '1'.
DATA: SAVE_OKCODE(4).
table for Dynpro 306 (delete variants)
DATA: BEGIN OF H_VARILIST OCCURS 30,
MARKFIELD LIKE RSVAR-MARKFIELD,
FLAG1 LIKE RSVAR-FLAG1,
FLAG2 LIKE RSVAR-FLAG2,
FLAG3 LIKE RSVAR-FLAG3,
VARIANT LIKE RSVAR-VARIANT.
DATA: END OF H_VARILIST.
CONSTANTS: C_PDLIST_WIDTH TYPE I VALUE '24',
C_VARILIST TYPE I VALUE '10'.
DATA: CATTOP LIKE SY-TABIX VALUE '3'. "lines top-of-page in CATALOG.
*data: listtop like sy-tabix value '3'. "lines top-of-page in Delete
"vari
DATA: PRINT_ALL_VAR. "alle Varianten drucken
DATA: PRINT_CAT_VAR. "Katalog drucken
Systemumgebung
DATA ENVIRONMENT. " S: SAP, C: Customer
Dynpro 320
DATA : TEXT0(59).
*Tables and fields for fitting variants
*table of variants which must be fitted
DATA: BEGIN OF FIT_VAR OCCURS 50,
VARIANT LIKE RSVAR-VARIANT,
FLAG(1). " flag = 'X' => Variante can't be
DATA: END OF FIT_VAR. "fitted.
DATA: BEGIN OF SINGLE_OPTIONS OCCURS 8,
OPTION(2),
TEXT(18).
DATA: END OF SINGLE_OPTIONS.
variants which contain variables
internal table, per line select-options and parameters which
use variables
DATA: BEGIN OF VARIVAR OCCURS 20,
SELNAME LIKE RSSCR-NAME,
SELTEXT LIKE RSVAR-FIELDTEXT,
KIND LIKE RVARI-KIND,
TYPE LIKE RVARI-TYPE,
VTYPE LIKE RSVAR-VTYPE,
VTEXT LIKE RSVAVA-VTEXT,
FB,
TVARV,
VNAME LIKE RSVAR-VNAME,
OPTION LIKE RSVAR-OPTION,
SIGN(1),
INFO_TABIX LIKE SY-TABIX,
DATES_TABIX LIKE SY-TABIX,
USER,
MEMORYID LIKE TPARA-PARAMID,
END OF VARIVAR.
DATA: BEGIN OF VARIVAR_DYN OCCURS 20,
TABLENAME LIKE RSDSTABS-PRIM_TAB,
FIELDNAME LIKE RSDSTABS-PRIM_FNAME,
KIND LIKE RVARI-KIND,
TYPE LIKE RVARI-TYPE,
VTYPE LIKE RSVAR-VTYPE,
VTEXT LIKE RSVAVA-VTEXT,
FB,
TVARV,
VNAME LIKE RSVAR-VNAME,
OPTION LIKE RSVAR-OPTION,
SIGN(1),
INFO_TABIX LIKE SY-TABIX,
DATES_TABIX LIKE SY-TABIX,
END OF VARIVAR_DYN.
DATA: VARIDATE_S LIKE RSVARIVAR OCCURS 20 WITH HEADER LINE.
Tabelle der möglichen Datumsberechnungen für Variablen in Varianten
Parameter
DATA: VARIDATE_P LIKE RSVARIVAR OCCURS 20 WITH HEADER LINE.
table of possible TVARV-variables (parameters)
DATA: TVARV_P LIKE TVARV OCCURS 20 WITH HEADER LINE.
table of possible TVARV-variables (select-options)
DATA: TVARV_S LIKE TVARV OCCURS 20 WITH HEADER LINE.
description of fields VARIDATES
DATA: FIDESC_DATES LIKE RSVBFIDESC OCCURS 5 WITH HEADER LINE.
description of fields TVARV
DATA: FIDESC_TVARV LIKE RSVBFIDESC OCCURS 5 WITH HEADER LINE.
description of fields OPTION
DATA: FIDESC_OPTION LIKE RSVBFIDESC OCCURS 5 WITH HEADER LINE.
description of fields OPTION
Feldtabelle für DYNP_VALUES_READ/UPDATE
DATA DYNPFIELDS LIKE DYNPREAD OCCURS 50 WITH HEADER LINE.
*desctab
DATA: DESCTAB LIKE RSBREPI OCCURS 20 WITH HEADER LINE.
*Hilfsfelder für Übergabeparameter
DATA:G_SUBRC LIKE SY-SUBRC,
L_RC LIKE SY-SUBRC.
*Hilfsfelder für Sperren
DATA: G_ENQSUB LIKE SY-SUBRC.
*Hilfsfeld für mandantenabhängiges Löschen von Varianten
DATA: DEL_ALL_VAR. "=X alle Mandanten, =' ' nur aktueller Mandant
select variant form list.
DATA: BEGIN OF VARIANT_TABLE OCCURS 30,
VARIANT LIKE RSVAR-VARIANT,
TEXT LIKE VARIT-VTEXT,
ENVIR LIKE VARID-ENVIRONMNT,
ENAME LIKE VARID-ENAME,
AENAME LIKE VARID-AENAME,
aedat like varid-aedat,
MLANGU LIKE VARID-MLANGU,
protected like varid-protected,
SELSCREEN(80). "<= 20 Bilder
DATA: END OF VARIANT_TABLE.
DATA: CALL_FLAG. "screen 305.
DATA: MODE_FLAG.
Print variants screen 308
DATA: PRINT_LIST LIKE RSREPVAR OCCURS 30 WITH HEADER LINE.
parameters in variables
DATA: BEGIN OF VARIVDAT OCCURS 5,
SELNAME LIKE RVARI-NAME.
INCLUDE STRUCTURE RSINTRANGE.
DATA: END OF VARIVDAT.
DATA: VARIVDAT_WORK LIKE VARIVDAT OCCURS 10 WITH HEADER LINE.
DATA:EXC_SUBC LIKE SY-SUBRC.
DATA: BEGIN OF LDB_VARIVAR OCCURS 10,
MARKFIELD LIKE RSVAR-MARKFIELD,
VTEXT LIKE RSVARIVAR-TEXT,
VTYPE LIKE RSVAR-VTYPE.
DATA: END OF LDB_VARIVAR.
*generate subroutinepool
DATA: BEGIN OF REPDAT_TAB OCCURS 40,
LINE(72),
END OF REPDAT_TAB.
*Tabelle zur Übergabe der alten Selektionswerte wenn sich
*Parameter oder Select-Options geändert haben.
*Wird von rs_variant_obsolet benötigt.
DATA: OLD_SELECTIONS LIKE RSPARAMSL OCCURS 20 WITH HEADER LINE.
*Flag für Aufruf aus QUERY und Report-Writer.
*Reportname auf Einstiegsbild nicht sichtbar (not_visible = x)
DATA: NOT_VISIBLE.
*Varianten für Query
DATA: QUERY_SYSVAR.
*Einstiegsbild mit anderem Titel aufrufen.
DATA: N_TITLE(40).
*F4 Hilfe RS_VARIANT_CATALOG mit anderem Titel aufrufen
DATA: G_TITLE like sy-title.
*Unterscheidung auf Listdynpro (hauptsächlich 307)
DATA: CALLER(4).
*sy-subrc Felder für Import und Export.
DATA: EXP_SUBRC LIKE SY-SUBRC,
IMP_SUBRC LIKE SY-SUBRC.
*Tabellen für dynamische Selektionen
DATA: DYNSEL_DESC LIKE RSDYNBREPI OCCURS 5 WITH HEADER LINE.
DATA: DYNS_FIELDS LIKE RSDSFIELDS OCCURS 5 WITH HEADER LINE.
DATA: DYNSEL_VALUE LIKE RSSELDYN OCCURS 5 WITH HEADER LINE.
*tabellen für matchcodeselection
DATA: BEGIN OF MC_DESC OCCURS 5,
NAME LIKE RSSCR-NAME,
ID LIKE MCPARAMS-MCID,
OBJECT(10),
S_STRING LIKE MCPARAMS-STRING,
D_TEXT LIKE DD23T-MCTEXT,
FROM LIKE VANZ-FROM,
TO LIKE VANZ-TO.
DATA: END OF MC_DESC.
*Tabelle für Umsetzung dynamische Selektionen
*flag = space -> umgesetzt
*flag = G -> Variante z.Z gesperrt
*flag = I -> Fehler beim Import
DATA: BEGIN OF CHANGED_VARIANTS OCCURS 10,
NAME LIKE RSVAR-VARIANT,
FLAG.
DATA: END OF CHANGED_VARIANTS.
*Feld für Ikonen auf Dynpros.
DATA: IKON(8).
*Konstanten für Ikonen
CONSTANTS: POP_WARNING(8) VALUE '@1A@',
POP_ERROR(8) VALUE '@1B@',
POP_INFO(8) VALUE '@19@',
POP_COPY(8) VALUE '@14@',
c_icon_enter_more(15) value 'ICON_ENTER_MORE',
C_ICON_DISPLAY_MORE(17) VALUE 'ICON_DISPLAY_MORE'.
DATA: MORE_ICON LIKE RSSELINT-OPTI_PUSH.
*Konstanten für Variante ändern, Werte oder Attribute
CONSTANTS: C_VAL VALUE 'V'.
Interne Tabelle für Transport
DATA: BEGIN OF REP_VAR OCCURS 10,
MARKFIELD.
INCLUDE STRUCTURE $RKEY.
DATA: END OF REP_VAR.
DATA: REP_VAR_CURSOR LIKE SY-INDEX VALUE 0.
Tabelle für RS_SELOPT_INFO -> BBS
DATA: DEFAULTS LIKE RSPARAMSL OCCURS 10 WITH HEADER LINE.
Tabelle für Werteanzeige Tvarv.
DATA: TVARVTAB LIKE TVARV OCCURS 10 WITH HEADER LINE.
SUBTY-Equates
INCLUDE RSDBCSTY.
Textfeld für Dynpro 317.
DATA: TEXT(4).
Konstante für Namenskonvention Systemvariante
CONSTANTS: SYS_VNAME(4) VALUE 'SAP&'.
CONSTANTS: CUS_VNAME(4) VALUE 'CUS&'.
Flag für Systemvariante gewünscht.
DATA: C_SYSVAR.
data vari_mandt like sy-mandt.
data sysvar_mandt like sy-mandt value '000'.
Check für Systemvariante
DATA: SYSVAR_FLAG.
Flag für Entwicklungsklasse , Werte Y oder N (aus get_devcalss)
DATA: NON_LOCAL VALUE 'Y'.
DATA: TABIX LIKE SY-TABIX.
*Strutur für freie Abgrenzungen.
DATA: VARIDYN LIKE RSVARIDYN OCCURS 10 WITH HEADER LINE.
DATA: VDATDYN LIKE RSVDATDYN OCCURS 10 WITH HEADER LINE.
DATA: VARIVDAT_DYN LIKE RSVDATDYN OCCURS 10 WITH HEADER LINE.
DATA: BEGIN OF VARIVDAT_DYN_WORK OCCURS 10,
TABLENAME LIKE RSVARIDYN-TABLENAME,
FIELDNAME LIKE RSVARIDYN-FIELDNAME.
INCLUDE STRUCTURE RSINTRANGE.
DATA: END OF VARIVDAT_DYN_WORK.
CONSTANTS: NO_IMPORT VALUE SPACE.
Teilt IM/EXPORT_VARIANT_STATIC mit, welche übergebeneb Objekte
im/exportiert werden sollen.
DATA: BEGIN OF IMEX,
VARI,
DYNS,
END OF IMEX.
Tabelle für Selektionsbildnummern
DATA: DYNNR LIKE RSDYNNR OCCURS 10 WITH HEADER LINE.
DATA: BEGIN OF CHOOSE_DYNNR OCCURS 10,
MARKFIELD.
INCLUDE STRUCTURE RSDYNNR.
DATA: END OF CHOOSE_DYNNR.
Sichern vom Selektionsbild, RSVAR_VARIANTT zurücksetzen
DATA: FLAG_FIRST. "#EC NEEDED
DATA: FLAG_PROTECTED. "#EC NEEDED
Daten für CALL SELECTION SCREEN Varianten
DATA: HIDE_FLAG.
DATA: LINE_NUMBER LIKE SY-TABIX.
DATA: VARISCREENS LIKE RSDYNNR OCCURS 10 WITH HEADER LINE.
data: variscreens_sav like rsdynnr occurs 10 with header line.
DATA: FLAG_1000.
DATA: DYNNR_TFILL LIKE SY-TFILL.
DATA: VARISCREENS_TFILL LIKE SY-TFILL.
DATA: DMORE_ICON(40).
DATA: BEGIN OF GLOBAL_OBJECTS OCCURS 10,
NAME LIKE RSSCR-NAME,
END OF GLOBAL_OBJECTS.
DATA: BEGIN OF DYN_TAB OCCURS 10,
DBFIELD LIKE RSSCR-DBFIELD,
END OF DYN_TAB.
CONSTANTS: C_P_COLUMN TYPE I VALUE 38,
C_I_COLUMN TYPE I VALUE 41,
C_N_COLUMN TYPE I VALUE 44,
C_S_COLUMN TYPE I VALUE 47,
C_W_COLUMN TYPE I VALUE 50,
C_M_COLUMN TYPE I VALUE 53,
C_O_COLUMN TYPE I VALUE 56,
MAX_WIDTH_ATTR TYPE I VALUE 77.
CONSTANTS: MAX_WIDTH_SELVAR TYPE I VALUE 57.
DATA: FLAG_NOIMPORT.
DATA: CURR_STATUS(4).
DATA: SCREEN_TITLES LIKE RSSCRITLE OCCURS 10 WITH HEADER LINE.
RANGES V_RANGE FOR VARID-VARIANT OCCURS 10.
DATA: FLAG_ALL_SCREENS.
CONSTANTS: C_LOW TYPE I VALUE 34,
C_HIGH TYPE I VALUE 58,
C_TO TYPE I VALUE 54,
C_OUTPUT_LENGTH TYPE I VALUE 26,
C_DISPLAY_LENGTH TYPE I VALUE 87,
C_DISPLAY_LENGTH_ATTR TYPE I VALUE 104,
C_DISPLAY_LENGTH_CAT TYPE I VALUE 118,
C_NO VALUE '0',
C_DYNNR LIKE SCREEN-NAME VALUE 'RSVAR-DYNNR',
C_ICON_MORE LIKE SCREEN-NAME VALUE 'DMORE_ICON',
C_SCREEN_1000 LIKE SY-DYNNR VALUE '1000'.
DATA: BELONGING_DYNNR LIKE RSDYNNR OCCURS 10 WITH HEADER LINE.
DATA: PREFIX(20).
DATA: D_320_TEXT(35).
DATA: OLD_VARI LIKE RSVAR-VARIANT.
DATA: L_SUBMODE LIKE GLOB_SUBMODE.
DATA: ICON_1(40), ICON_2(40), ICON_3(40).
DATA: FLAG_ICON_1, FLAG_ICON_2, FLAG_ICON_3.
DATA: FLAG_CALLED_FROM_SELSCREEN.
DATA: VARIVAR_TEXT LIKE RSVAVA-VTEXT.
DATA: VARIVAR_KIND LIKE RSSCR-KIND.
DATA: LIST_LINE LIKE SY-LILLI.
DATA: MOD_LINE LIKE SY-LILLI.
DATA: G_SP TYPE SYLDB_SP.
DATA: G_RANGE TYPE RSDS_RANGE,
G_FRANGE TYPE RSDS_FRANGE,
G_RSDSSELOPT LIKE RSDSSELOPT.
DATA: G_ILL_CHAR.
DATA: FLAG_CHANGE_VARIANT.
DATA: EXIT_FLAG.
DATA: COMP_NODI_NAME LIKE RSSCR-NAME.
DATA: EXCLUDE LIKE RSEXFCODE OCCURS 0 WITH HEADER LINE.
hidefelder für Attributebild.
DATA: HIDE(10).
Feldbeschreibung aufgeklappt oder zugeklappt
DATA: STATE(4).
DATA: NO_DISPLAY_VISIBLE TYPE BOOLEAN VALUE 'F'.
DATA: READ_LINE LIKE SY-INDEX.
CONSTANTS: C_COLLAPSE(4) VALUE 'COLL',
C_EXPAND(4) VALUE 'EXPA',
C_TRUE VALUE 'T',
C_FALSE VALUE 'F'.
CONSTANTS: CAT_LINE_SIZE TYPE I VALUE '127'.
DATA: G_EXPOREP TYPE SY-REPID.
DATA: SUBSCREENPROG LIKE SY-REPID,
SUBSCREENDYNNR LIKE SY-DYNNR.
data: g_subc like trdir-subc.
data: status_for_subscreens.
Data for subscreen processing
data: begin of g_subscreen,
ucomm type syucomm,
submode(2),
total type i,
current type i,
exclude type rsexfcode occurs 0,
rkey type rsvarkey,
variscreens type rsdynnr occurs 0,
sscr type rsscr occurs 0,
end of g_subscreen.
INCLUDE SVARSELO.
Daten für ALV-GRID
data:
GT_TOOLBAR_EXCLUDING TYPE UI_FUNCTIONS,
GRID1 TYPE REF TO CL_GUI_ALV_GRID,
GRID2 TYPE REF TO CL_GUI_ALV_GRID,
alv_fieldcat TYPE LVC_T_FCAT WITH HEADER LINE,
EVENT_RECEIVER1 TYPE REF TO CL_EVENT_RECEIVEr1,
selected value 'X',
alv_layout TYPE LVC_S_LAYO,
alv_STABLE type LVC_S_STBL,
ROW_TABLE TYPE LVC_T_ROW WITH HEADER LINE,
alv_container_1 type REF TO CL_GUI_CUSTOM_CONTAINER,
alv_container_2 type REF TO CL_GUI_CUSTOM_CONTAINER.
constants: c_search value 'S'.
Maybe you are looking for
-
Windows 8 upgrade problems with CS5
I upgraded to windows 8 and no I can't view images in CS5. The photos load (I see the image name and the image thumbnail in the layers pallet). but there is no picture to edit. It is like it is invisible. I have uninstalled and re-installed twice
-
Year to Date reports using Prompts
Hi. I'm trying to build a report that will show results of sales compared to Annual targets. All those fields are fields directly at the opportunity level (amount and targets). I also need to put a prompt to select dates from and to, for the Opportun
-
Upgrade from 4.7 to ECC 6
Hi Friends, My client wants to upgrade their system from 4.7ee to ECC6.00, they are in service sector. Can somebody tell me, what is the role of a FI/CO consultant during this upgradition. Before starting of upgradition what kind of information to b
-
Trigger while importing from .csv file
hey i am importing data from .csv file into a table called temp. .csv file is having column sales. the data in that also contains some empty filed or N/A or - sales coulmn in my table is NUMBER. so while importing some column are not able to import.
-
Can you copy cassette tapes?
Is it possible to copy music from cassette tapes onto an iBook G4? If so, how?