Misplaced publication item query of two different publication itens

Hi,
I’m creating a new publication on Oracle Database Lite 10g.
Almost all of the publication itens are ok, except two of then: when I publicate the “item1” ,the publication item query is rightly displayed on Mobile Manager page and in the administratives tables, as the C$ALL_PUBLICATIONS table. But, when I publicate the “item2”, that is rightly displayed on Mobile Manager site too, the query of the “item1” receives the same value of “item2” query.
I’ve just checked for wrong synonym creation of the two tables involved , but they are correct.
Has anybody ever seen something like that?
An example of my two queries:
Publication item1 : select field1 , field2 , field3 from table2 where field4 = 1
Publication item2 :; : select field1, field2 from table1;
It’s important : I have two different tables above.
When I synchronize the PDA , with this publication assigned to the user, I receive an error message on Mobile Manager page that some field is misplaced or required . In other words: for publication item2 the application tries to put the data returned from the query of publication item1 .
Thanks.

Hi,
The publication was created successfully and the type is “WCE”. I created it using the “Mobile Manager” page, with an .xml file , compressed in the .jar format.
Here is the web.xml file:
<?xml version = '1.0' encoding = 'WINDOWS-1252'?>
<workspace>
<application name="WCE_REGRAS">
<app_info>
<directory>/WCE_REGRAS</directory>
<virtualpath>/WCE_REGRAS</virtualpath>
<defaultpage/>
<icon/>
<description>WCE_REGRAS</description>
<publication/>
<platform>Oracle Lite PPC2000 ARM;US</platform>
</app_info>
<app_db publication="AFV"/>
<snapshot name="REGIONS" owner="HR" order="1">
<snaplatform object="TABLE" platform="ORACLE LITE PPC2000 ARM;US" template="SELECT * FROM HR.REGIONS" updatable="Y" conflict="client" refresh="fast" virtualprimname="" virtualprimcolname=""/>
</snapshot>
</application>
</workspace>
The publication item with weight equals to 1 (default) was deleted . I’m using an Java application to publicate the items an add them to the publication ( in this case, “WCE_REGRAS”)
Some publication items will have the “conflict rule” set to “Client Wins” and the other ones will be set to “Server Wins”.
Here is the .xml code that my java application reads to create the publication items that are wrong:
Publicationitens.xml
<app>
     <repository>
          <connectionString><!--THE CONNECTION STRING--></connectionString>
          <user><!--THE USER--></user>
          <password><!--THE PASSWORD--></password>
     </repository>
     <remoteDB>
          <connectionString><!--THE CONNECTION STRING--></connectionString>
          <user><!--THE USER--></user>
          <password><!--THE PASSWORD--></password>
     </remoteDB>
     <localDB>
          <connectionString><!--THE CONNECTION STRING--></connectionString>
          <user><!--THE USER--></user>
          <password><!--THE PASSWORD--></password>
     </localDB>
     <publication>     
          <name>15571</name>
          <virtualPath>/WCE_REGRAS</virtualPath>
          <deviceType>WCE</deviceType>
          <!--CLIENT WINS-->
          <item>
               <type>local</type>
               <name>RGE_SAFV_ATIVIDADE</name>
               <owner>SC_PDA</owner>
               <object>AFV_ATIVIDADE</object>
               <filter>SELECT "COD_TIP_ATIV","DAT_ATIV","COMENT_ATIV","STATUS_ATIV","COD_ATIV_PRIOR","DSC_ATIV","COD_FUNCIO","COD_FUNCIO_RESP","COD_ATIV_SIEBEL","COD_CLI","COD_ATIV","COD_FUNCIO_ENC" FROM SC_PDA.AFV_ATIVIDADE WHERE COD_FUNCIO_RESP = :COD_FUNCIO AND STATUS_ATIV IN ('A', 'E')</filter>
               <weight>26</weight>
               <action>create</action>
          </item>
          <!--SERVER WINS-->
          <item>
               <type>local</type>
               <name>RGE_SAFV_ATIVIDADE_PRIO</name>
               <owner>SC_PDA</owner>
               <object>AFV_ATIVIDADE_PRIO</object>
               <filter>SELECT "COD_ATIV_PRIOR","DSC_ATIV_PRIOR" FROM SC_PDA.AFV_ATIVIDADE_PRIO</filter>
               <weight>8</weight>
               <action>create</action>
          </item>      
     </publication>     
