Selection problem on ADRC Table.
Dear Exparts.
please see the Query:
select country city1 from adrc
into CORRESPONDING FIELDS OF wa_country
where
country = p_country
and
city1 = p_city.
append wa_country to it_country.
endselect.
In this selection, when I send p_country = AE and p_city = Dubai I cannot get any data. But there have data In DB.
But when I send p_country = DE and p_city = Berlin I can get porper data.
Can anybody solve this problem.
Your regards
rayhan
Just paste the below code and check either getting value or not
DATA wa_country TYPE adrc.
PARAMETERS: p_city TYPE adrc-city1 DEFAULT 'Dubai',
p_countr TYPE adrc-country DEFAULT 'AE'.
SELECT SINGLE * FROM adrc INTO wa_country WHERE country = p_countr
AND city1 = p_city.
IF sy-subrc = 0.
WRITE : / wa_country-city1, / wa_country-country.
ENDIF.
Kanagaraja L
Similar Messages
-
Select Problem with Joined tables
Hello everyone I have the following Query
SELECT
OBJEKTI.OBJEKAT_ID OBJEKAT_ID,
OBJEKTI.ADRESA ADRESA,
OBJEKTI.POVRSINA POVRSINA,
OBJEKTI.BROJ_IZVRSILACA BROJ_IZVRSILACA,
OPREMLJENOSTI.OPREMLJENOST_ID OPREMLJENOST_ID,
OPREMLJENOSTI.PULT PULT,
OPREMLJENOSTI.REKLAMA REKLAMA,
OPREMLJENOSTI.MOKRI_CVOR MOKRI_CVOR,
OPREMLJENOSTI.WC_ZA_IGRACE WC_ZA_IGRACE,
OPREMLJENOSTI.WC_ZA_OSOBLJE WC_ZA_OSOBLJE,
OPREMLJENOSTI.VENTILATOR VENTILATOR,
OPREMLJENOSTI.OSVJETLJENJE OSVJETLJENJE,
OPREMLJENOSTI.VRSTA_BROJILA VRSTA_BROJILA,
OPREMLJENOSTI.ELEKTRO_INSTALACIJE ELEKTRO_INSTALACIJE,
OPREMLJENOSTI.VODO_INSTALACIJE VODO_INSTALACIJE,
OPREMLJENOSTI.TELEFONSKE_INSTALACIJE TELEFONSKE_INSTALACIJE,
OPREMLJENOSTI.GRIJANJE_ID GRIJANJE_ID,
OPREMLJENOSTI.POD_ID POD_ID,
OPREMLJENOSTI.PROZORI_VRATA_ID PROZORI_VRATA_ID,
OPREMLJENOSTI.OBJEKAT_ID OBJEKAT_ID1,
TEHNICKE_OPREMLJENOSTI.TEH_OPR_ID TEH_OPR_ID,
TEHNICKE_OPREMLJENOSTI.ONLINE_KLADIONICA ONLINE_KLADIONICA,
TEHNICKE_OPREMLJENOSTI.PANO PANO,
TEHNICKE_OPREMLJENOSTI.NOSACI NOSACI,
TEHNICKE_OPREMLJENOSTI.TV_LCD TV_LCD,
TEHNICKE_OPREMLJENOSTI.TV_TELETEXT TV_TELETEXT,
TEHNICKE_OPREMLJENOSTI.APARATI_IGRE APARATI_IGRE,
TEHNICKE_OPREMLJENOSTI.EVONA EVONA,
TEHNICKE_OPREMLJENOSTI.NOVOMATIC NOVOMATIC,
TEHNICKE_OPREMLJENOSTI.RULET RULET,
TEHNICKE_OPREMLJENOSTI.BILIJAR BILIJAR,
TEHNICKE_OPREMLJENOSTI.KLIMA KLIMA,
TEHNICKE_OPREMLJENOSTI.OBJEKAT_ID OBJEKAT_ID2,
PONUDE.PONUDA_ID PONUDA_ID,
PONUDE.ONLINE_TERMINAL ONLINE_TERMINAL,
PONUDE.SRECKE SRECKE,
PONUDE.ONLINE_KLADIONICA ONLINE_KLADIONICA1,
PONUDE.APARATI_IGRE APARATI_IGRE1,
PONUDE.RULET RULET1,
PONUDE.BILIJAR BILIJAR1,
PONUDE.OBJEKAT_ID OBJEKAT_ID3
FROM
OBJEKTI,
OPREMLJENOSTI,
TEHNICKE_OPREMLJENOSTI,
PONUDE
WHERE
(PONUDE.OBJEKAT_ID=OBJEKTI.OBJEKAT_ID AND TEHNICKE_OPREMLJENOSTI.OBJEKAT_ID=OPREMLJENOSTI.OBJEKAT_ID) OR (OPREMLJENOSTI.OBJEKAT_ID=OBJEKTI.OBJEKAT_ID AND TEHNICKE_OPREMLJENOSTI.OBJEKAT_ID=OPREMLJENOSTI.OBJEKAT_ID)
ORDER BY OBJEKTI.OBJEKAT_IDThe problem I get is no matter what WHERE clause I use I get doubled values which makes no sense. I checked in the tables and I don't have any doubled values. Each Opremljenost has 1 objekat (there are 2 rows each with its own Objekat) and the same applies to the other 2 tables (PONUDE and TEHNICKE OPREMLJENOSTI) but for some reason they double up the values. If I run it without a where clause at all I get some values repeat itself up to 4 times. Does anyone have a clue what is wrong with my query?You are joining a parent table (OBJEKTI) with three child tables (the other three: PON, TEH, OPR).
Whenever you do that, you will always get duplication of child-rows, if there are multiple child-rows for a parent-row in any of the three child tables.
For example, let P be a parent table, with two child tables, say C1 and C2.
Contents:
Table P:
p1
Table C1 (has two rows for row p1):
1 p1
2 p1
Table C2 (has three rows for row p1):
10 p1
20 p1
30 p1If you now do this:
select P.*,C1.*,C2.*
from P, C1, C2
where [join P with C1] and [join P with C2]Then your result set will look like this:
P.p1 C1.1 C1.p1 C2.10 C2.p1
P.p1 C1.1 C1.p1 C2.20 C2.p1
P.p1 C1.1 C1.p1 C2.30 C2.p1
P.p1 C1.2 C1.p1 C2.10 C2.p1
P.p1 C1.2 C1.p1 C2.20 C2.p1
P.p1 C1.2 C1.p1 C2.30 C2.p1As you can see every C1 row is duplicated three times in the resultset (due to join with C2).
And every C2 row is duplicated two times in the resultset (due to join with C1).
This is simply what happens if you join a parent table with multiple child tables...
Question now is: what is the expected result that you are looking for? -
Hi ABAP experts!!!
I'm a CRM consultant and a dont know ABAP enough so your help is appreciated!
I have a big problem, my ADRC table dosent update any Persons BPs, only organizations...
I need to use the filed FLAGCOMM6 in a CRM functionality (segment builder), in fact i need to know wath BPs dosent have emal filed but i cant use the SMTP ADDR - ADR6 for example because the CRM functionality dosent have a filer "null" or "blank" for example.
Please, no one knows what can be happen?
Thanks a lotCheck the Link
How do i use the FM : ADDR_UPDATE?
Kanagaraja L -
Field selection from adrc table
HI all,
Actually selecting some fields into say table t_likp based value entered for vbeln.
by takin t_likp-vbeln i can go to vbpa and select adrnr from vbpa for parvw eq 'sh'. my question is can i take this vbpa-adrnr
and go to adrc directly for detailed address or
is it necessary for me to go to kna1 from vbpa-kunnr and get the adrnr number form kna1 to go to adrc?
plz help.
thnks n regards,
AhmitaHi,
try this way..
* Fetching Sales order number
SELECT SINGLE * FROM ekkn INTO w_ekkn
WHERE ebeln = xekko-ebeln
AND ebelp = xekpo-ebelp.
* If sales order number exist for PO and PO item then looking
* for Address number to get the details and modifying
* (Overwriting)the Existing Address Details in segment 'E1EDKA1'
IF sy-subrc = 0 AND w_ekkn-vbeln IS NOT INITIAL.
SELECT SINGLE *
FROM vbpa
WHERE vbeln = w_ekkn-vbeln
AND posnr = '000000'
AND parvw = 'WE'.
IF sy-subrc = 0.
SELECT SINGLE * FROM adrc WHERE addrnumber = vbpa-adrnr.
ENDIF.
ENDIF.
Prabhudas -
Problem getting the Table Data with the selection listener
Hi All,
I am working on a tree and table components. I wrote a logic in the backing bean in such a way that when I expand a node the child nodes for the tree are getting added dynamically and also getting the data in the table for the node expanded in the tree using the same Toplink Query . I added the selection listener for the table and when I am selecting a row in the table I am getting the Null Pointer Exception as the RowKeySet Value for the row selected is coming null.
Can any one please help me out with this problem
I will be very thankful
Regards,
Madhavi.Hi All,
I am working on a tree and table components. I wrote a logic in the backing bean in such a way that when I expand a node the child nodes for the tree are getting added dynamically and also getting the data in the table for the node expanded in the tree using the same Toplink Query . I added the selection listener for the table and when I am selecting a row in the table I am getting the Null Pointer Exception as the RowKeySet Value for the row selected is coming null.
Can any one please help me out with this problem
I will be very thankful
Regards,
Madhavi. -
Problem with multiple table row selection
Hi all
I have a rfc which fetches me a bunch of records and displays them in a table,say A.
I have to select multiple records from this table and hit a button to navigate to next screen..where I will review the selected entries from table A..
Cardinality is 0..N,Selection cardinality is 1..N.
and selection mode as "multi"
But I am not able to select multiple entries in tableA..
Pl send me some sample code which would help me solving this issue...
Thanks in advancehi,
this is the code i have written.
int size = wdContext.nodeHeader().size();
IPrivateGetView.IItemElement e1 = wdContext.createItemElement("instance");
for(int i=0;i<size;i++)
if(wdContext.nodeHeader().isMultiSelected(i))
e1.setDel(wdContext.nodeHeader().getHeaderElementAt(i).getDel());
wdContext.nodeItem().addElement(e1);
// i am trying to add the selected rows from one table to another table.
By using above logic i couldn't select more than one row.
Can u help me how to select more than one row and add them to another table.
Thanks in advance. -
I'm stumped here... I'm basically cutting and pasting the code below from the ADF doc but I still can't get the selected rows in my table.
I get a NullPointerException on the first line of the delete method... anyone know what I'm doing wrong? Relevant portion of JSP is also include dat the end.
public class TableBean {
private CoreTable table = null;
private SortableModel model = null;
private ListDataModel people = null;
private ArrayList list = null;
private String message = null;
public TableBean() {
// required by bean spec
public CoreTable getTable() {
return table;
public void setTable(CoreTable table) {
this.table = table;
public String getMessage() {
return message;
public void setMessage(String message) {
this.message = message;
public ArrayList getList() {
if (list == null) {
list = new ArrayList();
list.add(new Person(.....))
..... add more people ....
return list;
public SortableModel getModel() {
if (model == null) {
people = new ListDataModel(getList());
model = new SortableModel(people);
return model;
public String delete() {
RowKeySet keys = table.getSelectionState(); // GETTING A NPE HERE!?!?
if (keys == null) {
message = "No selections!";
return "";
Object oldKey = table.getRowKey();
Iterator selections = keys.getKeySet().iterator();
while (selections.hasNext()) {
String rowKey = (String) selections.next();
table.setRowKey(rowKey);
Person p = (Person) table.getRowData();
getList().remove(p);
// restore the old key:
table.setRowKey(oldKey);
return "";
public class Person {
private String name = null;
private String address = null;
private String phone = null;
public Person(String name, String address, String phone) {
this.name = name;
this.address = address;
this.phone = phone;
* table.jsp *
<af:table id="testTable" width="100%" var="row" rows="10"
value="#{table.model}">
<f:facet name="selection">
<af:tableSelectMany text="Select an item and click on a button">
<af:commandButton text="Edit" action="#{table.edit}" />
<af:commandButton text="Delete" action="#{table.delete}" />
</af:tableSelectMany>
</f:facet>
<af:column id="name" sortable="true" sortProperty="name">
<f:facet name="header">
<af:outputText value="Name" />
</f:facet>
<af:outputText value="#{row.name}" />
</af:column>
<af:column id="address" sortable="true" sortProperty="address">
<f:facet name="header">
<af:outputText value="Address" />
</f:facet>
<af:outputText value="#{row.address}" />
</af:column>
<af:column id="phone" sortable="true" sortProperty="phone">
<f:facet name="header">
<af:outputText value="Phone" />
</f:facet>
<af:outputText value="#{row.phone}" />
</af:column>
</af:table>Hi,
is the table bound to the CoreTable ? Set the reference to the managed bean and "table" in the Binding property of the table
Frank -
How to select data from a table by passing document number from another tab
How to select data from a table by passing document number from another table.
for eg:-
I want to display name, adres, region from ADRC table
by using field delivery document number
Kind Regards,
Shanbagavalli.SHi Shanbagavalli,
There are multiple solutions to this questions a few i will try to answer and then you can take the best required for your requirements.
**Consider that you have a Internal table having document number from other table..
SELECT NAME ADRES REGION FROM ADRC
INTO IT_ADRC
FOR ALL ENTRIES IN IT_DOC
WHERE DOCUMENT_NO = IT_DOC-DOCUMENT_NO.
**Consider that you have 1 document number then
SELECT NAME ADRES REGION FROM ADRC
INTO IT_ADRC
WHERE DOCUMENT_NO = W_DOCUMENT_NO.
Hope this solves your problem.
Regards,
Kunjal -
Error while selecting date from external table
Hello all,
I am getting the follwing error while selecting data from external table. Any idea why?
SQL> CREATE TABLE SE2_EXT (SE_REF_NO VARCHAR2(255),
2 SE_CUST_ID NUMBER(38),
3 SE_TRAN_AMT_LCY FLOAT(126),
4 SE_REVERSAL_MARKER VARCHAR2(255))
5 ORGANIZATION EXTERNAL (
6 TYPE ORACLE_LOADER
7 DEFAULT DIRECTORY ext_tables
8 ACCESS PARAMETERS (
9 RECORDS DELIMITED BY NEWLINE
10 FIELDS TERMINATED BY ','
11 MISSING FIELD VALUES ARE NULL
12 (
13 country_code CHAR(5),
14 country_name CHAR(50),
15 country_language CHAR(50)
16 )
17 )
18 LOCATION ('SE2.csv')
19 )
20 PARALLEL 5
21 REJECT LIMIT UNLIMITED;
Table created.
SQL> select * from se2_ext;
SQL> select count(*) from se2_ext;
select count(*) from se2_ext
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04043: table column not found in external source: SE_REF_NO
ORA-06512: at "SYS.ORACLE_LOADER", line 19It would appear that you external table definition and the external data file data do not match up. Post a few input records so someone can duplicate the problem and determine the fix.
HTH -- Mark D Powell -- -
ADF master-detail master selection not updating detail tables properly
Hi All,
I am using JDev version : 11.1.2.0.0
I created new Fusion Web Application Module. In that module I created a master-detail data model and added them to a page fragment with a query panel. When I run it as a separate module, It works perfectly and Master selection correctly updates detail tables.
But when I integrate that module to another Fusion Application(Add application jar file to the Master Application libraries), Master-details master selection not updating detail tables properly. This problem occurred sequentially.
The problem is that.
After the page load, first selection of the Master Table works correctly and detail tables update correctly.
But second selection doesn't work, means detail table doesn't get update according to the Master table.
And again in the third selection works correctly.
This happens in a sequential manner. I monitor the behavior using Firebug. Observations are as follows,
When running correctly, Response of the Post Definition is
<?xml version="1.0" ?> <partial-response><changes><update id="pt1:t1"><![CDATA[<div tabindex="0" id="pt1:t1" class="xpa xpi" _leafColClientIds="['pt1:t1:c1','pt1:t1:c2','pt1:t1:c3','pt1:t1:c4','pt1:t1:c5','pt1:t1:c6','pt1:t1:c7','pt1:t1:c8','pt1:t1:c9','pt1:t1:c10','pt1:t1:c11','pt1:t1:c12','pt1:t1:c13']"><div id="pt1:t1::ch" style="overflow:hidden;position:relative;width:1365px;" _afrColCount="13" class="xz4"><table class="xz6" summary="This table contains column headers corresponding to the data body table below" id="pt1:t1::ch::t" style="position:relative;table-layout:fixed;width:1365px" cellspacing="0"><tr><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th></tr><tr><th id="pt1:t1:c1" _d_index="0" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c1::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">DateFormat</div></th><th id="pt1:t1:c2" _d_index="1" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c2::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">DefinisionId</div></th><th id="pt1:t1:c3" _d_index="2" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c3::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">FieldId</div></th><th id="pt1:t1:c4" _d_index="3" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c4::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">FieldLabel</div></th><th id="pt1:t1:c5" _d_index="4" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c5::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">FieldLength</div></th><th id="pt1:t1:c6" _d_index="5" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c6::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">FieldOffset</div></th><th id="pt1:t1:c7" _d_index="6" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c7::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">FieldOrder</div></th><th id="pt1:t1:c8" _d_index="7" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c8::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">FieldStatus</div></th><th id="pt1:t1:c9" _d_index="8" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c9::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">FieldType</div></th><th id="pt1:t1:c10" _d_index="9" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c10::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">FieldTypeLen</div></th><th id="pt1:t1:c11" _d_index="10" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c11::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">IgnoreField</div></th><th id="pt1:t1:c12" _d_index="11" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c12::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">IsMandatory</div></th><th id="pt1:t1:c13" _d_index="12" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c13::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">RecordType</div></th></tr></table></div><div id="pt1:t1::db" class="xyx" style="position:relative;width:100%;overflow:hidden" _afrColCount="13"></div><div id="pt1:t1::sm" class="xzt" style="position:absolute;display:none"></div><div id="pt1:t1::ri" class="xyz" style="position:absolute;display:none;overflow:hidden"></div><div id="pt1:t1::dataW" style="display:none"></div></div>]]></update><update id="f1::postscript"><![CDATA[<span id="f1::postscript"><span id="f1::postscript:st"><input type="hidden" name="javax.faces.ViewState" value="!-75cc188st"></span></span>]]></update><update id="d1::iconC"><![CDATA[<span id="d1::iconC" style="display:none"><span id="af_table::disclosed-icon"></span><span id="af_table::undisclosed-icon"></span></span>]]></update><update id="javax.faces.ViewState"><![CDATA[!-75cc188st]]></update><eval><![CDATA[AdfPage.PAGE.__handleRichResponseAction('/MillenniumCSD-ViewController-context-root/faces/FileDefinition?_adf.ctrl-state=cmpl0ptfg_7');]]></eval><eval><![CDATA[AdfPage.PAGE.sendStreamingRequest("pt1:t1");]]></eval><extension id="adf-script-library">/MillenniumCSD-ViewController-context-root/afr/partition/gecko/default/opt/dnd-SHERMAN-1147.js</extension><extension id="adf-script-library">/MillenniumCSD-ViewController-context-root/afr/partition/gecko/default/opt/nav-SHERMAN-1147.js</extension><extension id="adf-script-library">/MillenniumCSD-ViewController-context-root/afr/partition/gecko/default/opt/menu-SHERMAN-1147.js</extension><extension id="adf-script-library">/MillenniumCSD-ViewController-context-root/afr/partition/gecko/default/opt/table-SHERMAN-1147.js</extension><eval>AdfPage.PAGE.addResource('javascript','/MillenniumCSD-ViewController-context-root/JarLoaderPages/jquery-1.7.1.min.js');</eval><eval>AdfPage.PAGE.addResource('javascript','/MillenniumCSD-ViewController-context-root/JarLoaderPages/dis_contx.js');</eval><eval>AdfPage.PAGE.addResource('javascript','/MillenniumCSD-ViewController-context-root/js/floating_bar_bottom.js');</eval><eval>if(self.window.name != "MillenniumDepository"){ self.location = "mcsd.html"; }</eval><eval><![CDATA[AdfDhtmlLookAndFeel.addSkinProperties({"af|table-tr-column-scroll-animation-duration":"300","af|table-tr-column-reorder-animation-duration":"600","af|table-tr-hover-highlight-row":"true"});AdfPage.PAGE.addComponents(new AdfRichTable('pt1:t1',{'rowSelection':'single','rowBandingInterval':0,'editingMode':'none','afrSelListener':true}),new AdfRichColumn('pt1:t1:c1',{'sortProperty':'DateFormat','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c2',{'sortProperty':'DefinisionId','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c3',{'sortProperty':'FieldId','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c4',{'sortProperty':'FieldLabel','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c5',{'sortProperty':'FieldLength','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c6',{'sortProperty':'FieldOffset','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c7',{'sortProperty':'FieldOrder','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c8',{'sortProperty':'FieldStatus','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c9',{'sortProperty':'FieldType','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c10',{'sortProperty':'FieldTypeLen','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c11',{'sortProperty':'IgnoreField','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c12',{'sortProperty':'IsMandatory','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c13',{'sortProperty':'RecordType','sortable':true,'minimumWidth':12,'rowHeader':false}));AdfPage.PAGE.__recordSessionTimeout(1800000, 120000, "http://127.0.0.1:7101/MillenniumCSD-ViewController-context-root/faces/FileDefinition");AdfPage.PAGE.__initPollingTimeout(600000);AdfPage.PAGE.clearMessages();AdfPage.PAGE.clearSubtreeMessages('pt1:t1');AdfPage.PAGE.clearSubtreeMessages('pt1:resId1');]]></eval></changes></partial-response>
When not running correctly, Response of the Post Definition is
<?xml version="1.0" ?> <partial-response><changes><update id="f1::postscript"><![CDATA[<span id="f1::postscript"><span id="f1::postscript:st"><input type="hidden" name="javax.faces.ViewState" value="!-75cc188st"></span></span>]]></update><update id="javax.faces.ViewState"><![CDATA[!-75cc188st]]></update><eval><![CDATA[AdfPage.PAGE.__handleRichResponseAction('/MillenniumCSD-ViewController-context-root/faces/FileDefinition?_adf.ctrl-state=cmpl0ptfg_7');]]></eval><eval>AdfPage.PAGE.addResource('javascript','/MillenniumCSD-ViewController-context-root/JarLoaderPages/jquery-1.7.1.min.js');</eval><eval>AdfPage.PAGE.addResource('javascript','/MillenniumCSD-ViewController-context-root/JarLoaderPages/dis_contx.js');</eval><eval>AdfPage.PAGE.addResource('javascript','/MillenniumCSD-ViewController-context-root/js/floating_bar_bottom.js');</eval><eval>if(self.window.name != "MillenniumDepository"){ self.location = "mcsd.html"; }</eval><eval><![CDATA[AdfPage.PAGE.__recordSessionTimeout(1800000, 120000, "http://127.0.0.1:7101/MillenniumCSD-ViewController-context-root/faces/FileDefinition");AdfPage.PAGE.__initPollingTimeout(600000);AdfPage.PAGE.clearMessages();AdfPage.PAGE.clearSubtreeMessages('pt1:t1');AdfPage.PAGE.clearSubtreeMessages('pt1:resId1');]]></eval></changes></partial-response>
I could not figure out what went wrong when integrating to another module.
Can you please help me to rectify this problem.
Thanks
dkHi,
sound to be an implementation specific issue that is hard to comment on without knowing how to reproduce it. If you have a rerooducible test case based on the Oracle HR schema using JDeveloper 11.1.1.6, zip it up, rename the "zip "extension to "unzip" and sent it to the mail address you find in my OTN profile. If you don't have that test case, explain how this can be reproduced
Frank -
Copy selected values from a table control into another table control
hi there,
as seen in the subject i need to copy selected values from a table control into another table control in the same screen. as i dont know much about table controls i made 2 table controls with the wizard and started to change the code... right now im totally messed up. nothing works anymore and i don't know where to start over.
i looked up the forums and google, but there is nothing to help me with this problem (or i suck in searching the internet for solutions)
i have 2 buttons. one to push the selected data from the top table control into the bottom tc and the other button is to push selected data from the bottom tc into the top tc. does somebody has a sample code to do this?you're funny
i still don't get it... can't believe, there is no tutorial or sample code around how to copy multiple selected rows from a tc.
here's my code, maybe you can tell me exactly were i have to change it:
tc1 = upper table control
tc2 = lower table control
SCREEN 0100:
PROCESS BEFORE OUTPUT.
MODULE status_0100.
MODULE get_nfo. --> gets data from the dictionary table
MODULE tc1_change_tc_attr.
LOOP AT it_roles_tc1
INTO wa_roles_tc1
WITH CONTROL tc1
CURSOR tc1-current_line.
ENDLOOP.
MODULE tc2_change_tc_attr.
LOOP AT it_roles_tc2
INTO wa_roles_tc2l
WITH CONTROL tc2
CURSOR tc2-current_line.
ENDLOOP.
PROCESS AFTER INPUT.
LOOP AT it_roles_tc1.
CHAIN.
FIELD wa_roles_tc1-agr_name.
FIELD wa_roles_tc1-text.
ENDCHAIN.
FIELD wa_roles_tc1-mark
MODULE tc1_mark ON REQUEST.
ENDLOOP.
LOOP AT it_roles_tc2.
CHAIN.
FIELD wa_roles_tc2-agr_name.
FIELD wa_roles_tc2-text.
ENDCHAIN.
FIELD wa_roles_tc2-mark
MODULE tc2_mark ON REQUEST.
ENDLOOP.
MODULE ok_code.
MODULE user_command_0100.
INCLUDE PAI:
MODULE tc1_mark INPUT.
IF tc1-line_sel_mode = 2
AND wa_roles_tc1-mark = 'X'.
LOOP AT it_roles_tc1 INTO g_tc1_wa2
WHERE mark = 'X'. -
> big problem here is, that no entry has an 'X' there
g_tc1_wa2-mark = ''.
MODIFY it_roles_tc1
FROM g_tc1_wa2
TRANSPORTING mark.
ENDLOOP.
ENDIF.
MODIFY it_roles_tc1
FROM wa_roles_tc1
INDEX tc1-current_line
TRANSPORTING mark.
ENDMODULE. "TC1_MARK INPUT
MODULE tc2_mark INPUT.
IF tc2-line_sel_mode = 2
AND wa_roles_tc2-mark = 'X'.
LOOP AT it_roles_tc2 INTO g_tc2_wa2
WHERE mark = 'X'. -
> same here, it doesn't gets any data
g_tc2_wa2-mark = ''.
MODIFY it_roles_tc2
FROM g_tc2_wa2
TRANSPORTING mark.
ENDLOOP.
ENDIF.
MODIFY it_roles_tc2
FROM wa_roles_tc2
INDEX tc2-current_line
TRANSPORTING mark.
ENDMODULE.
thx for anybody who can help with this! -
How to get selected/focused cell from table, and action on clicked
Hello Web Dynpro Community!
i have a view with a table, (id "Table_0");
table is 3x3 size, as celleditors i used inputfields; (standard binding to context with string atributes)
below table i have textarea.
when i select any cell in table i want to add that cell coords to textarea (col and row)
i know that i should use onLeadSelect action, but i dont know exacly how. or to be precise.. how to access to ID and row variables in that action.
the other problem is.. that onLeadSelect seems to work only when i change lead not the cell in same row.. so prabobly there is better way to do that..
any ideas?
Looking to hear from You.
EDIT:
Now i have following problem:
i have a table 3x3 with one column as dropdownbykey box and 2 as TableSingleMarkableCell (and inputFields As editors).
it works as i wanted:
so when i click on one of those input cells, insert vale AND click enter then the action onEnter( for inputfield) is fired... i can get the coords of that cell..
problem is.. that i want to get the coords before i click enter.. just when i click in cell.
i tried to use onAction event for column.. but it doesnt work for TableSingleMArkableCells (but it works for ddk column correctly).
so there is any way to do that?
ie:
below table i have inputfield (called value).
when i click on cell (and DO NOT press enter) i want to see the cell value in inputfield value.
future (and target need) is that i need to show some additional text for specific Cell. (i have an Object with 2 strings attributes, one i want to show in cell, and one in inputfield when cell is clicked).
M.
Edited by: Michal Rowinski on Jan 16, 2008 9:51 AMYou can use cell variant for your requirement . Go through the below link
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0310fd2-f40d-2a10-b288-bcbe0810a961
Regards,
Nethaji -
Hello,
i have a selection problem with JTable. I want to allow only single cell selection and additionally limit the selection to the first column.
I preffered the style from MS Outlook Express where you can select the email accounts to edit.
It is a table like this:
Account name | Type | ...
--------------|---------|---------------------
Hotmail | POP3 |
GMX | IMAP |The selection should be only avaibable at 'Hotmail' or 'GMX' - not at 'POP3', 'IMAP' or as complete row selection.
Please help me!
Thanks.
WarlockMaybe this will helpimport java.awt.*;
import javax.swing.*;
public class Test3 extends JFrame {
public Test3() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container content = getContentPane();
String[] head = {"One", "Two"};
String[][] data = {{"R1-C1", "R1-C2"}, {"R2-C1", "R2-C2"}};
JTable jt = new JTable(data, head);
jt.getColumnModel().setSelectionModel(new MyTableSelectionModel());
content.add(new JScrollPane(jt), BorderLayout.CENTER);
jt.setCellSelectionEnabled(true);
jt.setRowSelectionAllowed(false);
jt.setColumnSelectionAllowed(false);
setSize(300, 300);
setVisible(true);
public static void main(String[] arghs) { new Test3(); }
class MyTableSelectionModel extends DefaultListSelectionModel {
public void setSelectionInterval(int index0, int index1) {
super.setSelectionInterval(0, 0);
} -
Error after using a servlet in ADF - unable to select another row in table
Hello,
I have a go button and when I select a row in a table it call a download servlet. After I open or save the document I'm unable to make other selection in the table or make another action.
The table has single row selection active.
The servlet make part from a task-flow.
Here is the code for the sevlet and my jdev version is 11.1.1.2.0
public class DownloadServlet extends HttpServlet {
@Override
public void init(ServletConfig config) throws ServletException {
super.init(config);
public void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException,
IOException {
String id= null;
String den= null;
InitialContext ic;
try {
ic = new InitialContext();
} catch (NamingException e) {
DataSource ds = null;
Connection conn = null;
PreparedStatement cStmt = null;
ResultSet rset= null;
byte[] bdata = null;
String rezult_null = "";
id_fisier_lcl = request.getParameter("id");
den_fisier_lcl = request.getParameter("fileName");
rezult_null = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
"<Body>Fisierul a fost arhivat</Body>";
try {
ic = new InitialContext();
ds = (DataSource)ic.lookup("jdbc/ConnDS");
conn = ds.getConnection();
cStmt = conn.prepareStatement("commit");
cStmt.execute();
conn.commit();
cStmt= conn.prepareStatement("SELECT a.item FROM table a WHERE a.id = " + id);
rset = cStmt.executeQuery();
if (rset.next()) {
weblogic.jdbc.wrapper.Clob clob =
(weblogic.jdbc.wrapper.Clob)rset.getClob("content");
oracle.sql.CLOB oclob = (oracle.sql.CLOB)clob.getVendorObj();
bdata = new byte[(int)oclob.length()];
InputStream is = oclob.getAsciiStream();
is.read(bdata);
rset.close();
cStmt.close();
} else {
bdata = new byte[(int)rezult_null.length()];
bdata = rezult_null.getBytes();
rset.close();
cStmt.close();
} catch (NamingException e) {
} catch (SQLException e) {
String username_lcl = null;
username_lcl =
ADFContext.getCurrent().getSecurityContext().getUserName();
OutputStream outputStream =response.getOutputStream();
String mimetype = "";
FacesContext facesContext =FacesContext.getCurrentInstance();
response.setContentType( (mimetype != null) ? mimetype : "application/x-download" );
response.setHeader( "Content-Disposition", "attachment; filename=\"" + den_fisier_lcl + ".xml\"" );
try {
outputStream.write(bdata);
outputStream.flush();
outputStream.close();
catch (Exception e) {
e.printStackTrace();
FacesMessage msg =
new FacesMessage(FacesMessage.SEVERITY_ERROR, e.getMessage(),
facesContext.addMessage(null, msg);
How can I fix it?
Thank you.Hi,
have you seen this ?
http://download.oracle.com/docs/cd/E21764_01/apirefs.1111/e12419/tagdoc/af_fileDownloadActionListener.html
If you want to continue with your approach, then a way out of your problem could be to add an af:clientListener onto the command button. The JavaScript function would be
function onDownload(evt){
evt.noResponseExpected();
}Frank -
Problem in Assigning table to access sequence
Dear All,
i am facing problem in assigning table to access sequence for billing output type.
I have created 1 table B902 with the combination of Sales org,plant ,Division,Billing doc type.
but if i am going to assign with access sequence system is taking for Billing type & division & for other its showing red marks & errorr.Access sequence->Aceessess->Field.if i am clicking on field in I/O column for plant its displaying negative.
bcause of this i am not able to make condtion record.
Message is Select a document field for WERKS
Regards
ajit
Edited by: SAP SD AJIT on Mar 1, 2010 3:18 PMHi SAP SD AJIT ,
Go to IMG --> Sales and Distribution --> Basic Functions --> Output control --> Output Determination --> Output Determination using condition technique --> Mantain output Determination for billing document --> Mantain condition table, in the pop-up choose the option "Field catalog: Messages for billing documents", there you can add standard field into the catalog, so you can add WERKS and the other one "document structure" I don't know what field it is, but if it is and standard field you can add it. If you have a Z field you need ABAP help to add the Z field to the structure "KOMKBZ5" and then you can add it to the catalog.
Regards,
Mariano.
Maybe you are looking for
-
Thoroughly disappointed with Apple & Lion...
I have never been disapointed with Apple before, but after using Lion for nearly a week I am really upset. I used to work at an Apple Store, I have used Macs since I was about 4, I try to convert all my friends, I follow nearly every rumor site
-
hi friends, i am using factory method to display my alv. now some of the fields in my internal table i have declared them as char fields, i want certain type of headings for these fields,so where can i give heading to these fields.
-
Importing text file into search and redact window.
I am in the search window under the search and redact tool. I am trying to import a file that was originally an excel to populate the search multiple words window. I read that text files can be imported. I saved the file as a text file but it does
-
Sudden power down when on battery
Hi, I have a 2009 17" Macbook Pro that developed the habbit of powering down without warning when disconnecting the power supply. I have replaced the battery, but that did not help. Strange thing though, it will happily run for hours when I bbot int
-
Timeline Freezes after 10 Minutes 20 seconds in Encore CS3
I have captured two complete HDV tapes on to my computer using Premiere Pro CS3. I have the tried to import the resultant AVI files into encore as timelines All looks ok until I try to add chapter marks and Poster frames. Each of the timelines seem t