Code snippet help

Hello experts
I have to read serial number from  characteristic "SBANK_SERIAL_NUMBER"  in
class "KSE_SN_ENDOSCOPEs" contained in a name plate data of a instument. i wrote the code but iam unable to see the results at output.
Thanks
SP
Program goes like this
Global structure of list
type-pools: slis.
tables: likp,
        lips,
        vbfa,
        kssk,
        klah,
        vbak,
        mara,
        vbrk,
        ser01,
        vbpa,
      nast,
        zseri,
      ltap,
      pa0001,
      kna1,
        objk,
        viqmel,
        viqmma.
types:  begin of i_delivery,
             vbeln like likp-vbeln,
             posnr  like lips-posnr,
             kunnr like likp-kunnr,
             kunag like likp-kunag,
             vkorg  like vbak-vkorg,
             matnr  like lips-matnr,
             lfart  like likp-lfart,
             arktx  like vbap-arktx,
             vgbel  like lips-vgbel,
             vgpos  like lips-vgpos,
             pstyv   like lips-pstyv,
             wadat type likp-wadat,
             lfdat type likp-lfdat,
             prodh type lips-prodh,
             lfimg type lips-lfimg,
             vkbur type lips-vkbur,
             vkgrp type lips-vkgrp,
             mvgr1 type lips-mvgr1,
             sernr like objk-sernr,
             sernp like equi-sernr,
             equnr like equi-equnr,
             bstnk  like vbak-bstnk,
             vbelv  like lips-vgbel,
             posnv  like lips-posnv,
             uecha  like lips-uecha,
             ernam  like vbak-ernam,
             erdat like vbak-erdat,
             serail like lips-serail,
             anzsn like lips-anzsn,
             auart like vbak-auart ,
             netwr like vbap-netwr,
             fstno like vbpa-pernr,
             fstnm like pa0001-ename,
             ename like pa0001-ename,
             qname like ltap-qname,
             name1 like kna1-name1,
             name3 like kna1-name2,
             pernr like vbpa-pernr,
             aufnr like viqmel-aufnr,
             qmnum like viqmel-qmnum,
             mngrp like viqmma-mngrp,
             qmcod like viqmel-qmcod,
             qmcol like viqmma-mncod,
             qmgrp like viqmel-qmgrp,
             cotxt(20),
         end of i_delivery.
Global structure of list
*/ Selection and Input Parameters
selection-screen begin of block block2 with frame title text-003.
select-options: s_vkorg for likp-vkorg no intervals,
                s_matnr for lips-matnr,
                s_kunag for likp-kunag.
select-options: s_werks for lips-werks.
select-options: s_vbeln for vbfa-vbeln,
                s_waist for likp-wadat_ist.
select-options: s_vgbel for lips-vgbel.
selection-screen end of block block2.
ranges: r_vbeln for likp-vbeln.
data:   gt_fieldcat type slis_t_fieldcat_alv.
data:   gt_outtab type i_delivery occurs 0 with header line,
        rt_outtab1 type i_delivery occurs 0 with header line,
        i_nast type nast occurs 0 with header line,
        gt_list_top_of_page type slis_t_listheader,
        gt_events   type slis_t_event,
        gc_formname_top_of_page type slis_formname value 'TOP_OF_PAGE'.
data:   g_repid like sy-repid,
        g_count like sy-tabix.
data: begin of i_serial occurs 0,
        obknr type ser01-obknr,
        lief_nr type ser01-lief_nr,
        posnr type ser01-posnr,
        anzsn type ser01-anzsn,
      end of i_serial.
data: begin of i_object_numbers occurs 0,
        obknr type objk-obknr,
        sernr type objk-sernr,
        matnr type objk-matnr,
        taser type objk-taser,
        equnr type objk-equnr,
      end of i_object_numbers.
data:   g_save(1) type c,
      g_default(1) TYPE c,
        g_exit(1) type c,
        gx_variant like disvariant,
        g_variant like disvariant.
data:   g_mnkat like viqmma-mnkat,
        g_mngrp like viqmma-mngrp.
Initialization fieldcatalog
initialization.
  g_repid = sy-repid.
  perform fieldcat_init using gt_fieldcat[].
  move: 'I' to  s_vkorg-sign,
        'EQ' to  s_vkorg-option,
       '5090' to s_vkorg-low.
  append  s_vkorg.
move: 'I' to s_werks-sign,
       'EQ' to s_werks-option,
      '9000' to s_werks-low.
append s_werks.
  g_save = 'A'.
  perform variant_init.
Get default variant
  gx_variant = g_variant.
  call function 'REUSE_ALV_VARIANT_DEFAULT_GET'
       exporting
            i_save     = g_save
       changing
            cs_variant = gx_variant
       exceptions
            not_found  = 2.
  if sy-subrc = 0.
   p_vari = gx_variant-variant.
  endif.
*AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
PERFORM f4_for_variant.
*AT SELECTION-SCREEN.
PERFORM pai_of_selection_screen.
Start of Selection
start-of-selection.
*PERFORM e03_eventtab_build USING gt_events[].
  perform select_data tables gt_outtab.
Display list
end-of-selection.
  call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
            i_background_id         = 'ALV_BACKGROUND'
            i_callback_user_command = 'USER_COMMAND'
            is_variant              = g_variant
            i_save                  = g_save
            i_callback_program      = g_repid
            it_fieldcat             = gt_fieldcat[]
       tables
            t_outtab                = gt_outtab.
   Forms
Initialization fieldcatalog
form fieldcat_init
      using rt_fieldcat type slis_t_fieldcat_alv.
  data: ls_fieldcat type slis_fieldcat_alv.
  data: pos type i value 1.
  clear ls_fieldcat.
  ls_fieldcat-col_pos       =  pos.
  ls_fieldcat-fieldname     = 'VBELN'.
  ls_fieldcat-seltext_s     = 'Delivery'.
  ls_fieldcat-seltext_m     = 'Delivery'.
  ls_fieldcat-key           = 'X'.
  append ls_fieldcat to rt_fieldcat.
  clear ls_fieldcat.
  pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'POSNR'.
ls_fieldcat-key           = 'X'.
ls_fieldcat-seltext_s     = 'Item'.
ls_fieldcat-seltext_m     = 'Item'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
  pos = pos + 1.
  ls_fieldcat-col_pos       =  pos.
  ls_fieldcat-fieldname     = 'LFART'.
  ls_fieldcat-seltext_s     = 'Del Type'.
  ls_fieldcat-seltext_m     = 'Delivery Type'.
  append ls_fieldcat to rt_fieldcat.
  clear ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'PSTYV'.