</app>
In this case the connection string, password and user were omitted form the .xml file.
In my Java application the following code creates and associate the publication itens to the publication :
Consolidator.createPublicationItem(connSie, item.getName(), item.getOwner(), item.getObject(), "F", item.getFilter(), null, null);
Consolidator.addPublicationItem(publication.getName(), item.getName(), null, null, "S", null, item.getWeight());
, where the object “item” is populated with the publicationitens.xml file with a loop statment .
This code works ok to the others publication items.
The problem is : in the administrative tables ( like C$ALL_PUBLICATIONS) the publication string (filter – sql statement) is right. But, when I access the “Mobile Manager” page they are misplaced:
the filter string from “RGE_SAFV_ATIVIDADE” receives the same filter of “RGE_SAFV_ATIVIDADE_PRIO”.
Curiously when I delete the “RGE_SAFV_ATIVIDADE_PRIO” publication item , the filter string of “RGE_SAFV_ATIVIDADE” publication item appears correctly in the Manager page.
I ‘ve just deleted the "RGA_SAFV_ATIVIDADE_PRIO" publication item using my Java application , or by database : I dropped tables, views and triggers that are created by “Consolidator” (java .jar) methods. I created this item again , but the same error occurs.
I think that it may be something with the data integrity in the database.
The mobile database is 10g, version 10.2.0.2 ;
Thanks.

