Direct PO approvals.....query

Hi,
The requirement is not to use purchase requisition at all but to use purchase order directly.This needs to be linked to a workflow.
Also the approvals are required for PO's directly and not PR's.
In terms of the customzing, what changes are needed, also to override the settings for not using PR at all but only POs for approval, which user exit needs to be written, if at all.
In summary, workflow + PO without PR, how can this be done...Thanks a lot in advance.

Hi Shewta,
Thanks, but I am a starter in workflow, I need to explore the standard workflow functionality for PO approval, startting from the number you mentioned, any steps on how to do this would be helpful.Thanks.

Similar Messages

  • Hierarchy Performance in BO 4.0 direct to Bex query

    Hi
    We are using BO 4.0 using BICS connection.
    Webi report is connected directly to BEx query.
    We are getting perforance when selecting Hierarchy in new BO 4.0 environment.
    In what way we can reduce this performance.
    The report is taking around 30 minutes and some time time out.
    Is this product issue
    Regards
    Gaurav Mang

    Hi,
    1. you can "suppress unassigned nodes" in RSH1
    2. you can enable Query Stripping in webi query panel and webi document properties
    3. you can enable BICSLOVChunking registry settings
    --> Note 1581323 - BI 4.0 Web Intelligence very slow performance when using BICS
    4. modify the WebiParamMaxLovSize settings
    --> Note 1671774 - "OutOfMemory exception" and poor performance when accessing large LOV's in WebIntelligence (using Desktop client or Launchpad) using BICS to connect to BEx query
    5. you should implement all the latest BW correction from the BI-RA-BICS component, such as BICS Note 1593802  Performance optimization when loading query views 
    6. You should use the latest available Patch2.12 (optimizations since 2.10 are very good)
    7. you should answer as many Filters (Bex variables) as possible during runtime.
    Regards,
    H
    p.s. after these steps,  the rest is down to Document, Query, and Datamodel design.

  • 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

  • Can I directly access BEX query from web version

    Hi expert,
            Can I directly access BEX query from web version ? I know we can access bex query from webi rich client.
    Many Thanks,

    Hi,
    Yes, you can access BEx query via BICS connection (OLAP Connection).
    In SAP BusinessObjects BI 4.0 you have multiple options to connect your SAP BusinessObjects BI client to your SAP NetWeaver BW system.
    Direct BI Consumer Services (BICS)
    SAP BusinessObjects BI 4.x Relational Universe (UNX)
    SAP BusinessObjects XI 3.1 OLAP Universe (UNV) used in a SAP BusinessObjects BI 4 environment
    Web Intelligence
    Yes
    Yes
    Yes
    SAP BusinessObjects Dashboards
    Yes
    Yes
    No
    Analysis, edition for Microsoft Office
    Yes
    No
    No
    Analysis, edition for OLAP
    Yes
    No
    No
    SAP BusinessObjects Explorer
    No
    Yes
    No
    SAP BusinessObjects Design Studio
    Yes
    No
    No
    Visual Intelligence
    No
    Yes (1)
    No
    Predictive Analysis
    No
    Yes (1)
    No
    Design Studio
    Yes
    No
    No

  • XI--- R/3 scenario: directly access and query a Y-table in R/3

    Hi forum,
    I need to make a XI--->R/3 scenario, i want to access and query a table in R/3 (a Y transparent table),
    i have been suggested to use a Sysnchronous call to BAPI/Function module, but i want to know whether there's a way i can access/query a Y-Table in the R/3 directly without using a function module in it,

    hi sudeep,
    to access a table in r/3 u can either go for an rfc or a server proxy.
    >>whether there's a way i can access/query a Y-Table in the R/3 directly without using a function module in it,
    do u mean querying the database directly? u "can" ofcourse do it  but <b>shud never</b> access r/3 database directly.
    [reward if helpful]
    regards,
    latika.

  • Sap user screen directing to SAP query screen.

    Hi Folks,
    In general by the time of logging in CRM system its should show user menu, but in my system its directly going to SAp query screen. Please suggest me how to change this to get the normal user screen while logging.
    BLR

    Hi,
    Plz check if u are using a shortcut for logging in. In a shortcut we can give the transaction code which needs to be executed on logging on.
    If yes then create a connection and login through it. Then u can go to the sap easy access menu.
    Regards,
    Deepak

  • Return value for Direct OBPM SQL Query in OBPM 10GR3

    Hi all,
    I use a direct SQL Query provided by OBPM 10GR3 in my automatic activity to select certain elements from the db. The query is as follows:-
    foreach (element in
    SELECT id FROM TESTTABLE WHERE requestId = 732 and status = 1 )
    // statements
    logMessage("-- The id is-->" +element.id);
    This only returns when the id is found in the db but returns nothing when not found in db?
    How can I always get a return value? atleast a true or false, so that I can put IF statements?
    Because if it returns nothing, the loop does not execute {}? So we cannot put something like:-
    foreach (element in
    SELECT id FROM TESTTABLE WHERE requestId = 732 and status = 1 )
    logMessage("-- The id is-->" +element.id);
    if(element.id == null)
    logMessage("-- Id Not Found -->" );
    else
    logMessage("-- Id Found -->");
    How can I always get a return value from my OBPM direct query ?
    Remember , I am not using DynamicSQL in this case?

    Hi,
    Set a Boolean flag value to False before the SQL query.
    Some thing like:
    boolean flag = false;
    foreach (element in
    SELECT id FROM TESTTABLE WHERE requestId = 732 and status = 1 )
    logMessage("-- The id is-->" +element.id);
    flag = true;
    if(flag) {
    logMessage("-- Id Found -->" );
    else
    logMessage("-- Id Not Found -->");
    Hope the above logic would work fine.
    Bibhu
    Edited by: Bibhuti Bhusan on Sep 2, 2011 11:48 AM

  • OBIEE direct DB request query sql statement cannot be edited after saved

    I have created direct DB request with long complex query, validated sql and Results appears ok. After I save this request and go back to edit the SQL statement, the original statement is only partially visible. Basically I can not do edit.
    Is there any Query related buffer or other configuration parms I have to set up?

    I'm not sure what the deal is between Flex/AIR and Visusal Studios, but i descided to publish my webservices and point the wsdl there instead of using the visual studio generated one.
    AND BEHOLD
    I't worked and worked much much faster than i was anticipating.
    So i'll just chalk it up to poor communication between FLEX and VS.  But if anybody knows a more complete answer I would still love to hear it.

  • NSS - DIRECT IO Support - Query

    Team,
    I am new to Novell OES usage.
    My configuration: SLES 11 SP2 + OES 11 SP1
    I created NSS Pools & volumes:
    bl480g-196-167:~ # df
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/cciss/c0d0p2 68455984 4761396 62651368 8% /
    udev 4029532 516 4029016 1% /dev
    tmpfs 4029532 264 4029268 1% /dev/shm
    admin 4096 0 4096 0% /_admin
    /dev/pool/POOL_167 83843072 3492432 80350640 5% /opt/novell/nss/mnt/.pools/POOL_167
    167_VOL1 83843072 820776 80350640 2% /media/nss/167_VOL1
    167_VOL2 83843072 818140 80350640 2% /media/nss/167_VOL2
    167_VOL3 83843072 776684 80350640 1% /media/nss/167_VOL3
    167_VOL4 83843072 812016 80350640 2% /media/nss/167_VOL4
    Issue: Now i attempt to run dt tool (Direct IO option) as test run. The test fails & dt fails to write.
    without direct io flag, dt tool run is working.
    I read Novell Support Doc ID: 7001517 & understand there's an option to enable/disable Direct IO to file/volume.
    Question: Can you suggest how can i toggle DIO & non DIO? Procedure please.
    arun

    Originally Posted by ab
    Can you show the actual command you're using, as well as how you are
    configuring Direct I/O exactly? From which package does 'dt' originate (I
    cannot find it on my system)?
    Good luck.
    Hello
    -> flags=direct option in the below syntax does direct io to file system.
    bl460g8-196-164:~ # /x/eng/localtest/arch/x86_64-redhat-rhel5/bin/dt.stable of=/media/nss/164_VOL2/bl460g8-196-164/nate_test limit=600m oncerr=abort disable=pstats notime=fsync,close oflags=trunc errors=1 procs=3 incr=var min=2k max=256k dispose=keep pattern=iot prefix='%d@%h' iotype=random keepalivet=300 keepalive="300SecKeepAliveMsg##%h@%d##PassCount:%p ##IOMode:%i##TotalTestTime:%T##PassTestTime:%t##Bl ocksTransferred:%l##RecordsRead:%r##RecordsWritten :%w##KBsPerSecond:%kbps##IOsPerSecond:%iops" enable=noprog noprogt=120s noprogtt=600s alarm=3s trigger="cmd:/x/eng/localtest/noarch/bin/dt_noprog_script.ksh" history=3 enable=syslog history=3 enable=syslog hdsize=128 stopon=/tmp/1378279342.dt flags=direct runtime=2592000
    dt.stable (5356): No history entries to report!
    dt.stable (5356): ERROR: 'open -> /media/nss/164_VOL2/bl460g8-196-164/nate_test-5356', errno = 22 - Invalid argument
    dt.stable (5357): No history entries to report!
    dt.stable (5357): ERROR: 'open -> /media/nss/164_VOL2/bl460g8-196-164/nate_test-5357', errno = 22 - Invalid argument
    dt.stable (5358): No history entries to report!
    dt.stable (5357): Error number 1 occured on Wed Sep 4 17:28:40 2013
    dt.stable (5357): Executing: /x/eng/localtest/noarch/bin/dt_noprog_script.ksh /media/nss/164_VOL2/bl460g8-196-164/nate_test-5357 open 512 0 0 0 22 0
    dt.stable (5356): Error number 1 occured on Wed Sep 4 17:28:40 2013
    dt.stable (5356): Executing: /x/eng/localtest/noarch/bin/dt_noprog_script.ksh /media/nss/164_VOL2/bl460g8-196-164/nate_test-5356 open 512 0 0 0 22 0
    dt.stable (5358): ERROR: 'open -> /media/nss/164_VOL2/bl460g8-196-164/nate_test-5358', errno = 22 - Invalid argument
    dt.stable (5358): Error number 1 occured on Wed Sep 4 17:28:40 2013
    dt.stable (5358): Executing: /x/eng/localtest/noarch/bin/dt_noprog_script.ksh /media/nss/164_VOL2/bl460g8-196-164/nate_test-5358 open 512 0 0 0 22 0
    dt trigger scripting being called - /x/eng/localtest/noarch/bin/dt_noprog_script.ksh
    dt trigger scripting being called - /x/eng/localtest/noarch/bin/dt_noprog_script.ksh
    The device name is /media/nss/164_VOL2/bl460g8-196-164/nate_test-5357
    The operation is open
    The device name is /media/nss/164_VOL2/bl460g8-196-164/nate_test-5356
    The operation is open
    The device block size is 512
    The device block size is 512
    The offset, position and lba are 0, 0, 0
    The offset, position and lba are 0, 0, 0
    The errno is 22
    The errno is 22
    The no progress time is 0
    The no progress time is 0
    TimeStamp: Wednesday 04Sep2013 05:28:40 PM
    dt trigger scripting being called - /x/eng/localtest/noarch/bin/dt_noprog_script.ksh
    The device name is /media/nss/164_VOL2/bl460g8-196-164/nate_test-5358
    /x/eng/localtest/noarch/bin/dt_noprog_script.ksh: An error 22 has occurred
    The operation is open
    The device block size is 512
    The offset, position and lba are 0, 0, 0
    The errno is 22
    The no progress time is 0
    /x/eng/localtest/noarch/bin/dt_noprog_script.ksh: No additional user supplied script was specified
    TimeStamp: Wednesday 04Sep2013 05:28:40 PM
    /x/eng/localtest/noarch/bin/dt_noprog_script.ksh: An error 22 has occurred
    /x/eng/localtest/noarch/bin/dt_noprog_script.ksh: No additional user supplied script was specified
    The return code that /x/eng/localtest/noarch/bin/dt_noprog_script.ksh is sending to dt is 1
    dt.stable (5356): Trigger exited with status 1!
    The return code that /x/eng/localtest/noarch/bin/dt_noprog_script.ksh is sending to dt is 1
    Total Statistics (5357):
    Output device/file name: /media/nss/164_VOL2/bl460g8-196-164/nate_test-5357 (device type=regular)
    Mounted from device: 164_VOL2
    Mounted on directory: /media/nss/164_VOL2
    Filesystem type: nssvol
    Filesystem options: rw,name=164_VOL2
    Type of I/O's performed: random (rseed=0)
    Random I/O Parameters: position=0, ralign=512, rlimit=0
    Current Process Reported: 2/3
    Data pattern string used: 'IOT Pattern' (blocking is 512 bytes)
    IOT seed value used: 0x00000000
    Total records processed: 0 with min=2048, max=262144, incr=variable
    Total bytes transferred: 0 (0.000 Kbytes, 0.000 Mbytes)
    Average transfer rates: 0 bytes/sec, 0.000 Kbytes/sec
    Number I/O's per second: 0.000
    Number seconds per I/O: 0.0000 (0.00ms)
    Total passes completed: 0
    Total errors detected: 1/1
    Total elapsed time: 4773h16m30.11s
    Total system time: 00m00.00s
    Total user time: 00m00.00s
    Total Statistics (5358):
    Output device/file name: /media/nss/164_VOL2/bl460g8-196-164/nate_test-5358 (device type=regular)
    Mounted from device: 164_VOL2
    Mounted on directory: /media/nss/164_VOL2
    Filesystem type: nssvol
    Filesystem options: rw,name=164_VOL2
    Type of I/O's performed: random (rseed=0)
    Random I/O Parameters: position=0, ralign=512, rlimit=0
    Current Process Reported: 3/3
    Data pattern string used: 'IOT Pattern' (blocking is 512 bytes)
    IOT seed value used: 0x00000000
    Total records processed: 0 with min=2048, max=262144, incr=variable
    Total bytes transferred: 0 (0.000 Kbytes, 0.000 Mbytes)
    Average transfer rates: 0 bytes/sec, 0.000 Kbytes/sec
    Number I/O's per second: 0.000
    Number seconds per I/O: 0.0000 (0.00ms)
    Total passes completed: 0
    Total errors detected: 1/1
    Total elapsed time: 4773h16m30.11s
    Total system time: 00m00.00s
    Total user time: 00m00.00s
    Starting time: Wed Sep 4 17:28:40 2013
    Starting time: Wed Sep 4 17:28:40 2013
    Ending time: Wed Sep 4 17:28:40 2013
    Ending time: Wed Sep 4 17:28:40 2013
    bl460g8-196-164:~ # df
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/cciss/c0d0p2 68464176 9031496 58389340 14% /
    udev 4029532 520 4029012 1% /dev
    tmpfs 4029532 180 4029352 1% /dev/shm
    admin 4096 0 4096 0% /_admin
    /dev/pool/POOL_164 83843072 1335580 82507492 2% /opt/novell/nss/mnt/.pools/POOL_164
    164_VOL1 83843072 540620 82507492 1% /media/nss/164_VOL1
    164_VOL2 83843072 564 82507492 1% /media/nss/164_VOL2
    164_VOL3 83843072 544824 82507492 1% /media/nss/164_VOL3
    164_VOL4 83843072 556 82507492 1% /media/nss/164_VOL4
    btcinf02.eng.btc.in:/vol/localtest 419430400 272625088 146805312 65% /x/eng/localtest
    bl460g8-196-164:~ #
    arun

  • Alerts and Approvals intercompany

    Dear Experts,
    The following is my requirement.
    HO and Subsidiaries  are running on SAP B1. HO need to assign budgets for Sub companies. And If deviation from Budgets occur alerts or requests for approvals has to be sent to the HO for approval.
    Any ideas on how to address this scenario?
    Thanks In Advance,
    Vasu Natari.

    Hello Vasu,
    Alerts is possible, ans "easy" to implement, Approvals is a bit hard.
    here i am talking about intercompany alerts, and you may use this idea for implementing for the Budget
    Let's see alerts in example
    1.st  scenario
    If they are on the same sql server:
    . You can write any query over databases using the table FQN, (Fully Qualified name).
    select * from [DATABASENAME].dbo.[TABLENAME]
    HQ database name: HQ
    Subsiduary database name: SUB_1
    You can write the following query:
    select sum(DocTotal) from SUB_1.dbo.ORDR where docdate = GetDate()
    You execute this query on the SUB_1 database: gives the result of the sales orders issued today.
    You execute this query on the HQ  database: gives the result of the sales orders issued today on the SUB_1 database.
    right now if you create an entry  in Alert management, and schedule in HQ database, you are able to read the data from any of subsidiaries.
    2.nd scenario:
    If they are not on the same server:
    in MS SQL server possible to enbale openrowset function (allow remote queries) in Surface Area configuration. BY the you can link the 2 sql servers directly from a query runs on loca server, and executed on remote server.
    you may read more: http://msdn.microsoft.com/en-us/library/ms190312.aspx
    Now by this you can "link" the 2 servers together, and create a stored proc for executing the alerts on HQ.
    on HQ you may use the following (based on example 1)
    SELECT a.*
    FROM OPENROWSET('SQLNCLI', 'SERVER_NAME;Trusted_Connection=yes;',
         'Select sum(DocTotal) from SUB_1.dbo.ORDR where docdate = GetDate()') AS a;
    I hope these information helps...
    Regards
    J.

  • Performance problem with report query

    Hi,
    I am encountering a performance issue with a page returning a report.
    I have a page that has a region which joins 2 tables. One table has about 220,00 rows, while the other contains roughly 60,000 rows. In the region source of the report region, the query includes join condition with local variables. For example, the page is page 70, and some join conditions are:
    and a.id=:P70_ID
    and a.name like :P70_NAME
    I run the query that returns a large number of rows from sqlplus, and it takes less than 30 sec to complete.
    When I run the page, the report took about 3 minutes to return.
    In this case, :P70_NAME is initialized to '%' on the page.
    I then tried to substitute variable value directly in the query:
    and a.id=1000
    and a.name like '%'
    this time the report returned in about 30 sec.
    I then tried another thing which specified the region as "PL/SQL Function returning sql query", and modified the region as follows:
    l_sql := '.......';
    l_sql := l_sql || 'and a.id=' || v('P70_ID')
    and similar substituting :P70_NAME to v('P70_NAME') and append its value to the l_sql string.
    The report query page also returned in 30 sec.
    Is there any known performance issue with using the bind variable (:PXX_XXX) in the report region?

    If you are able.. flush the shared_pool, run your
    report then query the v$sql_area or v$sql_text tables.
    Or do a google query and look up Cary Milsap's piece on enabling extended trace .. there is your sure fire way of finding the problem sql. I am still learning htmldb but is there a way to alter session enable trace in some pre-query block?

  • Unable to Schedule a Direct Database Request in OBIEE 11g.

    Hi All,
    I am trying to schedule a Report that is generated using a Direct Database Request Query.
    Whenever I try to create an Alert for this specific Report it Fails to deliver.
    I checked the Job Manager for this Alert. I found out that the Job has completed with an Exit Code = 2 and there was no other error description for the same.
    Can we not create an alert for a Direct Database Request.
    Please let me know if anyone has dealed with such an issue and if anyone has a solution for this.
    Thanks in advance.
    Dev.

    Analyses based on direct database requests and sent out through agents work just like any other analysis in terms of content, delivery etc.
    Are you sure that you're not hitting a privilege problem and that the user executing the agents isn't allowed to run direct database requests?

  • Query in sap

    hi
    is there any application
    in which we can run query as we do in sql
    like if i want to fetch records from two tables as
    select a, b , c from tablea and table b
    where something like that
    can we directly execute any query in sap?
    plz help me with step by step solution

    hi
    go thru the following tutorial on ABAP Query
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_FunctionalAreas_WithoutLogicalDB.asp
    <b>reward points for useful ans</b>
    Regards
    Aarti

  • Document Link Item Icon not visible at query execution

    Dear Colleagues!
    How can I acheive to have the comment-icon visible when I open a query with comments in BI Portal, as a default?
    I have set som settings for the properties of the Query in Query Designer. As it is now I have marked for Document Links, Master Data and Info Provider Data, under presentation of the query as a whole.
    Still, when I execute, I can not see any icons. But if I enter settings in the web, and mark for Document Settings for data, the icons appear.
    I do not want the customer to have to do this settings each time they ececute a query from the portal. Rather I want the Document Link Icon to be visible by default. How can I get my settings in the query designer to be counting in fromt of the settings in the template?
    Regards Silje

    I figured this one out myself. There is a setting in Web Application Designer, directly on the query in question. In properties for the query I tick of "Document Links Visible".
    Regards Silje

  • Date format conversion in BEX query level

    Hi ,
          We had a date field in the numeric format like 735.020 in the cube level, but when we execute the query the values for thsi date field is changed in to date format like 31.05.2013.
    we are not having any conversion routines and the date fields are used directly in the query .

    Hi,
    Try the below class file or may be create a method in your controller. It will resolve your problem.
    package com.XXX.DateFormatForSAP;
    import java.util.Date;
    import java.text.SimpleDateFormat;
    public class FormatSAPDate {
    public static String changeDateFormat(Date sapDate) {
    String formattedDate = null;
    SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
    formattedDate = dateFormat.format(sapDate);
    return formattedDate;
    Try this code and let me know.
    Regards
    Mukesh

Maybe you are looking for

  • How to insert more than 32k xml data into oracle clob column

    how to insert more than 32k xml data into oracle clob column. xml data is coming from java front end if we cannot use clob than what are the different options available

  • Smart Playlists no longer working on my 4G iPod

    I have a 20GB 4G Mono iPod that is running the latest firmware version (3.1.1) and I have several Smart Playlists I use frequently with it. Before I upgraded to iTunes 7 last week these playlists would dynamically update on the iPod itself without th

  • How to Refer Application item in the html region

    Hi All, I have region which says 'Data was refereshed on 12-Apr-2010'. This is displayed in many pages. I want to reduce the manual work of going into each and every page and editing the date. I have created an Application Item in shared components.

  • I downloaded a Xvid-Player file now how do i run it?

    Please help. i downloaded this file but now i dont know how to run it.

  • EDI and check printing

    Dear consultants, I would like to know if standard SAP program allows me  sending check information to Bank through Idoc (PAYEXT) as well as printing the check at the same time trough F110.  I receive "no records selected" in F110 so I print the chec