How to remove foreign key from table?
i want a query from which i will remove foreign key from the table. plz help me in it. the table is created as follows:
CREATE TABLE cw06_course
(coursecode NUMBER(4) CONSTRAINT coursecode_pk PRIMARY KEY,
department NUMBER(4) CONSTRAINT course_department_nn NOT NULL,
coursename VARCHAR2(25),
courseleasder NUMBER(4),
CONSTRAINT course_department_fk FOREIGN KEY (department) REFERENCES cw06_department(deptno));
parent keys not foundWell, while the constraint was not available (dropped), someone took the opportunity and inserted rows into your child table that do not have a corresponding value in your parent table.
Why was the constraint dropped in first place? why did you give someone the opportunity to insert constraint violating value into the table?
You must either:
1). remove the child rows not found in parent
2). create parent rows fr missing child rows.
3). enable novalidate the constraint so existing values can remain without parent but future rows must confirm.
Similar Messages
-
WebDynpro Java: how to remove blank element from Table and Dropdown.
Hi Folks
In a webdynpro application,
I created a table and witten the below code to populate the table
IPrivateDummyView.IFirst_TableElement First_Table_Element = null;
First_Table_Element = wdContext.nodeFirst_Table().createFirst_TableElement();
First_Table_Element.setF_Value("One");
wdContext.nodeFirst_Table().addElement(First_Table_Element);
First_Table_Element = wdContext.nodeFirst_Table().createFirst_TableElement();
First_Table_Element.setF_Value("2");
wdContext.nodeFirst_Table().addElement(First_Table_Element);
As per the code, i got 2 row in the table.
But , i have one Empty row on top of the table , how to get ride of this.
i find the same problem happening with dropdown too, where i used DDBI, i populated a the content as mention, but i initial 2 row as blank and then i have my own elements ,as per my code.>
> how to remove blank element from Table and Dropdown
>
Change selection property of related node to from 0..1 to 1..1 (mandatory)
Re: DropdownByIndex and empty line (Thread: DropdownByIndex and empty line )
Re: Can the empty selection be removed from element dropdownbykey(Thread: Can the empty selection be removed from element dropdownbykey )
Edited by: Anagha Jawalekar on Nov 18, 2008 10:28 PM -
How to remove default value from table definition?
Hi,
running 9.2
Following problem :
I need to remove default value from table.
Example
CREATE TABLE MY_TABLE(
NAME VARCHAR2(50) DEFAULT 'NAME',
AGE NUMBER DEFAULT 0
Now even when I use MODIFY like
ALTER TABLE MY_TABLE MODIFY (NAME VARCHAR2(10) );
The default is still there:
SELECT DATA_DEFAULT FROM USER_TAB_COLUMNS WHERE TABLE_NAME = 'MY_TABLE';
Is there any way?
ThanksThanks,
found the answer. It is not possible!!!!
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_3001.htm
Note:
If a column has a default value, then you can use the DEFAULT clause to change the default to NULL, but you cannot remove the default value completely. That is, if a column has ever had a default value assigned to it, then the DATA_DEFAULT column of the USER_TAB_COLUMNS data dictionary view will always display either a default value or NULL -
How to Remove Foreign Key Constraint
Hello Freinds,
I have created two sample tables ...
create table primaryTable(id int primary key,value int);
OK; 1 row affected
create table childTable(id1 int primary key,id int references primaryTable(id),value int);
OK; 1 row affected
ants_dsn_3.4> select * from childTable;
| ID1 | ID | VALUE |
| 1 | 1 | 1 |
| 2 | 2 | 1 |
| 3 | 3 | 1 |
OK; Returned 3 rows from 3 fields
ants_dsn_3.4> select * from primaryTable;
--------------------------+
| ID | VALUE |
--------------------------+
| 1 | 1 |
| 2 | 1 |
| 3 | 1 |
--------------------------+
I want to drop the Foreign key in the Child Table.
And when i do that i get the Following error.
ants_dsn_3.4> alter table childTable drop ID;
[ANTs Software][ANTs DATABASE ODBC driver][ants_dsn_3.4] Server returned error : ERROR (70007): Cannot drop the column 'ID' that has a constraint on it
Freinds Can you help to solve this problem as iam new to data base side.
Thanks in advance,
Faizan.The reason you are having a problem is that you are using a very bad technique for creating your constraints.
SQL> create table primaryTable(id int primary key,value int);
Table created.
SQL> create table childTable(id1 int primary key,id int references primaryTable(id),value int);
Table created.
SQL> select constraint_name, constraint_type
2 from user_constraints
3 where table_name = 'CHILDTABLE';
CONSTRAINT_NAME C
SYS_C0011508 P
SYS_C0011509 R
SQL> ALTER TABLE childtable DROP CONSTRAINT SYS_C0011509;
Table altered.
SQL> Create your constraints properly and you won't get system generated names.
CREATE TABLE primaryTable(id INTEGER, value INTEGER);
ALTER TABLE primarytable
ADD CONSTRAINT pk_primarytable
PRIMARY KEY (id)
USING INDEX;And columns named ID and VALUE are enough to make me refuse to hire someone for a job. Get a copy of Joe Celko's books and learn how to name columns. Also do not use reserved words for column names:
SELECT keyword
FROM gv$reserved_words;Now lets get back to your referential constraint:
CREATE TABLE childTable(id1 INTEGER, id INTEGER, value INTEGER);
ALTER TABLE childtable
ADD CONSTRAINT pk_childtable
PRIMARY KEY (id)
USING INDEX;
ALTER TABLE childtable
ADD CONSTRAINT fk_child_primary_id
FOREIGN KEY (id)
REFERENCING primarytable(id);BTW: I would fail a first quarter student who, on their midterm, wrote what you've written above. You should find yourself a good beginning book on database design. -
How to remove Heading 4 from Table Of Contents
HI,
how can i remove Heading 4 from the Table Of Contents in Word 2007?
I needed to create the Heading 4 (built in themes only go to level 3) by myself (it was very complicated) but finally managed to get it to work.
The problem is that when i view the properties of my theme it has the following attributes:
Font: Not Bold, Indent: Left: 1,9 cm, Hanging: 1,14 cm, Space Before: 6 pt, Style: Linked, Quick Style, Based on: Heading 3
The built in themes however have it different:
Indent: Left: 1,27 cm, Hanging: 0,89 cm, Level 3, Style: Linked, Quick Style, Based on: Heading 2, Following style: Indryk3
There is a parameter called "Level"which my theme does not have. When i create the Table Of Contents and set "Show levels" to 3 then it will display FOUR levels (three built-in and my Heading 4).
Please help. How to get the "Level" parameter to appear for my theme as well?Hi
Thanks for your answer. The only invisible character is the section break thing at the very top of the blank page. I can't figure out how to place it directly after the Table of contents. If I remove the section break, the Table of Contents merges with the following section, which is not what I want at all. -
How to remove paragraph breaks from table cells?
I need to remove paragraph breaks from selection of cells in my table and replace them with a space and a dot.
Tried this and it did not work:
=SUBSTITUTE(AH2,CHAR(10)," .")
I also tried to use find and replace, but it didn't work either.
Any ideas?Berbato wrote:
I need to remove paragraph breaks from selection of cells in my table and replace them with a space and a dot.
Tried this and it did not work:
=SUBSTITUTE(AH2,CHAR(10)," .")
Did you read the error message returned by the app ?
I also tried to use find and replace, but it didn't work either.
I'm sure that you didn't inserted the correct value in the "Find/Search" field but I can't guess what was the one which you inserted ? .
I selected the character to replace, Copy it then pasted it in the Find/Search field.
Yvan KOENIG (VALLAURIS, France) jeudi 27 janvier 2011 17:46:44 -
How to remove werid character from table
Hi all,
My db version as below:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
May i know anyone has experienced in removing weird characters (non-A-Z, 1-10,) from table? I would like do data cleansing that to remove all weird char/ funny char from rows.
Thanks a lot.
LygineHi ...
Is there any possible that data able to automatically converted into German e..g
Nürnberg = NÜrnberg.
There are large volume of french or german data as of below:
Vösendorf
Würenlingen
I still find no way that i can have bulk conversion for those weird data.
Is there anyone got idea about it?
Thanks,
Lygine -
How to remove multiple rows from table
Hi All,
in my application iam using two tables,
this is my code
int selection = wdContext.nodeA().getLeadSelection();
String num = wdContext.nodeA.geAAt(selection).getV_Num();
for(int b=0;b<wdContext.nodeVn_Context().size();b++)
if(wdContext.nodeVn_Context().getVn_ContextElementAt(b).getVa_num().equalsIgnoreCase
(num))
wdContext.nodeVn_Context().removeElement(wdContext.nodeVn_Context().getVn_ContextElementAt(b));
here Vn_Context is having 4 rows, i mean size of Vn_Context is 4. when i use this code to remove that 4 rows based on the condition, which i gave in if, its able to remove only one row, so how to remove those four rows, is this code correct or not, please help me.Hi sushma,
if you have 4 row then why should you give the condition for removing rrow..because when you gave condition the depends on your lead selection of getVa_num().so you will return perticullar row of getVa_num(). value of lad selection ..this would not match of other row value(getVa_num().so it will remove only that value of lead selection of getVa_num().
better you remove taht condition.
int selection = wdContext.nodeA().getLeadSelection();
String num = wdContext.nodeA.geAAt(selection).getV_Num();
for(int b=0;b<wdContext.nodeVn_Context().size();b++)
//if(wdContext.nodeVn_Context().getVn_ContextElementAt(b).getVa_num().equalsIgnoreCase
//(num))
wdContext.nodeVn_Context().removeElement(wdContext.nodeVn_Context().getVn_ContextElementAt(b));
no need to give the condition right now..
if you want to remove multiselection row,i mean selected row for multiple then you select the row as per your rows delete.
for(int b=0;b<wdContext.nodeVn_Context().size();b++)
if(lead==b || wdcontext.nodeVn_Context().isMultiselection(b){
wdContext.nodeVn_Context().removeElement(wdContext.nodeVn_Context().getVn_ContextElementAt(b));
this way you do solve your problem..
thanks
jjati -
How to remove the bookmark from the table of contents?
Hi everyone, I have a question:
How to remove the bookmark from the table of contents in Captivate 6?
Regards...Doug, your frustration is making you "bug" gun trigger happy. LOL
LOL, I suppose I have.
I believe the answer you are looking for is in the publishing preferences: under LMS advanced settings, look for the option: never send resume data.
[can someone please confirm this - I am not at a desktop now]
Anyhow, selecting this option will stop resume data - so the lesson will treat even returning learners as new. Hopefully, this will work for you.
This works! Thank you again!
*but* Why isn't Captivate asking the learner to make the choice of whether to start over or resume. It does this correctly if the lesson is published stand-alone.
Thanks again! -
Is it possible to create foreign key from composite key in other table.
SQL> desc PRODUCT_CONFIG_OPTION;
Name Null? Type
CONFIG_ITEM_ID NOT NULL VARCHAR2(20) --composite primary key
CONFIG_OPTION_ID NOT NULL VARCHAR2(20) --composite primary key
CONFIG_OPTION_NAME VARCHAR2(100)
DESCRIPTION VARCHAR2(255)
SEQUENCE_NUM NUMBER(18)
LAST_UPDATED_STAMP TIMESTAMP(6)
LAST_UPDATED_TX_STAMP TIMESTAMP(6)
CREATED_STAMP TIMESTAMP(6)
CREATED_TX_STAMP TIMESTAMP(6)
SQL> DESC PRODUCT_CONFIG_ITEM;
Name Null? Type
CONFIG_ITEM_ID NOT NULL VARCHAR2(20)
CONFIG_ITEM_TYPE_ID VARCHAR2(20)
CONFIG_ITEM_NAME VARCHAR2(100)
DESCRIPTION VARCHAR2(255)
LONG_DESCRIPTION CLOB
IMAGE_URL VARCHAR2(255)
LAST_UPDATED_STAMP TIMESTAMP(6)
LAST_UPDATED_TX_STAMP TIMESTAMP(6)
CREATED_STAMP TIMESTAMP(6)
CREATED_TX_STAMP TIMESTAMP(6)
SQL> desc product;
Name Null? Type
PRODUCT_ID NOT NULL VARCHAR2(20)
PRODUCT_TYPE_ID VARCHAR2(20)
PRIMARY_PRODUCT_CATEGORY_ID VARCHAR2(20)
MANUFACTURER_PARTY_ID VARCHAR2(20)
FACILITY_ID VARCHAR2(20)
INTRODUCTION_DATE TIMESTAMP(6)
SUPPORT_DISCONTINUATION_DATE TIMESTAMP(6)
SALES_DISCONTINUATION_DATE TIMESTAMP(6)
SALES_DISC_WHEN_NOT_AVAIL CHAR(1)
INTERNAL_NAME VARCHAR2(255)
BRAND_NAME VARCHAR2(100)
COMMENTS VARCHAR2(255)
=========
CREATE TABLE PROD_CONFIG_PROD_CONFIG_OPTION (
PRODUCT_ID VARCHAR2(20),
CONFIG_ITEM_ID VARCHAR2(20),
CONFIG_OPTION_ID VARCHAR2(20),
PAGE_NUM_TO NUMBER(18),
ALTERNATE_PAGE_NUM_TO1 NUMBER(18),
ALTERNATE_PAGE_NUM_TO2 NUMBER(18),
ALTERNATE_PAGE_NUM_TO3 NUMBER(18),
LAST_UPDATED_STAMP TIMESTAMP(6),
LAST_UPDATED_TX_STAMP TIMESTAMP(6),
CREATED_STAMP TIMESTAMP(6),
CREATED_TX_STAMP TIMESTAMP(6),
CONSTRAINT PK_PROD_CAT_CONFIG_MOD PRIMARY KEY (PRODUCT_ID),
CONSTRAINT FK_PRODUCT_ID FOREIGN KEY (PRODUCT_ID) REFERENCES PRODUCT(PRODUCT_ID),
CONSTRAINT FK_CONFIG_ITEM_ID FOREIGN KEY (CONFIG_ITEM_ID) REFERENCES PRODUCT_CONFIG_ITEM(CONFIG_ITEM_ID),
CONSTRAINT FK_CONFIG_OPTION_ID FOREIGN KEY (CONFIG_OPTION_ID) REFERENCES PRODUCT_CONFIG_OPTION(CONFIG_OPTION_ID) )
TABLESPACE DATA_SMALL
i try to create this table if i omit 3rd foreign key constraint then table successfully created.but including trd foreign key constraint it return error "ORA-02270: no matching unique or primary key for this column-list"
i checked everything is it possible to create foreign key from composite key in other table.And
CONSTRAINT FK_CONFIG_OPTION_ID FOREIGN KEY (CONFIG_ITEM_ID,CONFIG_OPTION_ID) REFERENCES PRODUCT_CONFIG_OPTION(CONFIG_ITEM_ID,CONFIG_OPTION_ID)
? -
How to remove duplicates records from output ?
how to remove duplicates records from output ? i used delete adjacent but duplicates records are coming again ..suggest me
hi shruthi,
thanks for ur answer ..but duplicates records coming again
here is my code >> plz check it out
*& Report ZCRM_TROUBLE_TICKET
REPORT zcrm_trouble_ticket.
TYPES : BEGIN OF ty_qmih,
qmnum TYPE qmnum,
equnr TYPE equnr,
iloan TYPE iloan,
ausvn TYPE ausvn,
ausbs TYPE ausbs,
auztv TYPE auztv,
auztb TYPE auztb,
iwerk TYPE iwerk,
END OF ty_qmih,
BEGIN OF ty_qmel,
qmnum TYPE qmnum,
qmtxt TYPE qmtxt,
indtx TYPE indltx,
priok TYPE priok,
strmn TYPE strmn,
strur TYPE strur,
ltrmn TYPE ltrmn,
ltrur TYPE ltrur,
objnr TYPE qmobjnr,
arbpl TYPE lgwid,
vkorg TYPE vkorg,
vtweg TYPE vtweg,
spart TYPE spart,
END OF ty_qmel,
BEGIN OF ty_ihpa,
parnr TYPE i_parnr,
parvw TYPE parvw,
objnr TYPE qmobjnr,
END OF ty_ihpa,
BEGIN OF ty_crhd,
arbpl TYPE arbpl,
objid TYPE cr_objid,
END OF ty_crhd,
BEGIN OF ty_crtx,
ktext TYPE cr_ktext,
objid TYPE cr_objid,
END OF ty_crtx,
BEGIN OF ty_qmfe,
fecod TYPE fecod,
fegrp TYPE fegrp,
qmnum TYPE qmnum,
END OF ty_qmfe,
BEGIN OF ty_qmur,
urcod TYPE urcod,
urgrp TYPE urgrp,
urtxt TYPE urstx,
qmnum TYPE qmnum,
END OF ty_qmur,
BEGIN OF ty_iloa,
tplnr TYPE tplnr,
iloan TYPE iloan,
END OF ty_iloa,
BEGIN OF ty_output,
qmnum TYPE qmnum,
equnr TYPE equnr,
iloan TYPE iloan,
ausvn TYPE ausvn,
ausbs TYPE ausbs,
auztv TYPE auztv,
auztb TYPE auztb,
iwerk TYPE iwerk,
qmtxt TYPE qmtxt,
indtx TYPE indltx,
priok TYPE priok,
strmn TYPE strmn,
strur TYPE strur,
ltrmn TYPE ltrmn,
ltrur TYPE ltrur,
objnr TYPE qmobjnr,
arbpl TYPE lgwid,
vkorg TYPE vkorg,
vtweg TYPE vtweg,
spart TYPE spart,
parnr TYPE i_parnr,
parvw TYPE parvw,
arbpl TYPE arbpl,
objid TYPE cr_objid,
arbpl1 TYPE arbpl,
ktext TYPE cr_ktext,
fecod TYPE fecod,
fegrp TYPE fegrp,
urcod TYPE urcod,
urgrp TYPE urgrp,
urtxt TYPE urstx,
tplnr TYPE tplnr,
END OF ty_output.
DATA : it_qmih TYPE STANDARD TABLE OF ty_qmih,
it_qmel TYPE STANDARD TABLE OF ty_qmel,
it_ihpa TYPE STANDARD TABLE OF ty_ihpa,
it_crhd TYPE STANDARD TABLE OF ty_crhd,
it_crtx TYPE STANDARD TABLE OF ty_crtx,
it_qmfe TYPE STANDARD TABLE OF ty_qmfe,
it_qmur TYPE STANDARD TABLE OF ty_qmur,
it_iloa TYPE STANDARD TABLE OF ty_iloa,
it_output TYPE STANDARD TABLE OF ty_output,
wa_qmih TYPE ty_qmih,
wa_qmel TYPE ty_qmel,
wa_ihpa TYPE ty_ihpa,
wa_crhd TYPE ty_crhd,
wa_crtx TYPE ty_crtx,
wa_qmfe TYPE ty_qmfe,
wa_qmur TYPE ty_qmur,
wa_iloa TYPE ty_iloa,
wa_output TYPE ty_output.
INITIALIZATION.
REFRESH : it_qmih,
it_qmel,
it_ihpa,
it_crhd,
it_crtx,
it_qmfe,
it_qmur,
it_iloa,
it_output.
CLEAR: wa_qmih,
wa_qmel,
wa_ihpa,
wa_crhd,
wa_crtx,
wa_qmfe,
wa_qmur,
wa_iloa,
wa_output.
start-of-selection.
SELECT qmnum
equnr
iloan
ausvn
ausbs
auztv
auztb
iwerk
FROM qmih
INTO TABLE it_qmih.
SORT it_qmih BY qmnum .
DELETE ADJACENT DUPLICATES FROM it_qmih COMPARING qmnum equnr iloan ausvn ausbs auztv auztb iwerk.
SELECT qmnum
qmtxt
indtx
priok
strmn
strur
ltrmn
ltrur
objnr
arbpl
vkorg
vtweg
spart
FROM qmel
INTO TABLE it_qmel
FOR ALL ENTRIES IN it_qmih
WHERE qmnum = it_qmih-qmnum.
SORT it_qmel BY qmnum.
DELETE ADJACENT DUPLICATES FROM it_qmel COMPARING qmnum
qmtxt
indtx
strmn
strur
ltrmn
ltrur
objnr
arbpl
vkorg
vtweg
spart.
IF it_qmel IS NOT INITIAL.
SELECT parnr
parvw
objnr
FROM ihpa
INTO TABLE it_ihpa
FOR ALL ENTRIES IN it_qmel
WHERE objnr = it_qmel-objnr.
ENDIF.
DELETE ADJACENT DUPLICATES FROM it_ihpa COMPARING parnr
parvw
objnr.
IF it_qmel IS NOT INITIAL.
SELECT arbpl
objid
FROM crhd
INTO TABLE it_crhd
FOR ALL ENTRIES IN it_qmel
WHERE objid = it_qmel-arbpl.
ENDIF.
DELETE ADJACENT DUPLICATES FROM it_crhd COMPARING arbpl
objid.
IF it_qmel IS NOT INITIAL.
SELECT ktext
objid
FROM crtx
INTO TABLE it_crtx
FOR ALL ENTRIES IN it_crhd
WHERE objid = it_crhd-objid.
ENDIF.
DELETE ADJACENT DUPLICATES FROM it_crtx COMPARING ktext
objid.
IF it_qmih IS NOT INITIAL.
SELECT fecod
fegrp
qmnum
FROM qmfe
INTO TABLE it_qmfe
FOR ALL ENTRIES IN it_qmih
WHERE qmnum = it_qmih-qmnum.
ENDIF.
SORT it_qmfe BY qmnum.
DELETE ADJACENT DUPLICATES FROM it_qmfe COMPARING fecod
fegrp.
IF it_qmih IS NOT INITIAL.
SELECT urcod
urgrp
urtxt
qmnum
FROM qmur
INTO TABLE it_qmur
FOR ALL ENTRIES IN it_qmih
WHERE qmnum = it_qmih-qmnum.
ENDIF.
SORT it_qmur BY qmnum.
DELETE ADJACENT DUPLICATES FROM it_qmur COMPARING urcod
urgrp
urtxt.
IF it_qmih IS NOT INITIAL.
SELECT tplnr
iloan
FROM iloa
INTO TABLE it_iloa
FOR ALL ENTRIES IN it_qmih
WHERE iloan = it_qmih-iloan.
ENDIF.
DELETE ADJACENT DUPLICATES FROM it_iloa COMPARING tplnr
iloan.
LOOP AT it_qmih INTO wa_qmih.
wa_output-qmnum = wa_qmih-qmnum.
wa_output-equnr = wa_qmih-equnr.
wa_output-iloan = wa_qmih-iloan.
wa_output-ausvn = wa_qmih-ausvn.
wa_output-ausbs = wa_qmih-ausbs.
wa_output-auztv = wa_qmih-auztv.
wa_output-auztb = wa_qmih-auztb.
wa_output-iwerk = wa_qmih-iwerk.
APPEND wa_output TO it_output.
CLEAR wa_output.
READ TABLE it_qmel INTO wa_qmel WITH KEY qmnum = wa_qmih-qmnum.
wa_output-qmtxt = wa_qmel-qmtxt.
wa_output-indtx = wa_qmel-indtx.
wa_output-priok = wa_qmel-priok.
wa_output-strmn = wa_qmel-strmn.
wa_output-strur = wa_qmel-strur.
wa_output-ltrmn = wa_qmel-ltrmn.
wa_output-ltrur = wa_qmel-ltrur.
wa_output-objnr = wa_qmel-objnr.
wa_output-arbpl = wa_qmel-arbpl.
wa_output-vkorg = wa_qmel-vkorg.
wa_output-vtweg = wa_qmel-vtweg.
wa_output-spart = wa_qmel-spart.
APPEND wa_output TO it_output.
CLEAR wa_output.
READ TABLE it_ihpa INTO wa_ihpa WITH KEY objnr = wa_qmel-objnr.
wa_output-parnr = wa_ihpa-parnr.
wa_output-parvw = wa_ihpa-parvw.
APPEND wa_output TO it_output.
CLEAR wa_output.
READ TABLE it_crhd INTO wa_crhd WITH KEY objid = wa_qmel-arbpl.
wa_output-arbpl = wa_crhd-arbpl.
APPEND wa_output TO it_output.
CLEAR wa_output.
READ TABLE it_crtx INTO wa_crtx WITH KEY objid = wa_crhd-objid.
wa_output-ktext = wa_crtx-ktext.
APPEND wa_output TO it_output.
CLEAR wa_output.
READ TABLE it_qmfe INTO wa_qmfe WITH KEY qmnum = wa_qmih-qmnum.
wa_output-fecod = wa_qmfe-fecod.
wa_output-fegrp = wa_qmfe-fegrp.
APPEND wa_output TO it_output.
CLEAR wa_output.
READ TABLE it_qmur INTO wa_qmur WITH KEY qmnum = wa_qmih-qmnum.
wa_output-urcod = wa_qmur-urcod.
wa_output-urgrp = wa_qmur-urgrp.
wa_output-urtxt = wa_qmur-urtxt.
APPEND wa_output TO it_output.
CLEAR wa_output.
READ TABLE it_iloa INTO wa_iloa WITH KEY iloan = wa_qmih-iloan.
wa_output-tplnr = wa_iloa-tplnr.
APPEND wa_output TO it_output.
CLEAR wa_output.
ENDLOOP.
DELETE ADJACENT DUPLICATES FROM it_output COMPARING qmnum
equnr
ausvn
ausbs
auztv
auztb
iwerk
qmtxt
indtx
priok
strmn
strur
ltrmn
ltrur
vkorg
vtweg
spart
parnr
parvw
arbpl
ktext
fecod
fegrp
urcod
urgrp
urtxt
tplnr.
*CALL FUNCTION 'STATUS_TEXT_EDIT'
EXPORTING
CLIENT = SY-MANDT
FLG_USER_STAT = ' '
objnr =
ONLY_ACTIVE = 'X'
spras = en
BYPASS_BUFFER = ' '
IMPORTING
ANW_STAT_EXISTING =
E_STSMA =
LINE =
USER_LINE =
STONR =
EXCEPTIONS
OBJECT_NOT_FOUND = 1
OTHERS = 2
*IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.
*CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id =
language =
name =
object =
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines =
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
*IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.
*LOOP AT IT_OUTPUT INTO WA_OUTPUT.
*WRITE : / WA_OUTPUT-qmnum,
WA_OUTPUT-equnr,
WA_OUTPUT-iloan,
WA_OUTPUT-ausvn,
WA_OUTPUT-ausbs,
WA_OUTPUT-auztv,
WA_OUTPUT-auztb,
WA_OUTPUT-qmtxt,
WA_OUTPUT-indtx,
WA_OUTPUT-strmn,
WA_OUTPUT-strur,
WA_OUTPUT-ltrmn,
WA_OUTPUT-ltrur,
WA_OUTPUT-objnr,
WA_OUTPUT-arbpl,
WA_OUTPUT-parnr,
WA_OUTPUT-parvw,
WA_OUTPUT-objid,
WA_OUTPUT-ktext,
WA_OUTPUT-fecod,
WA_OUTPUT-fegrp,
WA_OUTPUT-urcod,
WA_OUTPUT-urgrp,
WA_OUTPUT-urtxt,
WA_OUTPUT-tplnr.
*ENDLOOP.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = 'E:\CRM1.TXT'
FILETYPE = 'ASC'
APPEND = ' '
write_field_separator = '|'
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
WRITE_LF_AFTER_LAST_LINE = ABAP_TRUE
IMPORTING
FILELENGTH =
TABLES
data_tab = it_output
FIELDNAMES =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
How to remove a package from package structure?
Hello profs,
i have a problem. I add a package 'A' to another package 'B' in the package builder.
Now i don't know how to remove package 'A' from the list of package 'B'.
I have not found in the docu of package builder how to remove a package from the included list.
Has somebody an idea how to do it?
Thanks a lot.I found out that the relation between the packages saved in table TDEVC.
Field PARENTCL contains the surrounding package 'B' of the package 'A' field DEVCLASS.
At the moment the only way to remove the package is to modify the table.
But i look for another possibility for this issue.
Best regards
Waldemar -
How to remove the Char.from one Operating Concern
Hi Guys,
How to remove the Char. from one Operating Concern.
I have created one Char. (WWDOC) and moved to Operating Concern (OOCC). Operating Concern is in red status.
Now, i want to remove that new assigned Char. (WWDOC)from the operating concern (OOCC). I did't find any option in the menu also.
Appreciate your help.....
T&R
VVRHi Sasi,
Iam not able to push back that char. from my operating concern. In help it is given you have to delete the data contents in the table before pushing back. Please let me know if any other option available.
Thanks for your reply.
VVR -
How to remove leading zeros from variable
hi,
how to remove leading zeros from variable like it_vbap-matnr.
value in it_vbap-matnr is 000000000000000358
i want to remove leading zeros so that it become 358
regards
deepakYou can use Function Module <b>'CONVERSION_EXIT_MATN1_OUTPUT'</b>
This Function Module will eliminate leading Zeros.
For each MATNR Value read form DB Table,u can eliminate Leading zeros and then modify ur Internal table.
I think u will not get leading Zeros into utr Internal table when u read from VBAP.
Bcoz MATNR in VBAP itself have Conversion routine.
If u r getting leading zeros,U can use following Logic.
tables:
vbap.
data:
t_vbap like standard table of vbap.
select matnr
from vbap
into corresponding fields of table t_vbap.
loop at t_vbap into vbap.
CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT'
EXPORTING
INPUT = vbap-matnr
IMPORTING
OUTPUT = vbap-matnr
modify t_vbap from vbap transporting matnr.
endloop.
Hope this will work..... -
How to remove red eye from you video with adobe premiere elements?
I would be greatful if someone could let me know how to remove red eye from a video, which I will be using for my acting reel. Thank you!
Ang.Fel
What version of Premiere Elements do you have and on what computer operating system is it running?
Do you have an integrated set of Photoshop Elements and Premiere Elements (such as 10/10, 11/11)?
How long is this person with the red eye viewed?
There are two possibilities that I can think of, but I would have to work it through with the actual footage and adapt accordingly.
1. Keying and color correction.
2. In Premiere Elements, do a freeze frame (in Freeze Frame dialog, Edit in Photoshop Elements after Insertion + Insert in Movie Option + adjustment of duration of the Freeze Frame bmp).
In Photoshop Elements, Red Eye Tool if possible or other color correction tool there.
How did you ever get red eye in video?
ATR
Maybe you are looking for
-
Installation SRM in Solaris!!!
Hi all gurus, Hi I have to install SRM in sunsolaris system. I have not done it before.I have installed ECC 6.0, Solman 4 in Windows 2003 server. I have knowledge of working in HP-UX but not the installation. 01)Could anyone tell me what are the file
-
I accidently deleted my "recently added" playlist. how do I get it back?
I'm very new to itunes and having trouble getting the hang of it. I was trying to clean up some playlist files and was attempting to delete songs I didn't want or need. I hit shift-delete and all of sudden EVERYTHING disappeared. the songs I had purc
-
In table pa0002 need which fields is used for what countries
Hi My client is implementing PA for 10 countries From pa0002 table the client wants a reports where he wants fields and the countries in which thats fields are used ? How and where can i get this information Thanks Raj
-
Is there a way to make an image signature in an email so that when recipients receive it, it doesn't show up as an attachment?
-
Re: BPC Journal Entry Posting
Hello Everyone, Would it be possible to perform a test run before posting journal entries into the BPC system? Is there any task available in BPC to check debit/credit mismatch or error in the journal entries? Please let me know. Kind regards, RJ