Check and validate the characteristic row in query

Hi Gurus,
I am really new to BW, may be a silly question. I Have requirement where I have query, which had characteristic  status having value for open closed items as O and C. Now i need the query to look if status is O,then it should move amount feild as zero .I am not sure where to put the code.
It is really urgent, any help would be highly appreciable.
Thanks in adavance

Hi Amit,
Thanks for response, I could not find any exit  in the query..So i though I should do the changes and see...on my own. I would repeat my query and may be some one
can provide me some solution.
I have rows which have selection for item status as fixed values equal to '#', cleared
and open. And the query has key figure in colums as amount.
So i need my query to read item status and if that is open it should display amount as 0.
I hope i had made this more explainatory  now
quick response would be highly appreciable.
its really urgent
Mona

Similar Messages

  • How to Check and Uncheck the JCheckBox in the JTable?

    Dear Friends,
    I created a Table using JTable and it consists first column is JCheckBox (JCheckBox is included in JTable by using TableCellRenderer) and two more columns with Id and Name. How to enable the check and uncheck the JCheckBox in the Table and how to get the row id or values of the rows where the CheckBox is checked?
    Thanks in Advance.
    Sathish kumar D

    Read the API for JTable and follow the link to the tutorial on how to use tables, where you will find adequate guidance and examples.
    db
    edit And isn't this post on the same topic as your previous one? If so, please add a note that responses should be posted here and not on the other thread.
    [http://forums.sun.com/thread.jspa?threadID=5353422]
    Edited by: Darryl.Burke

  • How can I check and change the size of photo or doc in iPhone or any other app

    How can I check and change the size of photo or doc in iPhone or any other app

    You would need software form a third party to have this option.  The free software that comes with the 8600 doesn't have an option for that. Vuescan is the only software I could find that says it works with your pritner and has a descreen option.  You have to purchase it, but it will give you more advanced options than the software that came with the printer.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • The screen where my apps show on all the pages is not letting me drag them. The screen looks kind of gray. What do I do to be able to move them to different home screens, and check, and uncheck the apps in the list

    The screen where my apps show on all the pages is not letting me drag them. The screen looks kind of gray. What do I do to be able to move them to different home screens, and check, and uncheck the apps in the list

    The specific demo would need to provide code for touch events.
    http://www.w3.org/TR/touch-events/

  • Do u know how to prompt user to enter password and validate the password?

    hi all,anyone knows how to prompt user to enter password and validate the password as well?I do not need the GUI.Can someone post the codes here?Thanks!

    hi all,anyone knows how to prompt user to enter
    password and validate the password as well?I do not
    need the GUI.Can someone post the codes here?Thanks!Codes are
    BufferedReader
    System.in
    if
    else
    System.out.

  • SLDCHECK error-Check and maintain the SLD content for the current client

    Hi experts,
           I am trying to configure PI on QAS box and getting this error when I ran SLD check. This is the only warning/error I am getting in YELLOW and the other messages were in green so thinking that is ok.
    =============
       Calling function LCR_GET_OWN_BUSINESS_SYSTEM
       Retrieving data from the SLD server...
      No corresponding business system found for system NWQ      client 001
        => Check and maintain the SLD content for the current client
        Summary: Connection to SLD works technically, but the SLD content may need maintenance
       => Check and maintain the SLD data content
    ==========
    I went through some threads and readiness check document but not able to get it resolved because I am a developer and not sure about exact steps. Please give me if you have any feedback and if there is admin jobs involved I will get BASIS help but it is totally my responsibilty to get the system up and running. Any help would be greatly appreciated.
    Thanks.
    Mithun

    Hi Mithun,
        Let me know if there is any recent changes/Patching/Upgradatiions in your server....
    Perform Cacherefresh both in ABAP and JAVA Stacks..
    For ABAP level cache go to SXI_CACHE -> RUNTIME->START DELTACACHE REFRESH
    >>>>SXI_CACHE -> RUNTIME->COMPLETE CACHE REFRESH
    CPACACHE:
    For complete cache refresh u2013 http://<hostname>:<port>/CPACache/refresh?mode=full
    For delta cache refresh u2013 http://<hostname>:<port>/CPACache/refresh?mode=delta
    Please let me know if this doesnot resolve your issue.
    Cheers!!!!
    Naveen

  • Can you move a row in a DataGridView to the first row and move the other rows down to make room?

    I'm using a DataGridView (I call it "dg") to display a list of items. I want the user to be able to position the cursor on a row in the middle of the list then click a button to move that row to the top of the list (and move the other rows between
    the first row and the row being moved down one row to accomodate the new first row).
    Robert Homes

    Hello,
    If the DataGridview does not have it's DataSource set we can use the following logic
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim data = (From T In DataGridView1.Rows(DataGridView1.CurrentRow.Index).Cells.Cast(Of DataGridViewCell)() Select T.Value).ToArray
    DataGridView1.Rows.RemoveAt(DataGridView1.CurrentRow.Index)
    DataGridView1.Rows.Insert(0, data)
    End Sub
    If the DataSource is set then we need to do what was done above but against the underlying data rather than the DataGridView itself. The base logic can be found in
    the following article in LanguageExtensions.vb but please note the code there is for a different type of move yet the logic is still the same in the end.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Create SP that returns value and at the same time displays query result in output window

    I would like create an SP which will return the records from the table and also return value to my c# client application.
    For Example:
    Select * from employee returns all the query results in output window.
    Now I want to create an SP
    Create procedure Test
    As
    Declare @ret int,
    Select * from employee
    set @ret = Select count(*) from employee
    if @ret > 0
    return 1
    else
    return 0
    The above algo should return 1 0r 0 to c# client application and at the same time display all employees in sql query output window.
    Can u pls help in this regard.

    The above algo should return 1 0r 0 to c# client application and at the same time display all employees in sql query output window.
    Why?  and No!
    Why?  Your procedure generates a resultset of some number of rows.  You check the resultset for the presence of rows to determine if "anything is there".  You don't need a separate value to tell you this.  Note that it helps
    to post tsql that is syntactically correct.   While we're at it, if you just need to know that rows exist there is no need to count them since that does more work than required.  Simply test for existence using the appropriately-named function
    "exists".  E.g., if exists (select * from dbo.employee). 
    No!  A stored procedure does not display anything anywhere.  The application which executes the procedures is responsible for the consumption of the resultset; it chooses what to do and what to display. 
    Lastly, do not get into the lazy habit of using the asterisk in your tsql code.  That is not best practice.  Along with that, you should also get into the following best practice habits:
    schema-qualify your objects (i.e., dbo.employee)
    terminate every statement - it will eventually be required.

  • How to sum the  result rows at query designer

    Hi,
    We want to sum  the result rows which are at the end of the row by the help of query designer?So ,we directly see at analyzer
    exp:
       ..A.jan...A.feb...B.may...B.jun...SumA...SumB....SumA+B
    X..1............9..........6..............7........10.........13..........?????
    Edited by: zarata on Oct 23, 2011 12:49 PM
    Edited by: zarata on Oct 23, 2011 1:07 PM

    Hi,
    Could you please provide some more information.
    if you have characteristics iobject whose values are (A, B etc) and calendar month in rows and then at column level you have key figures then if you have turn on the "Display Result Rows" property of both iobject in Bex  as "Always" you can get the result. At the same time you can set "Display Overall result" property of the Query to get overall result.
    Regards,
    Pravin

  • Matrix actions and linking the Matrix-row to some fields

    Hello every One,
    I would like to have the following "action" ! I have a Form where i puted 2 edit fields and 1 matrix (Screen Painter), the matrix shows me the first and lost name of the Employee ( just an exp.).
    What i would like to do is to send these datas to the edit fields every time i choose another row. i cannt find any itemEvent for the raws to select the record in the data base and to bind it to the edit Fileds! is this a good way to do it ??
    Thank You for every help

    Hi Amir
    You can use the et_GOT_FOCUS event to check for focus on the Cells of the Matrix. I recommend using et_GOT_FOCUS because this will facilitate mouse and keyboard navigation.
    When you capture the event on the Matrix check the pVal.Row to get the row that received the Focus. Using this Row index retrieve the data from the Matrix and set the values for the required edit fields.
    <i>Remember to include event et_GOT_FOCUS in your EventFilters</i>
    <b>Event Handeling Example:</b>
    If pVal.BeforeAction = False Then
       If pVal.EventType = SAPbouiCOM.BoEventTypes.et_GOT_FOCUS Then
          'IDH_MTR - Matrix Item
          If pVal.ItemUID = "IDH_MTR" Then
             Dim oMatrix As SAPbouiCOM.Matrix
             oMatrix = oForm.Items.Item("IDH_MTR").Specific
             'Work with the DataSources of the
             'Edit Fields to avoid triggering the
             'Focus events again.
             ' * ED1 and ED2 is the DataSources for the
             '   Edit Fields
             ' * Column(1) And Column(2) contains the data
             '   that will be copied to the edit fields
             oForm.DataSources.UserDataSources.Item("ED1").Value = oMatrix.Columns.Item(1).Cells.Item(pVal.Row).Specific.Value
             oForm.DataSources.UserDataSources.Item("ED2").Value = oMatrix.Columns.Item(2).Cells.Item(pVal.Row).Specific.Value
           End If
        End If
    End If
    I hope this will help

  • How to check and change the dafault session timeout of the Portal?

    Hello,
    When leaving a portal page open without using it for a certain amount of time and then accessing it again the Session times-out.
    Where can I check and change this default time-out time in case I would like to extand it for the end users?
    Roy

    Hi Roy,
    Session timeout includes multiple settings (J2EE setting and SSO setting at User Management).
    Defining the Timeout in J2EE Session
           1.      Open file web.xml (path depends on the version of EP6.0. If it is based on NW04, then
    ..\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF
           2.      Enter a value in minutes under <session-timeout>. The value should roughly correspond to the length of a synchronization cycle. The default is 30 minutes.
    After a successful login, it receives a SSO ticket which is valid for longer duration (generally 8 hrs, default which you can changed using  "System Admin" as mentioned by Yoel.
    Thanks,
    Swapan

  • Issue with table selection and display the seleted rows in another page as a table data

    Dear ALL,
    I have a  requirement as below:
    I have a custom OAF  page having one button, on pressing the button it will open a popup window, in that i am doing search operation and data would populate in table region below.
    Then from the table i am doing multiple selection of rows and i have a button, on pressing the button the seleted rows should display in the base page where i called this popup window and popup window should close.
    so i am able to perform multiple selection of row  from the table but how i can display the seleted rows in my base page  and how i can close the poup window after the seleted rows displayed in the base page, please help me on this.
    Thanks
    Deb

    Hi,
    For navigation data from one page to another  you can use  a hashmap that contains the parameters.
    // processFormRequest()
    HashMap hsp = new HashMap(1);
    hsp.put("myParam", "myParamVal");
    pagecontext.setForwardURL("MY_FUNCTION", (byte)0, null, hsp,true, "N", (byte)0);
    You can then retrieve this parameter in processRequest() via:
    pagecontext.getParameter("myParam")
    //Code for redirect to base page with commit
    Refer to the setPostToCallingPage method, from OADialogPage Class how to make the dialog page action buttons submit back to the calling page. In the example, the OK button commits the changes on the dialog page and the NO button rolls back the changes.
    OADialogPage dialogPage = new OADialogPage(OAException.*, mainMessage, null, "", "");
    dialogPage.setOkButtonItemName("okButton");
               dialogPage.setOkButtonToPost(true);
               dialogPage.setNoButtonToPost(true);
               dialogPage.setPostToCallingPage(true);
               dialogPage.setOkButtonLabel(yes);
               dialogPage.setNoButtonLabel(no);
    Thanks,
    Dilip

  • Insert a field and update the same row.

    Hi,
    I am inserting a value in a row.
    And later within a cursor loop I am trying to update the same row. But it is not working....
    CREATE OR REPLACE procedure Del_Note_stage
    Is
    v_delNote Delivery_Note.Delivery_Note_id%type;
    Cursor C1 is Select Heading_Name,File_Data from Sqlload_Stage;
    Begin
    dbms_output.put_line('i am here a ');
    Select Delivery_Note_Id_Seq.nextval into v_delNote from dual;
    Insert into DELIVERY_NOTE_STAGING(Delivery_Note_ID,LUT,LUB,PROCESSED) Values(v_delNote,sysdate,'Config','N');
    commit;
    dbms_output.put_line('i am here b'||v_delNote);
    For sqlload_rec in C1
       Loop
        dbms_output.put_line(sqlload_rec.Heading_Name);
        dbms_output.put_line('Del Note Id is :'||v_delNote);
        update DELIVERY_NOTE_STAGING  set deployed_by='TOM' where delivery_note_id=v_delNote;
    End loop;
    End;

    But it is not working....Why not?
    Please read: http://tkyte.blogspot.com/2005/06/how-to-ask-questions.html
    Why are you updating after inserting?
    Just add deployed_by to the insert statement, or use a default value for that column.
    Also you don't need to select your Delivery_Note_Id_Seq.nextval from dual, just use it in your insert statement.
    Something like:
    Insert into DELIVERY_NOTE_STAGING(Delivery_Note_ID,LUT,LUB,PROCESSED,deployed_by )
    Values( Delivery_Note_Id_Seq.nextval,sysdate,'Config','N', 'TOM' /*or USER*/);

  • I copy a row and then the next row as no actions

    I know this is easy.
    when I set up actions in a row and try to copy it and past a row below it is not there.
    can anyone help?

    Hi,
    One of the easiest ways to do this is simply select the row (discussion below about selecting) and hold the "Ctrl" + "D" ("D" is for "Duplicate"). This will duplicate the row and place it directly under it. Also, you can use "Duplicate" by clicking Edit>Duplicate
    Selecting rows can sometimes be tricky. If I use the mouse, I always try to confirm in the Object and/or Hierarchy Pallet.The mouse can select the row (arrow with an underscore) or all the objects in the row (arrow no underscore)
    Here are 3 ways:
    The mouse can select the row (arrow with an underscore) or all the objects in the row (arrow no underscore). You move the cursor just to the left of the table and the arrow appears.
    One of the best ways I find is selecting the row in the Hierarchy Pallet.
    Select an object in the row and on the tool bar click Table>Select>Row
    I avoid pasting anything if I can help it. If you use flowed forms and if you paste a lot, and If you aren't careful, you'll end up with a corrupt form. Designer is very unpredictable about where it will paste. If you have a large form, it can take a minute or two to track down a pasted object's location. Then you have to move it to where you want it.
    Better to use "Duplicate". That usually means it will be next to the item you're duplicating. If you copy and paste, paste, paste repeatedly too fast, You can really mess things up. Every Paste command takes longer than you think to execute. Wait at least 2 seconds before doing anything after pasting. Otherwise, you'll interpt Designer while it's busy writing the new XML. Yes, Designer is still busy doing work even after you see the new item appear. Be patient.
    Good luck!
    Stephen

  • How to open and validate the tif images via java?

    Is it possible to open and validating the photoshop images via java. Kindly advise me.
    Thanks for looking into this.
    Maria Prabudass

    I have recently looked at athe code for Image Processor.
    To avoid bailing on errors it uses two techniques.
    1) It turns off all PS error reporting in addition to just turning off dialogs with:     app.displayDialogs = DialogModes.NO;  (it restores the original settings when exiting)
    2) It uses the Javascript construct  Try.....Catch around the basic body of the code so "any" error will not abort the script but just jump to the "Catch" code.
    Hope that is useful

Maybe you are looking for