Language-selection-class build problem

my small program is goting to surpport language switching,e.g. Finnish, English,Chinese.
it contains several pages with buttons and text there. in the 1st page we could select the language and then each page will display this language.
how should the language selection class be create, could any1 show me the idea or a sample code somewhere.
I think there should be a standard and simple way to make it. Thanks!

http://java.sun.com/docs/books/tutorial/i18n/index.html

Similar Messages

  • Language select problem

    Hello
    I install Adobe Photoshop CS4 for windows and the program never give me the oportunity to install in my language, Spanish.
    Only I have to install in English.......How can I do to change the language fromo Englis to Spanish considering that the DVD didnt give me the oportunity to select langauge.
    Thanks to all
    Dario

    You either do not have the right install DVD or the wrong type of serial. Language selection is dictated by a combination of the two. Contrary to public belief, there are different installers for different regions of the world as there are different serial numbers and if you e.g. bought a US version on your last trip to NY, it will never offer anything else but US or International English.
    Mylenium

  • OO ABAP - Retrieve source from Class Builder?

    Hi. Is there a way to display the source code for a class or interface definition that was created with the class builder (se24).
    I looked through the drop downs, but I didn't see anything to display the source.
    Thanks in advance.
    Brendan

    A class is distributed upon several includes. The Se24 in my 45b system offers to view the source via button on the bottom of the method list.
    If you like you can try the following sample program also. Just paste the source and create the Pf-Status 'STA_MAIN' (line 135) and add the commands PICK(f2),Back, Exit, My_Edit(any key).
    PS: double clicking on a include navigates forward ( if PICK is set to F2 ).
    PPS: If you experience trouble with pasting the code and lost line termination, please paste into wordpad an save as text file.
    [code]
    report:   Ze80Lite
    created:  17.aug.2000
    purpose
    this report displays various informations of report-source files
    Change History
    #nn - dd.mmm.yyyy - Author
                         short description
    #00 - 17.aug.2000 - KZI
                         initial
    report Ze80Lite
      no standard page heading
      line-size 120
      message-id sx.
    *$ external types & constants =====================
    *======================================================================
    *$ local types ========================================================
    *======================================================================
    types:
      typ_source      type string,
      typ_source_tab  type standard table of typ_source,
      begin of typ_file_info,
        lsind         type syst-lsind,
        isvalid       type flag,
        r3state       type d010sinf-r3state,
        prgnam        type programm,
        srcnam        type programm,
        prgtyp        type d010sinf-subc,
      end of typ_file_info,
      begin of typ_line_info,
        flag_newline  type flag,
        flag_comment  type flag,
        text          type string,
      end of typ_line_info,
      begin of typ_method_info,
        methodname  type tmdir-methodname,
        methodindx  type tmdir-methodindx,
      end of typ_method_info,
      typ_method_info_tab type standard table of typ_method_info,
      typ_line_tab type standard table of typ_line_info.
    selection-screen begin of block sel1 with frame title text-s01.
    parameter:
      p_prgnam        type programm   obligatory,
      p_state         type d010sinf-r3state default 'I',
      p_typprg radiobutton group 0001 default 'X',
      p_typcla radiobutton group 0001,
      p_typifc radiobutton group 0001,
      p_typfct radiobutton group 0001,
      p_typmod radiobutton group 0001,
      p_typool radiobutton group 0001.
    selection-screen end of block sel1.
    constants:
      begin of gcr_rep,
        typ_prg   type  i          value 1,
        typ_cla   type  i          value 2,
        typ_ifc   type  i          value 3,
        typ_fct   type  i          value 4,
        typ_mod   type  i          value 5,
        typ_pool  type  i          value 6,
        max_modi  type  syst-lsind value 5,
        max_width type  i          value 80,
        mem_prg   type memoryid    value 'ST22_PRGNAME',
        mem_typ   type memoryid    value '91A',          " missuse
        mem_dir   type memoryid    value '91B',          " missuse
        mem_sta   type memoryid    value '91C',          " missuse
      end of gcr_rep.
    data:
      goa_file      type standard table of typ_file_info.
    =====================================================================
    *$ report eventing ====================================================
    =====================================================================
    initialization.
      perform sub_init.
    at selection-screen.
      perform sub_check.
    start-of-selection.
      perform sub_main.
    at line-selection.
      perform sub_click.
    at user-command.
      perform sub_command
        using sy-ucomm.
      sy-ucomm = ''.
    =====================================================================
    *$ subroutines ========================================================
    =====================================================================
    form   :  sub_main
    purp.  :  main entry point for procecssing
    param  :  <global>     from selectio screen
    rcode  :  ---
    hist.  :  #00 -  KZI - created
    form sub_main.
    data declaration
      data:
        lon_error          type i,
        lon_srctyp         type i,
        loc_srcnam         type programm,
        lor_file           type typ_file_info.
    init
      set pf-status 'STA_MAIN'.
      clear:
        lor_file,
        goa_file.
      do 10 times.
        append lor_file to goa_file[].
      enddo.
    get the type
      " keep in sync with parameter, sub_check, sub_init
      case 'X'.
        when p_typprg.
          lon_srctyp = gcr_rep-typ_prg.
        when p_typcla.
          lon_srctyp = gcr_rep-typ_cla.
        when p_typifc.
          lon_srctyp = gcr_rep-typ_ifc.
        when p_typfct.
          lon_srctyp = gcr_rep-typ_fct.
        when p_typmod.
          lon_srctyp = gcr_rep-typ_mod.
        when p_typool.
          lon_srctyp = gcr_rep-typ_pool.
        when others.
          lon_srctyp = gcr_rep-typ_prg.
      endcase.
    get true name
      perform sub_get_srcnam
        using
          lon_srctyp
          p_prgnam
        changing
          lon_error
          loc_srcnam.
      perform sub_dsp_source
        using
          p_prgnam
          loc_srcnam.
    the end
      exit. " form
    endform.                    "sub_main
    form   :  sub_click
    purp.  :  entry point for line selection
    param  :  <global>    sy-lisel
    rcode  :  ---
    hist.  :  #00 -  KZI - created
    form sub_click.
    data declaration
      data:
        lon_error          type i,
        loc_prgnam         type programm,
        loc_srcnam         type programm.
    get possibly program name
      if ( 0 eq lon_error ).
        perform sub_get_word_from_list
          changing
            loc_prgnam.
        if ( '' eq loc_prgnam ).
          lon_error = 1.
        else.
          translate loc_prgnam to upper case.
        endif.
      endif.
    get source name
      if ( 0 eq lon_error ).
        case loc_prgnam.
          when 'METHODS'.
            perform sub_dsp_methods.
          when others.
            perform sub_get_srcnam
              using
                gcr_rep-typ_prg
                loc_prgnam
              changing
                lon_error
                loc_srcnam.
            if ( 0 eq lon_error ).
              perform sub_dsp_source
                using
                  loc_srcnam
                  loc_srcnam.
            endif.
        endcase.
      endif.
    the end
      exit. " form
    endform.                    "sub_click
    form   :  sub_command
    purp.  :  entry point for user command
    param  :  ---
    rcode  :  ---
    hist.  :  #00 -  KZI - created
    form sub_command
      using
        value(poc_cmd)   type syst-ucomm.
    data declaration
      data:
        lon_error        type i,
        lon_lsind        type syst-lsind,
        lor_file         type typ_file_info.
    try to catch a valid file info
      if ( 0 eq lon_error ).
        read table goa_file[]
          into lor_file
          with key lsind = sy-lsind.
        if ( 0 ne sy-subrc ).
          lon_error = 1.
        elseif ( 'X' ne lor_file-isvalid ).
          lon_error = 1.
        endif.
      endif.
    dispatch work
      if ( 0 eq lon_error ).
        case poc_cmd.
          when 'MY_EDIT'.
            editor-call for report lor_file-srcnam display-mode.
          when 'MY_HELP'.
            perform sub_dsp_help.
          when others.
            " nop
        endcase.
      endif.
    endform.                    "sub_command
    form   :  sub_get_word_from_list
    purp.  :  get the word clicked on
    param  :  <global>     sy-lisel
    rcode  :  ---
    hist.  :  #00 -  created
               #01 -  fixed a problem with words starting in first column
    form sub_get_word_from_list
      changing
        prc_srcnam     type programm.
      data:
        loc_cmp(1)     type c,
        lon_bgn        type i,
        lon_end        type i,
        lon_len        type i.
    get fundamental data
      lon_len = strlen( sy-lisel ).
      lon_bgn = sy-cucol.
      lon_end = sy-cucol.
    find begin/end of word
      do.
        loc_cmp = sy-lisel+lon_bgn(1).
        if
            ''      eq loc_cmp or
            '"'',.' ca loc_cmp
          exit." do
        endif.
        lon_bgn = lon_bgn - 1.
        if ( 0 GT lon_bgn ).
          exit. " do
        endif.
      enddo.
      lon_bgn = lon_bgn + 1.
      do.
        loc_cmp = sy-lisel+lon_end(1).
        if
            lon_len le lon_end or
            ''      eq loc_cmp   or
            '"'',.' ca loc_cmp
          exit.
        endif.
        lon_end = lon_end + 1.
      enddo.
      lon_end = lon_end - 1.
    if end >= begin give it back
      if ( lon_end ge lon_bgn ).
        lon_len = lon_end - lon_bgn + 1.
        prc_srcnam = sy-lisel+lon_bgn(lon_len).
      endif.
    endform.                    "sub_get_word_from_list
    form   :  sub_get_srcnam
    purp.  :  builds sourcename according to selection screen settings
    param  :  pon_prgtyp   distinquish the various program types
               pon_prgnam   the program name used to build the source file
    rcode  :  prn_error    0 success, else failure
               prc_srcnam   name of sourcefile
    hist.  :  #00 -  KZI - created
    form sub_get_srcnam
      using
        value(pon_prgtyp)     type i
        value(poc_prgnam)     type program
      changing
        prn_error             type i
        prc_srcnam            type programm.
    data declaration
      data:
        lon_error type i,                 " local errorflag
        x type i,                         " simple counter
        y type i,                         " simple counter
        lor_tfdir type tfdir.             " prog info tab.
    build the true filename dependend on prg type
      " keep this source in sync with parameter, sub_check, sub_init
      case pon_prgtyp.
        when gcr_rep-typ_prg.
          " simple program
          prc_srcnam = poc_prgnam.
        when gcr_rep-typ_cla.
          " class
          prc_srcnam = poc_prgnam.
          x = strlen( poc_prgnam ).
          if ( 30 > x ).
            y = 30 - x.
            prc_srcnam+x(y) = '=============================='.
          endif.
          prc_srcnam+30(2) = 'CP'.
        when gcr_rep-typ_ifc.
          " interface
          prc_srcnam = poc_prgnam.
          x = strlen( poc_prgnam ).
          if ( 30 > x ).
            y = 30 - x.
            prc_srcnam+x(y) = '=============================='.
          endif.
          prc_srcnam+30(2) = 'IP'.
        when gcr_rep-typ_fct.
          " function pool
          concatenate
            'SAPL'
            poc_prgnam
            into prc_srcnam.
        when gcr_rep-typ_mod.
          " function module
          select
             single *
             into lor_tfdir
             from tfdir
             where funcname = poc_prgnam.
          if ( 0 eq sy-subrc ).
            concatenate
              'L'
              lor_tfdir-pname+4
              'U'
              lor_tfdir-include
              into prc_srcnam.
          else.
            lon_error = 1.
          endif.
        when gcr_rep-typ_pool.
          " type pool
          concatenate '%_C' poc_prgnam into prc_srcnam.
        when others.
          " unknown type
          lon_error = 1.
      endcase.
    the end
      if ( 0 eq lon_error ).
        prn_error = 0.
      else.
        prn_error =  1.
        prc_srcnam = p_prgnam.
      endif.
    endform.                    "sub_get_srcnam
    form   :  Sub_Dsp_Methods
    purp.  :  displays methods of a Class
    param  :  prc_ClassName the name of the class to display methods from
    rcode  :
    hist.  :  #00 -  KZI - created
    form sub_dsp_methods.
    data declaration
      constants:
        c_Num_Index  type   i value 35,
        c_Num_Modulo type   i value 36,
        c_Index(37)  type   c
                     value  '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ?'.
      data:
        lon_Fraction      type i,
        lon_Modulo        type i,
        lon_Index         type i,
        lon_Offset        type i,
        loa_methods       type typ_method_info_tab,
        loc_Class_Name    type tmdir-classname,
        loc_include_Name  type programm,
        lor_file          type typ_file_info,
        loc_Index(3)      type c.
      field-symbols:
        <lor_method>       type  typ_method_info.
    init &_ precheck
      lor_file-isvalid = ''.
      lor_file-prgtyp =  ''.
      lor_file-lsind  =  sy-lsind + 1.
      modify goa_file[] from lor_file index lor_file-lsind.
      read table goa_file[] index sy-lsind into lor_file.
      if ( 0 ne sy-subrc or 'X' ne lor_File-isValid ).
        exit.
      endif.
      loc_Class_Name = lor_File-PrgNam.
      if ( loc_class_name cs '=' ).
        loc_Class_Name = loc_class_name(sy-fdpos).
      endif.
    get all methods
      select methodname methodindx from tmdir
        into corresponding fields of table loa_methods[]
        where
          classname = loc_class_name AND
          methodname <> ''
        order by
         methodindx.
      if ( 0 ne sy-subrc ).
        write:
          'could not be loaded!'(e04),
          / 'No entry in TMDIR,' , loc_class_name.
        exit.
      endif.
    put em on the list.
      Format: Reset.
      loc_Include_Name = loc_Class_Name.
      concatenate
        loc_Include_Name
        '=================================================='
        into loc_Include_Name.
        loc_Include_Name+30 = 'CM'.
      loop at loa_methods[] assigning <lor_method>.
        loc_Index = '000'.
        lon_Offset =   3.
        lon_Modulo =   <lor_Method>-MethodIndx mod c_Num_Modulo.
        lon_Fraction = <lor_Method>-MethodIndx div c_Num_Modulo.
        while ( ( lon_Fraction > 0 or lon_Modulo > 0 ) and lon_Offset > 0 ).
          lon_Offset = lon_Offset - 1.
          loc_Indexlon_Offset(1) = c_Indexlon_Modulo(1).
          loc_Include_Name+32 = loc_Index.
          lon_Modulo =   lon_Fraction mod c_Num_Modulo.
          lon_Fraction = lon_Fraction div c_Num_Modulo.
        endwhile.
        write: /
          loc_include_name intensified,
           at 40 <lor_method>-methodname(40).
      endloop.
    endform.                    "sub_Dsp_Methods
    form   :  sub_Dsp_Source
    purp.  :  loads source file from database and displays its contents
               with write
    param  :  prc_srcnam   name of source piece to display
    rcode  :  <hide>       name of occasional included files
    hist.  :  #00 -  KZI - created
    form sub_dsp_source
      using
        value(poc_prgnam)  type programm
        value(poc_srcnam)  type programm.
    data declaration
      data:
        lon_error          type i,
        lon_warn           type i,
        loa_source         type standard table of typ_source,
        loa_lines          type typ_line_tab,
        loc_line           type string,
        loc_print          type string,
        lon_tmp            type i,
        lon_tabix          type syst-tabix,
        lor_d010sinf       type d010sinf,
        lor_file           type typ_file_info.
      field-symbols:
        <lof_source>       type typ_source,
        <lof_line>         type typ_line_info.
    init &_ precheck
      format:
        reset.
      if ( gcr_rep-max_modi lt sy-lsind ). " limit modes
        sy-lsind = gcr_rep-max_modi.
      endif.
      lor_file-srcnam =  poc_srcnam.
      lor_file-prgnam =  poc_prgnam.
      lor_file-lsind =   sy-lsind + 1.
      lor_file-r3state = p_state.
    poc_srcnam =       ucase( poc_srcnam ).
    check existance
      if ( 0 eq lon_error ).
        select *
          from d010sinf up to 1 rows
          into lor_d010sinf
          where
            prog = poc_srcnam
          order by
            r3state
            cdat.
          if ( lor_d010sinf-r3state eq p_state ).
            exit. " loop
          endif.
        endselect.
        if ( 0 ne sy-subrc ).
          lon_error = 1.
          write:
            'could not be loaded!'(e04),
            / 'No entry in D010SINF,' , poc_srcnam.
        endif.
      endif.
    get report text
      if ( 0 eq lon_error ).
        read report poc_srcnam into loa_source[] state p_state.
        if ( 0 ne sy-subrc and 'I' eq p_state ).
          read report poc_srcnam into loa_source[] state 'A'.
          lon_warn = 1.
        endif.
        if ( 0 ne sy-subrc ).
          lon_tmp = strlen( poc_srcnam ).
          write: / 'Program'(e01).
          format inverse on. format color col_negative on.
          write at (lon_tmp) poc_srcnam.
          format inverse off.  format color col_negative off.
          write: /
            'Cannot load source info, sy-subrc= '(e02),sy-subrc.
        endif.
      endif.
    create display
      if ( 0 eq lon_error ).
        perform sub_dsp_source_lines
          using
            poc_prgnam
            0
            0
            loa_source[]
          changing
            lon_error.
      endif.
    update internal memory
      if ( 0 eq lon_error ).
        lor_file-isvalid = 'X'.
        if ( 0 eq lon_warn ).
          lor_file-r3state = p_state.
        else.
          lor_file-r3state = 'A'.
        endif.
        lor_file-prgtyp =  lor_d010sinf-subc.
      else.
        lor_file-isvalid = ''.
        lor_file-prgtyp =  ''.
      endif.
      modify goa_file[] from lor_file index lor_file-lsind.
    the end
      if ( 0 ne lon_warn ).
        message s777 with
          'There is no inactive version => no upload possible!'(i01).
      endif.
      exit. " form
    endform.                    "sub_dsp_source
    form   :  sub_dsp_source_lines
    purp.  :  loads source file from database and displays its contents
               with write
    param  :  poc_prgnam   name of source piece to display
               pra_source   source to display
    rcode  :  prn_error    0 success
    hist.  :  #00 -  KZI - created
    form sub_dsp_source_lines
      using
        value(poc_prgnam)  type programm
        value(pon_lwr_ndx) type i
        value(pon_upr_ndx) type i
        pra_source         type typ_source_tab
      changing
        prn_error          type i.
    data declaration
      data:
        lon_Strlen         type i,
        lon_Tabix(5)       type n,
        loa_lines          type typ_line_tab,
        loc_line           type string,
        lon_error          type i,
        lon_tmp            type i,
        lon_lwr_ndx        type syst-tabix,
        lon_upr_ndx        type syst-tabix.
      field-symbols:
        <lof_source>       type typ_source,
        <lof_line>         type typ_line_info.
    init &_ precheck
      format:
        reset.
      lon_error = 0.
      describe table pra_source[] lines lon_tmp.
      if ( 1 gt pon_lwr_ndx or lon_tmp lt pon_lwr_ndx ).
        lon_lwr_ndx = 1.
      else.
        lon_lwr_ndx = pon_lwr_ndx.
      endif.
      if ( 1 gt pon_upr_ndx or lon_tmp lt pon_upr_ndx ).
        lon_upr_ndx = lon_tmp.
      else.
        lon_upr_ndx = pon_upr_ndx.
      endif.
    create display
      if ( 0 eq lon_error ).
        format: reset.
        loop at pra_source[]
          assigning <lof_source>
          from lon_lwr_ndx
          to   lon_upr_ndx.
          lon_tabix = syst-tabix.
          loc_line = <lof_source>.
          perform sub_cut_text_comment
            using
              loc_line
              'X'
            changing
              loa_lines[].
          loop at loa_lines[] assigning <lof_line>.
            if ( 'X' eq <lof_line>-flag_newline ).
              if ( 0 ne lon_tabix ).
                write:
                  /(5) lon_tabix intensified color col_normal.
              else.
                write:
                  /(5) '      .' intensified color col_normal.
              endif.
              write at 6 ''.
              lon_tabix = 0.
            endif.
            lon_Strlen = strlen( <lof_Line>-Text ).
            if ( 'X' eq <lof_line>-flag_comment ).
              write: at (lon_Strlen)
                 <lof_line>-text intensified no-gap.
            else.
              write: at (lon_Strlen)
              <lof_line>-text no-gap.
            endif.
          endloop.
        endloop.
      endif.
    the end
      if ( 0 ne lon_error ).
        prn_error = 1.
      else.
        prn_error = 0.
      endif.
      exit. " form
    endform.                    "sub_dsp_source_lines
    form   :  sub_chk_input
    purp.  :  (en) validate input data
               (de) validieren der eingabewerte
    param  :  ---
    rcode  :  ---
    hist.  :  #00 - initial
    form sub_dsp_help.
    data declaration
      data:
        lon_error        type i,
        loa_tline        type standard table of tline,
        loc_docnam       type syst-repid.
    show help about ?
      if ( 0 eq lon_error ). " Help
        loc_docnam = sy-repid.
        call function 'HELP_OBJECT_SHOW'
          exporting
            dokclass         = 'RE'
            dokname          = loc_docnam
          tables
            links            = loa_tline[]
          exceptions
            object_not_found = 1
            sapscript_error  = 2
            others           = 3.
        if ( 0 ne sy-subrc ).
          lon_error = 1.
          message w777 with 'No Help Available'(w00).
          sy-subrc = 0.
        endif.
      endif.
    endform.                    "sub_dsp_help
    form   :  sub_init
    purp.  :  initializes the selection screen
    param  :  ---
    rcode  :  ---
    hist.  :  #00 -  KZI - created
    form sub_init.
    data declaration
      data:
        loc_memory(256) type c,
        lon_memory      type i.
    memory id logic
      " get prog
      get parameter id gcr_rep-mem_prg  field p_prgnam.
      if ( 0 ne sy-subrc or '' eq p_prgnam ).
        p_prgnam = sy-repid.
      endif.
      set parameter id gcr_rep-mem_prg field p_prgnam.
      " get prog type ( keep in sync with parameters sub_check and
      " sub_get_srcnam )
      get parameter id gcr_rep-mem_typ field loc_memory.
      condense loc_memory.
      loc_memory = loc_memory(4).
      if ( loc_memory co ' 0123456789' ).
        lon_memory = loc_memory.
      else.
        lon_memory = gcr_rep-typ_prg.
      endif.
      clear:
        p_typcla,
        p_typfct,
        p_typifc,
        p_typmod,
        p_typool,
        p_typprg.
      case lon_memory.
        when gcr_rep-typ_prg.
          p_typprg = 'X'.
        when gcr_rep-typ_cla.
          p_typcla = 'X'.
        when gcr_rep-typ_ifc.
          p_typifc = 'X'.
        when gcr_rep-typ_fct.
          p_typfct = 'X'.
        when gcr_rep-typ_mod.
          p_typmod = 'X'.
        when gcr_rep-typ_pool.
          p_typool = 'X'.
        when others.
          " default
          p_typprg = 'X'.
      endcase.
      " get status ( keep in sync with sub check ).
      get parameter id gcr_rep-mem_sta  field p_state.
      if ( 'A' ne p_state ).
        " only 'I' or 'A' is allowed
        p_state = 'I'.
      endif.
      set parameter id gcr_rep-mem_sta field p_state.
    endform.                    "sub_init
    form   :  sub_check
    purp.  :  at the selection screen
    param  :  ---
    rcode  :  ---
    hist.  :  #00 -  KZI - created
    form sub_check.
    data declaration
      data:
        loc_memory(4)    type c,
        lon_rcode        type i.
    memory id handling
      case p_state.
        when 'A' or 'I'.
          " ok
        when others.
          message e777 with
            'Only ''A'' and ''I'' are allowed for state'(se1).
      endcase.
      set parameter id gcr_rep-mem_prg field p_prgnam.
      set parameter id gcr_rep-mem_sta field p_state.
      " multiple choice
      " keep in sync with parameters and sub_check, sub_main
      case 'X'.
        when p_typprg.
          loc_memory = gcr_rep-typ_prg.
        when p_typcla.
          loc_memory = gcr_rep-typ_cla.
        when p_typifc.
          loc_memory = gcr_rep-typ_ifc.
        when p_typfct.
          loc_memory = gcr_rep-typ_fct.
        when p_typmod.
          loc_memory = gcr_rep-typ_mod.
        when p_typool.
          loc_memory = gcr_rep-typ_pool.
        when others.
          " if bugfree this should never happen, sync source if you
          " expierience this source to be executed
          loc_memory = gcr_rep-typ_prg.
      endcase.
      if ( '' ne loc_memory ).
        set parameter id gcr_rep-mem_typ field loc_memory.
      endif.
    endform.                    "sub_check
    form   :  sub_split_comment
    purp.  :  splits a line into a comment and command part.
    param  :  poc_line     to source line
               poc_command  the command part
               poc_comment  the comment part
    rcode  :  <hide>       name of occasional included files
    hist.  :  #00 -  KZI - created
    form sub_split_comment
      using
        value(poc_line)       type typ_source
      changing
        prc_command           type typ_source
        prc_comment           type typ_source.
    data declaration
      data:
        loc_First_Char(1)     type c,
        lon_len_old           type i,
        lon_len_new           type i,
        lon_pos_cmt           type i,
        loc_buf1              type string,
        loc_buf2              type string,
        loc_cmtbuf(240)       type c.
    init & precheck
      clear:
        prc_command,
        prc_comment.
    computation
      loc_First_Char = poc_Line.
      if ( '*' eq loc_First_Char ).
        prc_command = ''.
        prc_comment = poc_line.
      else.
        if ( poc_line ca '"' and poc_line np '''"''' ).
          split poc_line at '"' into loc_buf1 loc_buf2.
          if ( '' eq loc_buf1 ).
            prc_command = ''.
            prc_comment = poc_line.
          else.
            lon_len_old =
              strlen( poc_line ).
            lon_len_new =
              strlen( loc_buf1 ) +
              strlen( loc_buf2 ).
            lon_pos_cmt = lon_len_old - lon_len_new - 2.
            if ( 0 gt lon_pos_cmt or 240 lt lon_pos_cmt ).
              lon_pos_cmt = 0.
            endif.
            loc_cmtbuf+lon_pos_cmt = '"'.
            prc_command = loc_buf1.
            concatenate loc_cmtbuf loc_buf2 into prc_comment.
          endif.
        else.
          prc_command = poc_line.
          prc_comment = ''.
        endif.
      endif.
    the end
      exit. " form
    endform.                    "sub_split_comment
    form   :  sub_cut_text_comment
    purp.  :  splits a line into a comment and command part.
    param  :  poc_line     to source/text line
               poc_cmt      'X' chk for comments
    rcode  :  pra_lines    filled with line info ( reset )
    hist.  :  #00 -  KZI - created
    form sub_cut_text_comment
      using
        value(poc_line)       type string
        value(poc_cmt_check)  type flag
      changing
        pra_lines             type typ_line_tab.
    data declaration
      data:
        loc_buf1              type string,
        loc_buf2              type string,
        loc_comment           type string,
        loc_command           type string.
      data:
        loc_First_Char(1)     type c,
        loc_new_line          type flag,
        lon_cur_pos           type i,
        lon_new_pos           type i.
    init & precheck
      clear:
        pra_lines[],
        loc_command,
        loc_comment.
    computation
      loc_First_Char = poc_Line.
      if ( '' eq poc_cmt_check or '' eq poc_line ).
        loc_command = poc_line.
        loc_comment = ''.
      else.
        if ( '*' eq loc_First_Char ).
          loc_command = ''.
          loc_comment = poc_line.
        else.
          if ( poc_line ca '"' and poc_line np '''"''' ).
            split poc_line at '"' into loc_buf1 loc_buf2.
            if ( '' eq loc_buf1 ).
              loc_command = ''.
              loc_comment = poc_line.
            else.
              loc_command = loc_buf1.
              concatenate '"' loc_buf2 into loc_comment.
            endif.
          else.
            loc_command = poc_line.
            loc_comment = ''.
          endif.
        endif.
      endif.
    cvt text
      lon_cur_pos = 0.
      loc_new_line = 'X'.
      if ( '' ne loc_command ).
        perform sub_cut_text_width
          using
            loc_command
            loc_new_line
            lon_cur_pos
            gcr_rep-max_width
          changing
            pra_lines[]
            lon_new_pos.
        lon_cur_pos =  lon_new_pos.
        loc_new_line = ''.
      endif.
      if ( '' ne loc_comment ).
        perform sub_cut_text_width
          using
            loc_comment
            loc_new_line
            'X'
            lon_cur_pos
            gcr_rep-max_width
          changing
            pra_lines[]
            lon_new_pos.
        lon_cur_pos =  lon_new_pos.
        loc_new_line = ''.
      endif.
      if ( '' ne loc_new_line ).
        perform sub_cut_text_width
          using
            loc_new_line
            lon_cur_pos
            gcr_rep-max_width
          changing
            pra_lines[]
            lon_new_pos.
        lon_cur_pos =  lon_new_pos.
        loc_new_line = ''.
      endif.
    the end
      exit. " form
    endform.                    "sub_cut_text_comment
    form   :  sub_cut_text_width
    purp.  :  splits text info into several lines to make them
               fit to a max-width
    param  :  poc_line     to source/text line
               poc_cmt      'X' chk for comments
    rcode  :  pra_lines    appended ( no reset ) line info.
    hist.  :  #00 -  KZI - created
    form sub_cut_text_width
      using
        value(poc_text)      type string
        value(poc_new_line)  type flag
        value(poc_typ_cmt)   type flag
        value(pon_cur_pos)   type i
        value(pon_max_width) type i
      changing
        pra_lines            type typ_line_tab
        prn_new_pos          type i.
    data declaration
      data:
        lor_text_info         type typ_line_info,
        lon_cnt_loop          type i,
        lon_tmp               type i,
        lon_pos_cur           type i,
        lon_len_cur           type i,
        loc_buf_cur           type string,
        loc_new_line          type flag.
    init & precheck
      loc_buf_cur =  poc_text.
      loc_new_line = poc_new_line.
      lon_pos_cur =  pon_cur_pos.
      do.
        if ( '' eq loc_buf_cur and '' eq loc_new_line or
             1000 lt lon_cnt_loop ).
          exit. " do
        else.
          lon_cnt_loop = lon_cnt_loop + 1.
          clear:
            lor_text_info.
          lor_text_info-flag_comment = poc_typ_cmt.
          if ( '' ne loc_new_line ).
            loc_new_line =               ' '.
            lor_text_info-flag_newline = 'X'.
            lon_pos_cur =                 0.
          endif.
          lon_len_cur = strlen( loc_buf_cur ).
          lon_tmp = lon_pos_cur + lon_len_cur.
          if ( lon_tmp le pon_max_width ).
            " all fits in currentline
            lor_text_info-text = loc_buf_cur.
            loc_buf_cur = ''.
            lon_pos_cur = lon_pos_cur + lon_len_cur.
          else.
            " we need to split
            lon_tmp = pon_max_width - lon_pos_cur.
            if ( 0 gt lon_tmp ).
              " should not happen
              lor_text_info-text = loc_buf_cur.
              loc_buf_cur = ''.
            else.
              lor_text_info-text = loc_buf_cur(lon_tmp).
              loc_buf_cur = loc_buf_cur+lon_tmp.
            endif.
            lon_pos_cur = 0.
            loc_new_line = 'X'.
          endif.
          append lor_text_info to pra_lines[].
        endif.
      enddo.
    the end
      prn_new_pos = lon_pos_cur.
      exit. " form.
    endform.                    "sub_cut_text_width
    [/code]

  • MDT language selection

    When i deploy a MDT image with a language pack installed (aka the language pack/package selection) I get a black screen saying "System preparing for first use"
    However when I use a non-image aka the windows source DVD and deploy through MDT i can get it to install the correct language with the language selection build in MDT>
    Anyone has any idea's how I can troubleshoot this?

    About the same here with MDT 2013 and Windows 8.1.
    Added Language Pack as package to the Deployment Share. If I choose it when deploying I get the black screen with blinking mouse cursor. No problem with the default language (of the captured image).
    My thought was that maybe versions do not fit because I make updates before creating my reference image. So Win version is 6.3.9600.17056 and LP version is 6.3.9600.16384.
    Trying to already include the LP in the reference image would have been my next step.

  • Class builder

    hi,
    i hv a doubt in a class builder.
    i tried to to use static attribute inside a method.but that attribute couldnt store the last value when again it used in another method  .hw can i solve this problem.

    hi
    hope it will help you.
    Reward if help.
    Classes and Interfaces
    This section describes the definition of classes and interfaces and of their components. Classes and interfaces form the basis for ABAP Objects, the object-oriented part of the ABAP language. Classes and interfaces can be defined in ABAP programs of the following program types:
    In a class pool, you use the Class Builder tool of the ABAP Workbench to define exactly one global class of the class library, which can then be used in all other ABAP programs. In the global declaration section of a class pool, you can individually define local data types, classes and interfaces to tbe used in the class pool and make type groups known. Apart from the TYPES and TYPE-POOLS statements, in class pools no other statements are allowed outside of classes and interfaces.
    In an interface pool, you use the Class Builder tool of the ABAP Workbench to define exactly one global interface of the class library to be used in all other ABAP programs. In the global declaration section of an interface pool, you are not allowed to define local data types, classes and interfaces. You can declare type groups. Apart from the statement TYPE-POOLS, in interface pools no other statements are allowed outside of the global interfaces.
    In all other ABAP programs, except type groups, you can define local classes and interfaces to be used in the program itself.
    Apart from the TYPES and TYPE-POOLS statements, in class and interface pools no other statements are allowed outside of CLASS - ENDCLASS or INTERFACE - ENDINTERFACE.

  • JavaFx2 Samples DataApp Build Problems

    Download Samples
    http://download.oracle.com/otn/java/javafx/2.1.1-b04/javafx_samples-2_1_1-windows.zip
    From:http://www.oracle.com/technetwork/java/javafx/downloads/index.html
    And follow : DataApp Installation Guide
    ---Running the Sample
    ---Start the server:
    ---In NetBeans, right-click the DataAppServer project.
    ---Select Run.
    ---Wait until a browser window opens that says: YOU ARE DONE!
    A : Build Problem?
    ant -f D:\\DataApp\\DataAppServer -DforceRedeploy=false -Ddirectory.deployment.supported=true -Dnb.wait.for.caches=true run
    check-mysql-drivers-installed:
    D:\DataApp\DataAppServer\build.xml:72: D:\DataApp\DataAppServer\${j2ee.server.home}\lib does not exist.
    构建失败 (总时间: 0 秒)
    I have install C:\Program Files\glassfish-3.1.2
    Any suggestions?

    ant -f D:\\DataApp\\DataAppServer -DforceRedeploy=false clean dist
    check-mysql-drivers-installed:
    init:
    undeploy-clean:
    deps-clean:
    DataAppClient.init:
    DataAppClient.deps-clean:
    Updating property file: D:\DataApp\DataAppClient\build\built-clean.properties
    DataAppLibrary.init:
    DataAppLibrary.deps-clean:
    Updating property file: D:\DataApp\DataAppClient\build\built-clean.properties
    Deleting directory D:\DataApp\DataAppLibrary\build
    DataAppLibrary.clean:
    Duplicated project name in import. Project jfx-impl defined first in D:\DataApp\DataAppClient\nbproject\jfx-impl.xml and again in D:\DataApp\DataAppPreloader\nbproject\jfx-impl.xml
    DataAppPreloader.init:
    DataAppPreloader.deps-clean:
    Updating property file: D:\DataApp\DataAppClient\build\built-clean.properties
    Deleting directory D:\DataApp\DataAppPreloader\build
    DataAppPreloader.clean:
    Deleting directory D:\DataApp\DataAppClient\build
    DataAppClient.clean:
    DataAppLibrary.init:
    DataAppLibrary.deps-clean:
    Created dir: D:\DataApp\DataAppLibrary\build
    Updating property file: D:\DataApp\DataAppLibrary\build\built-clean.properties
    Deleting directory D:\DataApp\DataAppLibrary\build
    DataAppLibrary.clean:
    do-clean:
    check-clean:
    clean:
    check-mysql-drivers-installed:
    init:
    deps-module-jar:
    DataAppClient.init:
    DataAppClient.deps-jar:
    Created dir: D:\DataApp\DataAppClient\build
    Updating property file: D:\DataApp\DataAppClient\build\built-jar.properties
    DataAppLibrary.init:
    DataAppLibrary.deps-jar:
    Created dir: D:\DataApp\DataAppLibrary\build
    Updating property file: D:\DataApp\DataAppClient\build\built-jar.properties
    Created dir: D:\DataApp\DataAppLibrary\build\classes
    Created dir: D:\DataApp\DataAppLibrary\build\classes\META-INF
    Copying 1 file to D:\DataApp\DataAppLibrary\build\classes\META-INF
    Created dir: D:\DataApp\DataAppLibrary\build\empty
    Created dir: D:\DataApp\DataAppLibrary\build\generated-sources\ap-source-output
    Compiling 29 source files to D:\DataApp\DataAppLibrary\build\classes
    警告: [options] 未与 -source 1.6 一起设置引导类路径
    注: Creating non-static metadata factory ...
    注: Found Option : eclipselink.canonicalmodel.use_static_factory, with value: false
    注: Optional file was not found: META-INF/orm.xml continuing with generation.
    注: Optional file was not found: META-INF/eclipselink-orm.xml continuing with generation.
    注: Found Option : eclipselink.canonicalmodel.use_static_factory, with value: false
    注: Optional file was not found: META-INF/orm.xml continuing with generation.
    注: Optional file was not found: META-INF/eclipselink-orm.xml continuing with generation.
    警告: 以下选项未被任何处理程序识别: '[eclipselink.canonicalmodel.use_static_factory]'
    注: 某些输入文件使用了未经检查或不安全的操作。
    注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
    1 个警告
    Copying 1 file to D:\DataApp\DataAppLibrary\build\classes
    DataAppLibrary.compile:
    Created dir: D:\DataApp\DataAppLibrary\dist
    Copy libraries to D:\DataApp\DataAppLibrary\dist\lib.
    Building jar: D:\DataApp\DataAppLibrary\dist\DataAppLibrary.jar
    To run this application from the command line without Ant, try:
    C:\Program Files\Java\jdk1.7.0_05/bin/java -jar "D:\DataApp\DataAppLibrary\dist\DataAppLibrary.jar"
    DataAppLibrary.jar:
    Duplicated project name in import. Project jfx-impl defined first in D:\DataApp\DataAppClient\nbproject\jfx-impl.xml and again in D:\DataApp\DataAppPreloader\nbproject\jfx-impl.xml
    DataAppPreloader.init:
    DataAppPreloader.deps-jar:
    Created dir: D:\DataApp\DataAppPreloader\build
    Updating property file: D:\DataApp\DataAppClient\build\built-jar.properties
    Created dir: D:\DataApp\DataAppPreloader\build\classes
    Created dir: D:\DataApp\DataAppPreloader\build\empty
    Created dir: D:\DataApp\DataAppPreloader\build\generated-sources\ap-source-output
    Compiling 2 source files to D:\DataApp\DataAppPreloader\build\classes
    Copying 5 files to D:\DataApp\DataAppPreloader\build\classes
    DataAppPreloader.compile:
    Created dir: D:\DataApp\DataAppPreloader\dist
    Copying 1 file to D:\DataApp\DataAppPreloader\build
    Not copying library D:\DataApp\DataAppPreloader\dist\DataAppPreloader.jar , it can't be read.
    Nothing to copy.
    Building jar: D:\DataApp\DataAppPreloader\dist\DataAppPreloader.jar
    To run this application from the command line without Ant, try:
    C:\Program Files\Java\jdk1.7.0_05/bin/java -jar "D:\DataApp\DataAppPreloader\dist\DataAppPreloader.jar"
    Detected JavaFX Ant API version 1.1
    DataAppPreloader.jfx-deployment:
    DataAppPreloader.jar:
    Created dir: D:\DataApp\DataAppClient\build\classes
    Created dir: D:\DataApp\DataAppClient\build\empty
    Created dir: D:\DataApp\DataAppClient\build\generated-sources\ap-source-output
    Compiling 19 source files to D:\DataApp\DataAppClient\build\classes
    注: 某些输入文件使用了未经检查或不安全的操作。
    注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
    Copying 27 files to D:\DataApp\DataAppClient\build\classes
    DataAppClient.compile:
    Created dir: D:\DataApp\DataAppClient\dist
    Copying 27 files to D:\DataApp\DataAppClient\dist\lib
    Moving 1 file to D:\DataApp\DataAppClient\dist
    Expanding: D:\DataApp\DataAppClient\dist\lib\DataAppLibrary.jar into D:\DataApp\DataAppClient\build\classes
    Expanding: D:\DataApp\DataAppClient\dist\lib\jackson-core-asl-1.7.1.jar into D:\DataApp\DataAppClient\build\classes
    Expanding: D:\DataApp\DataAppClient\dist\lib\jackson-jaxrs-1.7.1.jar into D:\DataApp\DataAppClient\build\classes
    Expanding: D:\DataApp\DataAppClient\dist\lib\jackson-mapper-asl-1.7.1.jar into D:\DataApp\DataAppClient\build\classes
    Expanding: D:\DataApp\DataAppClient\dist\lib\jackson-xc-1.7.1.jar into D:\DataApp\DataAppClient\build\classes
    Expanding: D:\DataApp\DataAppClient\dist\lib\jersey-client-1.8.jar into D:\DataApp\DataAppClient\build\classes
    Expanding: D:\DataApp\DataAppClient\dist\lib\jersey-core-1.8.jar into D:\DataApp\DataAppClient\build\classes
    Expanding: D:\DataApp\DataAppClient\dist\lib\jersey-json-1.8.jar into D:\DataApp\DataAppClient\build\classes
    Deleting directory D:\DataApp\DataAppClient\dist\lib
    D:\DataApp\DataAppServer\nbproject\build-impl.xml:860: The following error occurred while executing this line:
    D:\DataApp\DataAppClient\build.xml:48: Problem: failed to create task or type javafx:com.sun.javafx.tools.ant:application
    Cause: The name is undefined.
    Action: Check the spelling.
    Action: Check that any custom tasks/types have been declared.
    Action: Check that any <presetdef>/<macrodef> declarations have taken place.
    No types or tasks have been defined in this namespace yet
    构建失败 (总时间: 25 秒)

  • Why Photoshop CS6 does not include language selection ? dont want it on win8 language, I want in eng

    Right now I am installing the programs on my new 64 bits computer , which runs windows 8 in a language which is not english.
    At the very beginning of the setup I noticed that it detected the language of sist. op.  and that it would install cs6 in such language. 
    I am very, very ,very upset with this and I will tell you the reason :   the best in terms of  literature , pdfs books , tutorials , support forums ,etc is written in ENGLISH !  
    If I install cs6  I will have all menus , tools and resources in other language and it will be very cumbersome to work with it.
    Perhaps with the best of the intention to make people feel comfortable with their own language you have made it this way.
    But there are several other guys like me that want it IN ENGLISH.
    As a long time user of photoshop  I never worked in other language than english and I will never do it.
    It looks like it is a new trend to detect the op sistem  language , I have had the same problem with Nero Platinum 12 , and others.
    Is there a way to install Cs6  in english ?
    I have no idea whether adobe developers team read this forum but I will give my suggestion : don´t leave the setup to choose the language , this is dictartoship , be democratic and bring back the language selection menu.
    thanks

    The setup choice only defines the language for the EULA.
    You download the version for whichever language you want the app to be in.

  • OC4J 10.1.3 production: Build problem Adventure Builder 1.0.1 using EJB 3.0

    Hi all,
    I tried to use the migration to EJB 3.0 of the Adventure Builder 1.01 from Debu Panda and had some build problems.
    Does anybody know if this demo was tested with the production version of 10.1.3?
    I used the standalone version and had to tweak a lot of entries in ant-oracle.xml.
    Is it possible that the migration was done with a preview release? Have there been so many changes? I had to include a bunch of additional JARs e.g ${J2EE_HOME}/lib/adminclient.jar, ${ORACLE_HOME}/webservices/lib/wsclient.jar. ${ORACLE_HOME}/lib/xmlparserv2.jar
    and others.
    Also I had to change some task definitions as I guess that the contents of ${ORACLE_HOME}/j2ee/utilities/ant-oracle-classes.jar must have changed...
    If I did not do something terribly wrong it would be nice if you could update the example to save other people from this nightmare of running from one build error to the next!
    Regards,
    Eric

    Hi Debu,
    thanks for your reply. I've used an previously installed ant 1.6.5 from ant.apache.org, but I don't think this should matter, or?
    As far as I could see one of the problems is related to the version of ant-oracle-classes.jar in ${ORACLE_HOME}/j2ee/utilities which the example relies on.
    In the adventure builder ant-oracle.xml you'll find task definitions like that:
    taskdef resource="oracle/ant/taskdefs/deploy/antlib.xml" uri="http://www.oracle.com/ant/taskdefs" loaderRef="oracle.tasks.loader">which does not match with what one can find in ${ORACLE_HOME}/j2ee/utilities/ant-oracle-classes.jar
    So from my point of view this has to be changed to
    <taskdef resource="oracle/antlib.xml" uri="antlib:oracle" loaderRef="oracle.tasks.loader">I also had to change some libs... That's why I thought this example was made and tested with an earlier version of oc4j 10.1.3 (maybe a preview version).
    Regards,
    Eric

  • Can't get past language selection with Leopard Install disk

    My 1 year old Intel Mac Mini, which had been running 10.5.4 without problems suddenly froze up. The mouse was still active but I couldn't click anything. I turned the system off with the power button. When I restarted it got as far as the login screen, but clicking the user didn't do anything. I was able to log in using safe mode (hold down shift when starting). I ran the disc utility, repaired permissions and verified the disc. Seemed OK, but still the same behavior (freeze at login screen) when I try to boot normally.
    I tried booting from the Leopard install disk. When it reached the language selection page there were some strange-looking horizontal lines in the display. Clicking the "proceed" button caused a copy of the button's graphic to appear at the top of the page and nothing else happened. Very puzzling, since I had upgraded OS X using that same disc.
    I have a Superduper backup from a couple of weeks ago. It won't boot up normally either. Any ideas? Unfortunately, I'm 2 weeks out of warranty!
    Thanks,
    jwstex

    I would probably start looking at the ram to see if it's worked loose or a board has gone bad (rare, but it happens).
    Make sure no external drives or other unnecessary connections.
    If the ram doesn't fix the problem, then you could also Zap the PRAM by holding down the Command + Option + P + R keys during boot up. Hold down the keys until the Mac goes through 3 startup chimes, then just release the keys and continue to boot normally. Check your clock settings if it boots.
    http://support.apple.com/kb/HT1379

  • My macbook is stuck on a grey screen with language select and every time i click english it brings me back to the same gray page what do i do?

    My macbook Pro is stuck on a grey screen with language select and every time i click english it brings me back to the same gray page with language select what do i do? Also i dont have enough monet to go to the apple store to get it fix and another thing this happen after i tried to factory reset it without the disck uising coomans i found on youtube.Lastly befor doing the comands my macbook would open any applications and the finder would just blink on and off on the dock.
    Heres the link http://www.youtube.com/watch?v=Q5e5thk0O9o

    Shut down your computer and disconnect all peripherals (keyboard & mouse if pertinent) from your computer.  Now reboot.
    If the Mac starts up normally, shut it down again and then plug in one of the peripherals (keyboard or mouse first) and start up your computer again.  If it does so successfully repeat the process, adding one peripheral at a time until your Mac acts up.  At that point, disconnect the last peripheral you added, reboot your Mac and search the peripheral vendor's website for an updated driver. 
    If no driver exists or the problem remain after installing the new driver, try a different cable or a different port on your Mac.
    If none of the above works, again disconnect all peripherals from your Mac, hold down the "shift" key to start up in "Safe Boot" mode. 
    If the Mac starts up correctly, restart without pressing the "shift" key.
    If your computer still does not start up properly, shut it down and restart it while holding down the Apple+Option-P-R keys; keep holding "all 4 keys" down until you hear the startup sound "twice."
    If none of the above work Disconnect all peripherals from your computer. Boot from your install disc & run Repair Disk from the utility menu. To use the Install Mac OS X disc, insert the disc, and restart your computer while holding down the C key as it starts up.
    Select your language.
    Once on the desktop, select Utility in the menu bar.
    Select Disk Utility.
    Select the disk or volume in the list of disks and volumes, and then click First Aid.
    Click Repair Disk.
    (If Disk Utility cannot repair, you will need a stronger utility (3rd party) - Diskwarrior or Techtool PRO)
    Restart your computer when done.
    Repair permissions after you reach the desktop-http://docs.info.apple.com/article.html?artnum=25751 and restart your computer.
    Remove any 3rd party ram.
    Reinstall Leopard - This will install a "fresh" copy Leopard without archiving old system files but leaves the rest of your files in place.
    If you still want to restore your computer to factory level...
    Start up from your install disc, go to Disk Utility and select the disk and click erase - to securely erase data click Security Options and Erase Free Space which will entirely wipe your disk, overwriting it with zeros so that no data is recoverable.
    To restore read the instructions in the Mac OS X v10.5 Leopard - Installation and Setup Guide  PDF

  • To use logical database PNP in class builder

    Hi
    Inside the class builder (SE24), i have a created a method.
    Now while implementing that method, that is between method and endmethod
    statement can i implement logical database PNP or PNPCE.
      If 'yes' how to use it.
      if 'no' what is the other way to implement authorization.
    Pls help me

    Hello,
    assume that the routines GET_ITnnnn are written by yourself. For reading infotypes ABAP Objects provides us with same very helpful classes as shown below:
    * define data
      DATA:
        gif_employee      type ref to if_pt_employee,
        go_employee       type ref to cl_pt_employee,
        gt_infotypes      TYPE tim_tmw_itlist_tab,
        go_control        TYPE REF TO if_pt_td_control,
        go_data           TYPE REF TO if_pt_td_base,
        go_pnnnn          TYPE REF TO if_pt_td_itnnnn,
        gt_p0001          TYPE TIM_P0001_TAB,
        gt_p0002          TYPE TIM_P0002_TAB,
        gt_p0003          TYPE TIM_P0003_TAB.
    start-of-selection.
    GET pernr.
    <b>* Create employee instance</b>
      gif_employee = cl_pt_employee=>get_employee( pernr ).
      go_employee ?= gif_employee.
    <b>* Get master infotypes (0001, 0002)</b>
      CALL METHOD go_employee->get_master_data
        EXPORTING
          im_begda = id_fromdate
          im_endda = id_todate
        IMPORTING
    *      EX_I0000 =
          EX_I0001 = gt_p0001
          EX_I0002 = gt_p0002
    *      EX_I0007 =
    *      EX_I0008 =
    <b>* Append all other required infotypes to itab</b>
      APPEND '0003' TO gt_infotypes.
      CALL METHOD go_employee->get_infotypes
        EXPORTING
          i_itlist      = gt_infotypes
          i_fromdate    = id_fromdate  " start date
          i_todate      = id_todate    " end date
    *      I_FILTER      =
          i_noauthcheck = 'X'
        IMPORTING
          e_result      = gt_infty_request
          e_retcd       = gd_retcd.
    * Please see documentation of parameter e_retcd...
      LOOP AT gt_infty_request INTO go_control.
        go_data = go_control->data.  <b>" get data object</b>
    *   Casting
        TRY.
            go_pnnnn ?= go_data.
          CATCH cx_sy_move_cast_error.
            CONTINUE.
        ENDTRY.
    <b>*   Convert infotype (semi-transparent -> transparent)</b>
        CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
          EXPORTING
            prelp = lo_pnnnn->prelp
          IMPORTING
            pnnnn = gs_p0003.
        APPEND gs_p0027 TO gt_p0003.
      ENDLOOP.
    The class CL_PT_EMPLOYEE provides us already with very easy access to so-called master infotypes (000, 0001, 0002, 0007 and 0008). All other infotypes can be read using method GET_INFOTYPES.
    Using these classes we have a very convenient and standardized way of accessing all kinds of infotypes.
    Vasanth

  • Application Builder problem on one server but not another

    I am having an Application Builder problem. When I get into App Express and go inside the builder and try to edit a listed application, I get an “http 404 the page cannot be found. The page might have had its name changed or is temporarily unavailable” situation. I can get into SQL commands, utilities, and administrative activities. I can also run the application. Also, if I go onto a different server with App Express on it, I can get into the builder and edit applications with no trouble. Our DBA had the server in question rebooted a little over a week ago and that took care of the problem for a couple days. Any ideas? Is this an Express problem or a server problem? He had also tried restarting Express before he had the reboot done and that didn’t help.
    Thank you for any help.
    Cordially,
    Robert J. Smith

    I have messages from the Apache error log files from the dates I was getting the builder error. For future reference, I will post them below. The builder has been working fine lately.
    Robert Smith
    ** error log messages follow **
    [Mon Jul 16 07:25:12 2007] [error] [client 147.159.5.134] [ecid: 
    79143788610,1] File does not exist:
    /app/oracle/oraappsrv10g/forms/java/java/awt/KeyboardFocusManager.class
    [Mon Jul 16 07:25:12 2007] [error] [client 147.159.5.134] [ecid: 
    79143788611,1] File does not exist:
    /app/oracle/oraappsrv10g/forms/java/java/awt/event/MouseWheelListener.class
    [Mon Jul 16 07:25:13 2007] [error] [client 147.159.5.134] [ecid: 
    83438757083,1] File does not exist:
    /app/oracle/oraappsrv10g/forms/java/oracle/forms/registry/default.dat

  • Netflix Language selection

        Ok,  I've looked at some of the posts,  all great posts.  But,  none answer my question.   I have the Apple TV And I do not have a Apple TV remote control.  I use the remote app on my iPad to control the Apple TV..   I'm a huge Anime fan and some are in Japanese with the option to watch in English Dub.   It defaults and starts up in Japanese and I don't know how to use my Remote App to select the English versions of the shows I want to watch.  Does the remote app have the ability to do language select?

    I just got off the phone with Netflix support. Specifically for Iron Man 2 and one of the Transformers movies it's a known issue. There is a temporary fix:
    1. Sign in to netflix.ca
    2. Change your account settings for video quality to anything except Best/HD.
    And that's it. I just tested it myself and it worked. He said you may have to wait an hour for the changes to come into effect, but I just logged out and then logged in to my Apple TV Netflix and it was done.
    He also mentioned this is a temporary workaround and they are working on it. Basically when they rent movies for use, they are given a package of different qualities and languages and they accidentally put the French HD in the English HD "slot". 
    Hope that helps!
    EDIT: This solution is only in direct response to X1Zero's problem. Sorry, OP.

  • Language selection and closed captioning

    hi! i'm using adobe captivate 5 and i'm wondering if i can implement language selection for the narration in my presentation and at the same time have closed caption with it.
    like, i could choose english for the audio and caption then later choose i.e. german.
    thanks!

    I don't think you could do this in the same lesson without a lot of fancy AS3 widgetry underneath the hood.  It would not be easy.
    Your quickest and easiest way to implement such an idea is simply to have two versions of your course, one with English and the other in German,  Then you have a landing page that offers the learner the option (clickbox or button) to select their preferred language.  Clicking one or the other will branch them to open the relevant lesson.
    Where you may encounter problems with this is when you are using an LMS.  If you have both English and German lessons packaged together in the same course, the LMS will think the learner has only completed half of the total lessons.  In that case, you are forced to have two entirely different courses packaged as an English SCORM and a German SCORM.  The user would then be selecting their preferred language in the LMS, not in the Captivate lesson.

  • Language selection for spell check keeps reseting to "none"

    On Macbook Air, OS X 10.7.2, Pages '09, the language  selection for spell check resets to none as soon as I begin to type in the document

    I use Windows, and it is exactly as you said, Sir Hup.
    I made the change, in the drop-down list in the dialog box, in my case from 'English' (which I have to assume is US English) to 'Australian English'.
    The problem I am encountering is that making that change doesn't stick for the browser as a whole, but only for the input box on the tab, the dialog box was opened on.
    How do I get the change to apply for spell checking in the browser as a whole?
    Jenifur Charne

Maybe you are looking for

  • Some questions about a Time Capsule

    Hi!! I just have a few questions about a Time Capsule, but first let me explain the backgroud to my questions. I live in a 2 floor house(including a basement) and my bedroom is downstairs. My parents currently have a desktop PC connected to our wirel

  • Runtime Errors         "READ_REPORT_LINE_TOO_LONG"

    i am using a include program to alv list display. and when i execute the main program.. it gives the following dump. Runtime Errors         READ_REPORT_LINE_TOO_LONG Exception              CX_SY_READ_SRC_LINE_TOO_LONG analysis.. An exception occurred

  • Printing last page (Purchase order Terms) in SMARTFORMS

    Dear SAP Gurus, Our Purchasing unit would like to print purchase order terms and conditions after the end of Purchase order. Initially I had two pages (First and Next). The following are the steps I followed to print last page with Purcahsing terms.

  • Currency attribute of entity

    Hi, Is there any way to get the currency attribute of an Entity (defined in HFM) in HFR? Thanks, appu

  • TS3212 I am using windows XP. Can I download itunes and which version?

    I upgraded my ipad2 and iphone 3S. When I plug in with my PC (windows XP sp3) it asking me to install itunes version 10. I tried few times downloading but doesn't work. What should I do?