How to set paramters through Query manager.

Hi,
I need to get Parameters when we are executing SQL Query through Query Manager.
In Query manager how to set prompt window for parameters.
Below I applied parameters for from date and to date but its showing error. How to set parameters prompt window.
SELECT     OJDT.TransId, OJDT.Number,NNM1.SeriesName,ojdt.baseref as BaseRefNumber, JDT1.Account,JDT1.StornoAcc,OACT.AcctName,jdt1.credit,jdt1.debit, jdt1.profitcode as [Customer/Vendor],JDT1.OcrCode2 as [Region/Location] , JDT1.OcrCode3 as  Department,
                      JDT1.OcrCode4 as [Core/Deputees/DailyWage/General], JDT1.OcrCode5 as [SubAccofCA&CL],OJDT.RefDate, OJDT.Project,jdt1.project
FROM         OJDT
INNER JOIN JDT1 ON OJDT.TransId = JDT1.TransId
INNER  JOIN OACT on OACT.AcctCode=JDT1.Account
INNER JOIN NNM1 ON OJDT.Series = NNM1.Series
where ojdt.transType=30 and  ojdt.refdate >= '[%0]' AND ojdt.refdate <= '[%1]'
Please guide me.
Regds,
Sampath kumar devunuri.

hi sampath,
Try this query
SELECT T0.TransId, T0.Number,T3.SeriesName,T0.baseref as BaseRefNumber, T1.Account,T1.StornoAcc,T2.AcctName,T1.credit,T1.debit, T1.profitcode as CustomerVendor,T1.OcrCode2 as RegionLocation , T1.OcrCode3 as Department,
T1.OcrCode4 as CoreDeputeesDailyWageGeneral, T1.OcrCode5 as SubAccofCACL,T0.RefDate, T0.Project,T1.project
FROM dbo.OJDT T0
INNER JOIN JDT1 T1 ON T0.TransId = T1.TransId
INNER JOIN OACT T2 on T2.AcctCode=T1.Account
INNER JOIN NNM1 T3 ON T0.Series = T3.Series
where
T0.transType='30' and CAST(T0.refdate AS datetime) BETWEEN '[%0]' AND '[%1]'
Jeyakanthan