ls_fieldcat-seltext_s     = 'Category'.
ls_fieldcat-seltext_m     = 'Item Category'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'VGBEL'.
ls_fieldcat-seltext_s     = 'Source Doc'.
ls_fieldcat-seltext_m     = 'Source Doc'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'AUART'.
ls_fieldcat-seltext_s     = 'Type'.
ls_fieldcat-seltext_m     = 'Type'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'BSTNK'.
ls_fieldcat-seltext_s     = 'Cust PO'.
ls_fieldcat-seltext_m     = 'Customer PO'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'KUNNR'.
ls_fieldcat-seltext_s     = 'Customer'.
ls_fieldcat-seltext_m     = 'Customer'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'NAME1'.
ls_fieldcat-seltext_s     = 'Name'.
ls_fieldcat-seltext_m     = 'Name1'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'KUNAG'.
ls_fieldcat-seltext_s     = 'Sold-To'.
ls_fieldcat-seltext_m     = 'Sold-To'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'NAME3'.
ls_fieldcat-seltext_s     = 'Name'.
ls_fieldcat-seltext_m     = 'Name'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'PERNR'.
ls_fieldcat-seltext_s     = 'Rep'.
ls_fieldcat-seltext_m     = 'Sales Rep'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'ENAME'.
ls_fieldcat-seltext_s     = 'Rep Name'.
ls_fieldcat-seltext_m     = 'Rep Name'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'FSTNO'.
ls_fieldcat-seltext_s     = 'FST'.
ls_fieldcat-seltext_m     = 'FST No'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'FSTNM'.
ls_fieldcat-seltext_s     = 'FST Name'.
ls_fieldcat-seltext_m     = 'FST Name'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'VKBUR'.
ls_fieldcat-seltext_s     = 'Area'.
ls_fieldcat-seltext_m     = 'Area'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'VKGRP'.
ls_fieldcat-seltext_s     = 'Region'.
ls_fieldcat-seltext_m     = 'Region'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'WERKS'.
ls_fieldcat-seltext_s     = 'Plant'.
ls_fieldcat-seltext_m     = 'Plant'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
  pos = pos + 1.
  ls_fieldcat-col_pos       =  pos.
  ls_fieldcat-fieldname     = 'MATNR'.
  ls_fieldcat-seltext_s     = 'Material'.
  ls_fieldcat-seltext_m     = 'Material'.
  append ls_fieldcat to rt_fieldcat.
  clear ls_fieldcat.
  pos = pos + 1.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'MVGR1'.
ls_fieldcat-seltext_s     = 'Speciality'.
ls_fieldcat-seltext_m     = 'Speciality'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'SERNR'.
ls_fieldcat-seltext_s     = 'Serial'.
ls_fieldcat-seltext_m     = 'Serial'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'ARKTX'.
ls_fieldcat-seltext_s     = 'Description'.
ls_fieldcat-seltext_m     = 'Description'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'ERNAM'.
ls_fieldcat-seltext_s     = 'Created By'.
ls_fieldcat-seltext_m     = 'Created By'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'ERDAT'.
ls_fieldcat-seltext_s     = 'Created On'.
ls_fieldcat-seltext_m     = 'Created On'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'VSTEL'.
ls_fieldcat-seltext_s     = 'Ship Point'.
ls_fieldcat-seltext_m     = 'Shipping Point'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'WADAT'.
ls_fieldcat-seltext_s     = 'GoodsMvt.Date'.
ls_fieldcat-seltext_m     = 'Goods Mvt Date'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos       =  pos.
ls_fieldcat-fieldname     = 'SERNR'.
ls_fieldcat-seltext_s     = 'Serial Shipped'.
ls_fieldcat-seltext_m     = 'SBANK Serial'.
append ls_fieldcat to rt_fieldcat.
clear ls_fieldcat.
  pos = pos + 1.
  ls_fieldcat-col_pos       =  pos.
  ls_fieldcat-fieldname     = 'SERNP'.
  ls_fieldcat-seltext_s     = 'SBANK Serial'.
  ls_fieldcat-seltext_m     = 'SBANK Serial'.
  append ls_fieldcat to rt_fieldcat.
  clear ls_fieldcat.
  pos = pos + 1.
  ls_fieldcat-col_pos       =  pos.
  ls_fieldcat-fieldname     = 'VBELV'.
  ls_fieldcat-seltext_s     = 'Invoice'.
  ls_fieldcat-seltext_m     = 'Invoice'.
  append ls_fieldcat to rt_fieldcat.
  clear ls_fieldcat.
  pos = pos + 1.
  ls_fieldcat-col_pos       =  pos.
  ls_fieldcat-fieldname     = 'NETWR'.
  ls_fieldcat-seltext_s     = 'Invoice Amt'.
  ls_fieldcat-seltext_m     = 'Invoice Value'.
  append ls_fieldcat to rt_fieldcat.
  clear ls_fieldcat.
  pos = pos + 1.
  ls_fieldcat-col_pos       =  pos.
  ls_fieldcat-fieldname     = 'LFIMG'.
  ls_fieldcat-seltext_s     = 'Del Qty'.
  ls_fieldcat-seltext_m     = 'Delivery Qty'.
  append ls_fieldcat to rt_fieldcat.
  clear ls_fieldcat.
  pos = pos + 1.
  ls_fieldcat-col_pos       =  pos.
  ls_fieldcat-fieldname     = 'QMNUM'.
  ls_fieldcat-seltext_s     = 'Notification'.
  ls_fieldcat-seltext_m     = 'Notification'.
  append ls_fieldcat to rt_fieldcat.
  clear ls_fieldcat.
  pos = pos + 1.
  ls_fieldcat-col_pos       =  pos.
  ls_fieldcat-fieldname     = 'QMCOD'.
  ls_fieldcat-seltext_s     = 'KST Rep Level '.
  ls_fieldcat-seltext_m     = 'KST Repair Level '.
  append ls_fieldcat to rt_fieldcat.
  clear ls_fieldcat.
  pos = pos + 1.
  ls_fieldcat-col_pos       =  pos.
  ls_fieldcat-fieldname     = 'QMCOL'.
  ls_fieldcat-seltext_s     = 'KSE Rep Level'.
  ls_fieldcat-seltext_m     = 'KSE Repair Level'.
  append ls_fieldcat to rt_fieldcat.
  clear ls_fieldcat.
pos = pos + 1.
  ls_fieldcat-col_pos       =  pos.
  ls_fieldcat-fieldname     = 'SERNR'.
  ls_fieldcat-seltext_s     = 'Serial Nbr'.
  ls_fieldcat-seltext_m     = 'Serial Nbr'.
  append ls_fieldcat to rt_fieldcat.
  clear ls_fieldcat.
endform.   "fieldcat_init
Data selection
form select_data tables rt_outtab like gt_outtab[].
  clear: r_vbeln[].
