Query on unicode application

Hello Experts,
Is it possible to convert an unicode BSO Application to ASO? When I am trying to convert, the following error occurs -
"Can not convert unicode block storage outline to aggregate storage outline"
As per the documentation, I see that ASO does not support unicode and BSO does support.
Thanks in advance.
Regards,
Sudhir
Edited by: 637223 on Jan 6, 2010 1:55 PM

Hello,
The workaround to this is:
1. create an new empty non-unicode BSO database and open the empty the outline
2. open the unicode BSO outline you want to convert. Select the first dimension and click on copy.
3. switch to the non-unicode outline and click paste.
4. continue until all required dimensions are copied.
5. verify and save the outline.
6. start the wizard and select the new non-unicode outline.
7. convert this and save it.
Regards,
Philip Hulsebosch
www.trexco.nl

Similar Messages

  • Direct Execution of query having Unicode Characters

    Direct Execution of query having Unicode Characters
    Hi All,
    In my application I am firing a Select Query having Unicode characters in Where Clause under condition like '%%'
    to Oracle 10g DB from a Interface written in VC6.0...
    Application funcationality is working fine for ANSI characters and getting the result of Select properly.
    But in case of Unicode Characters in VC it says 'No Data Found'.
    I know where the exact problem is in my code. But not getting the exact solution for resolving my issue...
    Here with I am adding my code snippet with the comments of what i understand and what i want to understand...
    DBPROCESS Structure used in the functions,_
    typedef struct
    HENV hEnv;
    HDBC hDbc;
    HSTMT hStmt;
    char CmdBuff[[8192]];
    char RpcParamName[[255]];
    SQLINTEGER SpRetVal;
    SQLINTEGER ColIndPtr[[255]];
    SQLINTEGER ParamIndPtr[[255]];
    SQLPOINTER pOutputParam;
    SQLUSMALLINT CurrentParamNo;
    SQLUSMALLINT OutputParamNo;
    SQLUSMALLINT InputParamCtr;
    SQLINTEGER BatchStmtNo;
    SQLINTEGER CmdBuffLen;
    short CurrentStmtType;
    SQLRETURN LastStmtRetcode;
    SQLCHAR SqlState[[10]];
    int ShowDebug;
    SQLCHAR* ParameterValuePtr;
    int ColumnSize;
    DBTYPE DatabaseType;
    DRVTYPE OdbcDriverType;
    BLOCKBIND *ptrBlockBind;
    } DBPROCESS;
    BOOL CDynamicPickList::GetResultSet(DBPROCESS *pDBProc, bstrt& pQuery, short pNumOdbcBindParams, COdbcBindParameter pOdbcBindParams[], CQueryResultSet& pQueryResultSet)
         int               lRetVal,
                        lNumRows;
         bstrt               lResultSet;
         wchar_t               lColName[[256]];     
         SQLUINTEGER          lColSize;
         SQLSMALLINT          lColNameLen,
                        lColDataType,
                        lColNullable,
                        lColDecDigits,                         
                        lNumResultCols;
         wchar_t               lResultRow[[32]][[256]];
    OdbcCmdW(pDBProc, (wchar_t *)pQuery); *//Query is perfectly fine till this point all the Unicode Characters are preserved...*
         if ( OdbcSqlExec(pDBProc) != SUCCEED )
              LogAppError(L"Error In Executing Query %s", (wchar_t *)pQuery);          
              return FALSE;
    Function OdbcCmdW_
    //From this point have no idea what is exactly happening to the Unicode Characters...
    //Actually i have try printing the query that gets stored in CmdBuff... it show junk for Unicode Characters...
    //CmdBuff is the Char type Variable and hence must be showing junk for Unicode data
    //I have also try printing the HexaDecimal of the query... I m not getting the proper output... But till i Understand, I think the HexaDecimal Value is perfect & preserved
    //After the execution of this function the call goes to OdbcSqlExec where actual execution of qurey takes place on DB
    SQLRETURN OdbcCmdW( DBPROCESS p_ptr_dbproc, WCHAR      p_sql_command )
         char *p_sql_commandMBCS;
         int l_ret_val;
         int l_size = wcslen(p_sql_command);
         int l_org_length,
    l_newcmd_length;
    p_sql_commandMBCS = (char *)calloc(sizeof(char) * MAX_CMD_BUFF,1);
    l_ret_val = WideCharToMultiByte(
                        CP_UTF8,
                        NULL,                         // performance and mapping flags
                        p_sql_command,          // wide-character string
                        -1,                         // number of chars in string
                        (LPSTR)p_sql_commandMBCS,// buffer for new string
                        MAX_CMD_BUFF,                    // size of buffer
                        NULL, // default for unmappable chars
                        NULL // set when default char used
    l_org_length = p_ptr_dbproc->CmdBuffLen;
    l_newcmd_length = strlen(p_sql_commandMBCS);
    p_ptr_dbproc->CmdBuff[[l_org_length]] = '\0';
    if( l_org_length )
    l_org_length++;
    if( (l_org_length + l_newcmd_length) >= MAX_CMD_BUFF )
    if( l_org_length == 0 )
    OdbcReuseStmtHandle( p_ptr_dbproc );
    else
    strcat(p_ptr_dbproc->CmdBuff, " ");
         l_org_length +=2;
    strcat(p_ptr_dbproc->CmdBuff, p_sql_commandMBCS);
    p_ptr_dbproc->CmdBuffLen = l_org_length + l_newcmd_length;
    if (p_sql_commandMBCS != NULL)
         free(p_sql_commandMBCS);
    return( SUCCEED );
    Function OdbcSqlExec_
    //SQLExecDirect Requires data of Unsigned Char type. Thus the above process is valid...
    //But i am not getting what is the exact problem...
    SQLRETURN OdbcSqlExec( DBPROCESS *p_ptr_dbproc )
    SQLRETURN l_ret_val;
    SQLINTEGER l_db_error_code=0;
         int     i,l_occur = 1;
         char     *token_list[[50]][[2]] =
    {     /*"to_date(","convert(datetime,",
                                       "'yyyy-mm-dd hh24:mi:ss'","1",*/
                                       "nvl","isnull" ,
                                       "to_number(","convert(int,",
                                       /*"to_char(","convert(char,",*/
                                       /*"'yyyymmdd'","112",
                                       "'hh24miss'","108",*/
                                       "sysdate",     "getdate()",
                                       "format_date", "dbo.format_date",
                                       "format_amount", "dbo.format_amount",
                                       "to_char","dbo.to_char",
                                       "to_date", "dbo.to_date",
                                       "unique","distinct",
                                       "\0","\0"};
    char          *l_qry_lwr;  
    l_qry_lwr = (char *)calloc(sizeof(char) * (MAX_CMD_BUFF), 1);
    l_ret_val = SQLExecDirect( p_ptr_dbproc->hStmt,
    (SQLCHAR *)p_ptr_dbproc->CmdBuff,
    SQL_NTS );
    switch( l_ret_val )
    case SQL_SUCCESS :
    case SQL_NO_DATA :
    ClearCmdBuff( p_ptr_dbproc );
    p_ptr_dbproc->LastStmtRetcode = l_ret_val;
    if (l_qry_lwr != NULL)
         free(l_qry_lwr);
    return( SUCCEED );
    case SQL_NEED_DATA :
    case SQL_ERROR :
    case SQL_SUCCESS_WITH_INFO :
    case SQL_STILL_EXECUTING :
    case SQL_INVALID_HANDLE :
    I do not see much issue in the code... The process flow is quite valid...
    But now i am not getting whether,
    1) storing the string in CmdBuff is creating issue
    2) SQLExecDirect si creating an issue(and some other function can be used here)...
    3) Odbc Driver creating an issue and want some Client Setting to be done(though i have tried doing some permutation combination)...
    Any kind of help would be appreciated,
    Thanks & Regards,
    Pratik
    Edited by: prats on Feb 27, 2009 12:57 PM

    Hey Sergiusz,
    You were bang on target...
    Though it took some time for me to resolve the issue...
    to use SQLExecDirectW I need my query in SQLWCHAR *, which is stored in char * in my case...
    So i converted the incoming query using MultibyteToWideChar Conversion with CodePage as CP_UTF8 and
    then passed it on to SQLExecDirectW...
    It solved my problem
    Thanks,
    Pratik...
    Edited by: prats on Mar 3, 2009 2:41 PM

  • Query result in application server as a .CSV file

    HI
    Can any one tel me how can i place the query result in application server as a .CSV file.
    when am executing WRITEQUERY program it asking query name and displaying result in excel sheet, i don't what is next step to keep file in app server.
    read writequery prog,it is genrated in excel sheet, now i need to send that data to application server path in csv format
    actually i am not able to get the internal table in writequry where the query data is stored.
    please provide me the sample code i can understand. plz.
    plz do favour for me, take this high priority and asap.
    Thanks a lot

    HI,
    Actually i don't want how to create abap querey,
    My requirment is,  WRITEQUERY program  wherenever we r excuting it vil display qurery data in excel format,
    now i don't want any excel format display,  I need that data, should go to application server in .CSV format.
    Actually i am not understanding writequere program, in that which internal table i have to pass application server.
    PLz give me reply anyone
    Help me out .

  • [SOLVED]overriding VO's SQL query in an application module

    Hi, can anybody help me in searching examples of everriding some aspects of VO in an application module.
    As i learned we can override, for example the "WHERE" clause of an VO's SQL query in different application modules, using as i supply the addWhereClause method on SomeViewObjImpl object.
    ... but are there any examples of using this possibility? Should i create a custom method in application module java class?
    Thanks in advance. Best Regards.Alex.
    Message was edited by:
    Timin
    Message was edited by:
    Timin

    Hi, can anybody help me in searching examples of everriding some aspects of VO in an application module.
    As i learned we can override, for example the "WHERE" clause of an VO's SQL query in different application modules, using as i supply the addWhereClause method on SomeViewObjImpl object.
    ... but are there any examples of using this possibility? Should i create a custom method in application module java class?
    Thanks in advance. Best Regards.Alex.
    Message was edited by:
    Timin
    Message was edited by:
    Timin

  • How to suppress Result rows in a Query in Web Application Designer

    Hi
                 I am trying to post a query in Web Application Designer. I am able to run the query in WAD but the Results rows appear. I choose Suppress Result Rows always in All Characteristics option in the query in BEx Explorer but still i see result rows in the WAD. Can anyone please let me know how to suppress Result rows so that they dont appear in Web Application Designer.
    Thanks,
    Padma

    To get the enhanced menu-
    1. Open the template in WAD.
    2. Go to Web Item properties.
    3. Go to Entries in Context Menu.
    4. Find the "Enhanced Menu" property. Set it to "display" if you want it to be visible in template result.
    5. Next time when you execute your template you will be able to access it by right clicking.
    or
    If you just want to supress results without adding enhanced menu in the context menu, simply set "Calculate result as" to "No Display".

  • Query on Planing Application

    Hi Guys,
    I have query on Planning Application. As per the requirement we are developing one Planning Application with 3 Plan Types. As of now we need only one Plan Type as per requirement but we are keeping two other Plan
    Types for future purpose. But we don't know the dimensions hierarchy which is common across all plan types. So I'm not able to take how to proceed my design.
    So anyone can suggest me any best approach for this requirement.

    Hi Guys,
    Thanks for your suggestion.
    I'm not sure especially w.r.t Account, Entity structure is same for rest of Plan Types or not.
    I mean we are considering Product as a Entity dimension but I'm not sure in other Plan Types as we haven't got complete requirements of other plan types.
    So Please suggest me shall I enable even Account, Entity to only one Plan Type or rest of plan types also.
    Thanks,
    Suresh.

  • How to send query to an application server?

    hello everybody
    I'm working on a project in which i've implemented a presentation layer
    for rich client (with java swing)
    the issue now is how to send a query to the application server
    i have the choice between :
    -XML
    -EJB
    -WEB SERVICES
    -RMI
    and i must chose the best method and justify it
    could u please help me
    thank u and have a nice a day

    Hello,
    I'm sorry but this is not a swing related subject.

  • Calling a query from BPS application

    Hi all,
    I'm looking for an option to call BW query from BPS application (BW BPS).
    In the BPS layout (XLS) I have hierarchy of profit centers in the rows. I would like to select on PC and run a query for this single PC. It could be with double click, right click menu item, button (FOX formula, sequence), ...
    Just like RRI between 2 queries.
    Is there a way to solve this.
    Thanks.

    Hi,
    I was also facing the same issue But I could solve it like this :
    Pre-requisites :
    a. A view ( to which you would like to jump )must be created in BEx.
    b. You must have launched Business Explorer ( not necessarily you must have logged on to BEx
    Step1 : Launch planning application using UPSPL.
    You must have observed that the BEx tool bar is now embedded and is visible in the planning folder
    Step2.Click on open --> Saved Views --> Select your view --> Open the view.
    Another window is launched and your view is displayed.
    However, I have observed one limitation : This works only once. If you try and execute Step 1 and 2 in the same session, it fails.
    Hope this solves your problem as well.
    Regards,
    Atul

  • Error While Generating Business query in Mobile Application Studio

    Hi,
    I made changes to the Business query BSOPPBPQUERY according to the SAP NOTES.
    Now I am trying to generate the business Query but it is giving out the error saying
    Error intializing RT Generator !.RT Generator Failed for ".Error arsrep.dat is in use so Generation cannot be done
    I am not a MSA Developer and have no clue regarding MAS(Mobile Application Studio)
    So any one can please give me a clue regarding the issue

    Hi Michael,
    I made some changes to the property of the business Object BOCAPGEN in dev MAS environment and generated the application
    It is working fine in Dev.
    Now i want to know how to transfer the changes i Made in Mobile Applicaiton Studio to all the Mobile Cleint.
    I made changes to MAS in the Test Client Assisgned to me.
    I want to replicate these chages to all the Clients.
    I am also having problem transporting the changes made in Dev to QA.
    I created the change list in Dev and released it and assigned the Transport Number to it..
    When I am trying to trasnport the transport number to QA in CRM online system it is giving out error saying "Change List is not complete in the system".
    Can you give me suggestiosn how to transport the change request created in Mobile Applicaiton Studio to QA

  • Which is better to use: BEx query or Web Application as an iView in portal?

    Hi gurus!
    Are there any experienced opinions, which is better - publish a BEx query in portal or publish a BEx Web Application in portal? Is it easier to alter the layout attributes etc. if I create a BEx Web Application first before publishing?
    What is the way of fixing for example filter item height if I publish BEx query in portal - is there a Web Application that it uses anyhow which I can fix? Or can I use in that case iView -properties in portal?
    Thankful for advice
    Sari

    ok, means i can use jsp:useBean tag for all my
    classes that are not actually bean. so it will be
    instantiated at run time and provide efficiency .No. Jsp:useBean is used for java bean components.
    >
    but when should i use import statement in my jsp and
    it happen at translation time so will it create any
    type of burden for my code if i import multiple
    classes.For non-java beans, you need to import the classes, period.
    It's not a burden, it's a necessity.

  • SQL Query failure in application involving GP

    Hi,
    In one of the WDJ applications I am using, there is creation of GP instance involved and within the callable object of GP, back end connectivity is obtained through RFC. This application is not working properly and when I took traces of the same, I could find out that all transactions are failing at a particular query which looks like this.
    Backends|ggp|adhn5362-1527(Oracle DB)|SQL|Prepared|Query|Select* from "CAF_GP_USRHSH" WHERE "HASHVALUE"=?
    I can see such queries wherever back end connectivity is involved. Has any one faced such error before? Is this due to some authorization issues?
    Helpful answers will be appreciated.
    Thanks,
    Shifa

    << Do not post the same question across a number of forums >>

  • Report Script output in UTF-8 code with Non-Unicode Application

    Essbase Nation,
    Report Script output (.txt) file is being coded as UTF-8 when the application is set to Non-unicode. This coding creates a signature character in the first line of the text file, which in turn shows up when we import the file into Microsoft Access. Does anyone know how to change the coding of the output file or know who to remove the UTF-8 signature character.
    Any adive is greatly appreciated.
    Thank you.
    Concerned Admin

    You may be able to find a text editor that can do the conversion. Alternatively, I have converted from one encoding to the another programmatically using Java as well.
    Tim Tow
    Applied OLAP, Inc

  • Report Export - No data when query based on Application Context

    I updated my Query Region source to use a Global Application Context and now the Report Export (to .csv) download has no data. This appears to run the query again in under a different session_id perhaps(?)
    In a before header process I set the session_id to access a couple of date values set by the user via LOVs - the 'Search' button and an After Submit Process sets the context values which are accessed in the where clause, i.e
    where date_attribute between to_date( SYS_CONTEXT('MY_CTX', 'START_DATE'), 'dd-Mon-yyyy')
    and to_date( SYS_CONTEXT('MY_CTX', 'END_DATE'), 'dd-Mon-yyyy')
    If you know any solution or alternative approach I'd be very grateful for your tips. I like Apex because you can leverage core Oracle database technology but then in some case you do hit these little troubles!
    Thanks
    Craig

    Thanks for the link to the posts.
    I considered the Security Attribute but thought that was somewhat inappropriate for just the one page I am setting the context; I understand the Security Attribute function would set 'My_Ctx' values on all page requests.

  • Sql query slow from application but executes in 1 min in Toad

    Hello,
    When I execute a big select query from DB itself , it gives results in a min.
    But when called from .Net application it takes 10 mins to execute.
    But after trying to excute no of times, it suddenly works faster sometimes.

    Hello,
    When I execute a big select query from DB itself , it gives results in a min.
    But when called from .Net application it takes 10 mins to execute.
    But after trying to excute no of times, it suddenly works faster sometimes.

  • Jump from bex Query to cprojects application

    Dear
    I'm facing following problem.
    We would like to jump from a Bex Query to a Cprojects application.
    In our Query the project ID is our infoobject that we want to use as key field in RSBBS but the destination is a Cproject application (Web portal) .
    I've received an URL where the application is stored but it seems that the Cproject application can't be called from BEX.
    Any help is appreciated

    hello,
    have you verified that the source system has its ITS functioning, the RFC and logical systems defined.
    Make sure the source ITS name is maintained in the RSBBS_RSRR_URL or TWPURLSVR table.
    The OSS note 771351 gives details about the details for the configuration.
    Regards,
    Dhanya.

Maybe you are looking for