Similar Messages

  • Query from two different tables

    Hi All
    I am having two different tables A and B. I want to select all rows containing the names like the rows in B.
    I have tried the below and it does not work:
    select * from A where name like (select '%'||name||'%' from B).
    Can anyone help please.
    Thanks
    Amit

    Hi Jeneesh
    Thanks for the quick reply.
    What i want is query to bring back all the name containing the string which is to be found in the table B.
    Table A's content
    Amit
    Amita
    Anjoo
    Table B's Content
    Ami
    Query should return
    Amit
    Amita

  • Publication Item Query

    Hello all,
    I'm trying to modify a query in the Mobile Server, but can not.
    He shows me the following error:
    CONS-10049: Consolidator Exception: ORA-00906: missing left parenthesis
    And the query is:
    SELECT \ "PT1.PAR_TAR_ID \" \ "PT1.NUMERO \" \ "PT1.NOMBRE \" \ "PT1.FECHA_APLICACION \" FROM WHERE NOT EXISTS ALPISPA.PARADAS_TARIFARIAS PT1 \ "(\" SELECT \ "PT2. FECHA_APLICACION \ "FROM WHERE ALPISPA.PARADAS_TARIFARIAS PT2 \" PT2.FECHA_APLICACION \ "> \" PT1.FECHA_APLICACION \ "AND \" PT1.NUMERO \ "= \" PT2.NUMERO \ "\") \ "
    You can put this type of queries in the Mobile Server?
    I can help, please
    Thanks

    Hi Rekounas,
    I'm trying to modify the select with the following statement:
    cm.alterPublicationItem("EP_PAR_TAR_14052009",
    "SELECT \"PT1.PAR_TAR_ID\", \"PT1.NUMERO\", \"PT1.NOMBRE\", \"PT1.FECHA_APLICACION\" FROM ALPISPA.PARADAS_TARIFARIAS PT1 WHERE NOT EXISTS (SELECT \"*\" FROM ALPISPA.PARADAS_TARIFARIAS PT2 WHERE \"PT2.FECHA_APLICACION\" > \"PT1.FECHA_APLICACION\" AND \"PT1.NUMERO\" = \"PT2.NUMERO\")"
    And now, the error is:
    CONS-10049: Excepción de Consolidator: ORA-00904: "PT1.FECHA_APLICACION": identificador no válido (PT1.FECHA_APLICACION invalid identifier )
    My question is: Is posible this type the querys, in the Mobile Server? or I don't see error.
    Regards

  • How to print line item 2times in two different main window in Sap Script

    Hi,
    I am designing check printing form using Sap script. I need to print line items 2times in different 2main window.can yu pls explain  how print like this.
    JK

    i cud not get ur query..pls elaborate

  • Querying from two different databases

    Hi All,
    I have a Adhoc requirement where in i have to do a select from two tables, but one of them resides on a different database.
    The tables have a common primary key, so i can do a one to one match. Is there anyway to query them without using a DB link?

    Hi!
    I think - if u create a global synonym using that dblink - next time u can use that synonym and u don't have to use any dblink further.
    Regards.
    Satyaki De.

  • CR 4 Ent, Xcelsius and WebI - one query and two different results

    Dear Sirs,
    I'm using BO 4.0 platform and 3 tools: Crystal Reports for Enterprise, WebI and Dashboard Design (Xcelsius).
    I have one question, because in my opinion in this solution is one inconsistency.
    I have one table in SQL Server (like below):
    IDRec (autoinc)  | Col1 (varchar)   | Col2 (int)
    1      A    1
    2      A    1
    3      B    2
    4      B    2
    I have one universe with ONLY 3 dimensions (IDRec, Col1, Col2). I haven't any measures.
    And:
    1. Using CR 4 Ent and I create report using 3 dimensions (IDRec, Col1, Col2).
    I make sure, that I selected option: "Retrieve duplicate rows"
    If I have 3 columns in details I have 4 records (4 rows) in my report, when I have 2 columns (Col1 Col2) I have only 2 records (2 rows) in report (Page view).
    So universe (or something like this) use option DISTICT (I think).
    2. When I use WebI (14.0.2) I have the same situation.
    3. When I use Dashboard Desigm (Xcelsius 2011) I have 4 rows !!!  ALWAYS - it doesn't matter I selected "Retrieve duplicate rows" or not  !!!
    When I look to "View script" window, I not see DISTINCT clause.
    Am I doing something wrong?
    I can change the settings so as to be able to see duplicate records?
    It's very important for some calculation, especially in Crystal Reports (for Enterprise).

    Hi,
      Thanks for the response...But the result is deviating from the expected..
           expected is
         if we have first query returns              second query returns
                  1                                                     4
                  2                                                     5
                  3                                                     6
         these two queries result should be in one table , with first query result in first column and second query result in second column.
       The two queries fetching data from same table(category table as in my post) with different search criteria( in where clause).......Regards,
    Rakesh.

  • How to use a query in two different roles without copying it

    Hi,
    The report I try do should display only data that concerns only Controlling area (0co_area) of the user (there is need for two groups of users)).
    So far I created an authorization where I wrote down "0co_area = 1002" condition.
    then I created a role connected with that authorization.
    In that role I have a query with variable processing by authorization.
    Then I intend to create similiar authorization and role connected to it for users of 0co_area=1000.
    Now I think the only way is to create a copy of the query and copy it to the role for 0co_area=1000.
    The problem is that I dont wan't to have two querries instead of one.
    Any answers appreciated, 
    Regards, Leszek 

    Hi,
    After fixing the error in the role I noticed that all I should do is to publish the querry in a new role.
    From that moment a user that is tied to new role can read the old report using the rights associated in a new role.
    Thanks for help.
    Regards. Leszek

  • Identical item codes in two different warehouses

    We currently have several items that exist in two warehouses. We are using SAP Business One, 8.81 PL09, DTW 88.1.7. All of our items from warehouse A have pulled without any errors. We are using a ItemGroupCode of 100 (default) for both warehouses, and managing the items by warehouse. Attempting to use DTW to pull the identical items into B, we receive an error of Item code 'ABC1234' already exists error 65171. My guess is that we will need to use a separate ItemGroupCode for each warehouse. I'm sure that other people out there have had the same issue. Thank you.

    Hello Friend,
    You should check item in csv or txt file that is there any duplicate itemcode in for source file.
    Because itemgrpcod can be same for all materials.
    Thanks
    Manvendra Sinhg Niranjan

  • Sync with manually created tables or selected publication items

    HI
    I have the following situation :
    Server side:
    Table1, Table2,Table3,Table4,Table5,Table6
    Client type1 :
    Table1, Table2,Table3,Table4
    Client type2:
    Table3,Table4,Table5,Table6
    so i cant create two different publications for clients.
    I have 1 publication with Table1, Table2,Table3,Table4,Table5,Table6
    In this situation, is it possible to synchronize with manually created lite database and tables, or mobile server knows how to sync only with snapshots created by his own ?
    Sync process reports "sync ok" but nothing happens
    And one more question is :
    can i use some sync api to create database with snapshots
    1,2,3,4 for client1 and snapshots 3,4,5,6 for client2?
    Today it works in following way:
    1)install mobile client on mobile devices
    2)install mobile application type 1 and 2 on mobile devices
    3)call msync to create database with snapshots 1-6 on all devices
    4)client type 1 do not use tables 5,6 sync only tables 1,2,3,4
    5)client type 2 do not use tables 1,2, sync only tables 3,4,5,6

    only tables defined in the application and synchronised down to the client will be synchronised - manually created tables on the client are ignored (list of tables to be synchronised is controlled by the table c$table_list in the concli database)
    for your requirement, either
    use one application for both client types, but ignore the 'unused' tables in the client software - advantage=easy, disadvantage overhead in synchronising and composing data not needed
    or
    create two seperate applications .no problem about using the same table in multiple applications, we do that for reference data all of the time, sequences cannot be shared (but there is a work around for that), and then associate each client user to one or the other application - advantage=better meets the requirement, disadvantage=maintenance and different database names in the client configuration

  • Vendor open item amount to settle with two different banks  in F110.

    Hi
    Actually client requirement is one vendor line item to settle two different banks. Is there possible in APP program TC F110?
    How we can configure and how to settle one line item with two different banks in APP program.
    Please give me suggestions as soon as possible.
    Venkatesh
    Edited by: vdd08381 on Nov 5, 2011 1:19 PM
    Edited by: vdd08381 on Nov 5, 2011 1:20 PM

    Hi,
    Actually client requirement to work on one line item to settle two different banks.
    Once we have done partial payment to vendor can not give to cheque to vendors. My point view this is not possible.
    Is there any option please post the customization?
    Venkatesh
    Edited by: vdd08381 on Nov 7, 2011 5:36 AM

  • Connect two different DP to a chart!

    Hi @all,
    does someone has connected two Data Provider to one line chart?? !
    Scenario:
    I use "two" queries! In the columns i use a key figure (for example sales)! In the rows i can see the last 12 month! The second query is exactly a copy of the first! The keyfigures are restricted by a variable for sales org.
    Now i have a template with one chart and two web items of type "hierarchical context menu". "hierarchical context menu 1" and "hierarchical context menu 2"! hierarchical context menu 1 is connected to query 1 (DataProvider1) and hierarchical context menu 2 is connected to query 2 (DataProvider2)!
    Now i got the problem that only one dataprovider can be connected to the chart so that i can see only one line (keyfigure 1 from query 1)! I would like to connect both Data Provider to the chart "**AND**" and would like to filter each DataProvider by using the two hierarchical context menus!
    Well i think it is not possible! I solved it by using one query with two different key figures and by using varables. Not so comfortable but works.
    Regards,
    Adem

    Same for more $$ from OWC - and Dr Bott is always worth checking out for video cables and adapters.
    http://eshop.macsales.com/shop/video/hardware/

  • How to query in two tables

    Hi all
    How to query in two different tables? Should i use the following
    SET_BLOCK_PROPERTY('ins1', ONETIME_WHERE, 'serial = ''' || :GLOBAL.CODE || ''''); this is working but for one table if i want for both tables and and it display the related information in main form , eg..tables are referenced by primary key constraint and foreign key.
    sarah
    Edited by: SarahSarahSarah on Sep 1, 2009 4:59 AM

    For the primary forign key tables no need to create two forms use the master detail functionality of forms.
    create a Master/Detail form using the DEPARTMENT, EMPLOYEE tables.
    DEPARTMENTwill be the Master block and EMPLOYEE will be the Detail block. The join condition between the two tables is where the deptno column of DEPARTMENT is equal to the deptno column of EMPLOYEE .
    The following is an outline of the steps:
    Create the DEPARTMENT data block and include the all the fields on the form.
    Use the Form layout and only display one record at a time.
    Go back to the Object Navigator and select the "Data Blocks" tree. Make sure the DEPARTMENT block is not selected and run the Data Block Wizard again.
    Create the EMPLOYEE data block and include all of the columns.
    For the master/Detail relationship, de-select the "auto" option, use a Join relationship, choose the DEPARTMENT data block as the Master and set EMPLOYEE.DEPTNO= DEPARTMENT.DEPTNO for the join relationship.
    In the Layout Wizard for the Dependents data block, display all of the fields
    Choose a Tabular style and display 4 up to records at once with 0 space between each record.
    Save the form and run the form.
    Thanks

  • Group radio button itemrenderers of two different lists

    Hello ,
    How do I group radio button item-renderers of two different lists? If i select a radio button of list 1, then the list 2  Radiobutton which was selected previously should be un-selected. How to do?

    Are you looking for something like this:
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark">
        <fx:Declarations>
            <fx:Component className="MyRenderer">
                <s:ItemRenderer>
                    <s:RadioButton id="rb" label="{data}" group="{outerDocument.rbg}" width="100%" height="100%" />
                </s:ItemRenderer>
            </fx:Component>
            <s:RadioButtonGroup id="rbg" />
        </fx:Declarations>
        <s:List id="myList" itemRenderer="MyRenderer">
            <s:dataProvider>
                <s:ArrayList>
                    <fx:String>0</fx:String>
                    <fx:String>1</fx:String>
                    <fx:String>2</fx:String>
                </s:ArrayList>
            </s:dataProvider>
        </s:List>
        <s:List id="myList2" x="150" itemRenderer="MyRenderer">
            <s:dataProvider>
                <s:ArrayList>
                    <fx:String>A</fx:String>
                    <fx:String>B</fx:String>
                    <fx:String>C</fx:String>
                </s:ArrayList>
            </s:dataProvider>
        </s:List>
    </s:Application>

  • Swap between two different item categories in sales orders for sub-contracting

    Dear gurus,
    my requirement is to have the ability to swap between two different item categories for sales orders for sub-contracting.
    This should be controlled by a combination of the material and a value maintained the Usage field in the Customer Material Info Record (for example by entering a ‘V’).  A combination of Sales Doc Type, Item Cat Group and Usage should result in the creation of a purchase requisition.
    In the event that a process order is required instead of a purchase requisition (i.e. the product is to be manufactured in-house instead of sub-contracted) the user must have the ability to change the Item Category within the sales order to produce a process order.
    The user would just change the item category within the sales order, and the system would automatically remove the purchase requisition assigned to the SO, and create a process order and assign it to the SO.
    Can you suggest any possible solution?
    Thank you in advance.

    Hi Majlo,
    In my system, I checked.  First created sales order with third party line item and then changed item category to normal item category.
    Till Purchase order not created, I can change Item category of my sales order line item.
    In this case SAP inform by log and once save delete purchase requisition of that line item .
    For this you need to assign another item category as an manual item category in SPRO Item category assignment.
    After this user can manually change item category to other one manually, if PO do not exist.
    Please let me know if your query is different.
    Regards

  • How to increase the length of a columnin existing publication item

    We need to urgently increase the length of three columns in one of the tables that is sent offline as a publication item. I have searched everywhere to see if there is a procedure to see this. I only found process to add/drop columns but not modify to JUST increase the length.
    Can we just alter the tables on the server and republish the application? Will that cause any data loss on the client end?
    Any help is greatly appreciated.
    Thanks
    Sireesha

    I totally forgot about this method. Metalink had it in the headlines today and remembered your question.
    This should work for you.
    Applies to:
    Oracle Lite - Version: 10.2.0.1.0 to 10.2.0.2.0
    Information in this document applies to any platform.
    Goal
    The Goal of this Document is to show the right steps when it is necessary to increase the Column Size for a table
    which is used for the Synchronization with Oracle Lite 10GR2
    BECAREFULL, it is not supported to change the Column Size or make any Schema Evolution on the Primary key
    as The Synchronization Algorithm is based on Primary key
    Solution
    Create table test_sec (col1 number(10); varchar2(10));
    alter table test_sec add primary key (col1));
    Create Publication: PUB_TEST_SEC
    Create Publication: PI_TEST_SEC: select COL1, COL2 from scott.TEST_SEC fast
    Refresh, server wins, weight = 1 and add it to the Publicatio PUB_TEST_SEC
    Synchronize this PUB_TEST_SEC
    On the Server: increase the col2 WHICH IS NOT A PK, from 10 to 15
    alter Table scott.TEST_SEC modify (col2 (varchar2(15));
    To get the new Column Size on the olite DB, you need to alter the Publication item too using for example this code:
    import java.sql.*;
    import java.io.*;
    import oracle.lite.sync.Consolidator;
    import oracle.lite.sync.ConsolidatorManager;
    import oracle.mobile.admin.*;
    public class PublicationChange {
    public static void main(String argv[]) throws Throwable
    DriverManager.registerDriver ((Driver)Class.forName ("oracle.jdbc.driver.OracleDriver").newInstance());
    ConsolidatorManager consolidatorManager = new ConsolidatorManager();
    consolidatorManager.openConnection("mobileadmin","manager","JDBC:ORACLE:thin:@suppolite1.fr.oracle.com:1521:PROD");
    System.out.println("Connected");
    try
    /*You need to put a Select Statment lightly different from the Publication item,
    if you will use the same select statment, it won't take in Account
    if you used: select * from owner.table to create the Publication Item
    you need to use: select * from owner.table for the alterPublicationItem API
    consolidatorManager.alterPublicationItem("PI_TEST_SEC","SELECT * FROM SCOTT.TEST_SEC");
    System.out.println("Pub Item recreated");
    catch (Throwable e) {
    e.printStackTrace();
    try
    consolidatorManager.closeConnection();
    System.out.println("The installation is done!");
    } catch (Throwable e) {
    Compile and run this java code.
    Synchronize
    Check your table Description on Oracle Lite Database to verify that this Schema Evolution has worked as expected.

Maybe you are looking for

  • SEM TRAINING DEMO

    Hie SEM gurus, I need a SAP SEM Training Demo (Simulation) and Best Practices for SEM - BW 4.0 (release 4.0) and not BW BPS. Do SEM BW 4.0 and BW BPS use same best practices? Your assistance is urgently needed. Will award high points for correct answ

  • Mystery used space

    hey i just joined this cuz i got an external hard drive and am working on rebuilding my library and have a few questions about things.I just got the new itunes and when i connect my ipod it tells me that i have 2 gigs of music used, but 4.7 of "other

  • Claim Digger

    Hi, I just installed Primavera 6 (P6) on my computer at work. The tool, Claim digger wont work. When I click on it, it seems to load just for a second and nothing happens. I re-installed the program and it still did not work. How can I get to work? T

  • How can i make a field mandatory in SO header .

    Dear expart How can i make Customer group  mandatory in SO header data.Under sales tab pricing and static. Plz give me spro or the direct transaction code if any. Yeasin

  • Using Adobe Flash Player on Iphone?

    Is there a way to use videos created with Adobe Flash Player on an iphone or ipad?  I would really like to use this software and create them but believe we are missing a big audience.  If anyone has found a way, would you please share with me?