Needed example working  code for  FM"LAST_DAY_IN_PERIOD_GET"

needed example working  code for  FM"LAST_DAY_IN_PERIOD_GET"

Hi,
Go through this code
*& Report  Z_FICO_REP_SHIPMENTS
REPORT  z_fico_rep_shipments MESSAGE-ID sd.
TYPE-POOLS : slis.
TABLES : vbak,
         kna1,
         likp,
         vbfa.
*>> DEFINE global Types
TYPES : BEGIN OF gt_vbak,
          vbeln TYPE vbeln,
          kunnr TYPE kunnr ,
          spart TYPE spart,
          audat TYPE audat,
        END OF gt_vbak,
        BEGIN OF gt_kna1,
          kunnr TYPE kunnr,
          name1 TYPE name1,
        END OF gt_kna1,
        BEGIN OF gt_likp,
          vbeln     TYPE vbeln,
          wadat_ist TYPE wadat_ist,
        END OF gt_likp,
        BEGIN OF gt_vbfa,
          vbelv     TYPE vbelv,
          erdat     TYPE erdat,
          rfwrt     TYPE rfwrt,
       END OF gt_vbfa,
        BEGIN OF gt_final,
          kunnr   TYPE kunnr,
          name1   TYPE name1,
          cumon   TYPE monat,
          trcum   TYPE rfwrt,
          trcuy   TYPE rfwrt,
          perce   TYPE rfwrt,
          fiscy   TYPE gjahr,
          ftrcum  TYPE rfwrt,
          ftrcuy  TYPE rfwrt,
          fperce  TYPE rfwrt,
        END OF gt_final.
DATA : gwa_vbak   TYPE gt_vbak,
       gwa_kna1   TYPE gt_kna1,
       gwa_likp   TYPE gt_likp,
       gwa_vbfa   TYPE gt_vbfa,
       gwa_final  TYPE gt_final,
       gwa_sort   TYPE slis_sortinfo_alv,
       gwa_layout TYPE slis_layout_alv.    "ALV Layout
DATA : gi_vbak    TYPE STANDARD TABLE OF gt_vbak,
       gi_kna1    TYPE STANDARD TABLE OF gt_kna1,
       gi_likp    TYPE STANDARD TABLE OF gt_likp,
       gi_vbfa    TYPE STANDARD TABLE OF gt_vbfa,
       gi_likp1   TYPE STANDARD TABLE OF gt_likp,
       gi_vbfa1   TYPE STANDARD TABLE OF gt_vbfa,
       gi_final   TYPE STANDARD TABLE OF gt_final WITH HEADER LINE,
       gi_final1  TYPE STANDARD TABLE OF gt_final WITH HEADER LINE.
*>> DEFINE INTERNAL TABLE
DATA : gi_fieldcat    TYPE slis_t_fieldcat_alv,   "ALV Fieldcatalog
       gi_events      TYPE slis_t_event,          "ALV EventS
       gi_sort        TYPE slis_t_sortinfo_alv ,
       gi_top_of_page TYPE slis_t_listheader.     "ALV LIST HEADER
DATA : gv_month(2) TYPE n.
*>> GLOBAL CONSTANTS
CONSTANTS: gc_day(2) TYPE n VALUE 01,
           gc_top_of_page  TYPE slis_formname VALUE 'TOP_OF_PAGE',
           gc_x TYPE c VALUE 'X'.
SELECTION-SCREEN:BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_monat      TYPE     monat OBLIGATORY,
            p_gjahr     TYPE     gjahr OBLIGATORY.
SELECT-OPTIONS : s_bukrs      FOR      vbak-bukrs_vf OBLIGATORY,
                 s_vkorg     FOR      vbak-vkorg,
                 s_spart     FOR     vbak-spart     OBLIGATORY,
                 s_audat   FOR    vbak-audat NO-DISPLAY.
SELECTION-SCREEN:END OF BLOCK b1.
SELECTION-SCREEN:BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
PARAMETERS: p_det RADIOBUTTON GROUP grp DEFAULT 'X' ,
          p_sum RADIOBUTTON GROUP grp.
SELECTION-SCREEN:END OF BLOCK b2.
START-OF-SELECTION.
*>> Take Period And year and find starting and ending date
  PERFORM fiscal_date.
  PERFORM collect_data.
  PERFORM manipulation_collect_data.
END-OF-SELECTION.
*>> Sort
  PERFORM gi_sort_table.
*>> MEARGE FIELD CATALOG USING INTERNAL TABLE
  PERFORM mearge_field_catalog.
*>> SET EVENTS
  PERFORM set_event.
*>> FOR ALV HEADER
  PERFORM n_top_of_page USING gi_top_of_page[].
*>>For ALV Layout
  PERFORM build_layout.
*>>For output display
  PERFORM alv_grid_display.
*&      Form  fiscal_date
FORM fiscal_date.
  TYPES : BEGIN OF lt_fisc,
            bukrs TYPE bukrs,
            periv TYPE periv,
            bumon TYPE bumon,
            butag TYPE butag,
          END OF lt_fisc,
          BEGIN OF lt_t009b,
            periv TYPE periv,
            bumon TYPE bumon,
            butag TYPE butag,
            poper TYPE poper,
           END OF lt_t009b.
  DATA : lwa_fisc  TYPE lt_fisc,
         lwa_t009b TYPE lt_t009b.
  DATA : li_fisc  TYPE STANDARD TABLE OF lt_fisc,
         li_t009b TYPE STANDARD TABLE OF lt_t009b.
  DATA : lv_date(2) TYPE c,
         lv_mont(2) TYPE c,
         lv_year(4) TYPE c.
  SELECT bukrs periv FROM t001
                     INTO TABLE li_fisc
                     WHERE bukrs IN s_bukrs.
  IF sy-subrc EQ 0.
    SELECT * FROM t009b
             INTO CORRESPONDING FIELDS OF TABLE li_t009b
             FOR ALL ENTRIES IN li_fisc
             WHERE periv EQ li_fisc-periv .
    IF sy-subrc NE 0.
      CLEAR li_t009b.
    ENDIF.
  ELSE.
    CLEAR li_fisc.
  ENDIF.
  SORT li_t009b BY periv poper.
  LOOP AT li_fisc INTO lwa_fisc.
    READ TABLE li_t009b INTO lwa_t009b WITH KEY periv = lwa_fisc-periv
                                                poper = '001'
                                       BINARY SEARCH.
    IF sy-subrc = 0.
      s_audat-option = 'EQ'.
      s_audat-sign   = 'I'.
      CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
        EXPORTING
          i_gjahr = p_gjahr
          i_periv = lwa_t009b-periv
          i_poper = lwa_t009b-poper
        IMPORTING
          e_date  = s_audat-low.
    ENDIF.
    CLEAR lwa_t009b.
    READ TABLE li_t009b INTO lwa_t009b WITH KEY periv = lwa_fisc-periv
                                                poper = '012'
                                       BINARY SEARCH.
    IF sy-subrc = 0.
      CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
        EXPORTING
          i_gjahr = p_gjahr
          i_periv = lwa_t009b-periv
          i_poper = lwa_t009b-poper
        IMPORTING
          e_date  = s_audat-high.
    ENDIF.
    CLEAR lwa_t009b.
    READ TABLE li_t009b INTO lwa_t009b WITH KEY periv = lwa_fisc-periv
                                                poper = p_monat
                                        BINARY SEARCH.
    IF sy-subrc = 0.
      lv_date = s_audat-high+6(2).
      lv_mont = s_audat-high+4(2).
      lv_year = s_audat-high(4).
      lv_mont = lwa_t009b-bumon.
      lv_date = lwa_t009b-butag.
      CONCATENATE lv_year lv_mont lv_date INTO s_audat-high.
      APPEND s_audat.
      CLEAR: lwa_fisc,lwa_t009b,lv_date,lv_mont,lv_year.
    ENDIF.
  ENDLOOP.
  DELETE ADJACENT DUPLICATES FROM s_audat.