Read all Invoices for the Selection
  select distinct h~vbeln h~kunnr h~kunag
                 d~posnr  d~matnr d~anzsn
                 d~serail d~vgbel d~vgpos
                 d~posnv  d~lfimg d~arktx
                 d~uecha  h~lfart h~erdat
                 h~ernam  h~lfdat d~prodh
                 h~vkorg  d~vkbur d~vkgrp
                 d~mvgr1  h~wadat_ist d~pstyv
         into (rt_outtab-vbeln, rt_outtab-kunnr,
                rt_outtab-kunag, rt_outtab-posnr,
                rt_outtab-matnr, rt_outtab-anzsn,
                rt_outtab-serail, rt_outtab-vgbel,
                rt_outtab-vgpos,  rt_outtab-posnv,
                rt_outtab-lfimg,  rt_outtab-arktx,
                rt_outtab-uecha, rt_outtab-lfart,
                rt_outtab-erdat, rt_outtab-ernam,
                rt_outtab-lfdat, rt_outtab-prodh,
                rt_outtab-vkorg, rt_outtab-vkbur,
                rt_outtab-vkgrp, rt_outtab-mvgr1,
                rt_outtab-wadat, rt_outtab-pstyv)
        from likp as h inner join lips as d
                 on h~vbeln = d~vbeln
                where h~vbeln in s_vbeln
                and  h~vkorg in s_vkorg
                AND  h~lfart EQ 'LF'
              AND  h~kunnr IN s_kunnr
                and  h~kunag in s_kunag
              AND  h~erdat IN s_erdat
                and  d~matnr in s_matnr
              AND  d~prodh IN s_prodh
              AND  d~vgbel IN s_vbelv
                and  d~matnr like 'S%'.
  select single * from vbak where vbeln = rt_outtab-vgbel.
    if: sy-subrc eq 0.
      move vbak-vbeln to rt_outtab-vgbel.
      move vbak-auart to rt_outtab-auart.
    endif.
    select single * from mara where matnr = rt_outtab-matnr
                                and  mtart eq 'FERT'.
    check sy-subrc eq 0.
    if not rt_outtab-posnv is initial.
      rt_outtab-vgpos = rt_outtab-posnv.
    endif.
    clear: vbfa.
    select single vbeln rfwrt into (rt_outtab-vbelv, rt_outtab-netwr)
from vbfa             where vbelv eq rt_outtab-vgbel
                           and   posnv eq rt_outtab-vgpos
                           and   vbtyp_n eq 'M'.
    append rt_outtab.
    if not  r_vbeln-low is initial.
      if r_vbeln-low gt rt_outtab-vbeln.
        r_vbeln-low =  rt_outtab-vbeln.
      endif.
      if r_vbeln-high lt rt_outtab-vbeln.
        r_vbeln-high =  rt_outtab-vbeln.
      endif.
    else.
      r_vbeln-low  =  rt_outtab-vbeln.
      r_vbeln-high =  rt_outtab-vbeln.
    endif.
    clear: rt_outtab.
  endselect.
  if not r_vbeln is initial.
    move: 'I' to  r_vbeln-sign,
           'BT' to  r_vbeln-option.
    append r_vbeln.
    select * into corresponding fields of table i_serial
                              from   ser01 where lief_nr in r_vbeln.
  endif.
  sort i_serial.
  if not i_serial[] is initial.
    select * into corresponding fields of table i_object_numbers
                               from   objk
                               for all entries in i_serial
                               where obknr eq i_serial-obknr
                               and  taser eq 'SER01'.
  endif.
  sort i_object_numbers by  obknr.
  loop at rt_outtab.
Read Ship-to Customer
   SELECT SINGLE adrnr INTO vbpa-adrnr FROM vbpa
                     WHERE vbeln EQ rt_outtab-vgbel
                              AND parvw EQ 'WE'.
Read the Sold To Name
   SELECT SINGLE name1 INTO rt_outtab-name1
                     FROM kna1 WHERE kunnr EQ rt_outtab-kunnr.
   CLEAR: rt_outtab-pernr.
   PERFORM get_repname USING   rt_outtab-vgbel
                               rt_outtab-vgpos
                          CHANGING rt_outtab-pernr
                                   rt_outtab-ename.
Read the Sold To Name
   SELECT SINGLE name1 INTO rt_outtab-name3
                     FROM kna1 WHERE kunnr EQ rt_outtab-kunag.
   SELECT SINGLE pernr INTO rt_outtab-fstno FROM vbpa
                 WHERE vbeln EQ rt_outtab-vgbel
                          AND parvw EQ 'P3'.
   CLEAR:  vbpa-adrnr.
   CLEAR: pa0001.
   SELECT SINGLE ename INTO rt_outtab-fstnm  FROM pa0001
                                WHERE pernr EQ  rt_outtab-fstno.
Read Ship-to Customer
    clear: objk.
    if not rt_outtab-serail is initial.
      read table i_serial with key lief_nr = rt_outtab-vbeln
                                    posnr = rt_outtab-posnr.
      if sy-subrc eq 0.
        do i_serial-anzsn times.
          read table i_object_numbers  with key obknr = i_serial-obknr
                                            binary search.
          if sy-subrc eq 0.
          rt_outtab-equnr = i_object_numbers-equnr.
            rt_outtab-sernr = i_object_numbers-sernr.
            delete i_object_numbers index sy-tabix.
            move '1'   to rt_outtab-lfimg.
           select single aufnr qmnum equnr qmcod
                        into (rt_outtab-aufnr, rt_outtab-qmnum,
                             rt_outtab-equnr, rt_outtab-qmcod)
                       from viqmel  where kdauf = rt_outtab-vgbel
                         and kdpos = rt_outtab-vgpos.
                         AND qmnum IN s_qmnum.
           check sy-subrc eq 0.
          select single qmnum aufnr qmgrp qmcod from viqmel
                        into (rt_outtab-qmnum, rt_outtab-aufnr,
                            rt_outtab-qmgrp, rt_outtab-qmcod)
                       where equnr = rt_outtab-equnr.
<b>Read Serial Number from Name Plate Data.
            clear: klah, kssk.
            select single  atwrt
                into  (rt_outtab-sernp)
                  into  (rt_outtab-sernr)
                  from  ( klah as a inner join kssk as k
                           on aclint = kclint )
                      join ausp as p
                            on kobjek = pobjek
                            and kclint = patinn
                  where a~klart = '002'
                  and  a~class = 'KSE_SN_ENDOSCOPES'
                  and  k~objek = rt_outtab-equnr.</b>
*KSE Repair level (activity code text from KSE-SM07 code group)
    clear: rt_outtab-qmcol.
    clear: g_mnkat, g_mngrp.
    select single  mnkat mngrp mncod into
                        (g_mnkat, g_mngrp, rt_outtab-qmcol)
                  from viqmma where qmnum = rt_outtab1-qmnum
                        and  mngrp eq 'KSE-SM07'
                        and kzloesch eq space.
    select single kurztext into rt_outtab1-cotxt
                 from qpct where katalogart eq g_mnkat
                        and codegruppe eq  g_mngrp
                        and code eq rt_outtab-qmcol
                        and sprache eq sy-langu.
    rt_outtab1 = rt_outtab.
    append rt_outtab1.
        endif.
       enddo.
    endif.
    endif.
  endloop.
  clear: rt_outtab[].
  rt_outtab[] = rt_outtab1[].
  sort rt_outtab by vbeln posnr.
endform.
      FORM get_repname                                              *
