Extracting blank value rows through infopackage selection

Hi ,
   I have a requirement where I need to extarct rows where FY is blank. How can I achieve this in infopackage data selection tab.
  I have tried a ABAP routine as mentioned below, but which is not working (i.e not getting required data set).
  l_t_range-low = ' '.
  l_t_range-option = 'EQ'.
  l_t_range-sign = 'I'.
  l_idx = sy-tabix.
  modify l_t_range index l_idx.
Any help is appreciated.
Thanks you
MB

Try like this.
data: l_idx like sy-tabix.
read table l_t_range with key
fieldname = '0FISCYEAR'.
l_idx = sy-tabix.
l_t_range-IOBJNM = '0FISCYEAR'.
l_t_range-FIELDNAME = '0FISCYEAR'.
l_t_range-SIGN = 'I'.
l_t_range-OPTION = 'EQ'.
l_t_range-LOW = ' '.
if l_idx <> 0.
modify l_t_range index l_idx.
else.
append l_t_range.
endif.
p_subrc = 0.
Regards.

Similar Messages

  • How to replace automatically 'blank' values by '#' in Input Query ?

    Hi there,
    the Command REFRESH_COMMAND triggers an error message if the field is blank. Is there a way with a Java Script to browse the ANALYSIS_ITEM and replace with # all blank values ?
    Is there a way to debbug REFRESH_DATA since the error message is triggered in the Java Stack ?
    Otherwise can someone let me know how to browse the content of the InputQuery ?
    I managed to write some Java to replace blank value  by # for a selection, I just want to be able to browse all the data entries and trigger the Javscript before executing REFRESH_DATA.
    Cheers,
    Erik.

    Hi Sankar,
    I fear you did not understand my problem.
    I have an input-ready query for IP with new lines.
    There is a control done by the command REFRESH_DATA on the JavaStack which does control that there is an entry for all
    the characteristics in the Query. Meaning the user has to enter # , the system does not allow a 'blank' value.
    What i try to achieve is to replace all 'blank' with '#' for all the entries in the input-ready query.
    I have a JavaScript qhich does work if I select the area but what I want is to execute this script for all new or changed entries in the input-ready query ( which is a ANALYSIS_ITEM in the WAD).
    Another way would be to disable the error message generated by the java stack which is
       Missing or invalid characteristic value in new row/column : <Name of the Characteristic>.
    Cheers,
    Erik

  • Want to delete Rows from SAP Query which have u20180u2019 or blank values

    Hi Experts,
    I have made one sap-query,  in that I have added some additional fields, after that I am getting some blank or u20180u2019 values in some rows, can anyone tell me how to delete those rows which have u20180u2019 or blank values.
    Regards
    Mahadev Roy

    Hi mahadev
    You must be fetching data from SQ02 in some internal table.Delete values from that internal table.
    Also as you are fetching records from SQ02 then in the select statement you can put this condition of '0' and blank
    so that you will get appropriate result.
    Thanks
    Khushboo

  • Issue with Blank Value selection in Dropdown List

    Hello Experts,
                        I am facing one strange issue in Adobe Forms Drop Down(DD) list. Foll. is the list data which contains a several item data & blank value. After item data selection user must be able to select blank value in case he doesn't want to set the value to Order Unit as shown in screen shot below.
                                  Now my issue is after any of the item values selection (for ex. BAG - BAG)  user is not able to set the blank value again at my client system. However its working fine in mine. When checked client is using Adobe Reader 8.0 which is same as mine.
    Thanks in advance.
    Regards,
      Amit

    Hi Steve,
                   Thanks for the reply. We have a blank value in the DD as a list item, where key & description is empty space. As i posted above user must be able to select that blank item if doesn't want any value for Order Unit. This selection is working fine in my sytem, but my client facing the issue where he can not select the blank value from DD.
    Thanks,
    Amit

  • " To Value " is  greyed out  in Infopackage Selection Tab ??????

    Infopackage Selection Tab has some <b>mandatory</b> selections to be fild in for loading.
    "From value" is excepting values but "To Value" is greyed out ???
    Its for a SAP extractor - FERC.
    Help SDNer's

    I see the Doc :
    Text
    Selection Options
    Definition
    Selection options that can be processed for a DataSource field.
    Note 1:
    The selection options defined here must be supported by the extractor.
    Note 2:
    If no other selection options are used for a DataSource field other than
    'EQ' and 'BT', no further definition is required. The value of the
    selection options can remain as the the default setting '0'.
    The selection option combinations are encoded into a binary string using the following schema and are saved as decimal figures:
    Selection option exponent (binary string)
    EQ 2^0
    BT 2^1
    CP 2^2
    GT 2^3
    GE 2^4
    LT 2^5
    LE 2^6
    NE 2^7
    NB 2^8
    NP 2^9
    Each character in the resulting binary string describes whether the corresponding selection option is allowed or not.
    That is:
    <b>
    1-allowed</b>
    <b>0-not allowed</b>
    For example:
    Selection options EQ and CP can be used to select in a field.
    The binary string is then: 0000000101
    The corresponding decimal value that sis saved as the DataSource definition is: 12^0 + 12^2 = 5
    <u>
    All the selections have 1 which is allowed but why To value is greyed out ?</u>

  • Generating multiple rows through select result

    Hi,
    I have the requirement to generate rows based on the return of my select.
    This is the source of my table mytab
    COL1    CO2
    ROWS    5
    f01         ^[a-zA-Z0-9ÖÄÜüöäß%_ .,:;!?&[:space:]\(\)-]+$
    f02         ^[0-9]{1,}$Now I need this output.
    ITEM       REGEXPR
    f01_0001   ^[a-zA-Z0-9ÖÄÜüöäß%_ .,:;!?&[:space:]\(\)-]+$
    f01_0002   ^[a-zA-Z0-9ÖÄÜüöäß%_ .,:;!?&[:space:]\(\)-]+$
    f01_0003   ^[a-zA-Z0-9ÖÄÜüöäß%_ .,:;!?&[:space:]\(\)-]+$
    f01_0004   ^[a-zA-Z0-9ÖÄÜüöäß%_ .,:;!?&[:space:]\(\)-]+$
    f01_0005   ^[a-zA-Z0-9ÖÄÜüöäß%_ .,:;!?&[:space:]\(\)-]+$
    f02_0001   ^[0-9]{1,}$
    f02_0002   ^[0-9]{1,}$
    f02_0003   ^[0-9]{1,}$
    f02_0004   ^[0-9]{1,}$
    f02_0005   ^[0-9]{1,}$The value of Rows in my example "5" can be dynamically (could be 50 as well).
    The rows for f01 and f02 could also be 10
    So the source of my table could also look like this:
    COL1    CO2
    ROWS    50
    f01         ^[a-zA-Z0-9ÖÄÜüöäß%_ .,:;!?&[:space:]\(\)-]+$
    f02         ^[0-9]{1,}$
    f03         ^[0-9]{1,}$
    f04         ^[0-9]{1,}$
    f05         ^[0-9]{1,}$
    f06         ^[0-9]{1,}$
    f07         ^[0-9]{1,}$
    f08         ^[a-z]{1,}$
    f09         ^[a-z]{1,}$
    f10         ^[a-z]{1,}$Hope for help.
    Best regards,
    Tobias

    Hi,
    The usual way to do that is to join your table to a Counter Table , a table (or, as in the example below, a sub-query result set) that counts 1, 2, 3, ... as high as you need to go.
    WITH     cntr     AS
         SELECT     LEVEL     AS n
         FROM     dual
         CONNECT BY     LEVEL     <= 50     -- max value needed (or higher)
    SELECT       m.col1 || '_'
                 || TO_CHAR (c.n, 'FM0000')     AS item
    ,       m.col2                          AS regexpr
    FROM       mytab          m
    JOIN       cntr          c  ON  c.n     <= 5     -- or some expression from m
    ORDER BY  item
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using.
    See the forum FAQ {message:id=9360002}
    Edited by: Frank Kulash on Jul 5, 2012 7:32 AM

  • INIT InfoPackage Selections

    Hello,
    In an INIT Infopackage I want to make the following selections for extraction:
    Sales Org = 0003 through 0004
    Sales Org = Not Assigned (Blank)
    With these selections my goal is to get records for Sales Org 0003 and 0004 as well as the records that are not assigned to a Sales Org.  Specifically I am trying to avoid getting records for Sales Org 0005, but I want to make sure and get the records that have an unnassigned Sales Org.
    Is this possible?  I am mostly unsure of how to indicate in my selection criteria that "if the sales Org is unassigned then bring over the record".
    We are on BW 3.5
    Thanks,
    Nick
    Message was edited by:
            Nick Bertz

    Hello Jr. Roberto,
    Thanks for your reponse, I have some follow up questions.
    What sort of routine are you suggesting? 
    Also what do you mean by <b>F2</b> won't work in InfoPackage Selections?  What is <b>F2</b>?
    Thanks,
    Nick
    Message was edited by:
            Nick Bertz

  • COPA Extraction-Characteristics value not appearing in RSA3

    Hi All,
    We have developed Costing based COPA DataSource in KEB0 based on our operating concern. Included all standard fields(Characteristics from the segment  level,  Characteristics from the segment table, Characteristics from the line items, Value fields) in data source.
      When we do extract data in RSA3, All the key figure value fields are appearing correctly but I cannot see any Characteristics values. all the characteristic value  appearing blank value.
    I have checked everything is active and all (CE1 **** ,CE2 and CE4) tables have data with characteristics and value fields .
    My questions are:
      1)why COPA characteristics value are not coming in RSA3?
      2)what do I need to get this work?
       I hope it helps. let me know if you need  more further details
    Thanks,
    L.Prathap

    Hi,
    Worked on CO-PA but never got such an issue..........
    Do you have any of the chars selected from the line items section other than rec_waers?
    Also check if you have any summarization levels...transaction KEDV. If no other char from the line items are selected, data could be read from the summarization levels.
    There would be 2 tables for a summarization level...key table and the totals table. Check what chars are selected in the key table.
    http://help.sap.com/saphelp_470/helpdata/en/7a/4c40794a0111d1894c0000e829fbbd/content.htm
    Edited by: Murali Krishna K on Mar 8, 2011 3:32 PM

  • XML data extraction and new row display

    I have a table named, SAPDATABROWSER, which has multiple columns and rows. A column named SAPTEXT (DataType: CLOB) consist of xml data. Each XML data is different in terms of number of nodes, but has the same following structure:
    <SAP_BAPI_PROP>
    <SelectedProperty>
    <Structure>
    <Field></Field>
    <Length></Length>
    <FieldValue></FieldValue>
    <Type></Type>
    <Priority></Priority>
    </Structure>
    </SelectedProperty>
    </SAP_BAPI_PROP>
    So now what I would like to do is, to extract the values: Field, FieldValue and Length from every row (total 72) and display the result as following,
    Field FieldValue Length
    XXXX YYYY ZZZZ
    PPPP QQQQ RRRR
    AAAA BBBB CCCC
    MMMM NNNN OOOO
    Again, each row (total 72) has multiple nodes inside XML data, i.e there are multiple Field,Length and FieldType Nodes and no two XML row/data are similar!
    I am using the following code:
    SELECT
    EXTRACT (xmltype (saptext), '/SAP_BAPI_PROP/SelectedProperty/Structure/Field/text()'),
    EXTRACT (xmltype (saptext), '/SAP_BAPI_PROP/SelectedProperty/Structure/Length/text()' ),
    EXTRACT (xmltype (saptext), '/SAP_BAPI_PROP/SelectedProperty/Structure/FieldValue/text()' )
    FROM sapdatabrowser ;
    The above code generate result as following:
    /SAP_BAPI_PROP/..../Field/text() /SAP_BAPI_PROP/..../Length/text() /SAP_BAPI_PROP/..../FieldValue/text()
    1. XXXXPPPPAAAA YYYYQQQQBBBB ZZZZRRRRCCCC
    2. MMMM NNNN OOOO
    Any suggestions?! Thank you very much. :)

    Thank you everyone for your input. But I am still stuck. Let me start with my SQL version:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE     11.2.0.1.0     Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - ProductionI believe my explaination was not clear so let me rephrase my question. Following is a screenshot of the Table SAPDATABROWSER
    http://img585.imageshack.us/img585/2724/55760509.jpgSo there are total 72 rows, and my interest is in Column 6, SAPTEXT (type:CLOB). Each of the row has following structure:
    <SelectedProperty>
    <Structure>
    <Field></Field>
    <Length></Length>
    <FieldValue></FieldValue>
    <Type></Type>
    <Priority></Priority>
    </Structure>
    </SelectedProperty>Each row has multiple nodes Field, Length, FieldValue.... etc. Now I would like to extract ALL: Field, Length and FieldValue nodes from ALL rows and display them in following format
    Field                  Length                   FieldValue
      1                       1                           1
      2                       2                           2
      3                       3                           3
      4                       4                           4Example Output:
    ROW 1:
    <SelectedProperty>
    <Structure>
    <Field>X</Field>
    <Length>Y</Length>
    <FieldValue>Z</FieldValue>
    <Type></Type>
    <Priority></Priority>
    </Structure>
    <Structure>
    <Field>P</Field>
    <Length>Q</Length>
    <FieldValue>R</FieldValue>
    <Type></Type>
    <Priority></Priority>
    </Structure>
    </SelectedProperty>
    ROW 2:
    <SelectedProperty>
    <Structure>
    <Field>A</Field>
    <Length>B</Length>
    <FieldValue>C</FieldValue>
    <Type></Type>
    <Priority></Priority>
    </Structure>
    <Structure>
    <Field>M</Field>
    <Length>N</Length>
    <FieldValue>O</FieldValue>
    <Type></Type>
    <Priority></Priority>
    </Structure>
    </SelectedProperty>Required Output:
    Field                  Length                   FieldValue
      X                       Y                           Z
      P                       Q                           R
      A                       B                           C
      M                       N                           O

  • Best way to extract XML value wiith an xpath

    Hello,
    I wonder what is the best way to extract text value from XmlType with an xpath.
    I need to insert a row inside a table where the row's data come from xpath extractions of an XmlType. I do a lot of (approximative 20) :
    EXTRACTVALUE(var.myxmltype , '/an/xpath/to/extract/elem1').
    EXTRACTVALUE(var.myxmltype , '/an/xpath/to/extract/elemI').
    EXTRACTVALUE(var.myxmltype , '/an/xpath/to/extract/elem20').
    inside the insert statement
    Is this way is the best or is there a more optimal way ?
    For example extracting the node '/an/xpath/to/extract/' and sarting from this node extracting "elem1", ... , "elemI", "elemN" children.
    Thanks for your help,
    Regards,
    Nicolas

    Hi Nicolas,
    The answer depends on your actual storage method (binary, OR, CLOB?), and db version.
    You can try XMLTable, it might be better in this case :
    SELECT x.elem1, x.elem2, ... , x.elem20
    FROM your_table t
       , XMLTable(
          '/an/xpath/to/extract'
          passing t.myxmltype
          columns elem1  varchar2(30) path 'elem1'
                , elem2  varchar2(30) path 'elem2'
                , elem20 varchar2(30) path 'elem20'
         ) x
    ;

  • Extract element value from a trigger

    Hi,
    I would like to create an 'before/after insert' trigger on a XMLType table that
    would extract a value of an element of the inserted XML.
    However, I created the following trigger but failed with error :
    SQL> create or replace trigger trig_po
    2 after insert on purchaseorder
    3 for each row
    4 declare
    5 v_ref varchar2(30);
    6
    7 begin
    8 v_ref := :NEW.extractvalue('/PurchaseOrder/Reference');
    9
    Warning: Trigger created with compilation errors.
    SQL> show error
    Errors for TRIGGER TRIG_PO:
    LINE/COL ERROR
    5/12 PLS-00049: bad bind variable 'NEW.EXTRACTVALUE'
    SQL>
    The XMLType table is created as follow :
    BEGIN
    DBMS_XMLSCHEMA.registerSchema(
    SCHEMAURL => 'http://localhost:8080/swd/XSD/purchaseOrder.xsd',
    SCHEMADOC => xdbURIType('/swd/XSD/purchaseOrder.xsd').getClob(),
    LOCAL => FALSE,
    GENTYPES => TRUE,
    GENTABLES => TRUE);
    END;
    And, the following SQL can successfully insert a XML into this XMLType table
    without any trigger implemented.
    insert into purchaseorder values (xmltype(
    '<?xml version="1.0" encoding="US-ASCII"?>
    <PurchaseOrder xsi:noNamespaceSchemaLocation="http://localhost:8080/swd/XSD/purchaseOrder.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xdb="http://xmlns.oracle.com/xdb">
    <Reference>ADAMS-20011127121052815PST</Reference>
    <Actions>
    <Action>
    <User>SCOTT</User>
    </Action>
    </Actions>
    <Reject/>
    <Requestor>Julie P. Adams</Requestor>
    <User>ADAMS</User>
    <CostCenter>R20</CostCenter>
    <ShippingInstructions>
    <name>Julie P. Adams</name>
    <address>300 Oracle Parkway
    Redwood Shores
    CA
    94065
    USA</address>
    <telephone>650 506 7300</telephone>
    </ShippingInstructions>
    <SpecialInstructions>Ground</SpecialInstructions>
    </PurchaseOrder>'))
    Thanks in advanced.

    ExtractValue is a SQL Function not a method
    You'll need something along the lines of
    select extractValue(:new.sys_nc_rowinfo$,'/PurchaseOrder/Reference')
      into v_ref
      from dual;

  • Minimum value row

    I have a table as follows
    Temp
    col1  col2 col3 col4
    999   0909  1    a
    999   0909  2     r
    999   0202  1    aaa
    999   0202  2    bbb
    999   0303  2    khp
    999   0303  3    lkp
    999   0404  4    pppHow can I extract min(col3) row from temp.
    Expected rows from the table
    999   0909  1  a
    999   0202  1  aaa
    999   0303  2  khp
    999   0404  4  pppPlease help

    Hi,
    Do you want
    the lowest col3, and whatever value of col4 happens to be on the same row with the losest c3, or
    the lowest col4, and whatever value of col3 happens to be on the same row with the losest c4? Solomon assumed this, so I will, too.
    The results happen to be the same in the small set of sample data you posted.
    What results would you want from these two additional rows?
    select 999,'9876',2,'aaa' from dual union all
    select 999,'9876',1,'zzz' from dual union all?
    The solution Solomon posted (perhaps with col3 and col4 reversed) is perfect for the question you asked.
    If you have several columns like col3, which are not involved in the decision about which rows to display, but have to be displayed, then you have to repeat the KEEP (DENSE_RANK stuff for every column. That can be tedious.
    Here's another way that's good if you have a lot of columns in the row:
    WITH     got_rnum     AS
         SELECT     t.*
         ,     RANK () OVER ( PARTITION BY  col1
                               ,          col2
                          ORDER BY          col4
                        )      AS rnum
         FROM     t
    --     WHERE     ...     -- any filtering goes here
    SELECT     *     -- or list all columns except rnum
    FROM     got_rnum
    WHERE     rnum     = 1
    ;Edited by: Frank Kulash on Dec 9, 2009 8:14 PM

  • How extract a value from table?

    how extract a value only from table with labview 5.0?

    Hi T4l
    I modified you VI to extract a selected row from the table. This is quite simple by done by using the index array function. Hope this helps
    B Bakels
    Labview CLD , Engineer/Manager
    Promedes and DSM
    using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
    http://www.promedes.nl
    Attachments:
    Untitled 2.vi ‏16 KB

  • Extract two values (date) on minutes

    I want to extract two values, that are both from the DATE datatype, to see if there are more than 5 minutes between the two values. How can I do that? When i extract two of those values, it works with days, not minutes. I can devide by 1440 (24 * 60), but that won;t work.
    Help please!

    I can devide by 1440 (24 * 60), but that won;t work.When you subtract two dates you get number of days. You can convert number of days to minutes and then compare
    it to 5 minutes.
    Below I'm subtracting two dates which are 5 minutes apart and the statement makes a check on the difference
    to output appropriate message:
    SQL> select DECODE(((sysdate + (6/(24 * 60))) - sysdate) * (24 * 60), 5, 'YES', 'NO') from dual ;
    DEC
    NO
    1 row selected.
    SQL> select DECODE(((sysdate + (5/(24 * 60))) - sysdate) * (24 * 60), 5, 'YES', 'NO') from dual ;
    DEC
    YES
    1 row selected.
    SQL>

  • Problem with BLANK Value in SSRS Subscription

    I have a report that I designed in Vis Studio 2005 and have deployed to SSRS 2005.  I have no issues what so ever when running it interactively out of Report Manager.  However when running it scheduled via a subscription, I am running into trouble.
    This report has a parameter called "Label".  It is set up as a String parameter, Allow Blanks, and Multi-Value.  (It does not allow me to select Null values...tells me "The properties for the currently selected item are not valid.")  I am getting Available and Default values from a query I have created in a separate dataset.  This query pulls in all possible values for Label, including a BLANK value (there are values that are and should be Blank).
    In my subscription, I want to select all Labels but label 98, including the BLANK.  So when I go in to create or edit a subscription, I simply uncheck the 98 label.  I can see a blank checked as well.  However when the subscription runs, the subscription status tells me " Failure sending mail: Default value or value provided for the report parameter 'Label' is not a valid value."   This ONLY occurs when I have the BLANK label selected in my dropdown list!
    However, when I run this interactively out of Report Manager, doing the exact same thing (selecting all labels other than label 98, INCLUDING the Blank), it works properly.
    What could be going on here?  Kinda new at this and totally stumped.
    Tony

    Hi Tony,
    I met a similar issue before. If I understand correctly, there has Null values in the list not Blank values.
    Using Null values in a parameter in subscription is not allowed.
    To solve the issue, please change the Null values to Blank values by modifying the query statement of report:
    SELECT ... IsNull(column, "") FROM...
    By the way, please update the SQL Server Reporting Services to latest version too.
    For SQL Server 2005, the latest version is Cumulative Update package 6 for SQL Server 2005 SP3.
    SQL Server 2005 SP3: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=ae7387c3-348c-4faa-8ae5-949fdfbe59c4
    Cumulative Update #6 for SQL Server 2005 Service Pack 3
    For SQL Server 2008, the latest version is Cumulative Update package 4 for SQL Server 2008 SP1.
    SQL Server 2008 SP1: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=66ab3dbb-bf3e-4f46-9559-ccc6a4f9dc19
    Cumulative Update #4 for SQL Server 2008 SP1
    Please feel free to ask, if you have any more questions.
    Thanks,
    Jin ChenJin Chen - MSFT

Maybe you are looking for