ENDFORM.                    "fiscal_date
*&      Form  collect_data
FORM collect_data .
  SELECT vbeln kunnr spart audat
      FROM vbak
      INTO TABLE gi_vbak
      WHERE audat    GE s_audat-low  AND
            audat    LT s_audat-high AND
            vkorg    IN s_vkorg AND
            spart    IN s_spart AND
            bukrs_vf IN s_bukrs.
  IF sy-subrc EQ 0.
    SELECT kunnr name1
    FROM kna1
    INTO TABLE gi_kna1
    FOR ALL ENTRIES IN gi_vbak
    WHERE kunnr EQ gi_vbak-kunnr.
    IF sy-subrc NE 0.
      CLEAR gi_kna1.
    ENDIF.
    SELECT vbeln wadat_ist
    FROM likp
    INTO TABLE gi_likp
    WHERE wadat_ist  GE s_audat-low  AND
          wadat_ist  LT s_audat-high .
    IF sy-subrc EQ 0.
      SELECT vbelv erdat rfwrt
      FROM vbfa
      INTO TABLE gi_vbfa
      FOR ALL ENTRIES IN gi_likp
      WHERE vbeln   = gi_likp-vbeln AND
             ( vbtyp_n = 'M' OR
            vbtyp_n = 'H' ) .
      IF sy-subrc NE 0.
        CLEAR gi_vbfa.
      ENDIF.
    ELSE.
      CLEAR gi_likp.
    ENDIF.
    PERFORM change_date.
    SELECT vbeln wadat_ist
    FROM likp
    INTO TABLE gi_likp1
    WHERE wadat_ist  GE s_audat-low  AND
          wadat_ist  LT s_audat-high .
    IF sy-subrc EQ 0.
      SELECT vbelv erdat rfwrt
      FROM vbfa
      INTO TABLE gi_vbfa1
      FOR ALL ENTRIES IN gi_likp1
      WHERE vbeln   = gi_likp1-vbeln AND
             ( vbtyp_n = 'M' OR
            vbtyp_n = 'H' ) .
      IF sy-subrc NE 0.
        CLEAR gi_vbfa.
      ENDIF.
    ELSE.
      CLEAR gi_likp.
    ENDIF.
  ELSE.
    MESSAGE i261.
    LEAVE SCREEN.
  ENDIF.
ENDFORM.                    "collect_data
*&      Form  Manipulation_collect_data
FORM manipulation_collect_data.
  SORT gi_vbak BY vbeln.
  SORT gi_kna1 BY kunnr.
  LOOP AT gi_vbak INTO gwa_vbak.
    MOVE-CORRESPONDING gwa_vbak TO gwa_final.
    READ TABLE gi_kna1 INTO gwa_kna1 WITH KEY kunnr = gwa_vbak-kunnr
                                   BINARY SEARCH.
    IF sy-subrc EQ 0.
      gwa_final-name1 = gwa_kna1-name1.
    ENDIF.
  ENDLOOP.
*    v_month = gwa_vbak-audat+4(2).
*    gwa_final-cumon = p_monat.
*    gwa_final-fiscy = p_gjahr.
*    IF v_month = p_monat.
*      CLEAR wa_ckmlhd.
*      READ TABLE i_ckmlhd INTO wa_ckmlhd WITH KEY matnr = wa_vbap-matnr
*                                                  bwkey = wa_vbap-werks
*                                                  BINARY SEARCH.
*      IF sy-subrc EQ 0.
*        CLEAR i_nckmlcr.
*        READ TABLE i_nckmlcr INTO wa_nckmlcr
*                             WITH KEY kalnr = wa_ckmlhd-kalnr
*                             BINARY SEARCH.
*        IF sy-subrc EQ 0.
*          gwa_final-peinh = wa_nckmlcr-peinh.
*          gwa_final-kzwi6 = wa_vbap-kzwi6 - wa_vbap-kzwi5.
*          gwa_final-kzwi5 = wa_vbap-kzwi5.
*          gwa_final-totre = gwa_final-kzwi6 + gwa_final-kzwi5.
*          gwa_final-actco = ( wa_nckmlcr-pvprs / wa_nckmlcr-peinh ) *
*                            wa_vbap-kwmeng.
*          gwa_final-profit = gwa_final-totre - gwa_final-actco.
*          gwa_final-prows  = ( gwa_final-profit - gwa_final-kzwi6 ) *
*100.
*        ENDIF.
*      ENDIF.
*    ELSE.
*      CLEAR wa_ckmlhd.
*      READ TABLE i_ckmlhd INTO wa_ckmlhd WITH KEY matnr = wa_vbap-matnr
*                                                bwkey = wa_vbap-werks
*                                                BINARY SEARCH.
*      IF sy-subrc EQ 0.
*        READ TABLE i_ckmlcr INTO wa_ckmlcr
*                             WITH KEY kalnr = wa_ckmlhd-kalnr
*                             BINARY SEARCH.
*        IF sy-subrc NE 0.
*          CLEAR wa_ckmlcr.
*        ENDIF.
*        CLEAR wa_nckmlcr.
*        READ TABLE i_nckmlcr INTO wa_nckmlcr
*                             WITH KEY kalnr = wa_ckmlhd-kalnr
*                             BINARY SEARCH.
*        IF sy-subrc EQ 0.
*          gwa_final-fkzwi6  = wa_vbap-kzwi6 - wa_vbap-kzwi5.
*          gwa_final-fkzwi5  = wa_vbap-kzwi5.
*          gwa_final-ftotre  = gwa_final-fkzwi6 + gwa_final-fkzwi5.
*          gwa_final-factco  = ( ( wa_nckmlcr-pvprs / wa_ckmlcr-peinh )
*                               * wa_vbap-kwmeng ) / wa_nckmlcr-count.
*          gwa_final-fprofit = gwa_final-ftotre - gwa_final-factco.
*         gwa_final-fprows  = ( gwa_final-fprofit - gwa_final-kzwi6 ) *
*100
*        ENDIF.
*      ENDIF.
*    ENDIF.
*    APPEND gwa_final TO gi_final.
*    CLEAR : gwa_final,wa_nckmlcr,wa_ckmlcr,wa_ckmlhd,
*            gwa_vbak,wa_vbap,gwa_kna1.
*  ENDLOOP.
*  gwa_final-matnr = space.gwa_final-vbeln = space.
*  MODIFY gi_final FROM gwa_final TRANSPORTING vbeln matnr
*                                WHERE matnr NE space.
*  SORT gi_final BY kunnr vbeln matnr.
*  IF p_sum = gc_x.
*    LOOP AT gi_final INTO gwa_final.
*      COLLECT gwa_final INTO gi_final1.
*    ENDLOOP.
*    CLEAR gwa_final.REFRESH gi_final.
*    gi_final[] = gi_final1[].
*  ENDIF.
ENDFORM.                    "manipulation_collect_data
*&      Form  change_date
FORM change_date.
  DATA : lv_date(2) TYPE c,
         lv_mont(2) TYPE c,
         lv_year(4) TYPE n.
  lv_date = s_audat-low+6(2).
  lv_mont = s_audat-low+4(2).
  lv_year = s_audat-low(4).
  lv_year = lv_year - 1.
  CONCATENATE  lv_year lv_mont lv_date INTO s_audat-low.
  CLEAR : lv_date ,lv_mont,lv_year.
  lv_date = s_audat-high+6(2).
  lv_mont = s_audat-high+4(2).
  lv_year = s_audat-high(4).
  lv_year = lv_year - 1.
  CONCATENATE  lv_year lv_mont lv_date INTO s_audat-high.
  CLEAR : lv_date ,lv_mont,lv_year.
ENDFORM.                    " change_date
*&      Form  gi_sort_table
FORM gi_sort_table.
  IF p_det = gc_x.
    gwa_sort-spos = '1'.
    gwa_sort-fieldname = 'KUNNR'.
    gwa_sort-tabname = 'gi_final'.
    gwa_sort-up = gc_x.
    gwa_sort-subtot  = gc_x.
    APPEND gwa_sort TO gi_sort.
    CLEAR gwa_sort.
    gwa_sort-spos = '2'.
    gwa_sort-fieldname = 'NAME1'.
    gwa_sort-tabname = 'gi_final'.
    gwa_sort-up = gc_x.
    APPEND gwa_sort TO gi_sort.
*  ELSE.
*    gwa_sort-spos = '1'.
*    gwa_sort-fieldname = 'KUNNR'.
*    gwa_sort-tabname = 'gi_final'.
*    gwa_sort-up = gc_x.
*    APPEND gwa_sort TO gi_sort.
*    CLEAR gwa_sort.
*    gwa_sort-spos = '2'.
*    gwa_sort-fieldname = 'NAME1'.
*    gwa_sort-tabname = 'gi_final'.
*    gwa_sort-up = gc_x.
*    gwa_sort-group = gc_x.
*    gwa_sort-subtot  = gc_x.
*    APPEND gwa_sort TO gi_sort.
  ENDIF.
ENDFORM.                    "gi_sort_table
*&      Form  mearge_field_catalog
FORM mearge_field_catalog .
*>> LOCAL WORK AREA FOR FIELDCATALOG
  DATA : lwa_fieldcata TYPE slis_fieldcat_alv.
  CLEAR lwa_fieldcata.
  lwa_fieldcata-fieldname    = 'KUNNR'.
*  lwa_fieldcata-col_pos      = 1.
  lwa_fieldcata-key          = 'X'.
  lwa_fieldcata-key_sel      = 'X'.
  lwa_fieldcata-ref_tabname  = 'KNA1'.
  lwa_fieldcata-seltext_l    = 'Customer No.'.
  APPEND lwa_fieldcata TO gi_fieldcat.
  CLEAR lwa_fieldcata.
  lwa_fieldcata-fieldname    = 'NAME1'.