-->  P_VBELN                                                       *
-->  P_POSNR                                                       *
-->  P_PERNR                                                       *
-->  P_ENAME                                                       *
form get_repname using  p_vbeln
                          p_posnr
                 changing  p_pernr
                          p_ename. "
  data: i_vbpa like vbpa occurs 0 with header line.
  clear: i_vbpa[].
  call function 'Z_DETERMINE_ACTIVE_SALES_REP'
       exporting
            g_salesdocument = p_vbeln
            g_sales_item    = p_posnr
       tables
            st_vbpa         = i_vbpa.
  read table i_vbpa index 1.
  if sy-subrc = 0.
    p_pernr = i_vbpa-pernr.
    select single ename into p_ename
      from pa0001
     where pernr = i_vbpa-pernr.
  endif.
endform.                    " get_repname
      FORM E03_EVENTTAB_BUILD                                       *
-->  E03_LT_EVENTS                                                 *
form e03_eventtab_build using e03_lt_events type slis_t_event.
  data: ls_event type slis_alv_event.
  call function 'REUSE_ALV_EVENTS_GET'
       exporting
            i_list_type = 0
       importing
            et_events   = e03_lt_events.
  read table e03_lt_events with key name =  slis_ev_top_of_page
                           into ls_event.
  if sy-subrc = 0.
    move gc_formname_top_of_page to ls_event-form.
    append ls_event to e03_lt_events.
  endif.
endform.
      FORM TOP_OF_PAGE                                              *
form top_of_page.
  call function 'REUSE_ALV_COMMENTARY_WRITE'
       exporting
            it_list_commentary = gt_list_top_of_page.
endform.
*&      Form  USER_COMMAND
form user_command  using r_ucomm like sy-ucomm
                         rs_selfield type slis_selfield.
  case r_ucomm.
    when '&IC1'.
      perform display_delivery using r_ucomm
                                    rs_selfield.
  endcase.
endform.
*&      Form  display_delivery
form display_delivery
using r_ucomm like sy-ucomm
                             rs_selfield type slis_selfield.
  case rs_selfield-sel_tab_field.
    when '1-VBELN'.
      set parameter id 'VL' field rs_selfield-value.
      call transaction 'VL03N' and skip first screen.
    when '1-VBELV'.
      set parameter id 'VF' field rs_selfield-value.
      call transaction 'VF03N' and skip first screen.
  endcase.
endform.
*&      Form  VARIANT_INIT
      text
-->  p1        text
<--  p2        text
form variant_init.
  clear g_variant.
  g_variant-report = g_repid.
endform.                               " VARIANT_INIT
*&      Form  F4_FOR_VARIANT
      text
-->  p1        text
<--  p2        text
form f4_for_variant.
  call function 'REUSE_ALV_VARIANT_F4'
       exporting
            is_variant          = g_variant
            i_save              = g_save
          it_default_fieldcat =
       importing
            e_exit              = g_exit
            es_variant          = gx_variant
       exceptions
            not_found = 2.
  if sy-subrc = 2.
    message id sy-msgid type 'S'      number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  else.
    if g_exit = space.
     p_vari = gx_variant-variant.
    endif.
  endif.
endform.
*&      Form  PAI_OF_SELECTION_SCREEN
      text
form pai_of_selection_screen.
IF NOT p_vari IS INITIAL.
  move g_variant to gx_variant.
   MOVE p_vari TO gx_variant-variant.
  call function 'REUSE_ALV_VARIANT_EXISTENCE'
       exporting
            i_save     = g_save
       changing
            cs_variant = gx_variant.
  g_variant = gx_variant.
ELSE.
  perform variant_init.
ENDIF.
endform.                               " PAI_OF_SELECTION_SCREEN

Hi,
Please try like this.
clear: klah, kssk.
<b>select single p~atwrt</b>
into (rt_outtab-sernr)
from klah as a inner join kssk as k
on aclint = kclint
<b>inner join ausp as p</b>
on kobjek = pobjek
and kclint = patinn
where a~klart = '002'
and a~class = 'KSE_SN_ENDOSCOPES'
and k~objek = rt_outtab-equnr.
Regards,
Ferry Lianto