Similar Messages

  • How to set input ready query to display mode as default when open workbook?

    Dear All,
    Hi, i have a question here about IP query.
    as my current situation, my workbook included one input ready query, therefore, when i open my workbook which default is Edit mode which mean all value can be edited.
    but, i want it to display mode when open workbook, and i already have a edit button, if i want to edit the value i will use Edit button, so, i wan it as display mode when i first open workbook.
    so, can anyone tell me how to set it as display mode when open workbook which included input ready query?
    Regards
    wenlong
    Thanks a million

    in Data Provide Specfici  commad
    Edit
    Dsiplay
    Filter command
    Assigen Query /Query view
    pls select Edit then save

  • How to set input ready query cell is different color?

    Dear All
      Hi, everyone, hereby i have a IP question.
      i would like to know, how to set the input ready query's cell different color between those cell which is unable to change value one in workbook..?
    Example :
      For my workbook which have a input ready query,
      i have 4 rows for my input ready query report.
      For the first row which is not input ready cell and unable to change any value for the cell, then following rows's cell can be change value,
      so, i would like to make first row's color cell different with following row's cell.
      In additional, all value of cell is initial zero.
      therefore, is there any mehtod to make different color between able cell and unable cell?
    Thanks a million.
    Regards,
    WenLong.

    Cells in the input ready query result have different styles given by SAP. All rows will have one style, column headings will have one style whereas input ready cells will have one style. If you are in Excel 2003, put cursor in the input ready cell, goto format -> style, you can see one BeX style attached to that cell, apply watever color you want for that style, save the workbook. If you do this for one cell, it will be applied to all the input ready cells by default. In the same way you can give different color to the non input ready cell styles. In Excel 2007, Cell styles are available in Home -> Cell styles. Here you can see all Bex related styles.

  • How to set input ready query to display mode and set edit mode in WAD?

    when I create A input ready query but not set query propery  start  query in change mode ,but I want to set this query in input ready mode ,how to set this in WAD?
    hope anyone can help me
    regard  by
    wenlong

    Hi,
          You can get all the info from this thread , try it out
           WAD - set data entry mode
           Hope it helps.
    Regards,
    Priya.

  • How to set hidden value in managed bean?

    Hi
    I have the following :
                           <a4j:commandButton
                                          id="commandButton3"
                                          action="#{backing_CustSearchBean.serchCustomer}"
                                          image="images/btn_search.gif"
                                          style="position: relative; margin-right: 5px;"
                                          actionListener="#{backing_CustSearchBean.checkText}"
                                          immediate="true"
                                          status="wait"
                                          oncomplete="showQuickCreate()"
                                          >  
                                <h:inputHidden id="jsfHidden" binding="#{backing_CustSearchBean.jsfHidden}" />
                                  <a4j:status id="wait">
                                    <f:facet name="start" >
                                      <h:graphicImage url="images/SpinGear2.gif" style="position: absolute; left: 378px; top: 216px; width: 19px; height: 18px;"/>
                                    </f:facet>
                                  </a4j:status>
                     </a4j:commandButton>when the action goes in the managed bean I want to set the value of hidden parameter "jsfHidden" in managed bean and catch it in showQuickCreate (oncomplete="showQuickCreate()" ) javascript function on return to the page.
    Please help, how should I do it?

    I know nothing about a4j, but if you want to pass new parameters from JSF to the backing bean, then use f:param for commandlinks or f:attribute for commandbuttons.
    The h:inputHidden just saves backing bean properties from request to request. You can't set or change it from within the JSF.
    Not sure if the f:attribute will work for the a4j commandbutton (check if they have a support forum at their website?)
    Also see http://balusc.xs4all.nl/srv/dev-jep-com.html about passing parameters and accessing objects and beans in the facescontext.

  • How to set a BEx Query Condition in Design Studio (e.g. Net value GT 0)

    Hi experts,
    I have set a simple condition in my BEx Query...
    e.g. key figure "Net value" GT 0 to become only positive values in the query result.
    In the Query runtime the condition works successful, but in the Design Sudio view the defined Query condition doesn´t work.
    In my Design Studio crosstab I have tried to switch between the display setting "Conditional formating Visible" true/false, but without success.
    By the way, before I have posted this thread, I had a look at this two blogs...
    Design Studio 1.0: Create a Scorecard Using SAP BW BEx Query Exceptions
    Design Studio 1.2  - a Second Look
    Any ideas or experiences?
    Thanks and regards,
    Michael

    Hi Michael,
    I think you are mixing up two different BEx terms. Conditions are filters on key figures (show me only the results with a value bigger than 50). Exceptions do not filter the result set, but provide a formatting based on the values in the result set (if value is bigger than 50, make its cell red).
    The Conditional formatting setting in Design Studio refers to the BEx exceptions. For the BEx conditions there isn't such a setting available. You just have to activate the condition in your BEx Query and use that for your data source in Design Studio.
    If you want a workaround to enable/disable conditions from Design Studio, check this blog I wrote: HackingSAP.com - SAP Design Studio and Conditions It shows how you can use variables to adjust the conditions (and also activate) from within Design Studio.
    Cheers,
    Xavier

  • How to set the default query for query component.

    I have a query component on the page, and there are 2 system query in the saved search dropdown list.
    Here is my system saved search
    Saved Search:
    Search by worker
    Search by organization.
    when the page load the default search panel is always search by worker.
    I want to default the search panel search by organization. How do I implement this.

    Thanks for your reply. Maybe I not describe my question clearly, I want to display different search form.
    For example
    when search by work, the search form displayed as firstname, lastname, gender etc.
    when search by work, the search form dispaly as organization name , manager name etc.
    I resolve this issue by customize the queryMode object.

  • How to set a sql query time out with jdbc:oracle:thin

    should i change the JDBC driver with jdbc:oralce:XA:thin or other driver with XA?

    SQL query timeout may be set with setQueryTimeout.
    http://java.sun.com/j2se/1.4.2/docs/api/java/sql/Statement.html#setQueryTimeout(int)
    A query timeout bug is fixed in Oracle JDBC Drivers release
    10.1.0.2.0 (10g)
    FIXED BUG-2249191
    In the Server Internal Driver, setting the query timeout does not
    +(and likely will never) work. The query execution will not be+
    canceled when the timeout expires, even if the query runs forever.
    Further, after the query returns, the execution of your code
    may pause for the length of the timeout.
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_readme101020.html

  • How can  show itemname in Query manager?

    If I do a query using items, when i choose de range of items only show ItemCode and  numbers of records, how can also show itemname??

    Dear Mariano Fernandez Bustillos,
    You could show the ItemName like following query:
    SELECT T0.[ItemCode], T0.[ItemName]
    FROM OITM T0
    WHERE T0.[ItemCode] > 'A00001'
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • How to set on block query only

    dear all
    i want to set on block update,inset,delete as property false,
    and set query property true, and i want in same time enable to user to set values to execute query on this value.
    help me plz
    Message was edited by:
    Hshihadah

    ** Built–in: SET_BLOCK_PROPERTY
    ** Example: Prevent future inserts, updates, and deletes to
    ** queried records in the block whose name is
    ** passed as an argument to this procedure.
    PROCEDURE Make_Block_Query_Only( blk_name IN VARCHAR2 )
    IS
    blk_id Block;
    BEGIN
    /* Lookup the block’s internal ID */
    blk_id := Find_Block(blk_name);
    ** If the block exists (ie the ID is Not NULL) then set
    ** the three properties for this block. Otherwise signal
    ** an error.
    IF NOT Id_Null(blk_id) THEN
    Set_Block_Property(blk_id,INSERT_ALLOWED,PROPERTY_FALSE);
    Set_Block_Property(blk_id,UPDATE_ALLOWED,PROPERTY_FALSE);
    Set_Block_Property(blk_id,DELETE_ALLOWED,PROPERTY_FALSE);
    ELSE
    Message(’Block ’||blk_name||’ does not exist.’);
    RAISE Form_Trigger_Failure;
    END IF;
    END;

  • How to set default selection in tableSelectOne

    Hi Friends,
    How to set tableSelectOne through backing bean.
    I am opening a child window which will populate the list in table format. I am loading it through manually. Now i want to set the first record to be selected. Kindly let me know how to do it.
    The below is my code in jspx
    <af:table emptyText="#{mofRes['mofEgov.po.noItemsFound']}" rows="5" banding="row"
    bandingInterval="1" binding="#{BeneficiaryTableHandler.beneficiaryTable}"
    value="#{BeneficiaryTableHandler.beneficiaryTableModel}" var="rowBeneficiary"
    id="table2" width="900">
    <f:facet name="selection">
    <af:tableSelectOne binding="#{BeneficiaryTableHandler.beneficiarySelectOne}"
    id="tableSelectOne"/>
    </f:facet>
    <af:column sortable="false" sortProperty="bankName"
    headerText="#{mofRes['mofEgov.supplier.bankName']}"
    binding="#{BeneficiaryTableHandler.beneficiaryColumn3}"
    id="beneficiaryColumn3" formatType="icon">
    <af:outputText value="#{rowBeneficiary.bankName}"
    id="beneficiaryOutputText3"
    binding="#{backing_apps_po_POBeneficiaryOutput.beneficiaryOutputText3}"/>
    </af:column>
    <af:column sortable="false" sortProperty="bankActName"
    headerText="#{mofRes['mofEgov.supplier.bankActName']}"
    binding="#{BeneficiaryTableHandler.beneficiaryColumn1}"
    id="beneficiaryColumn1" formatType="icon"
    gridVisible="true">
    <af:outputText value="#{rowBeneficiary.bankActName}"
    id="beneficiaryOutputText1"
    binding="#{backing_apps_po_POBeneficiaryOutput.beneficiaryOutputText1}"/>
    </af:column>
    </af:table>
    Below code used in backing bean to create rows in the table
    for (int rwIndx = 0; rwIndx < siteLiseSize ; ++rwIndx) {
    beneficiaryBean = (BeneficiaryBean)beneficiaryList.get(rwIndx);
    handler.createRow(beneficiaryBean);
    logger.log(Level.INFO," --- Bank Name --- :"+beneficiaryBean.getBankActName()+": --- Bank Act No -- :"+beneficiaryBean.getBankActNo());
    public void createRow(BeneficiaryBean bean) {
    //logger.log(Level.FINE," ---- createRow Start --- ");
    ((Collection)beneficiaryTableModel.getWrappedData()).add(bean);
    //logger.log(Level.FINE," ---- createRow End --- ");
    Thanks & Regards
    VB

    This is probably too late to help, but I had a similar situation. There are a couple of ways to solve this.
    1. Set the ID values on the af:form, af:table, and af:tableSelectOne tags, and write some javascript code to select the first radio button, in the event there are no radio buttons selected. Something like this would work.
              function selectFirstRadio() {
                radioButtons = document.myform['mytable:myradios'];
                anypressed = false;
                for (i = 0; i < radioButtons.length; i++) {
                  radioButton = radioButtons;
    if (anypressed.checked) {
    anypressed = true;
    if (!anypressed) {
    document.myform['mytable:myradios'][0].checked = true;
    This would have an af:form with an id='myform', an af:table with an id='mytable', and an af:tableSelectOne with an id='myradios'
    The other method I used was, in the accessor for getting the value for the af:table was this:
        public DataModel getMyModel() {
            RowKeySet selectedItem = myTable.getSelectionState();
            if ((selectedItem == null) || (selectedItem.getSize() == 0)) {
                Object o = myModel.getWrappedData();
                List rows = (List)myModel.getWrappedData();
                try {
                    selectedItem.getKeySet().add( "0" );
                } catch (Throwable t) {
                    t.printStackTrace();
            return myModel;
        }'myTable' is a binding from an af:table to a UIXTable.
    I should add, this is for ADF 10.1.3.x, not ADF 11.
    Best of luck.
    Edited by: daiken on Mar 27, 2009 7:13 AM

  • How to send data through gprs from j2me application to desktop

    hi
    i wanna send some data to a server(where http://localhost:8080/ccp.html is running).i wanna catch this data and use it further.
    how to do it through query string/xml.

    Hi srini,
    it depends upon what is the receiver system.If you want to save the emails coming from SAP to Files ..then u will have to use File adapter in the receiver side...
    check these weblog.....
    Receiving Mail attachments using additional files of file adapter
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
    Regards
    Biplab
    Use a Good Subject Line, One Question Per Posting - Award Points

  • Query Manager Text Capacity is Full 6400 characters only

    hi again experts!
    I'd like to ask how  can I increase the Query Manager Text fields my query cant be complete.
    Anybody has an idea.
    Thank you.
    Clint

    Hi Suda,
    Here is my query,
    FROM dbo.OINV T0 INNER JOIN dbo.INV1 T1 ON (T0.DocEntry = T1.DocEntry) LEFT OUTER JOIN dbo.RIN1 T7 ON (T1.ItemCode = T7.ItemCode)
      AND (T0.DocEntry = T7.BaseEntry) LEFT OUTER JOIN dbo.ORIN T6 ON (T7.DocEntry = T6.DocEntry) INNER JOIN dbo.OCRD T2 ON (T0.CardCode = T2.CardCode)
      INNER JOIN dbo.OCRG T3 ON (T2.GroupCode = T3.GroupCode)  LEFT OUTER JOIN dbo.OITM T4 ON (T1.ItemCode = T4.ItemCode)
      LEFT OUTER JOIN dbo.OITB T5 ON (T4.ItmsGrpCod = T5.ItmsGrpCod) WHERE T1.ItemCode like '80%'
    The query has plenty of considerations from side, that why it exceeds to limit characters but then the query run fast. is there any idea regarding this, thank you in advance.
    Clint

  • How to create report from SDK without clicking through ther Query manager ?

    Hello,
      I need to create an on-screen report with selection criteria. (Something similar to Reports/Inventory/Items list)
    I could create a query and save it but
    - how to start the query by SDK then - without clicking through the Query manager ?
    - how to pass the selection criteria to the query ?
    Please suggest me ?
    Regards,

    As the helpcenter(2005 helpcenter) has missed this bit of documentation (on UserQueries) could someone please provide an example of using this object
    thanks
    Message was edited by: George Savery
    hmm I thought it had timed out .... Woops

  • How to set Query SQL Statement parameter dynamically in Sender JDBCAdpter

    Hi All,
    I have one scenario in which we are using JDBC Sender Adapter.
    Now in this case,we need to set Query SQL Statement with a SELECT statement based on some fields.
    This SQL statement is not constant, it would need to be changed.
    Means sometimes receiver will want to execute SQL statement with these fields and sometimes they will want to execute it with different fields.
    We can create separate channels for each SQL statement but again that is not an optimum solution.
    So ,I am looking out for a way to set these parameters dynamically or set SQL statement at Runtime.
    Can you all please help me to get this?

    Shweta ,
    <i>Sometimes receiver will want to execute SQL statement dynamically</i>....
    How you will get the query dynamically? Ok Let me assume, consider they are sending the query through file, then its definitely possible. But u need BPM and also not sender JDBC receiver adapter instead, receiver JDBC adapter.
    SQL Query File ->BPM>Synchronous send [Fetch data from DB]--->Response -
    >...............
    Do u think the above design will suit's ur case!!!!
    Best regards,
    raj.

Maybe you are looking for