*  lwa_fieldcata-col_pos      = 2.
  lwa_fieldcata-ref_tabname  = 'KNA1'.
  lwa_fieldcata-seltext_l    = 'Customer Name'.
  APPEND lwa_fieldcata TO gi_fieldcat.
  IF p_det = gc_x.
    CLEAR lwa_fieldcata.
    lwa_fieldcata-fieldname    = 'VBELN'.
*    lwa_fieldcata-col_pos      = 3.
    lwa_fieldcata-ref_tabname  = 'VBAK'.
    lwa_fieldcata-seltext_l    = 'Sales Order Number'.
    APPEND lwa_fieldcata TO gi_fieldcat.
    CLEAR lwa_fieldcata.
    lwa_fieldcata-fieldname    = 'MATNR'.
*    lwa_fieldcata-col_pos      = 4.
    lwa_fieldcata-ref_tabname  = 'VBAK'.
    lwa_fieldcata-seltext_l    = 'Material No.'.
    APPEND lwa_fieldcata TO gi_fieldcat.
  ENDIF.
  CLEAR lwa_fieldcata.
  lwa_fieldcata-fieldname    = 'KWMENG'.
  lwa_fieldcata-col_pos      = 5.
  lwa_fieldcata-ref_tabname  = 'VBAP'.
  lwa_fieldcata-do_sum       = 'X'.
  lwa_fieldcata-seltext_l    = 'Order Quantity'.
  APPEND lwa_fieldcata TO gi_fieldcat.
  CLEAR lwa_fieldcata.
  lwa_fieldcata-fieldname    = 'PEINH'.
  lwa_fieldcata-col_pos      = 6.
  lwa_fieldcata-ref_tabname  = 'CKMLCR'.
  lwa_fieldcata-text_fieldname = 'PEINH'.
  APPEND lwa_fieldcata TO gi_fieldcat.
  CLEAR lwa_fieldcata.
  lwa_fieldcata-fieldname    = 'CUMON'.
  lwa_fieldcata-col_pos      = 7.
  lwa_fieldcata-ref_tabname  = 'VBKPF'.
  lwa_fieldcata-seltext_l    = 'Month'.
  lwa_fieldcata-no_sum       = gc_x.
  APPEND lwa_fieldcata TO gi_fieldcat.
  CLEAR lwa_fieldcata.
  lwa_fieldcata-fieldname    = 'KZWI6'.
  lwa_fieldcata-col_pos      = 8.
  lwa_fieldcata-ref_tabname  = 'VBAK'.
  lwa_fieldcata-seltext_l    = 'Costed Sales'.
  APPEND lwa_fieldcata TO gi_fieldcat.
  CLEAR lwa_fieldcata.
  lwa_fieldcata-fieldname    = 'KZWI5'.
  lwa_fieldcata-col_pos      = 9.
  lwa_fieldcata-ref_tabname  = 'VBAK'.
  lwa_fieldcata-seltext_l    = 'Surcharges'.
  APPEND lwa_fieldcata TO gi_fieldcat.
  CLEAR lwa_fieldcata.
  lwa_fieldcata-fieldname    = 'TOTRE'.
  lwa_fieldcata-col_pos      = 10.
  lwa_fieldcata-ref_tabname  = 'VBAK'.
  lwa_fieldcata-seltext_l    = 'Total Revenues'.
  APPEND lwa_fieldcata TO gi_fieldcat.
  CLEAR lwa_fieldcata.
  lwa_fieldcata-fieldname    = 'ACTCO'.
  lwa_fieldcata-col_pos      = 11.
  lwa_fieldcata-ref_tabname  = 'VBAP'.
  lwa_fieldcata-seltext_l    = 'Actual Cost for Period'.
  APPEND lwa_fieldcata TO gi_fieldcat.
  CLEAR lwa_fieldcata.
  lwa_fieldcata-fieldname    = 'PROFIT'.
  lwa_fieldcata-col_pos      = 12.
  lwa_fieldcata-ref_tabname  = 'VBAK'.
  lwa_fieldcata-seltext_l    = 'Profit'.
  APPEND lwa_fieldcata TO gi_fieldcat.
  CLEAR lwa_fieldcata.
  lwa_fieldcata-fieldname    = 'PROWS'.
  lwa_fieldcata-col_pos      = 13.
  lwa_fieldcata-ref_tabname  = 'VBAK'.
  lwa_fieldcata-seltext_l    = 'Profit % w/surcharge'.
  APPEND lwa_fieldcata TO gi_fieldcat.
  CLEAR lwa_fieldcata.
  lwa_fieldcata-fieldname    = 'FISCY'.
  lwa_fieldcata-col_pos      = 14.
*  lwa_fieldcata-ref_tabname  = 'VBAK'.
  lwa_fieldcata-seltext_l    = 'Fiscal Year'.
  APPEND lwa_fieldcata TO gi_fieldcat.
  CLEAR lwa_fieldcata.
  lwa_fieldcata-fieldname    = 'FKZWI6'.
  lwa_fieldcata-col_pos      = 15.
  lwa_fieldcata-ref_tabname  = 'VBAK'.
  lwa_fieldcata-seltext_l    = 'Costed Sales'.
  APPEND lwa_fieldcata TO gi_fieldcat.
  CLEAR lwa_fieldcata.
  lwa_fieldcata-fieldname    = 'FKZWI5'.
  lwa_fieldcata-col_pos      = 16.
  lwa_fieldcata-ref_tabname  = 'VBAK'.
  lwa_fieldcata-seltext_l    = 'Surcharges'.
  APPEND lwa_fieldcata TO gi_fieldcat.
  CLEAR lwa_fieldcata.
  lwa_fieldcata-fieldname    = 'FTOTRE'.
  lwa_fieldcata-col_pos      = 17.
  lwa_fieldcata-ref_tabname  = 'VBAK'.
  lwa_fieldcata-seltext_l    = 'Total Revenues'.
  APPEND lwa_fieldcata TO gi_fieldcat.
  CLEAR lwa_fieldcata.
  lwa_fieldcata-fieldname    = 'FACTCO'.
  lwa_fieldcata-col_pos      = 18.
  lwa_fieldcata-ref_tabname  = 'VBAP'.
  lwa_fieldcata-seltext_l    = 'Actual Cost for Period'.
  APPEND lwa_fieldcata TO gi_fieldcat.
  CLEAR lwa_fieldcata.
  lwa_fieldcata-fieldname    = 'FPROFIT'.
  lwa_fieldcata-col_pos      = 19.
  lwa_fieldcata-ref_tabname  = 'VBAK'.
  lwa_fieldcata-seltext_l    = 'Profit'.
  APPEND lwa_fieldcata TO gi_fieldcat.
  CLEAR lwa_fieldcata.
  lwa_fieldcata-fieldname    = 'FPROWS'.
  lwa_fieldcata-col_pos      = 20.
  lwa_fieldcata-ref_tabname  = 'VBAK'.
  lwa_fieldcata-seltext_l    = 'Profit % w/surcharge'.
  APPEND lwa_fieldcata TO gi_fieldcat.
ENDFORM.                    " mearge_field_catalog
*&      Form  set_event
FORM set_event .
  CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
      i_list_type = 1
    IMPORTING
      et_events   = gi_events.
  SORT gi_events BY name.
*-- To read Top of Page event
  PERFORM read_events USING slis_ev_top_of_page gc_top_of_page.
ENDFORM.                    " set_event
*&      Form  top_of_page
FORM n_top_of_page USING lp_top_of_page TYPE slis_t_listheader.
  DATA: lwa_listhead TYPE slis_listheader,
        lv_ccode TYPE string,
        lv_sales TYPE string,
        lv_divis TYPE string.
  CONCATENATE 'From : ' s_bukrs-low  ' To: ' s_bukrs-high INTO lv_ccode.
  CONCATENATE 'From: ' s_vkorg-low       ' To: ' s_vkorg-high INTO lv_sales.
  CONCATENATE 'From: ' s_spart-low       ' To: ' s_spart-high INTO lv_divis.
  CLEAR lwa_listhead.
  lwa_listhead-typ  = 'H'.
  lwa_listhead-info = text-003.
  APPEND lwa_listhead TO lp_top_of_page.
  CLEAR lwa_listhead.
  lwa_listhead-typ  = 'S'.
  lwa_listhead-key  = 'Month'.
  lwa_listhead-info = p_monat.
  APPEND lwa_listhead TO lp_top_of_page.
  CLEAR lwa_listhead.
  lwa_listhead-typ  = 'S'.
  lwa_listhead-key  = 'Year'.
  lwa_listhead-info = p_gjahr.
  APPEND lwa_listhead TO lp_top_of_page.
  CLEAR lwa_listhead.
  lwa_listhead-typ  = 'S'.
  lwa_listhead-key  = 'Company Code'.
  lwa_listhead-info = lv_ccode.
  APPEND lwa_listhead TO lp_top_of_page.
  CLEAR lwa_listhead.
  lwa_listhead-typ  = 'S'.
  lwa_listhead-key  = 'Sales Org'.
  lwa_listhead-info = lv_sales.
  APPEND lwa_listhead TO lp_top_of_page.
  CLEAR lwa_listhead.
  lwa_listhead-typ  = 'S'.
  lwa_listhead-key  = 'Division'.
  lwa_listhead-info = lv_divis.
  APPEND lwa_listhead TO lp_top_of_page.
  IF p_det = gc_x.
    CLEAR lwa_listhead.
    lwa_listhead-typ  = 'A'.
    lwa_listhead-info = text-004.
    APPEND lwa_listhead TO lp_top_of_page.
  ELSE.
    CLEAR lwa_listhead.
    lwa_listhead-typ  = 'A'.
    lwa_listhead-info = text-005.
    APPEND lwa_listhead TO lp_top_of_page.
  ENDIF.