Similar Messages

  • Please help me with this error in this code snippet!

    Code Snippet:
    REPORT  ZMKTEST6.
    data : f1(2) type c,
           f2(2) type c,
           f3(10) type n value '12345'.
      clear: f1 with 'X',
             f2 with f1,
             f3 with '3'.
    write :/ f1 ,f2, f3.
    Process Error:
    The field "F1" must have the length 1.

    hi ,
    ther is not syntax with clear with 'X".
    but you can do one thing to get the one character.
    REPORT ZMKTEST6.
    data : f1(2) type c,
    f2(2) type c,
    f3(10) type n value '12345'.
    clear: f1 with 'X',  "Comment this
    f1 = f1+0(1).        "write this
    f2 with f1,
    f3 with '3'.
    write :/ f1 ,f2, f3.
    now f1 containd one charater instead of 2.
    now you can display as usuall

  • Working code snippet for JSSE 1.0.2

    This code works only with JSSE 1.0.2. JSSE 1.0.1 has a bug I believe which give null cert chain
    error when using client authorization.
    Below is a java code snippet to create a SSL server and client sockets.
    SocketsFactory.java
    This class is an utility class which gets you the Secure Socket for server and the client.
    It reads from the properties file.
    public class SocketsFactory{
    /** Creates a SSL client socket. It uses the properties obtained from the
    * sslPropsFile to create the client socket.
    * @param sslPropsFile The ssl properties file that contains information about the provider etc.
    * @param host The host to connect to.
    * @param port The port on which this socket should attempt to connect
    * @throws IOException if there was any exceptions in creating the sockets or if the properties file
    * was not found or corrupted.
    * @return returns the socket that was created.
         public static Socket createSecureSocket(final String sslPropsFile, String host,int port)throws IOException{
              Properties props = readPropertiesFile(sslPropsFile);
              SSLSocketFactory factory = null;
              System.setProperty("javax.net.ssl.trustStore",(String)props.get("com.ibm.idmg.ssl.keyStore"));
              //Getting a secure client socket using sun..
              try {
                   addProvider(props);
                   // Set up a key manager for client authentication
                   // if asked by the server. Use the implementation's
                   // default TrustStore and secureRandom routines.
                   SSLContext ctx = getSSLContext(props);
                   factory = ctx.getSocketFactory();
              catch (Exception e) {
                   e.printStackTrace();
                   throw new IOException(e.getMessage());
              SSLSocket client =(SSLSocket)factory.createSocket(host, port);
              client.startHandshake();
              return client;
    /** Creates a SSL server socket based on sun's implementation using JSSE. Uses the
    * sslPropsFile to get the keystore used for validating certificates and their
    * passwords.
    * @param sslPropsFile The properties file containing SSL provider, key passwords etc.,
    * @param port The port to which this socket should listen at.
    * @throws IOException If the properties file was not found or it was corrupted or if there was any
    * other errors while socket creation.
    * @return the serversocket object.
         public static ServerSocket createSecureServerSocket(final String sslPropsFile,int port) throws IOException{
              Properties props = readPropertiesFile(sslPropsFile);
              String trustStore = (String)props.get("com.ibm.idmg.ssl.keyStore");
              System.setProperty("javax.net.ssl.trustStore",trustStore);
              //     Getting a sun secure server socket
              SSLServerSocketFactory ssf = null;
              try {
                   addProvider(props);
                   // set up key manager to do server authentication
                   SSLContext ctx = getSSLContext(props);
                   ssf = ctx.getServerSocketFactory();
              } catch (Exception e) {
                   e.printStackTrace();
                   throw new IOException(e.getMessage());
              SSLServerSocket socket = (SSLServerSocket)ssf.createServerSocket(port);
              socket.setNeedClientAuth(true);
              return socket;          
         * Internally used function to read a provider from the properties and
         * add it as the current ssl provider. The properties should have the
         * property <i>com.ibm.idmg.ssl.sslProvider</i> defined. Otherwise
         * throws NullPointerException.
         private static void addProvider(Properties props) throws Exception{
              String provider = (String)props.get("com.ibm.idmg.ssl.sslProvider");
              if (provider == null)
                   throw new NullPointerException("com.ibm.idmg.ssl.sslProvider is not specified!");
              java.security.Security.addProvider((java.security.Provider)Class.forName(provider).newInstance());
         * Internally used function to read a file and return it as java properties.
         * It uses java.util.Properties. Throws FileNotFoundException if the file
         * was not found. Otherwise returns the properties.
         private static Properties readPropertiesFile(final String file) throws IOException{
              if (file == null)
                   throw new IOException("SSL Context File name not specified!");
              FileInputStream in = new FileInputStream(file);
              Properties properties = new Properties();
              properties.load(in);
              in.close();
              in = null;
              return properties;
         * Internal function used to retrieve a SSLContext object. It is used primarily
         * for creating SSL sockets that can authenticate each other based on the
         * keystores specified using the properties.
         private static SSLContext getSSLContext(Properties props) throws Exception{
              SSLContext ctx;
              KeyManagerFactory kmf;
              KeyStore ks;
              String password = (String)props.get("com.ibm.idmg.ssl.keyStorePassword");
              if (password == null)
                   password = System.getProperty("javax.net.ssl.keyStorePassword");
              char[] passphrase = password.toCharArray();
              ctx = SSLContext.getInstance("TLS");
              kmf = KeyManagerFactory.getInstance("SunX509");
              ks = KeyStore.getInstance("JKS");
              String keyStoreFile = (String)props.get("com.ibm.idmg.ssl.keyStore");
              if (keyStoreFile == null)
                   keyStoreFile = System.getProperty("javax.net.ssl.keyStore");
              FileInputStream in = new FileInputStream(keyStoreFile);
              ks.load(in, passphrase);
              in.close();
              in = null;
              //     All keys in the KeyStore must be protected by the same password.
              String keyPassword = (String)props.get("com.ibm.idmg.ssl.keyPassword");
              if (keyPassword != null)
                   passphrase = keyPassword.toCharArray();
              kmf.init(ks, passphrase);
              ctx.init(kmf.getKeyManagers(), null, null);
              return ctx;
    The Server properties file looks like this.
    #     Specify the SSL provider here.
    #     Using sun's reference implementation for testing..
    com.ibm.idmg.ssl.sslProvider=com.sun.net.ssl.internal.ssl.Provider
    #     Specify the keystore file that this ssl socket should use
    com.ibm.idmg.ssl.keyStore=server.ks
    #     Specify the password for this keystore file
    com.ibm.idmg.ssl.keyStorePassword=servercanpass
    #     Specify the password used to protect the keys in the keystore
    #     Note: all the keys should have the same password
    com.ibm.idmg.ssl.keyPassword=icanpass
    The client properties file
    #     Specify the SSL provider here.
    #     Using sun's reference implementation for testing..
    com.ibm.idmg.ssl.sslProvider=com.sun.net.ssl.internal.ssl.Provider
    #     Specify the keystore file that this ssl socket should use
    com.ibm.idmg.ssl.keyStore=client.ks
    #     Specify the password for this keystore file
    com.ibm.idmg.ssl.keyStorePassword=clientshouldpass
    #     Specify the password used to protect the keys in the keystore
    #     Note: all the keys should have the same password
    com.ibm.idmg.ssl.keyPassword=canipass
    Now to create the certificates..
    Its a 5 step process
    1) Create the keystore file.
         keytool -genkey -alias mohan -dname "CN=Mohan Tera OU=IS O=IM L=sanjose S=NY C=US" -keystore server.ks -storepass servercanpass -validity 180 -keypass icanpass
    2) Create a self signed certificate. If you need to get it signed from
         verisign then you have to create a certificate request. For testing purposes,
         you can create a self signed certificate.
         keytool -selfcert -alias mohan -dname "CN=Mohan Tera OU=IS O=IM L=sanjose S=NY C=US" -keystore server.ks -storepass servercanpass -validity 180 -keypass icanpass
    3) Export the public key from the keystore to a certificate file that is to be imported to the client keystore.
         keytool -export -alias mohan -file fromserver.cer -keystore server.ks -storepass servercanpass
    4) Repeat the above steps for the client also..
         a)
         keytool -genkey -alias moks -dname "CN=Jennifer Poda OU=Javasoft O=Sun L=Edison S=NJ C=US" -keystore client.ks -storepass clientshouldpass -validity 180 -keypass canipass
         b)
         keytool -selfcert -alias moks -dname "CN=Jennifer Poda OU=Javasoft O=Sun L=Edison S=NJ C=US" -keystore client.ks -storepass clientshouldpass -validity 180 -keypass canipass
         c)
         keytool -export -alias moks -file fromclient.cer -keystore client.ks -storepass clientshouldpass
    5) Import the certificates that were exported in steps 3 and 4c in client and server keystore respectively.
         keytool -import -trustcacerts -alias new -file fromserver.cer -keypass keypass -storepass clientshouldpass -keystore client.ks
         keytool -import -trustcacerts -alias new -file fromclient.cer -keypass keypass -storepass servercanpass -keystore server.ks
    And voila you are all set to go..
    Hope this explains to all the people who are struggling with JSSE..
    Regards,
    Moks

    when i using your method in my code i get the following exception
    pl. help me.
    java.security.UnrecoverableKeyException: Cannot recover key
    at sun.security.provider.KeyProtector.recover(KeyProtector.java:301)
    at sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:103
    at java.security.KeyStore.getKey(KeyStore.java:289)
    at com.sun.net.ssl.internal.ssl.X509KeyManagerImpl.<init>(DashoA6275)
    at com.sun.net.ssl.internal.ssl.KeyManagerFactoryImpl.engineInit(DashoA6
    275)
    at javax.net.ssl.KeyManagerFactory.init(DashoA6275)
    at ClassFileServer.getServerSocketFactory(ClassFileServer.java:145)
    at ClassFileServer.main(ClassFileServer.java:115)
    Exception in thread "main" java.lang.NullPointerException
    at ClassFileServer.main(ClassFileServer.java:117)

  • OLE2 Doc/Code snippet to assist in creating a word doc with underlined text

    I would like to use OLE2 to create a simple Word document. I would like some of the text to be bold/underlined and the rest of the text to be regular. There seems to be a serious dearth of information regarding OLE2 in conjunction with PS/SQL in Word applications. We're running Forms 6 and Oracle 9i.
    I don't believe that I need to use the techniques described in the Forms Manual (OLE2 containers, etc.). I have managed to create a Word doc and write some text to it but I've been unable to find out/guess at the syntax that I'd need to control bolding and underlining. It would be a big help if I could just find the syntax for Word OLE2 commands. During my documentation search, I seem to remember a post that mentioned 'Reference 2' and maybe 'Reference 3' as a source of information related to OLE2 in PL/SQL code. If anyone can give me a shove in the right direction I'm more than willing to read the manuals. I won't be too disappointed if someone could send me a code snippet either!
    Thanks,
    Ron Walker

    Hi Ron,
    Office ships with a number of resources that you will find indispensable for the sort of work you're doing. Take a look at the VBA IDE (Visual Basic for Applications IDE). You may already be familiar with it, if you've ever written a Word macro, but to call it a macro editor sells it short -- it is a full-blown development environment. Its Object Browser allows you to browse Word's object model, search by keyword, and view call syntax.
    In case you aren't familiar with the VBA IDE, try this:
    1. Open Word
    2. Switch between Word and the VBA IDE by pressing <Alt><F11>
    3. Open the Object Browser by pressing <F2>
    Spend some time familiarizing yourself with the Object Browser. Constrain its scope by selecting the Word library instead of <All Libraries> (the default). Learn to search by keyword. Click on items within your results for details. If Visual Basic Help is installed, pressing <F1> will raise help on a selected item.
    Visual Basic Help may not be part of the Compact or Typical install. Running Office Setup, either from the install CD, or through Add/Remove Programs under Control Panel, will allow you to add the feature. (The Office installer lists Visual Basic Help in the Office Tools section.)
    I have found the VBA IDE to be the perfect place for prototyping and testing automated processes. It is a far friendlier environment for learning Office automation, as it offers code completion and context-driven help. Once the process works, I manually translate my VBA routine into Forms PL/SQL, which is fairly painless. I've written a short tutorial, that I will post shortly -- I didn't want to bury it in this thread!
    Hope this helps,
    Eric Adamson
    Lansing, Michigan

  • EDGE ANIMATE CC (2014) : Missing Code Snippets sidebar - WHY!?!?!

    I just updated today, and now a project I had been working on for weeks (my first real project) won't open in CC anymore. The only reason I wanted to open it back up in CC - NOT Adobe Edge Animate CC (2014), was because this updated Edge Animate IS MISSING THE CODE SNIPPET SIDEBAR!! WHY!! WHY!! WHY!! It's a little hard to follow along with tutorials you have been using when they insert snippets from the sidebar and suddenly you don't have one anymore!
    I have rebuilt permissions and restarted hoping that would fix the issue but it has not. If I can't get this project to pen in CC, can someone tell me how to trick CC into opening it again? Byt he Way -- the old version of Edge Animate was AUTOMATICALLY UNINSTALLED with this update. Also very frustrating!! I had to go to my could menu and download CC (3.0) again.

    OK - Possibly Good News... I talked to Adobe Tech Support. I am able to download a previous version of the Edge Animate CC by choosing PREVIOUS VERSION under the FIND NEW APPS section of the Creative Cloud Desktop app. This is a new feature of CC. Thankfully. I can install CC and then do as hemanth kumar r suggested and edit the _edge.js file to allow 3.0 to open the file.
    Thanks for all of the help. Sorry for the frustration in MY TYPING . I'll reply if that all works.

  • No way to add code snippets to the palette in 11g

    Hello,
    According to the Help Center, I should be able to add "codes snippets" to my palette, like I used in 10g...
    Adding a Code Snippet to the Palette
    You can add pages to the Component Palette to group your snippets, or you can add snippets to the existing Code Snippets page. Once you add snippets to the Palette, you can insert this code into any file you have open in the source editor by selecting the snippet from the Palette
    within the Configure Component Palette dialog. In the Configure Component Palette dialog, for Page Type select snippet to view only those pages containing snippets.
    Well , in the Page Type drop list , I only see "java" and "use case" ?
    I am running J2EE Edition Version 11.1.1.0.1 Build JDEVADF_MAIN.BOXER_GENERIC_081203.1854.5188
    Any thoughts ?
    Cheers

    If all you want is code snippet why not use the code template feature?
    It is more dynamic and will allow you to use variables that you can switch - then you can just use the keyboard to get the value.
    See:
    http://www.oracle.com/technology/obe/obe11jdev/11/ide/introjdevide.htm#t4s1
    http://adfjsf.blogspot.com/2009/09/creating-code-templates-in-jdeveloper.html

  • Using menu breaking my code. Help?

    I don't think this is a bug; I think I'm just missing something. Following is an abbreviated plug-n-play code snippet to reproduce the problem.
    The problem is that I can make a JProgressBar work in a JFrame nicely if I do it on it's own, but if I try to execute it as a result of a menu-item click, it only displays the JFrame; the JProgressBar never shows up. Replace the progress bar with a button, label, whatever.
    I'm thinking it has something to do with the menu needing to be dismissed or something, but I may be totally off base. Can't find any appropriate documentation. Just finished scanning through 810 bug reports. Need help. What am I missing?
    Using j2sdk_1.4_03
    Signed,
    Feelin' dumb.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Test extends JFrame implements ActionListener
    Test() {
    super("Test");
    JMenuBar jmb;
    JMenu jm;
    JMenuItem jmi;
    setSize(300, 200);
    jmb = new JMenuBar();
    jm = new JMenu("File");
    jmi = new JMenuItem("go");
    jmi.setActionCommand("go");
    jmi.addActionListener(this);
    jm.add(jmi);
    jmb.add(jm);
    setJMenuBar(jmb);
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    dispose();
    System.exit(0); }
    setVisible(true);
    public void actionPerformed(ActionEvent e) {
    progressManager pm = new progressManager(0,10000000);
    long loop = 0;
    while(loop < 10000000) {
    pm.setValue(loop++);
    pm.close();
    public static void main(String args[]) {
    System.out.println("Starting");
    // This is to show it works without menus... takes a couple
    // seconds on my 1.6GHz PC, make the loop smaller if you don't
    // want to wait so long.
    progressManager pm = new progressManager(0,10000000);
    long loop = 0;
    while(loop < 10000000) {
    pm.setValue(loop++);
    pm.close();
    Test t = new Test();
    class progressManager {
    JFrame jf;
    JProgressBar jpb;
    long min, max;
    progressManager(long min, long max) {
    this.min = min; this.max = max;
    jf = new JFrame("Progress");
    jpb = new JProgressBar(0, 100);
    Container c = jf.getContentPane();
    c.add(jpb);
    jf.setBounds(100, 100, 200, 100);
    jf.setVisible(true);
    public void setValue(long value) {
    jpb.setValue((int)(value * 100 / max));
    public void close() {
    jf.dispose();

    Sorry to make this page so long. Here is the code properly formatted and updated as you suggest. The problem still exists, but should be more readable. Thank you very my for the help so far.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Test extends JFrame
      Test()
        super("Test");
        JMenuBar jmb;
        JMenu jm;
        JMenuItem jmi;
        setSize(300, 200);
        jmb = new JMenuBar();
        jm = new JMenu("File");
        jmi = new JMenuItem("go");
         //jmi.setActionCommand( "go" );
         jmi.addActionListener( new ActionListener() {
              public void actionPerformed( ActionEvent e ) {
                   progressManager pm = new progressManager(0,10000000);
                   long loop = 0;
                   while(loop < 10000000) {
                        pm.setValue(loop++);
                   pm.close();
        jm.add(jmi);
        jmb.add(jm);
        setJMenuBar(jmb);
        addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent e)
            dispose();
            System.exit(0);
        setVisible(true);
      public static void main(String args[])
        System.out.println("Starting");
        // This is to show it works without menus...
        progressManager pm = new progressManager(0,10000000);
        long loop = 0;
        while(loop < 10000000)
          pm.setValue(loop++);
        pm.close();
        Test t = new Test();
    class progressManager
      JFrame jf;
      JProgressBar jpb;
      long min, max;
      progressManager(long min, long max)
        this.min = min; this.max = max;
        jf = new JFrame("Progress");
        jpb = new JProgressBar(0, 100);
        Container c = jf.getContentPane();
        c.add(jpb);
        jf.setBounds(100, 100, 200, 100);
        jf.setVisible(true);
      public void setValue(long value)
        jpb.setValue((int)(value * 100 / max));
      public void close()
        jf.dispose();
    }

  • Code snippet -- "Send to Back"?

    Hello,
    I've modified the code snippet "Bring Object to the Front" to bring a given stage symbol to the front on mouse over. My question is, what code do I add to make the symbol go to the back on mouse out? My code is below -- exact same as the code snippet in CS5, but with MOUSE_OVER in place of CLICK. Many thanks!
    // This code makes all symbol instances on stage clickable by making them listen for the CLICK event.
    for (var fl_ChildIndex:int = 0;
            fl_ChildIndex < this.numChildren;
            fl_ChildIndex++)
        this.getChildAt(fl_ChildIndex).addEventListener(MouseEvent.MOUSE_OVER, fl_OverToBringToFront);
    // This is the function that moves the over object to the front of the display list
    function fl_OverToBringToFront(event:MouseEvent):void
        this.addChild(event.currentTarget as DisplayObject);

    Thanks -- it's getting there but the behavior is weird and I'm getting an error message "TypeError: Error #1009: Cannot access a property or method of a null object reference.at transitshell_fla::lvbutton_5/fl_FadeSymbolIn()"
    My code looks like this:
    // This code makes all symbol instances on stage clickable by making them listen for the CLICK event.
    for (var fl_ChildIndex:int = 0;
            fl_ChildIndex < this.numChildren;
            fl_ChildIndex++)
        this.getChildAt(fl_ChildIndex).addEventListener(MouseEvent.MOUSE_OVER, fl_OverToBringToFront);
        this.getChildAt(fl_ChildIndex).addEventListener(MouseEvent.MOUSE_OUT, fl_OverToSendToBack);
    // This is the function that moves the over object to the front of the display list
    function fl_OverToBringToFront(event:MouseEvent):void
        this.addChild(event.currentTarget as DisplayObject);
        function fl_OverToSendToBack(event:MouseEvent):void
        this.addChildAt(event.currentTarget as DisplayObject, 0);
    Thanks for your help!

  • Code Snippet for Pop-Window

    Hi Colleague,
    I need to show a pop-up window on an event. How can i achieve this in ABAP WD.
    Code Snippet would be helpful.
    Regards,
    Piyush

    Piyush,
    When you create a pop up window using code wizard, you'll get a OK button by default. By clicking on it the pop up window will close. Or if you want to place a OK button in the view that is present in the pop up window and want to close the pop up by clicking on it, that is also possible. Just Put a button in the pop up view and use this code in the ONACTION method of that button:
    data:
                l_api         type ref to if_wd_view_controller,
                l_window_ctlr type ref to if_wd_window_controller,
                l_popup       type ref to if_wd_window.
                l_api         = wd_this->wd_get_api( ).
                l_window_ctlr = l_api->get_embedding_window_ctlr( ).
                if l_window_ctlr is bound.
                l_popup       = l_window_ctlr->get_window( ).
                l_popup->close( 'l_popup' )." pass the pop up view name here
                endif.
    Regards
    Arjun
    Edited by: Arjun Thakur on Mar 13, 2009 10:01 AM

  • Code Snippets in MEF Editor extension VS2012

    I am trying to implement code snippets with a MEF editor extension, I followed the walkthrough "Implementing Code Snippets" from the link: http://msdn.microsoft.com/en-us/library/ff926100(v=vs.110).aspx
    The implementation is based on the walkthrough Displaying Statement Completion. This feature works fine.
    The first section of "Implementing Code Snippets" is "Creating and Registering Code Snippets" which does not work. At the end of the section is the step 8:
    Build and run the project. In the experimental instance of Visual Studio that starts when the project is run, the snippet you just registered
    should be displayed in the Code Snippets Manager under
    the TestSnippets language.
    There are no errors, but the Code Snippets Manager does not display the TestSnippets language, and as a consequence the snippets are not there. I have been stuck for a few weeks now with this, and could not find resources to understand the issue.
    Any idea on how to overcome this issue will be much appreciated.
    Thanks

    Hi,
    I have to say that I can reproduce your issue on my machine via the steps provided in the walkthrough. However, I finally add that code snippets to C# language not that custom TestSnippets language.
    Here are some modifications which are made on my side, maybe these listed items can be helpful for you to trouble-shoot your issue:
    1). Delete the following line from the test.snippet file.
    <?xml version="1.0" encoding="utf-8" ?>
    2). Edit the test.snippet file, set <Code Language="CSharp">
    3). Edit the SnippetIndex.xml file, set  <Language Lang="CSharp" Guid="{694DD9B6-B865-4C5B-AD85-86356E9C88DC}">
    4). Edit the SnippetUtilities class, and set
    internal const string LanguageServiceGuidStr = "694DD9B6-B865-4C5B-AD85-86356E9C88DC";
    5). Then build and run your project again. And this time you should get the snippet under C# language.
    Thanks.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Code Snippets, click to edit.

    Hi! I'm using Adobe Flash CS5.5 and I've been making custom code snippets for someone in the office.
    I know how to use Instance_name_here but what I can't work out is that in the example code snippets sometimes you can click on a link or image location that's in blue text and change it to what you want. How do I set this up myself when Creating a code snippet? Currently all my links and image locations appear in unclickable grey text instead of blue.
    Help would be appreciated!

    An example would really help here. I'm guessing that the editable text may be a fully qualified URL as in "http://www.someaddress.com/somefile.txt". Is that what you're looking at?

  • Trouble with iWeb code snippet for drop down menu

    Hello,
    So, I'm having a bit of trouble figuring this out and it goes beyond my knowledge, to be honest. I'm working on a website for someone and when viewed in Safari for Mac or iPad or even iPhone, it all works out great. But, when viewed in any other browser for Mac or Windows, the drop down doesn't display the "menu heading," only what should be the first drop down selection. Not only that, that page now becomes "unselectable" and more or less dead.
    Here is what it should read, and does on Safari:
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    On all other browsers, it displays the FAQ - Yoga option as the "title" and only displays the other two options. So, is this something that can be fixed in the code snippet or is what I'm seeing a more involved HTML issue that would require actual skills to fix? Any help or direction would be greatly appreciated because I'd love to get this knocked out and also pick something up in addition. If I have to edit the actual HTML pages themselves I could do that as well; I've got an editor and have done that for my own site when needed. Anyway, thank you very much in advance!
    Her
    <html>
    <title></title>
    <head>
    <script>
    <!--
    function land(ref, target)
    lowtarget=target.toLowerCase();
    if (lowtarget=="_self") {window.location=loc;}
    else {if (lowtarget=="_top") {top.location=loc;}
    else {if (lowtarget=="_blank") {window.open(loc);}
    else {if (lowtarget=="_parent") {parent.location=loc;}
    else {parent.frames[target].location=loc;};
    function jump(menu)
    ref=menu.choice.options[menu.choice.selectedIndex].value;
    splitc=ref.lastIndexOf("*");
    target="";
    if (splitc!=-1)
    {loc=ref.substring(0,splitc);
    target=ref.substring(splitc+1,1000);}
    else {loc=ref; target="_self";};
    if (ref != "") {land(loc,target);}
    //-->
    </script>
    </head>
    <body>
    <style type="text/css">
    <!--
    .combobox {
    background-color: #fef3e2;
    color: #463c3c;
    font-size: 13pt;
    font-family: optima;
    font-weight: normal;
    font-style: none;
    -->
    </style>
    <form action="dummy" method="post"><select name="choice" size="1" class="combobox" onChange="jump(this.form)"
    <option value="">Rates, Hours, Reservations</option>
    <option value="http://yogareikimassage.com/MG/Rates.html*_top">Rates and Hours</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Yoga.html*_top">FAQ and Reserve - Yoga</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Reiki.html*_top">FAQ and Reserve - Reiki</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Massage.html*_top">FAQ and Reserve - Massage</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Personal_Training.html*_top">FAQ and Reserve - Training</option>
    </select>
    </form>
    </body>
    </html>

    Here is what it should read, and does on Safari:
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    No, it shouldn't and it doesn't. It should look like :
    Rates, Hours, Reservations
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    FAQ and Reserve - Training
    Here's the correct part :
    <select>
              <option value="">Rates, Hours, Reservations</option>
              <option value="http://yogareikimassage.com/MG/Rates.html*_top">Rates and Hours</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Yoga.html*_top">FAQ and Reserve - Yoga</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Reiki.html*_top">FAQ and Reserve - Reiki</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Massage.html*_top">FAQ and Reserve - Massage</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Personal_Training.html*_top">FAQ and Reserve - Training</option>
    </select>
    The <select> item was missing. And if you don't want the first line in the menu (Rates, Hours, Reservations) then don't enter it in the first place.
    BTW, it's not a dropdown menu. It's a selection list in a form.

  • Code snippet for JAXM

    Plz Guide me how can i use JAXM API for mailing that too with an attachment.
    Do i have to install SAAJ for the above. I f any Code snippet is available for it then plz send it to me . soi that i can refer to it.
    Thanks and regards
    Kumar Anupam

    Hi,
    Jaxm has a new download available jaxm1.1.2
    Inside there are examples particularly for u will be saaj-simple.war file under samples which has the attachment code portion.
    and yes u have to use saaj-api.jar file.
    hope this helps.

  • Flex & cf 6, am i missing something - code snippet

    So my first attempt at this, and I wondering if I'm missing
    something....
    Flex Builder 3 app, calling a cfm proc on a CF6 server. Code
    snippet below. Just a simple call to return some CGI vars as a
    test.
    I'm not getting my datagrid populated, not sure if it's just
    not communicating, or what. Thanks for any suggestiongs, or help.
    ---- mxml code ----
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns="*" layout="absolute"
    creationComplete="userRequest.send()">
    <mx:HTTPService id="userRequest" url="
    http://xxxxxx.com/test/cgi-vars-for-flex.cfm"
    useProxy="false" method="POST">
    </mx:HTTPService>
    <mx:DataGrid id="dgUserRequest" x="10" y="10"
    dataProvider="{userRequest.lastResult.cgi.vars}" height="142">
    <mx:columns>
    <mx:DataGridColumn headerText="CGI Variable"
    dataField="name"/>
    <mx:DataGridColumn headerText="Value"
    dataField="value"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:Form x="10" y="10" width="100">
    </mx:Form>
    <mx:Button label="Refresh" click="userRequest.send()"
    x="10" y="160"/>
    </mx:Application>
    ---- cgi-vars-for-flex.cfm ----
    <cfprocessingdirective pageencoding = "utf-8"
    suppressWhiteSpace = "Yes">
    <cfxml variable="cgiXML">
    <cgi>
    <cfoutput>
    <vars>
    <name>CGI.SCRIPT_NAME</name>
    <value>#CGI.SCRIPT_NAME#</value>
    </vars>
    <vars>
    <name>CGI.SERVER_NAME</name>
    <value>#CGI.SERVER_NAME#</value>
    </vars>
    </cfoutput>
    </cgi>
    </cfxml>
    <cfoutput>#cgiXML#</cfoutput>
    <!--- <cfdump var=#cgiXML#> --->
    </cfprocessingdirective>

    So I decided to change the url="
    http://xxxxxx.com/test/cgi-vars-for-flex.cfm"
    to url="
    http://xxxxxx.com/test/cgi-vars-for-flex.xml"
    (xml code below), to see if that works, and everything works fine.
    So, I suspect there's something wrong with my cfm code.
    Any ideas, anyone ? :)
    Thanks,
    Ray
    ---- xml file ----
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <cgi>
    <vars>
    <name>CGI.SCRIPT_NAME</name>
    <value>/dev/development/rdixon/test/cgi-vars-for-flex.cfm</value>
    </vars>
    <vars>
    <name>CGI.SERVER_NAME</name>
    <value>fusionmx-dev1.e-dialog.com</value>
    </vars>
    </cgi>

  • Call-tracking code snippet seems to be disabled

    I am trying to implement call tracking on a muse website. the code spnippet has to be insertet an the beginning of the body. I used the object -> insert html function and places the code on the master. If I look at the html code of the published page I can see that the code is there but seems to be disabled (red coulor in Firefox) and thus not executed.
    Here is the page:
    http://drk-hausnotruf-bw.de/hausnotruf-kopie.html
    And this is what to code snippet looks like in Firefox:
    Maybe someone can help to find an easy solution as I am not very familiar with html programming
    Best

    Muse loads jQuery version 1.8.3, which is quite old. I would bet that MaTelCo's script requires a more updated version of jQuery. I've run into this with other Javascript that I've tried to implement into a Muse site. Until Adobe updates the version of jQuery that they implement, we are stuck with it.

Maybe you are looking for