Trigger points for 'Execute before query'  in obiee server

Hi
Can anybody tell me when the sql given in the 'Execute before query' ( Connection Pool and go to the Connection Scripts tab) will be executed. Is it overtimes we do a query? Can we have any control over it?
Thanks a lot
Regards
Raj

Hi,
You might want to check the NQQuery.log to see the code that it is running before making a connection. Just to confirm that the connection pool step is working fine, could you try with a simple select statement and see that it does not error out. If it does not, you may want to revisit the procedure code again. I understand from the error that it is expecting something after the END statement (kind of weird though!!). I assume in this case, it could not parse that this is a stored procedure call itself may be. One thread I found is http://stackoverflow.com/questions/4270818/ora-06550-and-pls-00103 which you may want to look for the line break characters.
Hope this helps.
Thank you,
Dhar

Similar Messages

  • Configuring shipping point as Trigger point for posting outbound idoc

    Hello All,
    I have a requirement that on saving an Outbound Delivery(VL02N), an Outbound Idoc should be posted...but the condtion for posting the idoc should be its shipping point. I am not sure how to configure shipping point as the trigger point for the idoc.
    Please suggest.
    Thanks for your co-operation.
    Regards
    Anand

    Hi Anand,
    1. Go to transaction: NACE & select application V2 and click on output types.
    2. change display <->Change mode.
    3. select LAVA and press F6 (to copy Standard output type LAVA to ZLAV).
    4. Give ur Z name for the new custom output type.
    5. change access sequence from 0005 to 0012(shipping point).
    6. Press ENTER and click copy all.
    7. Now goto trasaction VV21, give the created output type name. ENTER
    8. Maintain entries, shipping point, customer#, Medium as '6' ...etc
    Now try VL01N with the given shipping point and check the output ZLAV has been triggered or not?
    Let's see, if we miss any configs still!
    Keep this as reference:
    http://www.erpgenie.com/sapedi/messagecontrol.htm
    Reddy

  • Trigger point for no. of calls of a router

    Hello,
    we would like to limit the number of calls for a router.
    So the first three prototypes should use one router, the following work orders should use another one.
    We would like to inactivate this prototype router and activate the standard router after the prototype router has been called several times.
    It's not enough to reduce the validity period as we do not know befor when the third work order one will be started.
    Can we set a kind of trigger point depending on the no of calls of a router which starts a workflow (like sending a message or does anything else to inform us that a certian no of calls is reached)?
    Thank you!
    Anne Mielke
    Edited by: Anne-Kristin Mielke on Sep 23, 2008 3:38 PM

    Hi,
    A table may not have more than 249 fields. The sum of all field lengths is limited to 1962 (whereby fields with data type LRAW and LCHR are not counted).
    http://help.sap.com/saphelp_webas610/helpdata/en/cf/21eb6e446011d189700000e8322d00/content.htm
    Check the SAP Help Link
    Constraints
    All the key fields of a table must be stored together at the beginning of the table. A non-key field may not occur between two key fields.
    A maximum of 16 key fields per table is permitted. The maximum length of the table key is 255.
    If the key length is greater than 120, there are restrictions when transporting table entries. The key can only be specified up to a maximum of 120 places in a transport. If the key is larger than 120, table entries must be transported generically.
    A table may not have more than 249 fields. The sum of all field lengths is limited to 1962 (whereby fields with data type LRAW and LCHR are not counted).
    Fields of types LRAW or LCHR must be at the end of the table. Only one such field is allowed per table. There must also be a field of type INT2 directly in front of such a field. The actual length of the field can be entered there by the database interface.

  • Trigger point for the quantity

    hi all
    In routing i have maintained trigger point function . I assigned reference operation set( lot size 0 to  1) . for system status 'pcnf'. My question is with example-
    I have to produce 15 pieces .
    I assigned trigger point to 2nd operation.
    Now while iam 2nd operation( i have to  confirming piece by piece)
    while iam  confirming 1st  piece a pop has come for rework operation i said yes. rework operation is triggerd . but it is triggered for all 15 pieces where as it should be only for 1 piece.
    I want the operation should be only for 1 piece. how to proceed.
    please help me
    thanks in advance
    anitha

    Hi,
    I can explain how an rework order is created with
    reference op set.
    First check in Tcode OPJF for the selection id a
    Priority is defined for the Task list type S
    with usage 1 and status 4 and then Proceed as
    follows.
    1. First create a Reference op set in tcode Ca11.
    Enter the plant,Description , usage and status
    for the ref op set
    Enter lotsize and unit of measure.
    Enter the op as 0010 / workcenter/op control
    key/Description for the op
    Enter the standard values and save.
    2. Create a Standard trigger point in CO31.(Ex
    Production)
    Enter the Trigger Point usage /Group as FERT.
    3.Tick the Trigger Point Functions.
    4. Enable the indicator create order with Reference .
    5.Enter the system status as PCNF.
    6. Enter change as +.
    7. Enable the indicator once.
    8 . Now place the cursor on the create order with reference.
    9. Goto Parameters.
    10. In the Parameter enter in the group the created Reference op set group no.
    11. Order type as PP01 and group counter as 1 and save the Trigger Point.
    12. Now goto the Routing for your Material.
    13. Choose the last op to assign the Trigger point.
    14 .Select the OP -
    > Goto ---> Trigger Point overview.
    15. Enter the Trigger Point usage as FERT.
    16.Now choose that line ,select the Details---> Trigger Point
    17. The system will says standard trigger point exists from which you can
    select the created Trigger Point (EXx Production)and save.
    18. MD02/MD04.
    19. Convert the Planned Order into Production Order and Release the order.
    20 .Now confirm th ops.
    21. For the last op enter the yield and rework qty
    and set the status as PCNF.
    22. If the status of last op is PCNF then in the
    system a POP UP will appear as Activited by
    Trigger Point /Create order with reference/order
    number/sequence and op number which trigger point
    works and enter.
    22. Now a rework order will be created.
    23. In c003 enter the number which is next to the actual prodn order no.Rework
    order will be seen.
    Regards,
    nandha

  • Trigger points for the first operation

    Hi,
    We want to use triggerpoints on operations in PP. We want to set the status on the first operation to be released when we create an order. The problem is that systemstatus CRTD can not be used. Can someone help out how to get the first operation to be release automatically when the systemstatus is set to CRTD?   Thanks Marie Hillerbo

    Hi Marie,
    I dont know if this would meet your exact need.
    Based on my knowledge what you could do, is flag the order to release when it is created & saved. Assign a trigger point to the first operation, such that only on confirmation of the first operation you release the subsequent operations.
    Hope this is of some help to you.
    Rgrds,
    Vivek

  • Forms Trigger Hirarchy for Execute query operation

    Hi
    Can anybody tell me in which order triggers are executed in oracle forms
    when i press a execute query button.
    ON-POPULATE-DETAILS
    ON-CHECK-DELETE-MASTER
    POST-QUERY
    i want to write a code after completion of all the operations of execute_query
    requirement is after excute_query i want to append few more record in multiline detail block of master-detail relation.
    where should i write this code.
    regds

    POST-TEXT-ITEM
    POST-RECORD
    PRE-QUERY
    PRE-SELECT
    POST-SELECT
    POST-QUERY( x times )
    ON-CLOSE
    PRE-RECORD
    PRE-TEXT-ITEM
    WHEN-NEW-RECORD-INSTANCE
    WHEN-NEW-ITEM-INSTANCE
    Francois

  • Trigger Point for ESS Changes

    I am looking for a way to trigger a generic workflow for any change to personal data made on ESS. Is there a standard workflow for this? If not, is there a fixed RFC which is triggered everytime changes are being logged (maybe I can put in an enhancement there to raise an event).
    Thanks

    HI
    There is no SAP standard workflow available. But you can Custom develop i-views on ESS and Custom develop workflow to meet your requirement.
    Regards
    Pranav

  • While executing a query in SQL Server 2000

    Hi,
    I am connecting to an SQL Server 2000 using class.forName method...
    and i am reading the data from the queue continuously and execute an INSERT statement to a table..
    but the DBAs have a trigger to perform a set of actions when a new row is inserted into that table...
    once i insert a row, my program waits until those set of actions have been performed instead of just trying to read from the queue and insert another row into the table...i dont want to wait for anything...i just want to insert the data, go back to read the queue and insert more..
    is there any setting that i have to make for this to happen..
    tia...

    hari786 wrote:
    Hi,
    I am connecting to an SQL Server 2000 using class.forName method...forName() loads a driver - it does not connect to anything (regardless of database.)
    and i am reading the data from the queue continuously and execute an INSERT statement to a table..
    but the DBAs have a trigger to perform a set of actions when a new row is inserted into that table...
    once i insert a row, my program waits until those set of actions have been performed instead of just trying to read from the queue and insert another row into the table...i dont want to wait for anything...i just want to insert the data, go back to read the queue and insert more..You are out of luck then.
    An insert, from the databases point of view is not complete until it is complete. Which means running the triggers.
    So there is no way that any jdbc driver can stop that.
    Perhaps it might help to describe your actual problem which might lead to the suggestion of other solutions.

  • Function Module to Execute BEx Query and Save as work book.

    Hi
    I have a requirement for executing the Query after the data is loaded into the cube and save as Workbook and emailing to the user. Is there any Function module to Execute the Query and saving as Work book? . Please suggest me the way how to approach the problem.
    Thanks for your help in advance.

    Hi,
    It is possible to execute the Query and send the result as workbook vial email to the user.
    For that use should use Information Broadcaster.
    Steps:
    1. Goto information broadcaster.
    2. Choose object type as "Query"
    3.Click create new setting.
    4. Give description and choose distribution type as "Broadcast E-mail"
    5.Choose output format "XML(MS Excel)
    6.In recipient tab Give valid e-mail addres which you want to send.
    7.Save it. and give technical name
    8.Click schedule.
    9.choose "Execution with Data Change in the InfoProvider " correspondig infoprovider will be shown (check the check box)
    10. that's it. whenever data loaded in your infocube, it will be automatically executed and send to user mail.
    <removed> if u want more information let me know.
    Regards,
    Senthil Kumar.P

  • Trigger Point

    Dear Experts,
    Production order to be released at operation level automatically one by one, after confirmation of operation.
    Let us suppose
    Op 10 ...... 10 Confirmed
    Op 20 ...... 10 Confirmed
    then in the Op 30 ..... 4 Quantity to be released automatically once Operation 20 is confirmed and then after comfirming Operation 30, then operation must be released.
    How to create trigger point for this?
    Can anybody give clear idea, what all the fields I need to maintain ?
    Oonemore thing, if I create a trigger point, how can I make it applicable to all orders with out manually changing every order in Change mode...
    regards
    Ram Kumar

    HI
    Go to CO31
    Give the following inputs
    TrigPointUsage : start execution
    under trigger point function tab,
    Tick Release succeeding operations  -  confirmed (sys status)  tick again  ONCE . Leave BLANK agaist Activity
    Then go to the Routing . assign this trigger point to your operation 20
    so once this operation is confirmed the operation 30 is get released\
    check and back

  • Function Module For Executing

    Hi all,
             I need a function module for executing .bat file in application server.
    Regards
    Sathish Kumar K.C

    CALL FUNCTION 'SXPG_STEP_COMMAND_START'
        EXPORTING
    *     TARGET                           =
    *     DESTINATION                      =
          COMMANDNAME                      = 'ZCOPY'
          ADDITIONAL_PARAMETERS            = AD_PAR
          OPERATINGSYSTEM                  = 'Windows NT'
          STDINCNTL                        = 'R'
          STDOUTCNTL                       = 'M'
          STDERRCNTL                       = 'M'
          TRACECNTL                        = '3'
          TERMCNTL                         = 'C'
    *     TRACELEVEL                       = 0
    *     BATCH                            =
    *     LONG_PARAMS                      =
    *     JOBNAME                          =
    *     JOBCOUNT                         =
    *     STEPCOUNT                        =
    *     CONNCNTL                         = 'H'
    *   IMPORTING
    *     STRTSTAT                         =
    *     XPGID                            =
    *     CONVID                           =
    *     EXITSTAT                         =
    *     EXITCODE                         =
    *     PARAMS                           =
    *     LAST_PROC                        =
    *     LAST_HOST                        =
    *     LAST_PROC_NUM                    =
       TABLES
         LOG                              = LT_LOG
       EXCEPTIONS
         COMMAND_NOT_FOUND                = 1
         PARAMETER_EXPECTED               = 2
         PARAMETERS_TOO_LONG              = 3
         SECURITY_RISK                    = 4
         WRONG_CHECK_CALL_INTERFACE       = 5
         NO_PERMISSION                    = 6
         UNKNOWN_ERROR                    = 7
         COMMUNICATION_ERROR              = 8
         SYSTEM_ERROR                     = 9
         CANNOT_GET_RFC_DESTS             = 10
         JOB_UPDATE_FAILED                = 11
         JOB_DOES_NOT_EXIST               = 12
         OTHERS                           = 13

  • Does the local server send the query to remote server?

    I have 2 servers,a local server connect with remote server through database link.If I execute a query at local server but only access tables in remote server,does local server send this query to remote server or all the tables at remote server will send to local server?If local server send this query to remote server,does it can execute another query while it waits the result send from remote server?
    Any help would be appreciated
    Regards

    Yes is executed on remote , and the remote can accept queries as normal see my example below
    SQL> select * from v$database@prod_p;
    Execution Plan
    Plan hash value: 3039639316
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time
    | Inst |
    | 0 | SELECT STATEMENT REMOTE| | 100 | 64400 | 0 (0)| 00:00:0
    1 | |
    | 1 | MERGE JOIN CARTESIAN | | 100 | 64400 | 0 (0)| 00:00:0
    1 | |
    |* 2 | FIXED TABLE FULL | X$KCCDI | 1 | 582 | 0 (0)| 00:00:0
    1 | RPRD |
    | 3 | BUFFER SORT | | 100 | 6200 | 0 (0)| 00:00:0
    1 | |
    | 4 | FIXED TABLE FULL | X$KCCDI2 | 100 | 6200 | 0 (0)| 00:00:0
    1 | RPRD |
    Predicate Information (identified by operation id):
    2 - filter("DI"."INST_ID"=USERENV('INSTANCE'))
    Note
    - fully remote statement

  • How to take a single data point for each trigger pulse ( synchronou​s acquisitio​n).

     hi
              im using the pci-mio-16E1 card, with the IDE VC++, so  im looking for an example to explicate me how to make an synchronous acquisition data using an external timing, so the idea is to acquire (take) a single data point for each trigger pulse  from one  input channel ,and saving  the data in a file .
    now im making a code using the AI_setup and DAQ_op functions, im getting  a speed acquisition (it is the start of acquisition data), and  it is  a synchronous acquisition just for one trigger pulse, and me i looking for an acquisition for each trigger pulse. 
      so to  understand my problem you can see my code :
    iStatus = Timeout_Config(iDevice, lTimeout);
             iRetVal = NIDAQErrorHandler(iStatus, "Timeout_Config", iIgnoreWarning);
       //  configuration and selection of  signal trigger  
             iStatus = Configure_HW_Analog_Trigger(iDevice, ND_ON, iLowValue,iHighValue, ND_ABOVE_HIGH_LEVEL, ND_THE_AI_CHANNEL);
            iRetVal = NIDAQErrorHandler(iStatus, "Configure_HW_Analog_Trigger", iIgnoreWarning);
      iStatus = Select_Signal(iDevice, ND_IN_CONVERT, ND_PFI_2,ND_HIGH_TO_LOW);
             iRetVal = NIDAQErrorHandler(iStatus, "Select_Signal", iIgnoreWarning);
        iStatus = AI_Setup(iDevice, iChannel, iGain);
       iRetVal = NIDAQErrorHandler(iStatus, "AI_Setup", iIgnoreWarning);
       while ((iReadingAvail != 1) && (iStatus == 0)) {
     /* Wait until reading is available. */
             iStatus = AI_Check(iDevice, &iReadingAvail, &iReading);
            iRetVal = NIDAQYield(iYieldON);
           //  Acquire data from a single channel 
        iStatus = DAQ_Op (iDevice, iChannel, iGain, piBuffer, ulCount, dSampRate);
       while ((iDAQstopped != 1) && (iStatus == 0)) {
            iStatus = DAQ_Check(iDevice, &iDAQstopped, &ulRetrieved);
            iRetVal = NIDAQYield(iYieldON);
           iStatus = DAQ_VScale(iDevice, iChannel, iGain, dGainAdjust, dOffset,ulCount, piBuffer, pdVoltBuffer);
          iRetVal = NIDAQErrorHandler(iStatus, "DAQ_VScale",iIgnoreWarning);
       /* Set analog trigger mode back to initial state. */
           iStatus = Configure_HW_Analog_Trigger(iDevice, ND_OFF, iLowValue,iHighValue, ND_ABOVE_HIGH_LEVEL, ND_THE_AI_CHANNEL);
      /* Set PFI line back to initial state. */
           iStatus = Select_Signal(iDevice, ND_IN_START_TRIGGER,ND_AUTOMATIC, ND_DONT_CARE);
              iStatus = DAQ_Clear(iDevice);
     /* Plot acquired data  */
          iRetVal = NIDAQPlotWaveform(pdVoltBuffer,ulCount, WFM_DATA_F64);
    so this is the data acquired -0.900879,-0.900879,-0.900879,-0.900879,-0.900879,​-0.900879,-0.900879,-0.900879 and i think that is a noise because all time i get this data.
    tank you very mutch fo your help

    Hello,
    Please see the responses to this thread at the following post.
    http://forums.ni.com/ni/board/message?board.id=250​&message.id=13686
    Also, please only post one thread per issue.
    Regards,
    Sean C.

  • Extracting the Logical sql query for the specified report  in OBIEE 11g

    Hi ,
    I want to extract the logical SQL Query for the Particular report in OBIEE 11.1.1.5.
    Any pointers related to this will be very helpful.
    Thanks,
    Sonali

    for a try please add Logical sql view to ur report it will dispaly the Logical sql for that Report..
    Hope it will helps you.

  • Execute SQL Task - FOR XML PATH query error

    I have the following query
    SELECT pl.Id,
    pl.StartTime,
    pl.EndTime,
    pl.PackageName,
    pl.Computer,
    pl.Operator,
    CASE WHEN (CHARINDEX('stack trace', pl.ErrorDescription) > 0) Then
        SUBSTRING(pl.ErrorDescription, 0, CHARINDEX('stack trace', pl.ErrorDescription))
        ELSE
        pl.ErrorDescription
        END as ErrorDescription
    ISNULL(ErrorFile,'') as ErrorFile,
    'Not Applicable' as SourceSystem
    FROM etl.PackageLog as pl
    WHERE pl.Processed = 0
    ORDER BY pl.StartTime, pl.PackageName
    FOR XML PATH('Row'), ROOT(N'FieldingCounts')
    in a Execute SQL Task and i get the following error:
    [Execute SQL Task] Error: Executing the query "SELECT pl.Id,
    pl.StartTime,
    pl.EndTime,
    pl.Package..." failed with the following error: "An invalid character was found in text content.
    ". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    The query execute without problem in database and in the ssis package doens't run because of the column
    CASE WHEN (CHARINDEX('stack trace', pl.ErrorDescription) > 0) Then
        SUBSTRING(pl.ErrorDescription, 0, CHARINDEX('stack trace', pl.ErrorDescription))
        ELSE
        pl.ErrorDescription
        END as ErrorDescription
    Any help to overcome the problem?
    Thanks

    Hi,
    It looks like that you must be trying to set the result of the query to some variable from the Execute SQL Task. If yes, make sure that the target variable is of the correct data type where XML string  can fit into. Considering that in SSIS, we have
    some limit for XML strings.
    Please let me know if it doesn't help.
    Thanks,
    Nimit

Maybe you are looking for