How to differentiate the EMPTY Records and Null Values in DSO

Hello....how is everyone here?? Ehehehe!
I try to load some data from the flat file which contains some EMPTY data and Null Values for the records. The data type for the InfoObjects of the fields "Quantity" is "number". The sample data from the flat file (CSV) are as below:
Food              Quantity
Hamburger  -       12
Cheese        -       0
Vegetable      -               (Empty)
When I try to load the above sample data to the DSO, I get the results of the data as follow:
Food              Quantity
Hamburger     - 12.000
Cheese           -  0.000
Vegetable         - 0.000
In this case, how can the user differentiate whether the records is contain empty value of null values in DSO? This is kinda of hard to differentiate the both scenarios above. Is there any way to differentiate the scenarios described here?
Thanks alot =)

Hi Fluffy,
It depends on the initial values of the data type
The inital values For quantity/Currency/ Numbers it takes spaces as 0
for char it is SPACE
We cannot differeniate between space and null values.
IF you have to force this then define quantity as char and load the data. we will not have units and aggregation in this case.
Hope this helps.
PV

Similar Messages

  • How to restrict the last record and not moving to next reocrd

    1) how to restrict the last record and not moving to next reocrd.
    2) Also for the F6 key(for new record).

    When you are on the last record, next-record will create a new one, so that my question is do you want to forbid new record creation.
    Francois

  • How to put the column name and variable value in the alert message.

    Dear,
    how can i put the column name and variable value in the alert message text. i want to display an alert which tell the user about the empty textboxes. that these textboxes must be filled.
    Regards:
    Muhammad Nadeem
    CHIMERA PVT. LTD.
    LAHORE
    [email protected]

    Hello,
    The name of the item that fires the current trigger is stored in the :SYSTEM.TRIGGER_ITEM system variable.
    The value contained in this item can be retrived with the Name_In() built-in
    value := Name_In( 'SYSTEM.TRIGGER_ITEM') ;
    LC$Msg := 'The item ' || :SYSTEM.TRIGGER_ITEM || ' must be entered' ;
    Set_Alert_Property('my_alert_box', ALERT_MESSAGE_TEXT, LC$Msg ) ;
    Ok := Show_Alert( 'my_alert_box' ) ;
    ...Francois

  • How to print the error records and success records in bdc

    how to print the number of error records and success records in bdc

    hai,
    plz refer this program,
    Z_130399130271_A
    REPORT Z_130399130271_A
           NO STANDARD PAGE HEADING LINE-SIZE 325.
    *INCLUDE YVALIDATE.
    *include bdcrecx1.
    INCLUDE YINCLUDE399.
    DATA ITAB LIKE TABLE OF FILE_TABLE WITH HEADER LINE.
    PARAMETERS: DATASET(132) LOWER CASE.
    DATA : RC TYPE I,
    ERR(40) TYPE C,
    SUCCESSCNT TYPE I VALUE 0,
    FAILCOUNT TYPE I VALUE 0.
       DO NOT CHANGE - the generated data section - DO NOT CHANGE    ***
      If it is nessesary to change the data section use the rules:
      1.) Each definition of a field exists of two lines
      2.) The first line shows exactly the comment
          '* data element: ' followed with the data element
          which describes the field.
          If you don't have a data element use the
          comment without a data element name
      3.) The second line shows the fieldname of the
          structure, the fieldname must consist of
          a fieldname and optional the character '_' and
          three numbers and the field length in brackets
      4.) Each field must be type C.
    Generated data section with specific formatting - DO NOT CHANGE  ***
    DATA: BEGIN OF RECORD OCCURS 0,
    data element: LIF16
            LIFNR_001(016),
    data element: KTOKK
            KTOKK_002(004),
    data element: ANRED
            ANRED_003(015),
    data element: NAME1_GP
            NAME1_004(035),
    data element: SORTL
            SORTL_005(010),
    data element: STRAS_GP
            STRAS_006(035),
    data element: PFACH
            PFACH_007(010),
    data element: ORT01_GP
            ORT01_008(035),
    data element: ORT02_GP
            ORT02_009(035),
    data element: LAND1_GP
            LAND1_010(003),
    data element: REGIO
            REGIO_011(003),
    data element: SPRAS
            SPRAS_012(002),
    data element: TELF1
            TELF1_013(016),
    data element: TELF2
            TELF2_014(016),
    data element: BANKS
            BANKS_01_015(003),
    data element: BANKK
            BANKL_01_016(015),
    data element: BANKN
            BANKN_01_017(018),
          END OF RECORD.
    DATA:   BEGIN OF ERRORITAB OCCURS 0,
            LIFNR_001 LIKE LFA1-LIFNR,
            KTOKK_002 LIKE LFA1-KTOKK,
            ANRED_003 LIKE LFA1-ANRED,
            NAME1_004 LIKE LFA1-NAME1,
            SORTL_005 LIKE LFA1-SORTL,
            STRAS_006 LIKE LFA1-STRAS,
            PFACH_007 LIKE LFA1-PFACH,
            ORT01_008 LIKE LFA1-ORT01,
            ORT02_009 LIKE LFA1-ORT02,
            LAND1_010 LIKE LFA1-LAND1,
            REGIO_011 LIKE LFA1-REGIO,
            SPRAS_012 LIKE LFA1-SPRAS,
            TELF1_013 LIKE LFA1-TELF1,
            TELF2_014 LIKE LFA1-TELF2,
            BANKS_01_015 LIKE LFBK-BANKS,
            BANKL_01_016 LIKE LFBK-BANKL,
            BANKN_01_017 LIKE LFBK-BANKN,
            ERRORMSG(60) TYPE C,
            SERIAL TYPE I VALUE '1',
        END OF ERRORITAB.
    End generated data section ***
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR DATASET.
      CALL FUNCTION 'TMP_GUI_FILE_OPEN_DIALOG'
    EXPORTING
        WINDOW_TITLE            = 'select a file '
        DEFAULT_EXTENSION       = 'TXT'
        DEFAULT_FILENAME        = 'ASSIGN5.TXT'
      FILE_FILTER             =
      INIT_DIRECTORY          =
      MULTISELECTION          =
    IMPORTING
      RC                      =
        TABLES
          FILE_TABLE              = ITAB
    EXCEPTIONS
       CNTL_ERROR              = 1
       OTHERS                  = 2
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE ITAB INDEX 1.
      DATASET = ITAB-FILENAME.
      WRITE DATASET.
    START-OF-SELECTION.
    *perform open_dataset using dataset.
    *perform open_group.
      DATA T TYPE STRING.
      T = DATASET.
      IF T EQ ' '.
        MESSAGE E110(ZX).
      ENDIF.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                      = T
      FILETYPE                      = 'ASC'
          HAS_FIELD_SEPARATOR           = 'X'
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
        TABLES
          DATA_TAB                      = RECORD
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      NO_AUTHORITY                  = 6
      UNKNOWN_ERROR                 = 7
      BAD_DATA_FORMAT               = 8
      HEADER_NOT_ALLOWED            = 9
      SEPARATOR_NOT_ALLOWED         = 10
      HEADER_TOO_LONG               = 11
      UNKNOWN_DP_ERROR              = 12
      ACCESS_DENIED                 = 13
      DP_OUT_OF_MEMORY              = 14
      DISK_FULL                     = 15
      DP_TIMEOUT                    = 16
      OTHERS                        = 17
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      LOOP AT RECORD.
        CLEAR RC.
        CLEAR ERR.
    *read dataset dataset into record.
        IF SY-SUBRC <> 0. EXIT. ENDIF.
        RECORD-KTOKK_002 = '0001'.
        PERFORM BDC_DYNPRO      USING 'SAPMF02K' '0100'.
        PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                      'RF02K-KTOKK'.
        PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM BDC_FIELD       USING 'RF02K-LIFNR'
                                      RECORD-LIFNR_001.
        PERFORM BDC_FIELD       USING 'RF02K-KTOKK'
                                      RECORD-KTOKK_002.
        PERFORM BDC_DYNPRO      USING 'SAPMF02K' '0110'.
        PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                      'LFA1-TELX1'.
        PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM BDC_FIELD       USING 'LFA1-ANRED'
                                      RECORD-ANRED_003.
        PERFORM BDC_FIELD       USING 'LFA1-NAME1'
                                      RECORD-NAME1_004.
        PERFORM BDC_FIELD       USING 'LFA1-SORTL'
                                      RECORD-SORTL_005.
        PERFORM BDC_FIELD       USING 'LFA1-STRAS'
                                      RECORD-STRAS_006.
        PERFORM BDC_FIELD       USING 'LFA1-PFACH'
                                      RECORD-PFACH_007.
        PERFORM BDC_FIELD       USING 'LFA1-ORT01'
                                      RECORD-ORT01_008.
        PERFORM BDC_FIELD       USING 'LFA1-ORT02'
                                      RECORD-ORT02_009.
        PERFORM BDC_FIELD       USING 'LFA1-LAND1'
                                      RECORD-LAND1_010.
        PERFORM BDC_FIELD       USING 'LFA1-REGIO'
                                      RECORD-REGIO_011.
        PERFORM BDC_FIELD       USING 'LFA1-SPRAS'
                                      RECORD-SPRAS_012.
        PERFORM BDC_FIELD       USING 'LFA1-TELF1'
                                      RECORD-TELF1_013.
        PERFORM BDC_FIELD       USING 'LFA1-TELF2'
                                      RECORD-TELF2_014.
        PERFORM BDC_DYNPRO      USING 'SAPMF02K' '0120'.
        PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                      'LFA1-KUNNR'.
        PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                      '=VW'.
        PERFORM BDC_DYNPRO      USING 'SAPMF02K' '0130'.
        PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                      'LFBK-BANKN(01)'.
        PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                      '=ENTR'.
        PERFORM BDC_FIELD       USING 'LFBK-BANKS(01)'
                                      RECORD-BANKS_01_015.
        PERFORM BDC_FIELD       USING 'LFBK-BANKL(01)'
                                      RECORD-BANKL_01_016.
        PERFORM BDC_FIELD       USING 'LFBK-BANKN(01)'
                                      RECORD-BANKN_01_017.
        PERFORM BDC_DYNPRO      USING 'SAPMF02K' '0130'.
        PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                      'LFBK-BANKS(01)'.
        PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                      '=UPDA'.
        PERFORM BDC_TRANSACTION USING 'XK01' CHANGING ERR RC.
        DATA: SERIAL TYPE I VALUE 1.
        IF RC <> 0.
          FAILCOUNT = FAILCOUNT + 1.
          CLEAR ERRORITAB.
          ERRORITAB-SERIAL = SERIAL.
          ERRORITAB-LIFNR_001 = RECORD-LIFNR_001.
          ERRORITAB-KTOKK_002 = RECORD-KTOKK_002.
          ERRORITAB-ANRED_003 = RECORD-ANRED_003.
          ERRORITAB-NAME1_004 = RECORD-NAME1_004.
          ERRORITAB-SORTL_005 = RECORD-SORTL_005.
          ERRORITAB-STRAS_006 = RECORD-STRAS_006.
          ERRORITAB-PFACH_007 = RECORD-PFACH_007.
          ERRORITAB-ORT01_008 = RECORD-ORT01_008.
          ERRORITAB-ORT02_009 = RECORD-ORT02_009.
          ERRORITAB-LAND1_010 = RECORD-LAND1_010.
          ERRORITAB-REGIO_011 = RECORD-REGIO_011.
          ERRORITAB-SPRAS_012 = RECORD-SPRAS_012.
          ERRORITAB-TELF1_013 = RECORD-TELF1_013.
          ERRORITAB-TELF2_014 = RECORD-TELF2_014.
          ERRORITAB-BANKS_01_015 = RECORD-BANKS_01_015.
          ERRORITAB-BANKL_01_016 = RECORD-BANKL_01_016.
          ERRORITAB-BANKN_01_017 = RECORD-BANKN_01_017.
          ERRORITAB-ERRORMSG = ERR.
          SERIAL = SERIAL + 1.
          APPEND ERRORITAB.
          MODIFY RECORD TRANSPORTING KTOKK_002.
          DELETE RECORD WHERE KTOKK_002 = '0001'.
        ELSE.
          SUCCESSCNT = SUCCESSCNT + 1.
        ENDIF.
      ENDLOOP.
    display output********************************************************
      SKIP.
      FORMAT COLOR 5 INTENSIFIED OFF.
      WRITE:/ 'No. of records successfully uploaded: '.
      FORMAT COLOR 4 INTENSIFIED OFF.
      WRITE: SUCCESSCNT.
    Displaying the success table******************************************
      IF SUCCESSCNT <> 0.
        SKIP.
        FORMAT COLOR 4 INTENSIFIED OFF.
        WRITE:/ 'Successful Records'.
        FORMAT COLOR 7 INTENSIFIED ON.
        WRITE:/(261) SY-ULINE,
              / SY-VLINE,
                'S.NO',                               007 SY-VLINE,
                'VENDOR ACC.NUM',                     023 SY-VLINE,
                'VENDOR ACC GROUP',                   041 SY-VLINE,
                'TITLE',                              048 SY-VLINE,
                'VENDOR NAME',                        064 SY-VLINE,
                'SORT FIELD',                         076 SY-VLINE,
                'HOUSE NO.& STREET',                  101 SY-VLINE,
                'PO.BOX NO',                          116 SY-VLINE,
                'CITY',                               129 SY-VLINE,
                'DISTRICT',                           141 SY-VLINE,
                'COUNTRY KEY',                        156 SY-VLINE,
                'REGION',                             166 SY-VLINE,
                'LANGUAGE KEY',                       180 SY-VLINE,
                'TELEPHONE NO 1',                     196 SY-VLINE,
                'TELEPHONE NO 2',                     213 SY-VLINE,
                'BANK COUNTRY KEY',                   231 SY-VLINE,
                'BANK KEY',                           241 SY-VLINE,
                'BANK ACC.NO',                        261 SY-VLINE,
                /1(261) SY-ULINE.
        FORMAT COLOR 4 INTENSIFIED ON.
        SERIAL = 1.
       SORT RECORD BY LIFNR_001.
        LOOP AT RECORD.
          WRITE:/ SY-VLINE,
          SERIAL LEFT-JUSTIFIED,          007 SY-VLINE,
          RECORD-LIFNR_001(016),          023 SY-VLINE,
          RECORD-KTOKK_002(004),          041 SY-VLINE,
          RECORD-ANRED_003(015),          048 SY-VLINE,
          RECORD-NAME1_004(035),          064 SY-VLINE,
          RECORD-SORTL_005(010),          076 SY-VLINE,
          RECORD-STRAS_006(035),          101 SY-VLINE,
          RECORD-PFACH_007(010),          116 SY-VLINE,
          RECORD-ORT01_008(035),          129 SY-VLINE,
          RECORD-ORT02_009(035),          141 SY-VLINE,
          RECORD-LAND1_010(003),          156 SY-VLINE,
          RECORD-REGIO_011(003),          166 SY-VLINE,
          RECORD-SPRAS_012(002),          180 SY-VLINE,
          RECORD-TELF1_013(016),          196 SY-VLINE,
          RECORD-TELF2_014(016),          213 SY-VLINE,
          RECORD-BANKS_01_015(003),       231 SY-VLINE,
          RECORD-BANKL_01_016(015),       241 SY-VLINE,
          RECORD-BANKN_01_017(018),       261 SY-VLINE.
          WRITE:/(261) SY-ULINE.
          SERIAL = SERIAL + 1.
        ENDLOOP.
        WRITE:/1(261) SY-ULINE.
      ENDIF.
      SKIP.
      FORMAT COLOR 5 INTENSIFIED OFF.
      WRITE:/ 'No. of records not uploaded: '.
      FORMAT COLOR 4 INTENSIFIED OFF.
      WRITE: FAILCOUNT.
    *Displaying the error table
      IF FAILCOUNT <> 0.
        SKIP.
        FORMAT COLOR 4 INTENSIFIED OFF.
        WRITE:/(320) SY-ULINE,
                'Error Records'.
        FORMAT COLOR 7 INTENSIFIED ON.
        WRITE:/ SY-ULINE, SY-VLINE,
                'S.NO',                               007 SY-VLINE,
                'VENDOR ACC.NUM',                     023 SY-VLINE,
                'VENDOR ACC GROUP',                   041 SY-VLINE,
                'TITLE',                              048 SY-VLINE,
                'VENDOR NAME',                        064 SY-VLINE,
                'SORT FIELD',                         076 SY-VLINE,
                'HOUSE NO.& STREET',                  101 SY-VLINE,
                'PO.BOX NO',                          116 SY-VLINE,
                'CITY',                               129 SY-VLINE,
                'DISTRICT',                           141 SY-VLINE,
                'COUNTRY KEY',                        156 SY-VLINE,
                'REGION',                             166 SY-VLINE,
                'LANGUAGE KEY',                       180 SY-VLINE,
                'TELEPHONE NO 1',                     196 SY-VLINE,
                'TELEPHONE NO 2',                     213 SY-VLINE,
                'BANK COUNTRY KEY',                   231 SY-VLINE,
                'BANK KEY',                           241 SY-VLINE,
                'BANK ACC.NO',                        261 SY-VLINE,
                'ERROR MESSAGE',                      320 SY-VLINE.
        WRITE:/(320) SY-ULINE.
        FORMAT COLOR 4 INTENSIFIED ON.
       SORT ERRORITAB BY LIFNR_001.
        LOOP AT ERRORITAB.
          WRITE:/ SY-VLINE,
                ERRORITAB-SERIAL LEFT-JUSTIFIED,          007 SY-VLINE,
                ERRORITAB-LIFNR_001 ,       023 SY-VLINE,
                ERRORITAB-KTOKK_002,       041 SY-VLINE,
                ERRORITAB-ANRED_003,       048 SY-VLINE,
                ERRORITAB-NAME1_004,       064 SY-VLINE,
                ERRORITAB-SORTL_005,       076 SY-VLINE,
                ERRORITAB-STRAS_006,       101 SY-VLINE,
                ERRORITAB-PFACH_007,       116 SY-VLINE,
                ERRORITAB-ORT01_008,       129 SY-VLINE,
                ERRORITAB-ORT02_009,       141 SY-VLINE,
                ERRORITAB-LAND1_010,       156 SY-VLINE,
                ERRORITAB-REGIO_011,       166 SY-VLINE,
                ERRORITAB-SPRAS_012,       180 SY-VLINE,
                ERRORITAB-TELF1_013,       196 SY-VLINE,
                ERRORITAB-TELF2_014,       213 SY-VLINE,
                ERRORITAB-BANKS_01_015,    231 SY-VLINE,
                ERRORITAB-BANKL_01_016,    241 SY-VLINE,
                ERRORITAB-BANKN_01_017,    261 SY-VLINE,
                ERRORITAB-ERRORMSG,        320 SY-VLINE.
          WRITE:/(320) SY-ULINE.
        ENDLOOP.
        WRITE:/ SY-ULINE.
      ENDIF.
    hope this ll help you..
    regards,
    prema.A

  • Distinguishing between empty string and null values

    hi all,
    I am using an ODBC connection to connect my java app to database using JDBCODBC driver. I have 2 columns 'aColumn' and 'bColumn' in my table, both allow null values. I have one row in it, which has null value in aColumn and empty string in bColumn. I retrieve this row's data and assign it to 2 columns : 'aColumnVar' and 'bColumnVar' respectively. I find out that both 'aColumnVar' and 'bColumnVar' variables has null values (although bColumnVar should has an empty string as its value). Now my ODBC connection Data Source has the option "Use ANSI nulls, paddings, and warnings" ON. I turn it off and try again. This time both 'aColumnVar' and 'bColumnVar' variables has empty string as values (although aColumnVar should has null as its value).
    How can I make sure that i can get the data exactly as it is in the database in my variables?
    Thanks

    there is a wasNull() method on ResultSet. After you
    have obtained the value of a column e.g. by calling a
    method like getString you can call wasNull and if it
    returns true then the value on the database is null.
    Check the java docs, it might explain it better
    http://java.sun.com/j2se/1.4.1/docs/api/java/sql/Result
    et.html#wasNull()I am using MS SQL Server 7.0 under Windows NT 4.0 with JDK 1.2. My ODBC connection Data Source has to have the option "Use ANSI nulls, paddings, and warnings" ON.
    I try the wasNull() method but it is doing the same thing i.e. telling me that a column is null when in database it is null (right); and a column is null when in database it is an empty string (wrong). I suspect it is something to do with the JDBC-ODBC driver I am using.

  • How to Get the min,max and original values in a single query

    Hi,
    I have a task where in i have to the min , max and the original values of  a data set .
    I have the data like below and i want the target as well as mentioned below
    SOURCE
    DATASOURCE
    INTEGRATIONID
    SLOT_DATE
    SLOT1
    SLOT2
    SLOT3
    SLOT4
    SLOT5
    SLOT6
    SLOT7
    SLOT8
    SLOT9
    SLOT10
    1
    101
    201111
    100
    100
    200
    100
    100
    100
    300
    300
    300
    300
    1
    101
    2011112
    200
    200
    200
    200
    100
    100
    100
    100
    200
    300
    TARGET
    DATASOURCE
    INTEGRATIONID
    SLOT_DATE
    SLOT_VALUE
    SLOT MIN
    SLOT_MAX
    SLOT NUMBER
    1
    101
    201111
    100
    1
    2
    SLOT1
    1
    101
    201111
    100
    1
    2
    SLOT2
    1
    101
    201111
    200
    3
    3
    SLOT3
    1
    101
    201111
    100
    4
    6
    SLOT4
    1
    101
    201111
    100
    4
    6
    SLOT5
    1
    101
    201111
    100
    4
    6
    SLOT6
    1
    101
    201111
    300
    7
    10
    SLOT7
    1
    101
    201111
    300
    7
    10
    SLOT8
    1
    101
    201111
    300
    7
    10
    SLOT9
    1
    101
    201111
    300
    7
    10
    SLOT10
    1
    101
    2011112
    200
    1
    4
    SLOT1
    1
    101
    2011112
    200
    1
    4
    SLOT2
    1
    101
    2011112
    200
    1
    4
    SLOT3
    1
    101
    2011112
    200
    1
    4
    SLOT4
    1
    101
    2011112
    100
    5
    8
    SLOT5
    1
    101
    2011112
    100
    5
    8
    SLOT6
    1
    101
    2011112
    100
    5
    8
    SLOT7
    1
    101
    2011112
    100
    5
    8
    SLOT8
    1
    101
    2011112
    200
    9
    9
    SLOT9
    1
    101
    2011112
    300
    10
    10
    SLOT10
    e
    so basically i would first denormalize the data using the pivot column and then use min and max to get the slot_start and slot_end.
    But then i
    can get the min and max ... but not the orignal values as well.
    Any thoughts would be appreciated.
    Thanks

    If you want to end up with one row per slot per datasource etc, and you want the min and max slots that have the same value as the current slot, then you probably need to be using analytic functions, like:
    with t as
    (SELECT 1 datasource,101    INTEGRATIONID, 201111     slotdate, 100    SLOT1, 100        SLOT2,    200    slot3, 100    slot4, 100    slot5, 100    slot6, 300    slot7, 300    slot8, 300    slot9, 300 slot10 FROM DUAL  union all
    SELECT 1,    101,    2011112,    200,    200,    200,    200,    100,    100,    100,    100,    200,    300 FROM DUAL),
    UNPIVOTED AS
    (SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,1 SLOT,SLOT1 SLOT_VALUE
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,2 SLOT,SLOT2
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,3 SLOT,SLOT3
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,4 SLOT,SLOT4
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,5 SLOT,SLOT5
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,6 SLOT,SLOT6
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,7 SLOT,SLOT7
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,8 SLOT,SLOT8
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,9 SLOT,SLOT9
    FROM T
    UNION ALL
    SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,10 SLOT,SLOT10
    FROM T)
    select DATASOURCE,INTEGRATIONID,SLOTDATE,slot,slot_value,min(slot) OVER (partition by datasource,integrationid,slotdate,rn) minslot,
        max(slot) OVER (partition by datasource,integrationid,slotdate,rn) maxslot
    FROM   
      select DATASOURCE,INTEGRATIONID,SLOTDATE,max(rn) over (partition by datasource,integrationid,slotdate order by slot) rn,slot,slot_value
      FROM
        (SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,slot,slot_value,
              case when row_number() over (partition by datasource,integrationid,slotdate order by slot) = 1 or
              lag(slot_value) over (partition by datasource,integrationid,slotdate order by slot) <> slot_value
                  then row_number() over (partition by datasource,integrationid,slotdate order by slot)
                  ELSE null
                  END rn
        from unpivoted
    order by DATASOURCE,INTEGRATIONID,SLOTDATE,slot 

  • How to extend the IDoc ORDERS05 and populate values?

    Hi,
    My requirement is to add few fields to the standard IDoc ORDERS05 and populate values to the newly added fields.
    Please let me know how to extend the standard IDoc ORDERS05.
    Regards,
    Balaji. R

    Hi balaji,
    you can try to google for SAP R/3 IDoc Cookbook for EDI and Interfaces by Axel Angeli et.al.
    Although Axel refers primarily to MATMAS Idoc the technique of extending IDOCs is explained very well.
    Also very good is the search function here on SCN, I just found
    [Some Experience on IDoc Enhancement|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3414900%29ID0711317150DB10743789739220747754End?blog=/pub/wlg/8285]
    Blogs and Wikis here are the best source for general questions like yours, usually of much more value than forum answers
    Regards,
    Clemens

  • Empty string and NULL value

    Hi,
    Does oracle treat empty string as NULL.
    If it is so,Can we force db to treat both as different things.
    Thanx

    11g.DBA wrote:
    Hi,
    Does oracle treat empty string as NULL.Yes.
    If it is so,Can we force db to treat both as different things.No.
    Please read in SQL Reference:
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/sql_elements005.htm#SQLRF3003

  • How to use the insert record and check username function?

    Hi guys.
    I have an error that has me stumped.
    I have a form that inserts text from a text field into a
    mysql database and I have added a check user name function to check
    if this number already exists.
    Here's the page
    http://www.thechallenge.net.au/redemption2.php
    The error I get when using the page on the web is this
    Duplicate entry '' for key 1
    Can anyone help with this?

    ottoman007 wrote:
    I have tried the COUNTIF I input my formula =COUNTIF(6C:6M,">t") to the right of the row that I want to count and I get a red triangle and it says it isn't a valid reference. ... I am boggled how to do this.
    Badunit wrote:
    One parameter is the range (your row or column of checkboxes) and the other is the condition you want to count, which is TRUE.
                         =COUNTIF(6C:6M,TRUE)
    Regards,
    Barry

  • Collection is populated, but HALF of the total records have null values?

    can anyone see why this may not be working properly. I am creating a collection (CATCH_C) based on the number of rows in an existing collection (EFFORT_C). For every record in EFFORT_C, there needs to be one in CATCH_C.
    In my example, I know that there are two EFFORT_C records. There are 12 records in the table FREQUENT_SPECIES, therefore, my CATCH_C collection should (after running through loop) have 24 records.
    CATCH_C is created with 24 records, however record numbers 16-24 only have the data for disposition_code. The other data is all missing...however rows 1-15 are perfect. Any thoughts?
    thanks! Karen
    <p>
    open effort_x;
    fetch effort_x into effort_nbr;
    close effort_x;
    for x in 1..effort_nbr
    LOOP
    for y in (select 1,
    species_itis,
    disposition_code,
    null reported_qty,
    unit_measure,
    null sale_disposition_flag,
    price,
    null permit_id,
    market_code,
    grade_code, null
    from FREQUENT_SPECIES
    where permit_id = :G_PERMIT_ID order by fav_order, species_itis, market_code)
    LOOP
    l_seq_id := apex_collection.add_member(
    p_collection_name => 'CATCH_C',
    p_c033 => x,
    p_c034 => y.SPECIES_ITIS,
    p_c035 => y.DISPOSITION_CODE,
    p_c036 => null, --reported qty
    p_c037 => y.unit_measure,
    p_c038 => '0', --sale disp
    p_c039 => y.PRICE,
    p_c040 => pPermitID,--permit id
    p_c041 => y.MARKET_CODE,
    p_c042 => nvl(y.GRADE_CODE,'999'),
    p_c043 => null,
    p_c044 => null,
    p_c045 => null);
    end loop;
    end loop;
    </p>

    I thought I had resolved as it seems driven by pagination....but alas (while pagination is odd), the disposition code still appears for every collection record...but the other data does not. again, any thoughts are appreciated.

  • How to know the image size and coding of our j2me project

    Hi,
    I have developed a game and i did the obfuscation. My jar size is now 170KB. How can differentiate the coding size and the image size from the total jar size.
    If i asked any thing wrongly, please forgive me and clarify my doubt.
    I am looking forward to meet ur queries if any.
    Thanks and Regards,
    Hithayath.

    <?xml version="1.0" encoding="UTF-8"?>
    <!-- *** GENERATED FROM project.xml - DO NOT EDIT *** -->
    <project xmlns:projdeps2="http://www.netbeans.org/ns/ant-project-references/2" basedir=".." default="jar" name="-impl">
    <target name="pre-init"/>
    <target depends="pre-init" name="pre-load-properties">
    <property file="nbproject/private/private.properties"/>
    <property value="0.0.1" name="deployment.number"/>
    <property value="000002" name="deployment.counter"/>
    <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
    <available file="${user.properties.file}" property="user.properties.file.exists"/>
    </target>
    <target unless="config.active" depends="pre-load-properties" name="exists.config.active">
    <echo message="Active configuration (config.active property) is not set - using default." level="warning"/>
    <property name="config.active" value=""/>
    </target>
    <target unless="netbeans.user" depends="pre-load-properties" name="exists.netbeans.user">
    <echo message="NetBeans IDE user directory (netbeans.user property) is not set. By specifying this property many properties required by the project will be automatically evaluated (e.g.: ant-ext library home, ...). You could also open this project in the NetBeans IDE - in this case this property would be set automatically." level="warning"/>
    </target>
    <target unless="user.properties.file.exists" depends="pre-load-properties" name="exists.user.properties.file">
    <echo message="User properties file (user.properties.file) property is not set. By specifying this property many properties required by the project will be automatically evaluated (e.g.: libraries, platforms, ...)." level="warning"/>
    </target>
    <target depends="pre-load-properties,exists.config.active,exists.netbeans.user,exists.user.properties.file" name="load-properties">
    <loadproperties srcfile="nbproject/project.properties">
    <filterchain>
    <containsregex replace="\1" pattern="^configs\.${config.active}\.(.*)"/>
    <concatfilter prepend="nbproject/project.properties"/>
    <containsregex pattern="^platform.active=|^deployment.method="/>
    </filterchain>
    </loadproperties>
    <loadproperties srcfile="${user.properties.file}">
    <filterchain>
    <replaceregex replace="platform." pattern="^platforms\.${platform.active}\."/>
    <replaceregex replace="deployment.scriptfile=" pattern="^deployment\.${deployment.method}\.scriptfile="/>
    </filterchain>
    </loadproperties>
    <loadproperties srcfile="nbproject/project.properties">
    <filterchain>
    <containsregex replace="\1" pattern="^configs\.${config.active}\.(.*)"/>
    <concatfilter prepend="nbproject/project.properties"/>
    </filterchain>
    </loadproperties>
    </target>
    <target unless="platform.active" depends="load-properties" name="exists.platform.active">
    <echo message="Active platform (platform.active property) in not set. If you set this and user.properties.file property, many properties required by the project will be automatically evaluated (e.g.: platform home, platform classpath, ...)." level="warning"/>
    </target>
    <target depends="load-properties" unless="platform.configuration" name="exists.platform.configuration">
    <echo message="Platform configuration (platform.configuration) is not set. Using default (CLDC-1.0) configuration." level="warning"/>
    <property value="CLDC-1.0" name="platform.configuration"/>
    </target>
    <target depends="load-properties" unless="platform.profile" name="exists.platform.profile">
    <echo message="Platform profile (platform.profile) is not set. Using default (MIDP-1.0) profile." level="warning"/>
    <property value="MIDP-1.0" name="platform.profile"/>
    </target>
    <target depends="pre-init,load-properties,exists.platform.active,exists.platform.configuration,exists.platform.profile" name="init">
    <fail unless="libs.j2me_ant_ext.classpath">Classpath to J2ME Ant extension library (libs.j2me_ant_ext.classpath property) is not set. For example: location of mobility/modules/org-netbeans-modules-kjava-antext.jar file in the IDE installation directory.</fail>
    <fail unless="platform.home">Platform home (platform.home property) is not set. Value of this property should be ${platform.active.description} emulator home directory location.</fail>
    <fail unless="platform.bootclasspath">Platform boot classpath (platform.bootclasspath property) is not set. Value of this property should be ${platform.active.description} emulator boot classpath containing all J2ME classes provided by emulator.</fail>
    <fail unless="src.dir">Must set src.dir</fail>
    <fail unless="build.dir">Must set build.dir</fail>
    <fail unless="build.classes.dir">Must set build.classes.dir</fail>
    <fail unless="preprocessed.dir">Must set preprocessed.dir</fail>
    <fail unless="preverify.classes.dir">Must set preverify.classes.dir</fail>
    <fail unless="obfuscated.classes.dir">Must set obfuscated.classes.dir</fail>
    <fail unless="dist.dir">Must set dist.dir</fail>
    <fail unless="dist.jar">Must set dist.jar</fail>
    <fail unless="dist.jad">Must set dist.jad</fail>
    <fail unless="obfuscator.srcjar">Must set obfuscator.srcjar</fail>
    <fail unless="obfuscator.destjar">Must set obfuscator.destjar</fail>
    <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
    <property value="" name="abilities"/>
    <property value="" name="obfuscator.classpath"/>
    <property value="" name="kjava.configuration"/>
    <property value="UEI-1.0" name="platform.type"/>
    <property value="" name="platform.device"/>
    <property value="0" name="obfuscation.level"/>
    <property value="false" name="sign.enabled"/>
    <property value="file://" name="dist.jad.url"/>
    <property value="1.3" name="javac.source"/>
    <property value="1.1" name="javac.target"/>
    <property value="${file.encoding}" name="javac.encoding"/>
    <condition property="no.deps">
    <istrue value="${no.dependencies}"/>
    </condition>
    <condition property="no.javadoc.preview">
    <isfalse value="${javadoc.preview}"/>
    </condition>
    <condition value="${filter.excludes},**/*Test.java,**/test,**/test/**" property="filter.excludes.evaluated">
    <istrue value="${filter.exclude.tests}"/>
    </condition>
    <property value="${filter.excludes}" name="filter.excludes.evaluated"/>
    <condition value="" property="evaluated.run.security.domain">
    <isfalse value="${run.use.security.domain}"/>
    </condition>
    <condition value="" property="deployment.do.override.jarurl">
    <istrue value="${deployment.override.jarurl}"/>
    </condition>
    <property value="${run.security.domain}" name="evaluated.run.security.domain"/>
    <taskdef resource="org/netbeans/modules/kjava/antext/defs.properties">
    <classpath>
    <pathelement path="${libs.j2me_ant_ext.classpath}"/>
    </classpath>
    </taskdef>
    <uptodate targetfile="${preprocessed.dir}/.timestamp" property="no.clean.before.build">
    <srcfiles dir="nbproject">
    <include name="project.properties"/>
    <include name="build-impl.xml"/>
    </srcfiles>
    </uptodate>
    <condition property="skip.deployment">
    <equals trim="true" casesensitive="false" arg2="NONE" arg1="${deployment.method}"/>
    </condition>
    <condition property="skip-sign-keystore-password-input">
    <or>
    <isfalse value="${sign.enabled}"/>
    <and>
    <isset property="sign.keystore"/>
    <isset property="sign.keystore.password"/>
    <not>
    <equals trim="true" arg2="" arg1="${sign.keystore}"/>
    </not>
    <not>
    <equals trim="true" arg2="" arg1="${sign.keystore.password}"/>
    </not>
    </and>
    </or>
    </condition>
    <condition property="skip-sign-alias-password-input">
    <or>
    <isfalse value="${sign.enabled}"/>
    <and>
    <isset property="sign.keystore"/>
    <isset property="sign.alias"/>
    <isset property="sign.alias.password"/>
    <not>
    <equals trim="true" arg2="" arg1="${sign.keystore}"/>
    </not>
    <not>
    <equals trim="true" arg2="" arg1="${sign.alias}"/>
    </not>
    <not>
    <equals trim="true" arg2="" arg1="${sign.alias.password}"/>
    </not>
    </and>
    </or>
    </condition>
    <antcall inheritrefs="true" inheritall="true" target="post-init"/>
    </target>
    <target name="post-init"/>
    <target name="deps-jar" depends="init" unless="no.deps"/>
    <target description="Clean project in case its meta information has changed." unless="no.clean.before.build" depends="init" name="conditional-clean">
    <antcall target="do-clean" inheritall="true" inheritrefs="true"/>
    </target>
    <target name="pre-preprocess"/>
    <target description="Preprocess project sources." depends="init,pre-preprocess,deps-jar,conditional-clean" name="preprocess">
    <mkdir dir="${preprocessed.dir}"/>
    <echo file="${preprocessed.dir}/.timestamp" message="ignore me"/>
    <nb-prep encoding="${javac.encoding}" preprocessfor="${config.active},${abilities}" destdir="${preprocessed.dir}">
    <fileset excludes="${filter.excludes.evaluated}" defaultexcludes="${filter.use.standard}" dir="${src.dir}"/>
    </nb-prep>
    <antcall inheritrefs="true" inheritall="true" target="post-preprocess"/>
    </target>
    <target name="post-preprocess"/>
    <target description="Extracts all bundled libraries." depends="init,deps-jar,conditional-clean" name="extract-libs">
    <mkdir dir="${build.classes.dir}"/>
    <nb-extract excludeManifest="true" dir="${build.classes.dir}">
    <classpath>
    <path path="${libs.classpath}"/>
    </classpath>
    </nb-extract>
    </target>
    <target name="pre-compile"/>
    <target description="Compile project classes." depends="init,preprocess,extract-libs,pre-compile" name="compile">
    <mkdir dir="${build.classes.dir}"/>
    <javac encoding="${javac.encoding}" bootclasspath="${platform.bootclasspath}" srcdir="${preprocessed.dir}" destdir="${build.classes.dir}" debug="${javac.debug}" optimize="${javac.optimize}" deprecation="${javac.deprecation}" target="${javac.target}" source="${javac.source}" includeantruntime="false">
    <classpath>
    <path path="${libs.classpath}"/>
    </classpath>
    </javac>
    <copy todir="${build.classes.dir}">
    <fileset excludes="${filter.excludes.evaluated},${build.classes.excludes}" defaultexcludes="${filter.use.standard}" dir="${src.dir}"/>
    </copy>
    <antcall inheritrefs="true" inheritall="true" target="post-compile"/>
    </target>
    <target name="post-compile"/>
    <target name="pre-compile-single"/>
    <target description="Compile selected project classes." depends="init,preprocess,extract-libs,pre-compile-single" name="compile-single">
    <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
    <mkdir dir="${build.classes.dir}"/>
    <javac encoding="${javac.encoding}" includes="${javac.includes}" bootclasspath="${platform.bootclasspath}" destdir="${build.classes.dir}" srcdir="${preprocessed.dir}" debug="${javac.debug}" optimize="${javac.optimize}" deprecation="${javac.deprecation}" target="${javac.target}" source="${javac.source}" includeantruntime="false">
    <classpath>
    <path path="${libs.classpath}"/>
    </classpath>
    </javac>
    <antcall inheritrefs="true" inheritall="true" target="post-compile-single"/>
    </target>
    <target name="post-compile-single"/>
    <target depends="init" name="create-jad">
    <mkdir dir="${build.dir}"/>
    <dirname property="dist.jad.dir" file="${dist.dir}/${dist.jad}"/>
    <mkdir dir="${dist.jad.dir}"/>
    <condition value="${manifest.apipermissions}" property="evaluated.manifest.apipermissions">
    <not>
    <equals arg2="MIDP-1.0" arg1="${platform.profile}"/>
    </not>
    </condition>
    <condition value="${manifest.pushregistry}" property="evaluated.manifest.pushregistry">
    <not>
    <equals arg2="MIDP-1.0" arg1="${platform.profile}"/>
    </not>
    </condition>
    <condition property="contains.manifest.configuration">
    <contains string="${manifest.others}" substring="MicroEdition-Configuration: "/>
    </condition>
    <condition property="contains.manifest.profile">
    <contains string="${manifest.others}" substring="MicroEdition-Profile: "/>
    </condition>
    <property name="evaluated.manifest.apipermissions" value=""/>
    <property name="evaluated.manifest.pushregistry" value=""/>
    <property value="" name="manifest.jad"/>
    <property value="" name="manifest.manifest"/>
    <echo file="${dist.dir}/${dist.jad}">${manifest.midlets}${evaluated.manifest.apipermissions}${evaluated.manifest.pushregistry}${manifest.others}${manifest.jad}</echo>
    <echo file="${build.dir}/manifest.mf">${manifest.midlets}${evaluated.manifest.apipermissions}${evaluated.manifest.pushregistry}${manifest.others}${manifest.manifest}</echo>
    <antcall inheritrefs="true" inheritall="true" target="add-configuration"/>
    <antcall inheritrefs="true" inheritall="true" target="add-profile"/>
    </target>
    <target unless="contains.manifest.configuration" name="add-configuration">
    <echo append="true" file="${dist.dir}/${dist.jad}">MicroEdition-Configuration: ${platform.configuration}
    </echo>
    <echo append="true" file="${build.dir}/manifest.mf">MicroEdition-Configuration: ${platform.configuration}
    </echo>
    </target>
    <target unless="contains.manifest.profile" name="add-profile">
    <echo append="true" file="${dist.dir}/${dist.jad}">MicroEdition-Profile: ${platform.profile}
    </echo>
    <echo append="true" file="${build.dir}/manifest.mf">MicroEdition-Profile: ${platform.profile}
    </echo>
    </target>
    <target name="pre-obfuscate"/>
    <target description="Up-to-date check before obfuscation." depends="init,compile" name="obfuscate-check">
    <uptodate targetfile="${obfuscator.destjar}" property="no.obfusc">
    <srcfiles dir="${build.classes.dir}"/>
    </uptodate>
    </target>
    <target unless="no.obfusc" description="Obfuscate project classes." depends="init,compile,obfuscate-check,pre-obfuscate" name="obfuscate">
    <dirname property="obfuscator.srcjar.dir" file="${obfuscator.srcjar}"/>
    <dirname property="obfuscator.destjar.dir" file="${obfuscator.destjar}"/>
    <mkdir dir="${obfuscator.srcjar.dir}"/>
    <mkdir dir="${obfuscator.destjar.dir}"/>
    <jar basedir="${build.classes.dir}" jarfile="${obfuscator.srcjar}"/>
    <property value="" name="obfuscation.custom"/>
    <nb-obfuscate extraScript="${obfuscation.custom}" obfuscationLevel="${obfuscation.level}" classpath="${platform.bootclasspath}" obfuscatorclasspath="${obfuscator.classpath}" destjar="${obfuscator.destjar}" srcjar="${obfuscator.srcjar}"/>
    <mkdir dir="${obfuscated.classes.dir}"/>
    <unjar dest="${obfuscated.classes.dir}" src="${obfuscator.destjar}"/>
    <antcall inheritrefs="true" inheritall="true" target="post-obfuscate"/>
    </target>
    <target name="post-obfuscate"/>
    <target name="pre-preverify"/>
    <target description="Preverify project classes." depends="init,compile,obfuscate,pre-preverify" name="preverify">
    <mkdir dir="${preverify.classes.dir}"/>
    <nb-preverify commandline="${platform.preverifycommandline}" platformtype="${platform.type}" platformhome="${platform.home}" configuration="${platform.configuration}" classpath="${platform.bootclasspath}" destdir="${preverify.classes.dir}" srcdir="${obfuscated.classes.dir}"/>
    <antcall inheritrefs="true" inheritall="true" target="post-preverify"/>
    </target>
    <target name="post-preverify"/>
    <target unless="skip-sign-keystore-password-input" if="netbeans.home" depends="init" name="set-keystore-password">
    <nb-enter-password passwordproperty="sign.keystore.password" keystore="${sign.keystore}"/>
    </target>
    <target unless="skip-sign-alias-password-input" if="netbeans.home" depends="init" name="set-alias-password">
    <nb-enter-password passwordproperty="sign.alias.password" keyalias="${sign.alias}" keystore="${sign.keystore}"/>
    </target>
    <target name="pre-jar"/>
    <target description="Build jar and application descriptor." depends="init,preverify,create-jad,set-keystore-password,set-alias-password,pre-jar" name="jar">
    <dirname property="dist.jar.dir" file="${dist.dir}/${dist.jar}"/>
    <mkdir dir="${dist.jar.dir}"/>
    <jar manifest="${build.dir}/manifest.mf" jarfile="${dist.dir}/${dist.jar}" compress="${jar.compress}">
    <fileset dir="${preverify.classes.dir}"/>
    <fileset dir="${obfuscated.classes.dir}">
    <exclude name="**/*.class"/>
    </fileset>
    </jar>
    <nb-jad aliaspassword="${sign.alias.password}" alias="${sign.alias}" keystorepassword="${sign.keystore.password}" keystore="${sign.keystore}" sign="${sign.enabled}" url="${dist.jar}" jarfile="${dist.dir}/${dist.jar}" jadfile="${dist.dir}/${dist.jad}"/>
    <antcall inheritrefs="true" inheritall="true" target="post-jar"/>
    </target>
    <target name="post-jar"/>
    <target description="Rebuild the application." depends="init,clean,jar" name="rebuild"/>
    <target description="Run MIDlet suite." depends="init,jar" name="run">
    <nb-run commandline="${platform.runcommandline}" securitydomain="${evaluated.run.security.domain}" execmethod="${run.method}" platformtype="${platform.type}" platformhome="${platform.home}" device="${platform.device}" jadurl="${dist.jad.url}" jadfile="${dist.dir}/${dist.jad}"/>
    </target>
    <target description="Quick Run already built MIDlet suite." depends="init" name="run-no-build">
    <nb-run commandline="${platform.runcommandline}" securitydomain="${evaluated.run.security.domain}" execmethod="${run.method}" platformtype="${platform.type}" platformhome="${platform.home}" device="${platform.device}" jadurl="${dist.jad.url}" jadfile="${dist.dir}/${dist.jad}"/>
    </target>
    <target depends="init,clean,jar" description="Debug project." name="debug">
    <delete file="${preprocessed.dir}/.timestamp"/>
    <parallel>
    <nb-run commandline="${platform.debugcommandline}" securitydomain="${evaluated.run.security.domain}" execmethod="${run.method}" jadfile="${dist.dir}/${dist.jad}" device="${platform.device}" platformhome="${platform.home}" platformtype="${platform.type}" debuggeraddressproperty="jpda.port" debugserver="true" debugsuspend="true" debug="true"/>
    <sequential>
    <sleep seconds="5"/>
    <antcall target="nbdebug"/>
    </sequential>
    </parallel>
    </target>
    <target if="netbeans.home" description="Start NetBeans debugger" name="nbdebug">
    <nb-kjava-debug period="2000" timeout="30000" name="${app.codename}" address="${jpda.port}">
    <bootclasspath>
    <path path="${platform.bootclasspath}"/>
    </bootclasspath>
    <classpath>
    <path path="${dist.dir}/${dist.jar}"/>
    </classpath>
    <sourcepath>
    <path path="${src.dir}"/>
    <path path="${libs.src.path}"/>
    </sourcepath>
    </nb-kjava-debug>
    </target>
    <target depends="init,preprocess" name="javadoc">
    <mkdir dir="${dist.javadoc.dir}"/>
    <javadoc private="${javadoc.private}" windowtitle="${javadoc.windowtitle}" version="${javadoc.version}" author="${javadoc.author}" splitindex="${javadoc.splitindex}" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" use="${javadoc.use}" notree="${javadoc.notree}" bootclasspath="${platform.bootclasspath}" destdir="${dist.javadoc.dir}" source="${javac.source}">
    <classpath>
    <path path="${libs.classpath}"/>
    </classpath>
    <sourcepath>
    <pathelement location="${preprocessed.dir}"/>
    </sourcepath>
    <fileset dir="${preprocessed.dir}"/>
    </javadoc>
    <antcall target="browse-javadoc"/>
    </target>
    <target unless="no.javadoc.preview" if="netbeans.home" name="browse-javadoc">
    <nbbrowse file="${dist.javadoc.dir}/index.html"/>
    </target>
    <target name="pre-clean"/>
    <target description="Clean build products." if="no.clean.before.build" depends="init,conditional-clean" name="clean">
    <antcall inheritrefs="true" inheritall="true" target="do-clean"/>
    </target>
    <target depends="pre-clean" name="do-clean">
    <delete dir="${preprocessed.dir}"/>
    <delete dir="${build.classes.dir}"/>
    <delete file="${obfuscator.srcjar}"/>
    <delete file="${obfuscator.destjar}"/>
    <delete dir="${obfuscated.classes.dir}"/>
    <delete dir="${preverify.classes.dir}"/>
    <delete file="${build.dir}/manifest.mf"/>
    <delete file="${dist.dir}/${dist.jar}"/>
    <delete file="${dist.dir}/${dist.jad}"/>
    <delete dir="${dist.javadoc.dir}"/>
    <antcall inheritrefs="true" inheritall="true" target="post-clean"/>
    </target>
    <target name="post-clean"/>
    <target name="pre-deploy"/>
    <target if="deployment.do.override.jarurl" depends="init,jar,pre-deploy" name="override-jad">
    <property value="${dist.jar}" name="deployment.jarurl"/>
    <nb-jad aliaspassword="${sign.alias.password}" alias="${sign.alias}" keystorepassword="${sign.keystore.password}" keystore="${sign.keystore}" sign="${sign.enabled}" url="${deployment.jarurl}" jarfile="${dist.dir}/${dist.jar}" jadfile="${dist.dir}/${dist.jad}"/>
    </target>
    <target unless="skip.deployment" if="deployment.method" depends="init,jar,override-jad,pre-deploy" name="deploy">
    <fail unless="deployment.scriptfile">Property deployment.${deployment.method}.scriptfile not set. The property should point to an Ant script providing ${deployment.method} deployment.</fail>
    <ant inheritrefs="true" inheritall="true" antfile="${deployment.scriptfile}">
    <property location="${dist.dir}/${dist.jad}" name="deployment.jad"/>
    <property location="${dist.dir}/${dist.jar}" name="deployment.jar"/>
    </ant>
    <propertyfile file="nbproject/private/private.properties">
    <entry pattern="000000" default="2" operation="+" type="int" key="deployment.counter"/>
    <entry value="${deployment.counter}" key="deployment.number"/>
    </propertyfile>
    <replaceregexp replace="deployment.number=\2\3.\5\6.\8\9" match="^deployment.number=[0-9]*(0|([1-9]))([0-9])(0|([1-9]))([0-9])(0|([1-9]))([0-9])$" file="nbproject/private/private.properties" byline="true"/>
    <antcall inheritrefs="true" inheritall="true" target="post-deploy"/>
    </target>
    <target name="post-deploy"/>
    <target name="for-all-configs">
    <antcall inheritrefs="false" inheritall="false" target="${target.to.call}">
    <param value="" name="config.active"/>
    </antcall>
    </target>
    <target name="jar-all">
    <antcall target="for-all-configs">
    <param value="jar" name="target.to.call"/>
    </antcall>
    </target>
    <target name="javadoc-all">
    <antcall target="for-all-configs">
    <param value="javadoc" name="target.to.call"/>
    </antcall>
    </target>
    <target name="deploy-all">
    <antcall target="for-all-configs">
    <param value="deploy" name="target.to.call"/>
    </antcall>
    </target>
    <target name="rebuild-all">
    <antcall target="for-all-configs">
    <param value="rebuild" name="target.to.call"/>
    </antcall>
    </target>
    <target depends="load-properties" name="clean-all">
    <fail unless="build.root.dir">Property build.root.dir is not set. By default its value should be \"build\".</fail>
    <fail unless="dist.root.dir">Property dist.root.dir is not set. By default its value should be \"dist\".</fail>
    <delete dir="${build.root.dir}"/>
    <delete dir="${dist.root.dir}"/>
    <antcall target="for-all-configs">
    <param value="clean" name="target.to.call"/>
    </antcall>
    </target>
    </project>
    I have pasted the content of that file, please do the needs....

  • Difference between empty plsql record and null plsql record

    Hi there,
    I am kinda getting confused with empty plsql record and null plsql record.
    How do I assign plsql record to be empty and to be null?
    create type emp_obj as object (enum number, ename varchar2);
    CREATE OR REPLACE TYPE emp_type AS TABLE OF emp_obj;
    Thanks

    First of all, do not use term PL/SQL record in this context. Record type in PL/SQL is completely different from object type. Secondly, there are 2 states of a nested table:
    1. Unintialized:
    SQL> create or replace
      2    type emp_obj_type as object(enum number, ename varchar2(10));
      3  /
    Type created.
    SQL> create or replace
      2    type emp_tbl_type as table of emp_obj_type
      3  /
    Type created.
    SQL> declare
      2      v_emp_tbl emp_tbl_type;
      3  begin
      4      v_emp_tbl.extend;
      5  end;
      6  /
    declare
    ERROR at line 1:
    ORA-06531: Reference to uninitialized collection
    ORA-06512: at line 4
    SQL> 2 Empty:
    SQL> set serveroutput on
    SQL> declare
      2      v_emp_tbl emp_tbl_type := emp_tbl_type();
      3  begin
      4      dbms_output.put_line('Nested table v_emp_tbl has ' || v_emp_tbl.count || ' element(s).');
      5  end;
      6  /
    Nested table v_emp_tbl has 0 element(s).
    PL/SQL procedure successfully completed.
    SQL> NULL aplies to nested table element, not to nested table itself:
    SQL> declare
      2      v_emp_tbl emp_tbl_type := emp_tbl_type();
      3  begin
      4      v_emp_tbl.extend;
      5      if v_emp_tbl(1) is null
      6        then
      7          dbms_output.put_line('Nested table v_emp_tbl first element is NULL.');
      8      end if;
      9  end;
    10  /
    Nested table v_emp_tbl first element is NULL.
    PL/SQL procedure successfully completed.
    SQL> SY.

  • How to check empty string and null? Assign same value to multiple variables

    Hi,
    1.
    How do I check for empty string and null?
    in_value IN VARCHAR2
    2. Also how do I assign same value to multiple variables?
    var_one NUMBER := 0;
    var_two NUMBER := 0;
    var_one := var_two := 0; --- Gives an error
    Thanks

    MichaelS wrote:
    Not always: Beware of CHAR's:
    Bug 727361: ZERO-LENGTH STRING DOES NOT RETURN NULL WHEN USED WITH CHAR DATA TYPE IN PL/SQL:
    SQL> declare
      2    l_str1   char (10) := '';
      3    l_str2   char (10) := null;
      4  begin
      5  
      6    if l_str1 is null
      7    then
      8      dbms_output.put_line ('oh STR1 is null');
      9    elsif l_str1 is not null
    10    then
    11      dbms_output.put_line ('oh STR1 is NOT null');
    12    end if;
    13  
    14    if l_str2 is null
    15    then
    16      dbms_output.put_line ('oh STR2 is null');
    17    elsif l_str2 is not null
    18    then
    19      dbms_output.put_line ('oh STR2 is NOT null');
    20    end if;
    21  end;
    22  /
    oh STR1 is NOT null
    oh STR2 is null
    PL/SQL procedure successfully completed.
    SQL> alter session set events '10932 trace name context forever, level 16384';
    Session altered.
    SQL> declare
      2    l_str1   char (10) := '';
      3    l_str2   char (10) := null;
      4  begin
      5  
      6    if l_str1 is null
      7    then
      8      dbms_output.put_line ('oh STR1 is null');
      9    elsif l_str1 is not null
    10    then
    11      dbms_output.put_line ('oh STR1 is NOT null');
    12    end if;
    13  
    14    if l_str2 is null
    15    then
    16      dbms_output.put_line ('oh STR2 is null');
    17    elsif l_str2 is not null
    18    then
    19      dbms_output.put_line ('oh STR2 is NOT null');
    20    end if;
    21  end;
    22  /
    oh STR1 is null
    oh STR2 is null
    PL/SQL procedure successfully completed.
    SQL> SY.

  • Hi! How can I change the shipping address for the program of replacement of the 1 generation ipod nano? I've already received the empty box and now I should send back the old ipod but I'd like to receive the new one to another address. Thank you.

    Hi! How can I change the shipping address for the program of replacement of the 1 generation ipod nano? I've already received the empty box and now I should send back the old ipod but I'd like to receive the new one to another address. Thank you.

    I would contact Apple directly and have them work with to get the iPod shipped to a new/different address.
    http://www.apple.com/contact/
    B-rock

  • I have a MBP 15" with iPhoto 9. When right clicking on icon in dock 3 iPhoto libraries come up; one empty, one with 35,000 photos and one with 30,000 photos.  How can I delete the empty one and merge the other two without getting duplicates?

    I have a MBP 15" with Iphoto 9.  When I right click on icon in dock 3 iPhoto libraries come up; one empty, one with 35,000 photos and one with 30,000 photos.  How can I delete the empty library and merge the other two without getting duplicates?

    You can delete the empty one by dragging it to the trash ( test everything before emptying the trash)
    Merging libraries requires iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ -  it is the only current solution to merging libraries
    LN

Maybe you are looking for

  • How to display Column data in one row

    Hello, I have one Employee with 4 effective date displayed in one column. Effective date is drived by Reason of : New Hire, Rehire, Transfer etc. I want to show the effective dates for one reason in one single row. For example a person was rehired 4

  • IPod/iPad cannot be used, required software not installed

    Hi, This problem just started after the last update to the latest iTunes for Windows.  When connecting to the computer, iTunes shows a popup that says: "This iPod cannot be used because the required software is not installed.  Run the iTunes installe

  • IE Crashes with signed applet.

    I've been having problems in the last few days where my signed applet will crash on one server, and will not on the other. The server it doesn't crash on never crashes, where as the one it does crash on, will always crash. The certificate is currentl

  • ADF af:column width attribute

    Hello, I'm trying to expand the width of columns inside an af:table component so they stretch automatically according to the parent's size. I have tried all ways but columns always get set the default 100px width. The only way to make it stretch is u

  • BluRay error message "code 6, audio buffer underflows. Total bitrate is too high near time = 000000 seconds."

    Hello, I'm trying to create BluRays using Encore and I keep getting the following error messages: 'code 6, audio buffer underflows. Total bitrate is too high near time = 000000 seconds." For info, I created a H264 Bluray - NTSC 24fps master from an A