Check on characteristic row

Hi Guys,
I am really new to BW, may be a silly question. I Have requirement where I have query, which had characteristic field 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 amont 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 Abhishek,
1. I checked the program for MB51.
   RM07DOCS
2. It is a normal report of type 1.
3. I don't think there is any user-exit
   for such a normal report.
4. For u requirement,
   what can be done is,
   that u copy the program
   to Y program.
   In that u can write
   ur code for selection screen validation
   of 7 days.
I hope it helps.
Regards,
Amit M.

Similar Messages

  • InfoPath form load rule is not checking all the rows in form library

    Hi,
    Requirement:
    We have a form library named "HR Annual Review". In the InfoPath form we have two buttons "Save" and "Submit". User is allowed to Save multiple times and only once using Submit button. The file name of form library "HR
    Annual Review" will be stored in the format “<username>+<mm>+<dd>+<yy>.xml”. Say for example, an user named Mike Walt submitted a form then the file name will be as “MikeWalt012314.xml”. If the same user (Mike Walt)
    submits the form and tries to open the form for subsequent edit, then we need to show a view which has an error info saying “The Appraisal is already submitted for the current appraisal cycle”.
    Solution we tried:
    To achieve the above requirement, we tried using InfoPath Form Load and add a rule to check whether the combination of current user name and the year already exists in the filename column of the form library. But the rule we applied is not checking all the
    rows in the form library. The rule is always checking the first row of the form library.
    What we need:
    We need the validation using InfoPath rule or some other way/solution to check whether the combination of current login username and current year file already exists in the form library.
    Thanks in advance.
    Srivignesh J

    Hi Srivignesh,
    Submit button Uses the Main Data connection to submit the data to the list. This is what you are using and naming the file in the format. You can create secondary data submit that will update the exiting item in the list. With this, you don't have to create
    any rules to check all the rows which is also not possible in OOB InfoPath.
    Once you have the two data connection, hide the toolbar from the form and display these two on the button. For The Submit button, apply the rule to hide the button if created by is not empty. For Save button, apply the rule to hide the button if Created
    By is empty. This way, when a new form is created, you will see the Submit button, and when the user have to update the form, they will see Save button. Hope it help.s
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Check whether existing row exist, if does not exist,then insert else skip?

    let say, in a mapping , I have a external table and a normal db table
    , I want to check if current row is similar/exist, if it exist, record row will be skipped and wont be re-inserted again
    only if it does not exist, then that particular row will be inserted.
    can I do this with a lookup? But I have no idea how.. any guidance thank!
    Edited by: 854616 on May 9, 2011 8:41 PM

    You can use the joiner
    Say you have employee_src table (Source) and employee_tgt (target) and employee_id is the primary column and if the employee_id exist in target table then skip the records.
    then
    Join
    employee_src.employee_id = employee_tgt.employee_id(+)
    then apply the filter where employee_src.employee_id is null
    then load them to target table..
    Cheers
    nawneet

  • RSRV Check Check if characteristic values of text table exist in SID table

    Hello Guys,
    I have run the RSRV check Check if characteristic values of text table exist in SID table and I got a warning
    when I check the Text table and compare it to attribute table, total entries in text table is more than entries in attribute table..
    TEXT TABLE DONT HAVE ANY LANGUAGE...
    is it possible that there are more entries in text rather than attributes... again THERE are no language..
    Many Thanks

    try to do a 'select * from table' and catch the
    exception as it might fail if the table doesn't exist.Which might take quite a time if the table is big! If you really want to do that I'd use SELECT * FROM table WHERE 1=2
    A better way is, to ask the DatabaseMetadata object to retrieve information about the table...
    Thomas

  • ORA-01423: error encountered while checking for extra rows in exact fetch

    ERROR at line 1:
    ORA-01423: error encountered while checking for extra rows in exact fetch
    ORA-01722: invalid number
    ORA-06512: at "Department.get_emp_name", line 57
    ORA-06512: at line 14
    Hi
    The above are the error messages I am running into and I am not sure what it means at all. I do have a query which select few rows into cursor
    cursor c_requested is
    select * from departments where emp_id in (1, 2, 3)
    now from these rows I again creating a query dynamically
    open c_requested;
    loop
    fetch c_requested into deptID, name, authorized; -- declared variables
    exit when c_requested%NotFound;
    sqlstring := 'Select name from employees where deptID = ' || deptID || ' and Authorized = ' || authorized;
    begin
    execute immediate sqlstring into description; -- declared variable
    exit;
    exception when no_data_found then
    description := 'FILTER_OUT';
    end;
    end loop;
    close c_requested;
    This code is inside a function get_emp_name(). When I execute this function I am getting the above errors. I really appreciate all your help. Please let me know if you need more information.
    Thank you very much

    Thank you very much damorgan,
    I looked through my code and figured out what was wrong. I had a varchar2 column in the table where I was passing a value 999 instead of '999'. Thanks again.
    I have one more question. I am using cursor to loop through.. here is my code
    rowcount integer;
    cursor c_emp is
    select * from employees where empID in (....);
    begin
    open c_emp;
    rowcount := c_emp%RowCount;
    loop
    end loop;
    dbms_output.put_line(rowcount);
    end;
    I am getting rowcount = 0 even though there are many values in it. I am not sure if I am using the where clause properly. Any help would be appreciated.
    thank you.

  • 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

  • Help requested: How to pass the (check box) selected rows data to other scr

    Hi friends, Here is a situation where I have to pick only those records data which i select by checking the check boxes and carry on to next screen where I have to display them and do some processing on such selected rows of data. Can any one suggest me how to code this. Thanks in advance.

    Hi Subbarao,
    One way is to check if the field is selected by checking if the field value = 'X'.
    If it is a table control we will have to loop and find out which all records are selected..it is notable that the check box field will mostly be of single character and contain 'X' if it is checked and space if not checked
    Based on the structure where the check box is held we may have to implement various logic to retrieve whether the field is checked or not....for instance we can move data to another internal table for which the checkbox is checked and can retrieve it from the next screen
    Pls check,revert and reward if helpful
    Regards
    Byju

  • #MULTIVALUE even affter checking avoid duplicate row agg.

    Hi experts
    I am getting multivalue error in few rows even after checking the option of avoid duplicate row  agg.
    any ideas
    regards

    Hi,
    #Multivalue :- this error will occur in 3ways
    1) #multivalue in aggregation -
      the o/p context not include i/p context its  situation this error occurs.
    2) #multivalue in breaks header or footer
    3) #multivalue in section level.
    Please provide us with the description of the issue u r facing.
    Regards,
    Chitha.

  • CheckBox Item Renderer checks wrong grid row after sorting

    I have an advanced Data Grid that has a checkBox ItemRenderer. The underlying object being displayed (Server) in the dataGrid is being bound to the checkBox with a selectedForDeployment:Boolean property.
    I had this working just fine until the datagrid is sorted. After the grid is sorted I can click on the checkBox in row 2 and the checkBox in row 8 will be selected for instance. Or in some cases all checkBoxes will become checked. Also, if I have some already checked and then sort, the checkBox will become unchecked.
    I have an example of my itemRender below. Any idea on how I can get this to work:
    public class CheckBoxRenderer extends CheckBox
            override public function set data(value:Object):void {
                if(value){
                    super.data = value;
                    Server(super.data).addEventListener("setSelectionChanged", valueChange);
                    this.selected = value.selectedForDeployment;
            public function CheckBoxRenderer(){
                focusEnabled = false;
                BindingUtils.bindSetter(selectionChange, this, "selected");
            //this method occurs the checkbox is clicked
            public function selectionChange(value:Boolean):void{
                trace(value);
                this.selected = value;
                if(this.data){
                    this.data.selectedForDeployment = value;
            //This method occurs when the selectedForDeployment boolean in the object changes
            public function valueChange(event:Event):void{
                this.selected = event.target.selectedForDeployment;
            /* center the checkbox if we're in a datagrid */
            override protected function updateDisplayList(w:Number, h:Number):void
                super.updateDisplayList(w, h);
                if (listData is DataGridListData)
                    var n:int = numChildren;
                    for (var i:int = 0; i < n; i++)
                        var c:DisplayObject = getChildAt(i);
                        if (!(c is TextField))
                            c.x = (w - c.width) / 2;
                            c.y = (h - c.height) / 2;

    This usually works for me:
    package renderers
        import flash.events.Event;   
        import mx.controls.CheckBox;
        public class CheckBoxRenderer extends CheckBox
            public function CheckBoxRenderer()
                super();
                addEventListener(Event.CHANGE, handleChange);
            override public function set data(value:Object):void {
                if(value){
                    super.data = value;
                    selected = value.selectedForDeployment;
            private function handleChange(event:Event):void{
                data.selectedForDeployment = event.target.selected;

  • Report Painter - Define characteristic row by group field

    I am creating a report using report painter. I wish to define cost element as the characteristice row, by inserting the Cost element group. But the characteristic panel do not have the column 'group' for me to difine; it only consist on the following column:-
    Name
    SET or Hierarchy on/off
    variable on/off
    from
    text
    variable on/off
    to
    text
    More
    Explore
    how do I insert the column 'group'?
    Thank you

    Dear Cire,
    Tick the "Set" and give the group name
    Assign Points if useful
    regards
    Venkatesh

  • Checking for same rows in a tabular

    héllo,
    I've a tabular in Forms 6i, I can insert them with a LOV. Now, when a new row is inserted I want to check if the inserted row don't allready exist in this tabular.
    When the same row is allready in the tabular, I want to see an error.
    Does someone know how to do this?
    Tnx

    >
    Hi,
    First of all, the solution of Lynden Zhang will not
    t work. That is the solution for PK columns.
    First solution:
    You can create an PK which contain all the columns
    s of the table (or of the block). So, an message
    error will appear when you will try to save.
    Second solution:
    Use the next_record built-in to go from record to
    o record, and to verify every record from the block
    if it is the same with the one you already introduced
    (you have to compare all the coresponding items). All
    this in a loop. The code must by in the
    WHEN-BUTTON-PRESED trigger which displayed the LOV.
    The code is "activated" if a value is picked up from
    the list, else null.
    If this is not enough explicitly let me know,
    EugenMost cases you don't have check all columns in a row to
    find out duplicates.
    My solution is for PK, but form's PK is not necessarily to be the same as db PK. As you said, you can easily set as many columns as you want in a block as PK. Then forms handle it nicely for you.

  • Check for a row in table control

    I have a table control and on a click of a row in a particular column (vertically downwards) i want to check which row of that column is clicked because i want search help of that column different for every row.
    how can i do it

    hi,
    In the struicture having the table control fields add a field 'sel type c.
    In the screen in table control consider single line selection and enter field name as sel. activate the screen layout.
    In PAI,
    loop atthe table control table and read the row where sel = 'X'.
    Now write your serach help code for the corresponding column and row.
    Thanks,
    Kasiraman R

  • Constraint Checking Vs After Row Trigger

    According to db concepts Chap 17 Trigger -> Trigger Execution, integrity checking is performed BEFORE the after row trigger executed. I guess this is not 100% true. AFAIK, we can create an AFTER ROW trigger on a child table which automatically insert new referenced row in the parent table. e.g.
    CREATE TABLE child (
    child_id int primary key,
    parent_id int references parent,
    CREATE TABLE parent (
    parent_id int primary key,
    CREATE OR REPLACE TRIGGER A
    AFTER INSERT OR UPDATE on child
    FOR EACH ROW
    BEGIN
    INSERT INTO parent values (:new.parent_id,...);
    END;
    If the constraint checking is done before the trigger, the referential integrity should have been violated when the child row is inserted.
    So if the documentation is wrong, when will the constraint checking be carried out with respect to trigger execution.

    There are plenty of things that are easier and/or safer to do in an AFTER ROW trigger, since can see exactly what the data in the row has been set to by any BEFORE ROW triggers and you can't change the data inadvertently. If your BEFORE ROW triggers are calling relatively complex procedures owned by various disparate groups of developers, it can be non-trivial to ensure that every groups changes are perfectly coordinated. AFTER ROW triggers are a heck of a lot easier to deal with here because you don't have to worry about another section of code changing the data you're using to make your decision.
    I'm hard pressed to think of something that couldn't possibly be accomplished in a BEfORE ROW trigger, though I suspect there are at least a few oddball situations.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Check if ANY rows from a subquery are IN another subquery

    I have a problem in one of my queries, I changed table names for simplicity.
    Basically, in the WHERE clause, I have this sub query:
    WHERE (SELECT
    file.id
    FROM file
    WHERE
    file.userid
    =
    doc.userid)
    IN
    (SELECT
    share.shareid
    from
    share
    where
    share.userid
    =
    '1234')
    Originally, the first part of the subquery would only ever return 1 id. So this worked fine. However, I am changing this to allow multiple 'files' per 'user'. So the beginning of this subquery would return more than 1 row. So right now it is giving me an
    error that the subqeuery returned more than 1 result.
    What I want to do is, check if ANY of those file id's are IN the next subquery.
    Any ideas?

    Perfect!
    I just had to change
    AND [file].userid IN  to
    AND [file].id IN
    Thank you so much for the quick answer Tom!
    Another way is to use EXISTS
    WHERE EXISTS (SELECT * FROM [file]
    WHERE [file].userid = doc.userid
    AND EXISTS (SELECT 1 from share where share.userid = '1234' AND share.shareid = [file].id))
    or join
    WHERE EXISTS (SELECT * FROM [file]
    INNER JOIN share
    ON share.userid = '1234'
    AND share.shareid = [file].id
    WHERE [file].userid = doc.userid
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • CheckBox in DataGrid - how to check without changing row selection?

    Hi Everyone
    I have a CheckBox set as the renderer/editor for a column in
    my DataGrid
    and I would like users to be able to check and uncheck the
    boxes on
    different rows without selecting or changing the selection of
    the
    current grid row.
    Is this possible? Any help would be very much appreciated.
    Thanks
    Gary Q

    Hey Gary,
    When you are defing the checkbox as itemrenderer then create
    a new class for that and make one checkbox component in that.
    then in the dataprovider of your datagrid append one
    <selected>false</selected> tag. Then in your renderer
    class check for the selected tag like
    override public function set data( value:Object ):void
    super.data = value;
    if(value == null)
    return;
    var xml:XML = XML( data );
    if(xml.selected == "false")
    cbx.selected = false;
    else
    cbx.selected = true;
    private function updateSelected():void
    super.data.selected = cbx.selected;
    [Bindable] public var selected:Boolean;
    <mx:CheckBox id="cbx" width="14"
    click="updateSelected()"/>
    </mx:HBox>

Maybe you are looking for

  • Unable to open OEM on RHEL5

    Hi, I've successfully installed and create database on RHEL Version 5. I'm using Oracle 11g db server. all services, listener and database is up the only problem is when I access OEM using Firefox https://192.168.1.1:1158/em it gives me security cert

  • What is the best cord to hook the MacBook Pro up to a TV?

    I need to hook up my 15inch MacBook Pro to a TV and I was wondering what is the best way to do so.

  • FP memory leak

    I'm using a lot of cFP hardware in a LV 2011 project. The program has started to crash, indicating that all memory is taken. After using the Desktop Execution Trace Toolkit, I see that it is the FP Read (Float -IO).vi that eats 4 kbytes? of data each

  • Big transaction log file

    Hi, I found a sql server database with a transaction log file of 65 GB. The database is configured with the recovery model option = full. Also, I noticed than since the database exist, they only took database backup. No transaction log backup were ex

  • 32 bit or 64 bit Vista...Help

    I have Vista 32 bit Home Premium installled on a KN8 Neo MS-7030 mobo, Athlon64 3700+, with 2 GB DDR, my question is if I can install Vista Home Premium 64 bit on this system. Will I have to up date all drivers, do a clean install or can i save my pr