String function in oracle plz help
my input parameter is p1:=%01%01%01
p2:= 5
and my out put should like as below
(%01%01%01nn)
Or create function:
create function url_encoded_rpad( p_str in varchar2
,p_count in integer
,p_char in varchar2)
return varchar2 is
begin
return rpad( p_str
,length(p_str)+p_count-length(regexp_replace(p_str,'%([0-9a-fA-F]{2})','X'))
,p_char);
end;Test:
with t as (
select '%01%01%01' a from dual union all
select '%01a%01' a from dual union all
select '%D1%D1%01' a from dual union all
select 'abc' a from dual union all
select '%01%02%03%04' a from dual union all
select 'a%01%01%01' a from dual
select a
,url_encoded_rpad(a,5,'n')
from tRegards,
Malakshinov Sayan
Similar Messages
-
Split string function in oracle ...
Hello,
Little question, is there any split string function available in Oracle.
SQL> select more_info
2 from dba_advisor_findings;
MORE_INFO
Allocated Space:4390912: Used Space:4237403: Reclaimable Space :153509:
select more_info as Allocated_Space,
more_info as Used_Space,
more_info as Reclaimable_Space
from dba_advisor_findings
Allocated_Space Used_Space Reclaimable_Space
4390912 4237403 153509
Thanks,
Manish GuptaI explored more on SUBSTR and INSTR string functions ... and below is the solution
select substr(more_info,instr(more_info,':',1,1)+1,instr(more_info,':',1,2)-instr(more_info,':',1,1)-1) as "Allocated_Space",
substr(more_info,instr(more_info,':',1,3)+1,instr(more_info,':',1,4)-instr(more_info,':',1,3)-1) as "Used_Space",
substr(more_info,instr(more_info,':',1,5)+1,instr(more_info,':',1,6)-instr(more_info,':',1,5)-1) as "Reclaimable_Space"
from dba_advisor_findings;
Allocated_Space
Used_Space
Reclaimable_Space
4390912
4237403
153509
Thanks... -
What are the different types of tables in oracle --plz help
I want to know the different types of tables in orcle...Please help me
There are seven types of tables in Oracle.
1.Heap organized tables
2.Index organized tables
3.Index clustered tables
4.Hash clustered tables
5.Nested tables
6.Global temporary tables
7.Object tables
Source:http://www.adp-gmbh.ch/ora/concepts/tables.html
But if you are asking table types in the uses senses then they are n types :
1.Stage tables
2.Operational tables
3.Functional tables
4.Disposition tables
5.Archive tables
6.Other tables
Source:http://www.databasejournal.com/features/oracle/article.php/3616476/Types-of-Tables-in-Oracle.htm
And yes of course, the complete detail can be found in documentation.
HTH
Girish Sharma -
Plot function and Interpolate Plz Help!!!!
Im trying to obtain a plot from the following function ( see attached file) a I-V curve and then from the plot i wanna determine values for "I" when values of V are specified. I wanna do this without using cursers but programmatically.(possibly using interpolate functions) .. I hope someone can help me..thanks a lot
Attachments:
eq.JPG 10 KBlil_zu wrote:
...is it possible to plot this function without solving?
No! You cannot plot a function unless you can solve it (either analytically or numerically).
Do you have an image of how it is supposed to look like?
What are typical ranges for I and V?
Do you have a link to a website that explains your application?
LabVIEW Champion . Do more with less code and in less time . -
String function in Oracle 9i to find part of string having two positions
Hi,
We need to extract the part of string having start and end position.
Like
Suppose the string is "TYPE ref_cur_type IS REF CURSOR" and need to extract name of the ref cursor i.e ref_cur_type.The length of the output is not fixed. But not able to extract the exact string.
Thanks,What is the criteria for part of string? Do you give start character and end character position like 3,9 etc? Or its just that the word that comes between two spaces?
Cheers
Sarma. -
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'. -
Plz help to to transfer excel or acess data to Oracle 10g database
Plz help me to transfer excel or acess data to Oracle 10g database.
I have excel and acess sheet data here i wanna transfer it to oracle database. Plz guide me how to this
Message was edited by:
user582212There are several ways, such as ODBC or migration workbench, which is also mentioned in the current article on sqldeveloper on OTN, here's the link. If you use this forum's search function, you should find several threads regarding this topic.
C.
Message was edited by:
cd -
Function in oracle to find number of occurances of a character in a string
hi,
is there any function in oracle to find the number of ocurrances of a character in a string ?
or is there any simple way of doing the same, rather than writting many lines of code as my program is already very complex.
MariaHi Maria,
I don't know of such a function in Oracle, but maybe you could use this:
length(search_string) - length(replace(search_string, character_to_be_found))
For example: select length('Hello') - length ( replace('Hello', 'l')) from dual;
Hope this is what you're looking for
Danny -
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
-
[OT] User-Defined string Functions Oracle PL/SQL
Ladies and Gentlemen,
I am pleased to offer the following string functions Oracle PL/SQL:
GETALLWORDS(): Inserts the words from a string into the table.
GETWORDCOUNT(): Counts the words in a string.
GETWORDNUM(): Returns a specified word from a string.
OCCURS(): Returns the number of times a character expression occurs within another character expression (including overlaps).
OCCURS2(): Returns the number of times a character expression occurs within another character expression (excluding overlaps).
PADC(): Returns a string from an expression, padded with spaces or characters to a specified length on the both sides.
STRTRAN(): Searches a character expression for occurrences of a second character expression, and then replaces each occurrence with a third character expression. Unlike a built-in function Replace, STRTRAN has three additional parameters.
STRFILTER(): Removes all characters from a string except those specified.
RAT(): Returns the numeric position of the last (rightmost) occurrence of a character string within another character string (including overlaps). The search performed by RAT() is case-sensitive. RAT similar to the PL/SQL function INSTR.
ATC(): Returns the beginning numeric position of the first occurrence of a character expression within another character expression, counting from the leftmost character (including overlaps). The search performed by ATC() is case-insensitive. ATC similar to the PL/SQL function INSTR.
RATC(): Returns the numeric position of the last (rightmost) occurrence of a character string within another character string (including overlaps). The search performed by RATC() is case-insensitive. RATC similar to the PL/SQL function INSTR.
AT2(): Returns the beginning numeric position of the first occurrence of a character expression within another character expression, counting from the leftmost character (excluding overlaps). The search performed by AT2() is case-sensitive. AT2 similar to the PL/SQL function INSTR.
REPLICATE(): Returns a character string that contains a specified character expression repeated a specified number of times.
ROMANTOARAB(): Returns the number equivalent of a specified character Roman numeral expression (from I to MMMCMXCIX).
Plus, there are versions for MS SQL SERVER, SYBASE ASA, DB2, MS SQL SERVER 2005 SQLCLR.
More than 8000 people have already downloaded my functions. I hope you will find them useful as well.
For more information about string UDFs Oracle PL/SQL please visit the
http://www.universalthread.com/wconnect/wc.dll?LevelExtreme~2,54,33,29233
Please, download the file
http://www.universalthread.com/wconnect/wc.dll?LevelExtreme~2,2,29233
With the best regards.>
I am using the Oracle Data Provider in vs2012. I am having trouble calling a function that returns an object type defined.
>
Returning a collection like that is a bad idea to begin with. That isn't scaleable and wastes memory.
Either return a REF CURSOR and let the client FETCH the rows or use a PIPELINED function and let the client query it like they would a table.
Here is an example similar to yours that uses a PIPELINED function.
create or replace
package pkg2
as
CURSOR emp_cur is (SELECT empno, ename, job, mgr, deptno FROM emp);
type pkg_emp_table_type is table of emp_cur%rowtype;
function get_emp(
p_deptno number
return pkg_emp_table_type
pipelined;
end;
create or replace
package body pkg2
as
function get_emp(
p_deptno number
return pkg_emp_table_type
pipelined
is
begin
for v_emp_rec in (SELECT empno, ename, job, mgr, deptno
FROM emp where deptno = p_deptno) loop
pipe row(v_emp_rec);
end loop;
end;
end;
select * from table(pkg2.get_emp(20));
EMPNO ENAME JOB MGR DEPTNO
7369 DALLAS CLERK2 7902 20
7566 DALLAS MANAGER 7839 20
7788 DALLAS ANALYST 7566 20
7876 DALLAS CLERK 7788 20
7902 DALLAS ANALYST 7566 20 -
AddChild function in another Class. plz help!
Hi,
I am trying to pull a funtion that adds a child to a container. This function gets pulled in another class. All the traces do work by the child doesn't show.
pulling the function from StickerBook_Class
public static var stickBook_Class:StickerBook_Class = new StickerBook_Class ;
public var stickBook:stickerBook = new stickerBook ;
stickBook_Class.addSticker(stickBook);
function in StickerBook_Class
public function addSticker(bg:MovieClip):void
trace("sticker in album");
stickBook.addChild(stick1)
stick1.x = 673
stick1.y = 80
any ideas what im doing wrong? the trace deos show by no image is visible.
plz help me
Thx
pavelHi Pavel,
isn't your method supposed to be similar to below one?
public function addSticker(sticker:MovieClip):void
trace("sticker in album");
stickBook.addChild(sticker);
sticker.x = 673;
sticker.y = 80;
it looks like you want to pass reference to movie clip in your method definition - but within method body you're using variables defined outside of method (so that is hard to other people to see what could be wrong with your code).
If you are comfortable with your IDE debugging tool just place break-point in e.g. stickBook.addChild(stick) and see what is value of *stick* object during code execution,
regards,
Peter -
Hi all,
How to create oracle event alert when particular column is update. plz help me.... Acutually i need email alert when ever list price for an item column in pricing table get updated+... plz. Its urgent.In that thread,... gareth.roberts say to modify the trigger definition to the column. Actually i am new to oracle >alert. How do i get that trigger definition and from where i have to get. and how to modify the trigger definition . >
plz...Need not to say like that, I am just trying to help you. I believe if you are new try to read and understand the documents and process. Please start with Oracle Alert User's Guide to create a alert and send notification.
I do not have any ready made scenario, I can refer you the documents to do the same,
[How to Create a Basic Trigger|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=119667.1]
[RDBPROD: How to Create an Update Trigger Which Depends on Any Other Field|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=68037.1]
To view the Trigger Information you can use TOAD and modify the same as per your need.
Thanks,
Anchorage :) -
plz tell me how i can get oracle project i.e sample project or demo projects
so that i can have an idea...............
plz help....................
thanksThis is your 4th or 5th post in which you are using subject like this and I guss you might have been told to write in a decent manner. Havnt you learned anything about being bit decent ?
Why you think that these hell lot of question marks are going to make it more important than other posts. If you want to ask something, just be polite and give some good subject to the post.
BTW why you are looking for ready made demo projects ? Want for some assignment ? If you are new, think, make a project and learn. There is no tablet that can help you in learning Oracle.
Sidhu
http://amardeepsidhu.blogspot.com -
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
thanksSELECT to_char(sysdate, 'DD')
FROM dual; -
Plz help ...Error on data insert ORA-01722 :invalid number
Hi everybody
I have the strange situation
I tested my code on test database It works well
but when another user want insert new data on the same table on the working database Oracle give message ORA-01722 :invalid number
and then I look to table's structure
On the table my data type that i want insert and table type is same
Plz help ...sriram wrote:
Based on your Input I can give you
ORA-01722: invalid number
Cause: The attempted conversion of a character string to a number failed because the character string was not a valid numeric literal. Only numeric fields or character fields containing numeric data may be used in arithmetic functions or expressions. Only numeric fields may be added to or subtracted from dates.
Action: Check the character strings in the function or expression. Check that they contain only numbers, a sign, a decimal point, and the character "E" or "e" and retry the operationI checked input value and table column type are same Because of i can't understand this error message
Maybe you are looking for
-
Hi Apple people. I just wanna know that if u have something idea about "Office 2013" for mac. U know what i mean, the office 2013 that is not the subscription one. I dont wanna use the office 365 because its no sense at all. I want the whole software
-
Hi, Here is some basic info about hardware / software I am running Oracle on: Hardware: Sun-Fire-V490 OS: Solaris 10 Oracle: 10g (10.02.04 patch set applied) I have three Oracle instances (PRD, TEST, DEV). Each of these instances are completely indep
-
After applying KB2975719 Windows Explorer takes all available RAM until BSOD
OS Windows 8.1x64 Pro. After applying the latest cumulative update for Windows 8.1 I noticed APC_Index_Mismatch BSOD. I investigated further and found that Windows Explorer was using more and more of my RAM until there was insufficient to process sys
-
On my home PC, I operate with Windows XP and use Outlet Express for my email. Can my Outlook Express address list be imported to my IPhone4
-
Access tree nodes from context
Hi all, I have context with a parent node having a recursive node. if we populate data in this node i will get a tree structure. Now my question is how can I traverse to recursive node and display all informations to an excel. I know how to export