ENDFORM.                    "top_of_page
*&      Form  TOP_OF_PAGE
FORM top_of_page.
  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
      i_logo             = 'ENJOYSAP_LOGO'
      it_list_commentary = gi_top_of_page.
ENDFORM.                    "TOP_OF_PAGE
*&      Form  build_layout
FORM build_layout .
  gwa_layout-no_input          = gc_x.
  gwa_layout-colwidth_optimize = gc_x.
  gwa_layout-zebra             = gc_x.
ENDFORM.                    "build_layout
*&      Form  alv_grid_display
FORM alv_grid_display .
* Function module to display ALV report
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program = sy-repid
      is_layout          = gwa_layout
      it_fieldcat        = gi_fieldcat[]
      it_sort            = gi_sort
      i_save             = 'A'
      it_events          = gi_events[]
    TABLES
      t_outtab           = gi_final
    EXCEPTIONS
      program_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.
ENDFORM.                    " alv_grid_display
*&      Form  read_events
FORM read_events  USING  pr_events    TYPE slis_alv_event-name
                         pr_eventname TYPE slis_formname.
  DATA: lwa_event TYPE slis_alv_event.
  CLEAR lwa_event.
  READ TABLE gi_events INTO lwa_event
                      WITH KEY name = pr_events BINARY SEARCH.
  IF sy-subrc = 0.
    MOVE pr_eventname TO lwa_event-form.
    MODIFY gi_events FROM lwa_event
                    TRANSPORTING form
                    WHERE name = pr_events.
  ENDIF.
ENDFORM.                    " read_events
Regards
Sandipan

Similar Messages

  • Hello, I bought my iphone in japan. And now I'm in Brazil and I use it here, I need the unlock code for me to use here. please

    Hello, I bought my iphone in japan. And now I'm in Brazil and I use it here, I need the unlock code for me to use here. please

    williamjapa wrote:
    Hello, I bought my iphone in japan. And now I'm in Brazil and I use it here, I need the unlock code for me to use here. please
    Only the carrier to which the phone is locked can authorize an unlock. None of the Japanese carriers will do that. Sell the phone and buy one that works in Brazil.

  • I need the activation code for nokia 9300I

    i have mobil nokia 9300i and i need the activation code for nokia 9300I to install MobiDict english-arabic
    and that is my serial number
    and thanks a lot
    Moderator Note: IMEI number removed
    Message Edited by kenken on 23-Oct-2008 02:17 PM

    Software activation codes are provided by the software producers, so you need to check with the site you downloaded the app from.

  • I need a request code for offline activation. Because i cannot connect with adobe server for online activation. But I receive "The request code is invalid." by generate answer code.

    I need a request code for offline activation. Because i cannot connect with adobe server for online activation. But I receive "The request code is invalid." by generate answer code.

    Dear Anubha,
    I hope these windows illustrate what I am facing.
    The above window shows the prompt that the software requires activation.
    The version is 8.1.0.
    This next window is the point where I select activation by phone.
    This final window shows that the "response code" is not returned.  I get an
    "Activation Number" instead.
    Steven
    On Tue, Jan 27, 2015 at 10:50 PM, Anubha Goel <[email protected]>

  • Need an authorization code for CS2 premium

    i need an authorization code for CS2

    don't use your cs2 installation files and don't use your serial number.
    Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3

  • Need registrati​on code for Deluxe Freecell; this software was previously registered but since hard reset, I now need to reregister

    null
    Post relates to: Tungsten E2

    Hi.. Welcome to the Palm forums.  If you need a registration code for this software you need to talk to the manufacturer, Bapsoft @ http://www.bapsoft.com/.  I assume you purchased it thru the Palm store but you have to realize they are simply the store front that has rights to sell the software for the manufacturer.  The manufacturer takes care of all support.
    Post relates to: Centro (Sprint)

  • I NEED MY UNBLOCKING CODE FOR MY IPHONE 4S ,I HAVE BEEN INCONTACT WITH MY SERVICE PROVIDER AND THEY CONFIRMED THEY HAVE SENT AN EMAIL TO YOURSELF TO GET THE CODE AND NOW I NEED TO CONTACT YOU MYSELF IS THIS CORRECT AS VODAFONE DO NOT SEEM TO BE HELPING ME

    I NEED MY UNBLOCKING CODE FOR MY IPHONE 4S ,I HAVE BEEN INCONTACT WITH MY SERVICE PROVIDER AND THEY CONFIRMED THEY HAVE SENT AN EMAIL TO YOURSELF TO GET THE CODE AND NOW I NEED TO CONTACT YOU MYSELF IS THIS CORRECT AS VODAFONE DO NOT SEEM TO BE HELPING ME

    There is no such thing as an unlock code for an iPhone. It's done by restoring the phone using iTunes

  • Need all transaction codes for idocs

    need all transaction codes for idocs

    Hi,
    ALE IDOC
    Sending System(Outbound ALE Process)
    Tcode SALE ? for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 ? Create Model View
    Tcode BD82 ? Generate partner Profiles & Create Ports
    Tcode BD64 ? Distribute the Model view
    Message Type MATMAS
    Tcode BD10 ? Send Material Data
    Tcode WE05 ? Idoc List for watching any Errors
    Receiving System(Inbound ALE )
    Tcode SALE ? for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 ? Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 ? Idoc List for inbound status codes
    ALE IDOC Steps
    Sending System(Outbound ALE Process)
    Tcode SALE ?3 for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 !V Create Model View
    Tcode BD82 !V Generate partner Profiles & Create Ports
    Tcode BD64 !V Distribute the Model view
    This is Receiving system Settings
    Receiving System(Inbound ALE )
    Tcode SALE ?3 for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 !V Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 !V Idoc List for inbound status codes
    Message Type MATMAS
    Tcode BD10 !V Send Material Data
    Tcode WE05 !V Idoc List for watching any Errors
    1)a Goto Tcode SALE
    Click on Sending & Receiving Systems-->Select Logical Systems
    Here Define Logical Systems---> Click on Execute Button
    go for new entries
    1) System Name : ERP000
    Description : Sending System
    2) System Name : ERP800
    Description : Receiving System
    press Enter & Save
    it will ask Request
    if you want new request create new Request orpress continue for transfering the objects
    B) goto Tcode SALE
    Select Assign Client to Logical Systems-->Execute
    000--> Double click on this
    Give the following Information
    Client : ERP 000
    City :
    Logical System
    Currency
    Client role
    Save this Data
    Step 2) For RFC Creation
    Goto Tcode SM59-->Select R/3 Connects
    Click on Create Button
    RFC Destination Name should be same as partner's logical system name and case sensitive to create the ports automatically while generating the partner profiles
    give the information for required fields
    RFC Destination : ERP800
    Connection type: 3
    Description
    Target Host : ERP000
    System No:000
    lan : EN
    Client : 800
    User : Login User Name
    Password:
    save this & Test it & RemortLogin
    3)
    Goto Tcode BD64 -- click on Change mode button
    click on create moduleview
    short text : xxxxxxxxxxxxxx
    Technical Neme : MODEL_ALV
    save this & Press ok
    select your just created modelview Name :'MODEL_ALV'.
    goto add message type
    Model Name : MODEL_ALV
    sender : ERP000
    Receiver : ERP800
    Message type :MATMAS
    save & Press Enter
    4) Goto Tcode BD82
    Give Model View : MODEL_ALV
    Partner system : ERP800
    execute this by press F8 Button
    it will gives you sending system port No :A000000015(Like)
    5) Goto Tcode BD64
    seelct the modelview
    goto >edit>modelview-->distribute
    press ok & Press enter
    6)goto Tcode : BD10 for Material sending
    Material : mat_001
    Message Type : MATMAS
    Logical System : ERP800
    and Execute
    7)goto Tcode : BD11 for Material Receiving
    Material : mat_001
    Message Type : MATMAS
    and Execute --> 1 request idoc created for message type Matmas
    press enter
    Here Master Idoc set for Messge type MATMAS-->press Enter
    1 Communication Idoc generated for Message Type
    this is your IDOC
    Change Pointers
    I know how to change the description of a material using ALE Change Pointers.
    I will give the following few steps
    1) Tcode BD61---> check the change pointers activated check box
    save and goback.
    2) Tcode BD50---> check the MATMAS check box save and comeback.
    3) Tcode BD51---> goto IDOC_INPUT_MATMAS01 select the checkbox save and comeback.
    4) Tcode BD52---> give message type : matmas press ok button.
    select all what ever you want and delete remaining fields.
    save & come back.
    5) 5) go to Tcode MM02 select one material and try to change the description and save it
    it will effects the target systems material desciption will also changes
    6) goto Tcode SE38 give program Name is : RBDMIDOC and Execute
    give Message type : MATMAS and Executte
    ALE/IDOC Status Codes/Messages
    01 Error --> Idoc Added
    30 Error --> Idoc ready for dispatch(ALE Service)
    then goto SE38 --> Execute the Program RBDMIDOC
    29 Error --> ALE Service Layer
    then goto SE38 --> Execute the Program RSEOUT00
    03 Error --> Data Passed to Port ok
    then goto SE38 --> Execute the Program RBDMOIND
    12 Error --> Dispatch ok
    Inbound Status Codes
    50 Error --> It will go for ALE Service Layer
    56 Error --> Idoc with Errors added
    51 Error --> Application Document not posted
    65 Error --> Error in ALE Service Layer
    for 51 or 56 Errors do the following steps
    goto WE19 > give the IDOC Number and Execute>
    Press on Inbound function Module
    for 65 Error --> goto SE38 --> Execute the Program RBDAPP01 then your getting 51 Error
    BAPI tcode --- BAPI.
    Also:
    IDOC:
    IDOC ADMINISTRATION
    WE09 / WE02 IDoc lists according to content. View IDocs via specific IDoc number or business application detail contained within the contents of a segment.
    WE05 View IDocs
    WE60 IDoc type documentation tool
    WE20 Partner profile configuration. Add partner detail together with inbound and outbound relationships. We also incorporate message control on the outbound IDocs. Utilize the organizational units to trap functional errors for further processing.
    BD87 Reprocess IDocs in error or waiting for action. (Both inbound and outbound in 4.6. Use BD88 in prior versions)
    1.4 IDOC DEVELOPMENT
    BD55 Conversion rule user exit. Link conversion rule user exit to the different system \ partner combinations.
    WE19 EDI test tool. Use to test inbound Function module changes.
    WE31 Segment create
    WE30 Create IDoc extension type
    WE82 Link Release detail to Extension IDoc Type
    WE57 Assign function module to logical message and IDoc type
    BAPI: BAPI, SWO1.
    Transaction codes Related for IDOC Configurations
    WEDI: Area Menu for IDOC’s
    WE02: Display IDoc
    WE19: ALE Test tool
    WE30: Development of IDOC Type
    WE31: Development of IDOC Segment
    WE41: Process Codes, Outbound
    WE42: Process Codes, Inbound
    WE47: Status Maintenance
    WE81: Logical Message Types
    WE57: Assignment Messages for Appl. Objs
    SM59: RFC Destinations (Display/Maintain)
    SALE: Display ALE Customizing
    BD54: Maintaining Logical Systems
    BD67: Maintain methods (inbound)
    BD64: Maintenance of Distribution Model
    BD87: Status Monitor for ALE Messages
    Reward points if found helpful...
    Cheers,
    Chandra Sekhar.

  • Complete working code for Gmail POP3 & SMTP with SSL - Java mail API

    Finally, your code-hunt has come to an end!!!!
    I am presenting you the complete solution (with code) to send and retrieve you mails to & from GMAIL using SMTP and POP3 with SSL & Authenticaion enabled. [Even starters & newbies like me, can easy try, test & understand - But first download & add JAR's of Java Mail API & Java Activation Framework to Netbeans Library Manager]
    Download Java Mail API here
    http://java.sun.com/products/javamail/
    Read Java Mail FAQ's here
    http://java.sun.com/products/javamail/FAQ.html
    Download Java Activation Framework [JAF]
    http://java.sun.com/products/javabeans/jaf/downloads/index.html
    Also, The POP program retrieves the mail sent with SMTP program :) [MOST IMPORTANT & LARGELY IN DEMAND]okey.. first things first... all of your thanks goes to the following and not a s@!te to me :)
    hail Java !!
    hail Java mail API !!
    hail Java forums !!
    hail Java-tips.org !!
    hail Netbeans !!
    Thanks to all coders who helped me by getting the code to work in one piece.
    special thanks to "bshannon" - The dude who runs this forum from 97!!I am just as happy as you will be when you execute the below code!! [my 13 hours of tweaking & code hunting has paid off!!]
    Now here it is...I only present you the complete solution!!
    START OF PROGRAM 1
    SENDING A MAIL FROM GMAIL ACCOUNT USING SMTP [STARTTLS (SSL)] PROTOCOL OF JAVA MAIL APINote on Program 1:
    1. In the code below replace USERNAME & PASSWORD with your respective GMAIL account username and its corresponding password!
    2. Use the code to make your Gmail client [jsp/servlets whatever]
    //Mail.java - smtp sending starttls (ssl) authentication enabled
    //1.Open a new Java class in netbeans (default package of the project) and name it as "Mail.java"
    //2.Copy paste the entire code below and save it.
    //3.Right click on the file name in the left side panel and click "compile" then click "Run"
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    public class Main
        String  d_email = "[email protected]",
                d_password = "PASSWORD",
                d_host = "smtp.gmail.com",
                d_port  = "465",
                m_to = "[email protected]",
                m_subject = "Testing",
                m_text = "Hey, this is the testing email.";
        public Main()
            Properties props = new Properties();
            props.put("mail.smtp.user", d_email);
            props.put("mail.smtp.host", d_host);
            props.put("mail.smtp.port", d_port);
            props.put("mail.smtp.starttls.enable","true");
            props.put("mail.smtp.auth", "true");
            //props.put("mail.smtp.debug", "true");
            props.put("mail.smtp.socketFactory.port", d_port);
            props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
            props.put("mail.smtp.socketFactory.fallback", "false");
            SecurityManager security = System.getSecurityManager();
            try
                Authenticator auth = new SMTPAuthenticator();
                Session session = Session.getInstance(props, auth);
                //session.setDebug(true);
                MimeMessage msg = new MimeMessage(session);
                msg.setText(m_text);
                msg.setSubject(m_subject);
                msg.setFrom(new InternetAddress(d_email));
                msg.addRecipient(Message.RecipientType.TO, new InternetAddress(m_to));
                Transport.send(msg);
            catch (Exception mex)
                mex.printStackTrace();
        public static void main(String[] args)
            Main blah = new Main();
        private class SMTPAuthenticator extends javax.mail.Authenticator
            public PasswordAuthentication getPasswordAuthentication()
                return new PasswordAuthentication(d_email, d_password);
    END OF PROGRAM 1-----
    START OF PROGRAM 2
    RETRIVE ALL THE MAILS FROM GMAIL INBOX USING Post Office Protocol POP3 [SSL] PROTOCOL OF JAVA MAIL APINote:
    1.Log into your gmail account via webmail [http://mail.google.com/]
    2.Click on "settings" and select "Mail Forwarding & POP3/IMAP"
    3.Select "enable POP for all mail" and "save changes"
    4.In the code below replace USERNAME & PASSWORD with your respective GMAIL account username and its corresponding password!
    PROGRAM 2 - PART 1 - Main.java
    //1.Open a new Java class file in the default package
    //2.Copy paste the below code and rename it to Mail.java
    //3.Compile and execute this code.
    public class Main {
        /** Creates a new instance of Main */
        public Main() {
         * @param args the command line arguments
        public static void main(String[] args) {
            try {
                GmailUtilities gmail = new GmailUtilities();
                gmail.setUserPass("[email protected]", "PASSWORD");
                gmail.connect();
                gmail.openFolder("INBOX");
                int totalMessages = gmail.getMessageCount();
                int newMessages = gmail.getNewMessageCount();
                System.out.println("Total messages = " + totalMessages);
                System.out.println("New messages = " + newMessages);
                System.out.println("-------------------------------");
    //Uncomment the below line to print the body of the message. Remember it will eat-up your bandwidth if you have 100's of messages.            //gmail.printAllMessageEnvelopes();
                gmail.printAllMessages();
            } catch(Exception e) {
                e.printStackTrace();
                System.exit(-1);
    END OF PART 1
    PROGRAM 2 - PART 2 - GmailUtilities.java
    //1.Open a new Java class in the project (default package)
    //2.Copy paste the below code
    //3.Compile - Don't execute this[Run]
    import com.sun.mail.pop3.POP3SSLStore;
    import java.io.File;
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.Date;
    import java.util.Properties;
    import javax.mail.Address;
    import javax.mail.FetchProfile;
    import javax.mail.Flags;
    import javax.mail.Folder;
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.Multipart;
    import javax.mail.Part;
    import javax.mail.Session;
    import javax.mail.Store;
    import javax.mail.URLName;
    import javax.mail.internet.ContentType;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeBodyPart;
    import javax.mail.internet.ParseException;
    public class GmailUtilities {
        private Session session = null;
        private Store store = null;
        private String username, password;
        private Folder folder;
        public GmailUtilities() {
        public void setUserPass(String username, String password) {
            this.username = username;
            this.password = password;
        public void connect() throws Exception {
            String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory";
            Properties pop3Props = new Properties();
            pop3Props.setProperty("mail.pop3.socketFactory.class", SSL_FACTORY);
            pop3Props.setProperty("mail.pop3.socketFactory.fallback", "false");
            pop3Props.setProperty("mail.pop3.port",  "995");
            pop3Props.setProperty("mail.pop3.socketFactory.port", "995");
            URLName url = new URLName("pop3", "pop.gmail.com", 995, "",
                    username, password);
            session = Session.getInstance(pop3Props, null);
            store = new POP3SSLStore(session, url);
            store.connect();
        public void openFolder(String folderName) throws Exception {
            // Open the Folder
            folder = store.getDefaultFolder();
            folder = folder.getFolder(folderName);
            if (folder == null) {
                throw new Exception("Invalid folder");
            // try to open read/write and if that fails try read-only
            try {
                folder.open(Folder.READ_WRITE);
            } catch (MessagingException ex) {
                folder.open(Folder.READ_ONLY);
        public void closeFolder() throws Exception {
            folder.close(false);
        public int getMessageCount() throws Exception {
            return folder.getMessageCount();
        public int getNewMessageCount() throws Exception {
            return folder.getNewMessageCount();
        public void disconnect() throws Exception {
            store.close();
        public void printMessage(int messageNo) throws Exception {
            System.out.println("Getting message number: " + messageNo);
            Message m = null;
            try {
                m = folder.getMessage(messageNo);
                dumpPart(m);
            } catch (IndexOutOfBoundsException iex) {
                System.out.println("Message number out of range");
        public void printAllMessageEnvelopes() throws Exception {
            // Attributes & Flags for all messages ..
            Message[] msgs = folder.getMessages();
            // Use a suitable FetchProfile
            FetchProfile fp = new FetchProfile();
            fp.add(FetchProfile.Item.ENVELOPE);       
            folder.fetch(msgs, fp);
            for (int i = 0; i < msgs.length; i++) {
                System.out.println("--------------------------");
                System.out.println("MESSAGE #" + (i + 1) + ":");
                dumpEnvelope(msgs);
    public void printAllMessages() throws Exception {
    // Attributes & Flags for all messages ..
    Message[] msgs = folder.getMessages();
    // Use a suitable FetchProfile
    FetchProfile fp = new FetchProfile();
    fp.add(FetchProfile.Item.ENVELOPE);
    folder.fetch(msgs, fp);
    for (int i = 0; i < msgs.length; i++) {
    System.out.println("--------------------------");
    System.out.println("MESSAGE #" + (i + 1) + ":");
    dumpPart(msgs[i]);
    public static void dumpPart(Part p) throws Exception {
    if (p instanceof Message)
    dumpEnvelope((Message)p);
    String ct = p.getContentType();
    try {
    pr("CONTENT-TYPE: " + (new ContentType(ct)).toString());
    } catch (ParseException pex) {
    pr("BAD CONTENT-TYPE: " + ct);
    * Using isMimeType to determine the content type avoids
    * fetching the actual content data until we need it.
    if (p.isMimeType("text/plain")) {
    pr("This is plain text");
    pr("---------------------------");
    System.out.println((String)p.getContent());
    } else {
    // just a separator
    pr("---------------------------");
    public static void dumpEnvelope(Message m) throws Exception {       
    pr(" ");
    Address[] a;
    // FROM
    if ((a = m.getFrom()) != null) {
    for (int j = 0; j < a.length; j++)
    pr("FROM: " + a[j].toString());
    // TO
    if ((a = m.getRecipients(Message.RecipientType.TO)) != null) {
    for (int j = 0; j < a.length; j++) {
    pr("TO: " + a[j].toString());
    // SUBJECT
    pr("SUBJECT: " + m.getSubject());
    // DATE
    Date d = m.getSentDate();
    pr("SendDate: " +
    (d != null ? d.toString() : "UNKNOWN"));
    static String indentStr = " ";
    static int level = 0;
    * Print a, possibly indented, string.
    public static void pr(String s) {
    System.out.print(indentStr.substring(0, level * 2));
    System.out.println(s);
    }END OF PART 2
    END OF PROGRAM 2
    P.S: CHECKING !!
    STEP 1.
    First compile and execute the PROGRAM 1 with your USERNAME & PASSWORD. This will send a mail to your own account.
    STEP 2.
    Now compile both PART 1 & PART 2 of PROGRAM 2. Then, execute PART 1 - Main.java. This will retrive the mail sent in step 1. njoy! :)
    In future, I hope this is added to the demo programs of the Java Mail API download package.
    This is for 3 main reasons...
    1. To prevent a lot of silly questions being posted on this forum [like the ones I did :(].
    2. To give the first time Java Mail user with a real time working example without code modification [code has to use command line args like the demo programs - for instant results].
    3. Also, this is what google has to say..
    "The Gmail Team is committed to making sure you always can access your mail. That's why we're offering POP access and auto-forwarding. Both features are free for all Gmail users and we have no plans to charge for them in the future."
    http://mail.google.com/support/bin/answer.py?answer=13295
    I guess bshannon & Java Mail team is hearing this....
    Again, Hurray and thanks for helping me make it!! cheers & no more frowned faces!!
    (: (: (: (: (: GO JCODERS GO!! :) :) :) :) :)
    codeace
    -----                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    Thanks for the reply,
    I did checked by enabling session debuging and also checked pop settings it's enabled for all
    mails, I tried deleting some very old messages and now the message count is changed to 310.
    This may be the problem with gmail.
    Bellow is the output i got,
    DEBUG: setDebug: JavaMail version 1.4ea
    DEBUG: getProvider() returning javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]
    DEBUG POP3: connecting to host "pop.gmail.com", port 995, isSSL false
    S: +OK Gpop ready for requests from 121.243.255.240 n22pf5432603pof.2
    C: USER [email protected]
    S: +OK send PASS
    C: PASS my_password
    S: +OK Welcome.
    C: STAT
    S: +OK 310 26900234
    Custom output: messageCount : 310
    C: QUIT
    S: +OK Farewell.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Needs sample ABAP code for field routine

    Dear Expert,
    There is a field "Pay Scale Group" in my DSO which stores the data in the format
    AA1/B1/CCC2/DD2/EEE1, A1/BB2/CC2/DDD3/EE2 etc. These data has to be transferred to
    InfoCube where "pay Scale Group" in the InfoCube will store the data like EEE1,EE2 etc.
    I need to write a field routine on the transformation between DSO and Cube.
    Can any one please help me with the sample ABAP code for this scenario.
    Some more examples for better understanding of the requirement:-
    Data in DSO(Source)            Data in Cube(Target)
    ===================            ===================
    AA1/B1/CCC2/DD2/EEE1            EEE1
    AAA1/BB2/CC1/DDD3/EE2           EE2
    A2/BBB2/CC2/DDD3/EEE5           EEE5
    AA2/BB1/C1/DDD3/EE3             EE3
    A3/B1/CC2/DDD1/EE4              EE4
    Many thanks in advance.
    Regards,
    Prakash
    Please do not dump your code requirements in SDN
    Edited by: Pravender on May 18, 2011 11:37 AM

    Hi,
    You can use the following code :
    Suppose the technical name of the field coming from DSO is ZPAY_SGRP.
    And also for example let me take one record, that is ZPAY_SGRP = AA1/B1/CCC2/DD2/EEE1 .
    My assumption is that there will always be 4 '/'.
    In the field routine write the below code
    data: V1(5) type c,
              V2(5) type c,
             V3(5) type c,
              V4(5) type c,
             V5(5) type c.
    data : VAR1 TYPE /BIC/OIZPAY_SGRP.
    split VAR 1  at '/' into V1 V2 V3 V4 V5.
    result = V5.
    V5 will be having the characters after the last '/' .That is V5 = EEE1.
    Hope the above reply was helpful.
    Kind Regards,
    Ashutosh Singh
    Edited by: Ashutosh Singh on May 17, 2011 3:53 PM
    Edited by: Ashutosh Singh on May 17, 2011 4:17 PM

  • I NEED ADOBE WORK BOOKS FOR CS5 TRAINING CLASSROOM IN A BOOK

    I am studying Adobe CS5. I need work books for ActionScriptt 3.0 for Adobe Professional CS5,Adobe Flash Professional,Adobe After Effects CS5,Adobe Photoshop CS5,Adobe INDesign, CS5, Adobe Flash Catalyst CS5,  Adobe Fireworks CS5,Adobe Illustrator CS5,,Adobe Dreamweaver CS5, Adobe Premiere Pro CS5 I have completed all the Adobe Training Manuals. I need work books for more training. Where can I Buy The Books?
    [email protected]

    You can buy Classroom in a Book for CS5 products at Adobe Press.
    Find some examples here:
    http://www.adobepress.com/search/index.asp?page=1&query=cs5&showResults=Store&searchagain= Search+Again&subject=Adobe+Aft…

  • Help Needed with HTML code for Image Positioning

    Hi All,
    Need a little help with some code for positioning images.
    I initially used the following:
    This is fine, but the border automatically puts a black border around the photo - how do I change it to white? Is there a way to set margins too, to prevent the text butting up against the photo?
    I also used the following code with success:
    <style type="text/css"
    img
    float:right;
    border:2px solid white;
    margin: 0px 0px 15px 20px
    </style>
    This code works, however the problem with it is it is not individual to just one photo - it moved all my photos and on that page, I wanted one photo floated to left and another to the right.
    If I use this code, how can I make it photo specific, so that it only affects the placement, margins and borders of one photo?
    Any help would be great.
    Thanks

    CSS question, not iWeb question. Regardless, use inline CSS styling for the image. You can also wrap the image in its own tag and declare an id or simply declare an id for the img tag, then set the style for the id_name:
    <style type="text/css"
    img#id_name
    float:right;
    border:2px solid white;
    margin: 0px 0px 15px 20px
    </style>
    If you want to control the style of more than one image on a page but not all then use a class instead of an id.
    the border automatically puts a black border around the photo - how do I change it to white? Is there a way to set margins too, to prevent the text butting up against the photo?
    I believe you have discovered a solution for this according to your CSS code. You have set the border to white by looking at the code and adjusting it appropriately. Your margin is declared in the CSS also, adjust the pixels appropriately.
    Read up some more on CSS to educate yourself further. I suggest w3schools.com or a CSS forum instead of the iWeb forum if you have CSS questions. It's kind of like if you drive your auto to the supermarket so you decide to go to the supermarket and ask everyone in the produce section to help when you have car problems. All the supermarket does is provide a place to park your auto. If you have car problems then ask a mechanic. iWeb (and most of its users) doesn't specialize in code, it simply provides an area for you to place it. Granted you might get lucky and find a mechanic in the produce section of the supermarket, but you're more likely to find a specialist at an auto swap meet (or CSS coding forum)!

  • Need sample source code for calling stored procedure in Oracle

    Hi.
    I try to call stored procedure in oracle using JCA JDBC.
    Anybody have sample source code for that ?
    Regards, Arnold.

    Thank you very much for a very quick reply. It worked, but I have an extended problem for which I would like to have a solution. Thank you very much in advance for your help. The problem is described below.
    I have the Procedure defined as below in the SFCS1 package body
    Procedure Company_Selection(O_Cursor IN OUT T_Cursor)
    BEGIN
    Open O_Cursor FOR
    SELECT CompanyId, CompanyName
    FROM Company
    WHERE CompanyProvince IN ('AL','AK');
    END Company_Selection;
    In the Oracle Forms, I have a datablock based on the above stored procedure. When I execute the form and from the menu if I click on Execute Query the data block gets filled up with data (The datablock is configured to display 10 items as a tabular form).
    At this point in time, I want to automate the process of displaying the data, hence I created a button and from there I want to call this stored procedure. So, in the button trigger I have the following statements
    DECLARE
    A SFCS1.T_Cursor;
    BEGIN
    SFCS1.Company_Selection(A);
    go_Block ('Block36');
    The cursor goes to the corresponding block, but does not display any data. Can you tell me how to get the data displayed. In the future versions, I'm planning to put variables in the WHERE clause.

  • Need PL/SQL code for this

    Hi,
    I need a PL/SQL code for this one...
    Let me know if something is not clear...
    1) The table CLOB_CLOBJECT_CDA has the columns described below...
    Explaining only those fields which are important in this context
    -- CDA_STEP_ID : Basically a Sequence
    -- CLOBJECT_SOURCE1_ID : Every id has got a set of records
    -- CLOBJECT_SOURCE2_ID : Every id has got a set of records
    -- LVL : There are total 8 levels..
    This is the main aim :
    1) There are total 16 million rows..(limited to 10 rows here)
    2) We need to go through level by level (LVL column) & insert the intersection records (CLOBJECT_SOURCE1_ID intersect CLOBJECT_SOURCE2_ID)
    into another table...but this is how it goes..
    Level (LVL column) 3's basically have CLOBJECT_SOURCE1_ID as level (LVL column) 2 CDA_STEP_ID's..
    (consider the statement --** where CLOBJECT_SOURCE1_ID = 285 which is same as 1st insert statement step id)..
    The above process goes for next levels until 8..(so have to use loops)
    So for ex :
    We go through the first insert statement and insert the insertion records only when both CLOBJECT_SOURCE1_ID & CLOBJECT_SOURCE2_ID has got records ..
    If we don't find any records for both of them we should skip the corresponding step id when we go to the next levels...
    Let's go through the 1st insert statement...
    -- We have CDA_STEP_ID = 285 & two sources CLOBJECT_SOURCE1_ID as 19 & CLOBJECT_SOURCE2_ID as 74...
    -- We see the table CLOBJECT_COUNTS & check whether we have counts for both 19 & 74 ..(In fact we insert counts into this table only if they have records)
    -- If so, we insert the intersection records into CDA_MRN_RESULTS ( we do have counts for both of them..) with CDA_STEP_ID 285...
    -- Then we insert the step id which is 285 along with the count into CLOBJECT_COUNTS..
    Let's go through another insert statement...
    -- Consider CDA_STEP_ID = 288 which has two sources CLOBJECT_SOURCE1_ID as 19 & CLOBJECT_SOURCE2_ID as 92...
    -- We see the table CLOBJECT_COUNTS & check whether we have counts for both 19 & 92 ..(we have records for 19 but not for 92)
    -- So we should not proceed with this..& also skip all those records (future records with increasing levels..basically level 3's) which have got 288 as CLOBJECT_SOURCE1_ID..
    (As said earlier that the present CDA_STEP_ID will always be CLOBJECT_SOURCE1_ID in the next level)...
    I wrote the following code which is after the statement...
    Let me have the create & insert statements here..
    create table CLOB_CLOBJECT_CDA
        CDA_STEP_ID           NUMBER,
        CDA_ID                NUMBER,
        CDA_SEQ_NUMBER        NUMBER,
        CLOBJECT_SOURCE1_TYPE VARCHAR2(3000),
        CLOBJECT_SOURCE1_ID   NUMBER,
        CLOBJECT_OPERATOR     VARCHAR2(3000),
        CLOBJECT_SOURCE2_TYPE VARCHAR2(3000),
        CLOBJECT_SOURCE2_ID   NUMBER,
        LVL                   NUMBER
    insert into clob_clobject_cda (CDA_STEP_ID, CDA_ID, CDA_SEQ_NUMBER, CLOBJECT_SOURCE1_TYPE, CLOBJECT_SOURCE1_ID, CLOBJECT_OPERATOR, CLOBJECT_SOURCE2_TYPE, CLOBJECT_SOURCE2_ID, LVL)
    values (285, 285, 1, 'CLOBJECT', 19, 'INTERSECT', 'CLOBJECT', 74, 2);
    insert into clob_clobject_cda (CDA_STEP_ID, CDA_ID, CDA_SEQ_NUMBER, CLOBJECT_SOURCE1_TYPE, CLOBJECT_SOURCE1_ID, CLOBJECT_OPERATOR, CLOBJECT_SOURCE2_TYPE, CLOBJECT_SOURCE2_ID, LVL)
    values (286, 286, 1, 'CLOBJECT', 19, 'INTERSECT', 'CLOBJECT', 75, 2);
    insert into clob_clobject_cda (CDA_STEP_ID, CDA_ID, CDA_SEQ_NUMBER, CLOBJECT_SOURCE1_TYPE, CLOBJECT_SOURCE1_ID, CLOBJECT_OPERATOR, CLOBJECT_SOURCE2_TYPE, CLOBJECT_SOURCE2_ID, LVL)
    values (287, 287, 1, 'CLOBJECT', 19, 'INTERSECT', 'CLOBJECT', 91, 2);
    insert into clob_clobject_cda (CDA_STEP_ID, CDA_ID, CDA_SEQ_NUMBER, CLOBJECT_SOURCE1_TYPE, CLOBJECT_SOURCE1_ID, CLOBJECT_OPERATOR, CLOBJECT_SOURCE2_TYPE, CLOBJECT_SOURCE2_ID, LVL)
    values (288, 288, 1, 'CLOBJECT', 19, 'INTERSECT', 'CLOBJECT', 92, 2);
    insert into clob_clobject_cda (CDA_STEP_ID, CDA_ID, CDA_SEQ_NUMBER, CLOBJECT_SOURCE1_TYPE, CLOBJECT_SOURCE1_ID, CLOBJECT_OPERATOR, CLOBJECT_SOURCE2_TYPE, CLOBJECT_SOURCE2_ID, LVL)
    values (4869, 4869, 1, 'CDA_STEP', 285, 'INTERSECT', 'CLOBJECT', 91, 3);  -- **
    insert into clob_clobject_cda (CDA_STEP_ID, CDA_ID, CDA_SEQ_NUMBER, CLOBJECT_SOURCE1_TYPE, CLOBJECT_SOURCE1_ID, CLOBJECT_OPERATOR, CLOBJECT_SOURCE2_TYPE, CLOBJECT_SOURCE2_ID, LVL)
    values (4870, 4870, 1, 'CDA_STEP', 285, 'INTERSECT', 'CLOBJECT', 92, 3);
    insert into clob_clobject_cda (CDA_STEP_ID, CDA_ID, CDA_SEQ_NUMBER, CLOBJECT_SOURCE1_TYPE, CLOBJECT_SOURCE1_ID, CLOBJECT_OPERATOR, CLOBJECT_SOURCE2_TYPE, CLOBJECT_SOURCE2_ID, LVL)
    values (4871, 4871, 1, 'CDA_STEP', 285, 'INTERSECT', 'CLOBJECT', 93, 3);
    insert into clob_clobject_cda (CDA_STEP_ID, CDA_ID, CDA_SEQ_NUMBER, CLOBJECT_SOURCE1_TYPE, CLOBJECT_SOURCE1_ID, CLOBJECT_OPERATOR, CLOBJECT_SOURCE2_TYPE, CLOBJECT_SOURCE2_ID, LVL)
    values (4880, 4880, 1, 'CDA_STEP', 286, 'INTERSECT', 'CLOBJECT', 91, 3);
    insert into clob_clobject_cda (CDA_STEP_ID, CDA_ID, CDA_SEQ_NUMBER, CLOBJECT_SOURCE1_TYPE, CLOBJECT_SOURCE1_ID, CLOBJECT_OPERATOR, CLOBJECT_SOURCE2_TYPE, CLOBJECT_SOURCE2_ID, LVL)
    values (4881, 4881, 1, 'CDA_STEP', 286, 'INTERSECT', 'CLOBJECT', 92, 3);
    insert into clob_clobject_cda (CDA_STEP_ID, CDA_ID, CDA_SEQ_NUMBER, CLOBJECT_SOURCE1_TYPE, CLOBJECT_SOURCE1_ID, CLOBJECT_OPERATOR, CLOBJECT_SOURCE2_TYPE, CLOBJECT_SOURCE2_ID, LVL)
    values (4882, 4882, 1, 'CDA_STEP', 286, 'INTERSECT', 'CLOBJECT', 93, 3);
    create table CDA_MRN_RESULTS
       CDA_STEP_ID      NUMBER,
      MRN              NUMBER,
      INSERT_DATE_TIME DATE
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (19, 1, to_date('19-10-2011', 'dd-mm-yyyy'));
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (19,  2, to_date('19-10-2011', 'dd-mm-yyyy'));
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (19,  3, to_date('19-10-2011', 'dd-mm-yyyy'));
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (74,  1, to_date('19-10-2011', 'dd-mm-yyyy'));
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (74,  2, to_date('19-10-2011', 'dd-mm-yyyy'));
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (74,  4, to_date('19-10-2011', 'dd-mm-yyyy'));
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (75,  1, to_date('19-10-2011', 'dd-mm-yyyy'));
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (75,  2, to_date('19-10-2011', 'dd-mm-yyyy'));
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (75,  6, to_date('19-10-2011', 'dd-mm-yyyy'));
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (91,  2, to_date('19-10-2011', 'dd-mm-yyyy'));
    insert into cda_mrn_results (CDA_STEP_ID, MRN, INSERT_DATE_TIME)
    values (91,  3, to_date('19-10-2011', 'dd-mm-yyyy'));
    create table CLOBJECT_COUNTS
      CDA_STEP_ID    NUMBER,
      CLOBJECT_COUNT NUMBER,
      DATE_TIME      DATE
    Insert into CLOBJECT_COUNTS values (19,3, to_date('19-10-2011', 'dd-mm-yyyy'));
    Insert into CLOBJECT_COUNTS values (74,3, to_date('19-10-2011', 'dd-mm-yyyy'));
    Insert into CLOBJECT_COUNTS values (75,3, to_date('19-10-2011', 'dd-mm-yyyy'));
    Insert into CLOBJECT_COUNTS values (91,2, to_date('19-10-2011', 'dd-mm-yyyy'));The output goes into two tables...
    CDA_MRN_RESULTS : O/p of intersection records between source1 & source2 id
    CLOBJECT_COUNTS : Step id with counts ...(useful for skipping next level step id's if either of source id has "0" counts)
    Any help is appreciated..
    Thanks..

    I tried to code this..but looping takes a lot of time..I want to skip certain rows where source1_step_id & source_2_step_id are not in clobject_counts table as we proceed to the next levels..Not sure how to skip the rows..
    declare
    cursor c1 (p_level varchar2 ) is
      Select * from clob_clobject_cda
        where lvl = p_level    ;
       TYPE V_TT IS TABLE OF C1%ROWTYPE INDEX BY PLS_INTEGER;
        L_TT V_TT;
        v1 number;
        v2 number;
        v_step_id number;
        v_operator varchar2(100) := '';
    begin
    for i in 2..8 loop
      open c1(i);
      LOOP
           FETCH C1 BULK COLLECT INTO L_TT LIMIT 500;
            FOR indx IN 1 .. L_TT.COUNT
             LOOP
               v1 := L_TT(indx).clobject_source1_id;
               v2 := L_TT(indx).clobject_source2_id;
               v_step_id := L_TT(indx).cda_step_id;
               v_operator := L_TT(indx).clobject_operator;
      Execute Immediate ('Insert into cda_mrn_results Select --+ parallel (cm 128)
                                                      distinct ' || v_step_id || ', mrn, trunc(sysdate) dt from cda_mrn_results  cm
                        where cda_step_id = ' || v1 || '
                        and   cda_step_id in (Select cda_step_id from clobject_counts) ' ||
         v_operator ||
                    '  Select --+ parallel (cm 128)
                                                      distinct ' || v_step_id || ', mrn, trunc(sysdate) dt from cda_mrn_results  cm
                        where cda_step_id = ' || v2 || '
                        and   cda_step_id in (Select cda_step_id from clobject_counts)  ' );
    Insert --+ Append
           into clobject_counts Select cda_step_id, count(distinct mrn),
                       insert_date_time dt from cda_mrn_results  where cda_step_id =  v_step_id   group by cda_step_id,insert_date_time;
       COMMIT;                    
             END LOOP;
           EXIT WHEN L_TT.COUNT = 0;
         END LOOP;
      CLOSE C1;
    End Loop;    
    Commit;
    End;

  • I need an unlock code for photoshop 3.2

    Help me please

    Hi mkab2505,
    I don't believe the unlock codes for adobe photoshop starter edtion 3.2 are available anymore.
    You can however access your photos, as they are stored on your computer in somewhere like your docoments>pictures folder
    and open them with another photo editor such as photoshop elements.
    Also, the catalog can be most likely converted for use in the photoshop elements organizer
    The below link should provide more info
    http://helpx.adobe.com/x-productkb/multi/photoshop-album-starter-edition-support.html
    Here's a link to the photoshop elements 11 product page should you wish to download a thirty day trial and see if it fits your needs.
    http://www.adobe.com/products/photoshop-elements.html

Maybe you are looking for

  • ALV  to Excel diplay

    Dear SDN Members, I need to transfer my ALV display to an excel sheet. its an customary excel sheet not like normal excel sheet, can i use this method to design the excel display CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD if yes, send me a sample program

  • How to make a Beziere path with REC.

    I'am tring to follow a flashlight with a particle emmiter. I want to make a beziere path with different points across the timeline using the REC mode. And then attach the particle to the path so it can follow correctly with speed and curves the flash

  • Pack java classes in to a war file

    i cant pack the java classes when i build my web project i works fine in localhost but when i tried to proved in my server the war file doesnt pack the java classes. How do i pack the classes??? i tried in the properties to add the files in packing t

  • Can I delete an album in iPhoto?

    Can I delte an album from iPhoto?

  • Fine tuning Oracle database using EM DB control

    What are the good features with we should use to fine tune the db system using em db control.