Get_includes

hi,
i am in middle of an upgradation project and i am facing a problem in it.
there is a statement in 4.6 c like ' get_includes lc_include lc_funname  lt_incl' .
but it is giving syntax error in ecc 6.0. kindly suggest me what can be the alternative for this statement in ecc 6.0.
Thanks in advance

this one looks like MACRO.
in that case u need to create it in ur  ECC systems tooo, i dont think it is a standard marco.
regards
Prabhu

Similar Messages

  • Regarding Includes GET_INCLUDES

    hi guys,
    Whats the difference between using RS_GET_ALL_INCLUDES and GET_INCLUDES.
    I tested for my Report Program giving input to GET_INCLUDES FM its giving me
    one include DB_SSEL.
    But I did not get anything using RS_GET_ALL_INCLUDES FM for same above input.
    Why? which is correct one.
    Thanks
    Ambichan,

    Hi,
    Try using the FM GET_INCLUDETAB.
    This will get all the includes for the given report.
    Thanks,
    Naren

  • FM for diaplying includes of

    Hi all,
    Any pointers regarding function modul used for finding out includes and attributes of includes  for  a given program is highly appreciated.
    Regards,
    Rajashree

    hi ,
    use function module:
    get_includes and GET_INCLUDETAB
    regards,
    Navneeth K.

  • System table that stores info about any function module

    Hi All,
    I know that table TFDIR stores primary information about any function module.
    Could anyone tell me where the code of that function module gets stored in?
    Also.. If I want to write an ABAP code to read the function module code then what is the best possible solution?
    I want to read a function module code if that contains specific string.
    Can anyone help me  with that?
    Thanks in advace and any answer will be appreciated.
    Regards
    Jignesh
    Edited by: Jignesh Patel on Jun 12, 2008 12:22 PM

    Hi Jignseh,
    The codes are not stored in any table, they are stored as cluster.
    To read the code, you can use READ REPORT.
    But there you must provide the Include Name
    For Example , If you want to read the code of READ_TEXT,
    READ REPORT 'LSTXDU01'.
    You can get this include name inside include LSTXDUXX
    Use "GET_INCLUDES" to get all include names
    Edited by: Swastik Bharati on Jun 12, 2008 12:28 PM

  • Include table

    Is there any database table so that we can find the standard includes that we are used in the program?

    1)FM - GET_INCLUDES
    2)table D010INC u can find the include used in a program
    3) FM - RS_GET_ALL_INCLUDES_FOR_PRTAB
    reward if helpfull
    amit

  • My first Code Inspector extension

    I'm trying to write my first own extension of Code Inspector. I don't like to discover again new wheel so I'm asking You:
    Is in ABAP any test which check how long is procedure (how many lines is beetwene FORM ENDFORM statement?) which return warnings when length is just a little bit to big and errors when exceed a lot maximum length?
    <b>I'm only interesting that is already in SAP this kind of test.</b>
    Cheers, Tomek

    Hello Thomasz,
    you will see all SAP checks when starting SCI. Only with the newer releases there is a check on program metrics.
    Regards,
      Klaus
    <b>Documentation</b>
    Determining Complexity of Procedures in ABAP Programs
    The check calculates different complexity measurements for procedures in ABAP programs. These measurements are:
    Number of Statements. Cyclical complexity. Here there is also the variant through a test parameter as to whether a CASE statement is treated as a simple or multiple branch.
    Number of Versions. This measurement can only be determined in the original system of the respective program since these versions are only there.
    In the results display, there is only one single information message. The results list is displayed when you double-click this message. In this list, the above-mentioned complexity measurements are specified after the procedure type and the procedure name. In addition, the Include and the line where the respective procedure begins are displayed. By double-clicking here, you can branch to the source code. The list can be sorted, as usual, by any column you wish. In addition, the standard procedures for exporting (for example, to Excel) are provided.
    The test specifies the various procedure types in the  results list in the following manner:
    METH : Methods
    FORM: Forms
    FUNC: Function modules
    MOD: Modules
    STAS: START-OF-SELECTION event
    TOPS: TOP-OF-PAGE event
    <b>Some code excerpt</b>
    method RUN .
      data:
        L_EXCP  type ref to CX_EXCEPTION,
        L_NAME  type STRING,
        L_CLASS type STRING.
      if REF_SCAN is initial.
        check GET( ) = 'X'.
      endif.
      check REF_SCAN->SUBRC = 0.
      if PA_VERSION = 'X'.
        GET_PROC_VERSIONS( ).
      endif.
      STATEMENT_INDEX = 1.
      try.
          do.
            read table REF_SCAN->STATEMENTS index STATEMENT_INDEX into STATEMENT_WA.
            if SY-SUBRC <> 0. exit. endif.
            add 1 to STATEMENT_INDEX.
            check STATEMENT_WA-FROM <= STATEMENT_WA-TO.
    *-- avoid native SQL
            check STATEMENT_WA-TYPE na 'EMPSDR'.
            case KEYWORD( ).
              when 'PROGRAM'
                or 'REPORT'
                or 'START-OF-SELECTION'.
                CHECK( P_PROC_TYPE = 'SSEL' P_PROC_NAME = '%' ).
              when 'END-OF-SELECTION'.
                CHECK( P_PROC_TYPE = 'ESEL' P_PROC_NAME = '%' ).
              when 'FORM'.
                L_NAME = GET_TOKEN_REL( 2 ).
                CHECK( P_PROC_TYPE = 'FORM' P_PROC_NAME = L_NAME ).
              when 'FUNCTION'.
                L_NAME = GET_TOKEN_REL( 2 ).
                CHECK( P_PROC_TYPE = 'FUNC' P_PROC_NAME = L_NAME  ).
              when 'METHOD'.
                L_NAME = GET_TOKEN_REL( 2 ).
                concatenate L_CLASS '=>' L_NAME into L_NAME.
                CHECK( P_PROC_TYPE = 'METH' P_PROC_NAME = L_NAME  ).
              when 'MODULE'.
                L_NAME = GET_TOKEN_REL( 2 ).
                if GET_TOKEN_REL( 3 ) = 'OUTPUT'.
                  CHECK( P_PROC_TYPE = 'MODO' P_PROC_NAME = L_NAME ).
                else.
                  CHECK( P_PROC_TYPE = 'MODI' P_PROC_NAME = L_NAME ).
                endif.
              when 'CLASS'.
                L_CLASS = GET_TOKEN_REL( 2 ).
              when 'INITIALIZATION'.
                CHECK( P_PROC_TYPE = 'INIT' P_PROC_NAME = '%' ).
              when 'GET'.
                L_NAME = GET_TOKEN_REL( 2 ).
                if  GET_TOKEN_REL( 3 ) = 'LATE'.
                  CHECK( P_PROC_TYPE = 'GETL' P_PROC_NAME = L_NAME ).
                else.
                  CHECK( P_PROC_TYPE = 'GET' P_PROC_NAME = L_NAME ).
                endif.
              when 'AT'.
                L_NAME = GET_TOKEN_REL( 2 ).
                if strlen( L_NAME ) > 2 and L_NAME(2) = 'PF'.
                  L_NAME = L_NAME+2.
                  CHECK( P_PROC_TYPE = 'ATPF' P_PROC_NAME = L_NAME ).
                else.
                  case L_NAME.
                    when 'USER-COMMAND'.
                      CHECK( P_PROC_TYPE = 'ATUC' P_PROC_NAME = '%' ).
                    when 'LINE-SELECTION'.
                      CHECK( P_PROC_TYPE = 'LISE' P_PROC_NAME = '%' ).
                    when 'SELECTION-SCREEN'.
                      L_NAME = GET_TOKEN_REL( 3 ).
                      if L_NAME is initial.
                        CHECK( P_PROC_TYPE = 'ATSS' P_PROC_NAME = '%' ).
                      else.
                        CHECK( P_PROC_TYPE = 'ATSS' P_PROC_NAME = L_NAME ).
                      endif.
                  endcase.
                endif.
              when 'TOP-OF-PAGE'.
                if GET_TOKEN_REL( 2 ) = 'DURING'.
                  CHECK( P_PROC_TYPE = 'TOPS' P_PROC_NAME = '%' ).
                else.
                  CHECK( P_PROC_TYPE = 'TOPA' P_PROC_NAME = '%' ).
                endif.
              when 'END-OF-PAGE'.
                CHECK( P_PROC_TYPE = 'ENPA' P_PROC_NAME = '%' ).
              when 'LOAD-OF-PROGRAM'.
                CHECK( P_PROC_TYPE = 'LDPR' P_PROC_NAME = '%' ).
            endcase.
          enddo.
        catch CX_EXCEPTION into L_EXCP.
          raise event MESSAGE exporting
                     P_SUB_OBJ_TYPE = C_TYPE_INCLUDE
                     P_SUB_OBJ_NAME = L_EXCP->INCLUDE
                     P_LINE         = L_EXCP->LINE
                     P_COLUMN       = L_EXCP->COLUMN
                     P_KIND         = C_WARNING
                     P_TEST         = C_MY_NAME
                     P_CODE         = 'SYNTAX'.
      endtry.
    endmethod.
    method CHECK .
      data:
        L_INCLUDE      type PROGRAM,
        L_LINE         type I,
        L_COLUMN       type TOKEN_COL,
        L_COMPLEXITY   type I value 1,
        L_STMNTS       type I,
        L_VERSIONS     type I,
        L_COMPLEXITY_C type SYCHAR10,
        L_STMNTS_C     type SYCHAR10,
        L_VERSIONS_C   type SYCHAR10,
        L_NESTED_C     type SYCHAR10,
        L_PARAM_1      type STRING,
        L_TOKEN        type STRING,
        L_PROC_VERSION like line of PROC_VERSIONS,
        L_NESTED       type I,
        L_MAX_NESTED   type I.
      L_INCLUDE = GET_INCLUDE( ).
      L_LINE    = TOKEN_WA-ROW.
      L_COLUMN  = TOKEN_WA-COL.
      do.
        read table REF_SCAN->STATEMENTS index STATEMENT_INDEX into STATEMENT_WA.
        if SY-SUBRC <> 0.
          exit.
        endif.
        add 1 to STATEMENT_INDEX.
        check STATEMENT_WA-FROM <= STATEMENT_WA-TO.
        check STATEMENT_WA-TYPE na 'PS'.
    *-- avoid native SQL
    *  check STATEMENT_WA-TYPE na 'EMDR'.
        case KEYWORD( ).
          when 'IF' or 'WHILE' or 'LOOP' or 'DO' or 'PROVIDE'.
            if TOKEN_WA-ROW <> 0.
              add 1 to L_COMPLEXITY.
              add 1 to L_NESTED.
              if L_NESTED > L_MAX_NESTED.
                L_MAX_NESTED = L_NESTED.
              endif.
            endif.
          when 'ELSEIF'.
            if TOKEN_WA-ROW <> 0.
              add 1 to L_COMPLEXITY.
            endif.
          when 'ENDIF' or 'ENDWHILE' or 'ENDLOOP' or 'ENDDO' or 'ENDTRY'.
            subtract 1 from L_NESTED.
          when 'TRY'.
            add 1 to L_NESTED.
            if L_NESTED > L_MAX_NESTED.
              L_MAX_NESTED = L_NESTED.
            endif.
          when 'SELECT'.
          when 'ENDSELECT'.
            if TOKEN_WA-ROW <> 0.
              add 1 to L_COMPLEXITY.
              add 1 to L_NESTED.
              if L_NESTED > L_MAX_NESTED.
                L_MAX_NESTED = L_NESTED.
              endif.
              subtract 1 from L_NESTED.
            endif.
          when 'CHECK'.
            if TOKEN_WA-ROW <> 0.
              add 1 to L_COMPLEXITY.
            endif.
          when 'CASE'.
            if PA_WITH_CASE = 'X'.
              add 1 to L_COMPLEXITY.
            endif.
            add 1 to L_NESTED.
            if L_NESTED > L_MAX_NESTED.
              L_MAX_NESTED = L_NESTED.
            endif.
          when 'ENDCASE'.
            subtract 1 from L_NESTED.
          when 'WHEN'.
            if PA_WITH_CASE <> 'X' and TOKEN_WA-ROW <> 0.
              if GET_TOKEN_REL( 2 ) <> 'OTHERS'.
                add 1 to L_COMPLEXITY.
              endif.
            endif.
          when 'ENDFORM' or 'ENDFUNCTION' or 'ENDMETHOD' or 'ENDMODULE'.
            exit.
          when 'FORM'
            or 'FUNCTION'
            or 'MODULE'
            or 'START-OF-SELECTION'
            or 'END-OF-SELECTION'
            or 'TOP-OF-PAGE'
            or 'END-OF-PAGE'
            or 'LOAD-OF-PROGRAM'
            or 'INITIALIZATION'
            or 'CLASS'.
            subtract 1 from STATEMENT_INDEX.
            exit.
          when 'GET'.
            if GET_TOKEN_REL( 2 ) <> 'TIME'.
              case GET_TOKEN_REL( 3 ).
                when 'LATE' or 'FIELDS' or ''.
                  subtract 1 from STATEMENT_INDEX.
                  exit.
              endcase.
            endif.
          when 'AT'.
            L_TOKEN = GET_TOKEN_REL( 2 ).
            if strlen( L_TOKEN ) > 2 and L_TOKEN(2) = 'PF'.
              subtract 1 from STATEMENT_INDEX.
              exit.
            else.
              case L_TOKEN.
                when 'USER-COMMAND'.
                  subtract 1 from STATEMENT_INDEX.
                  exit.
                when 'LINE-SELECTION'.
                  subtract 1 from STATEMENT_INDEX.
                  exit.
                when 'SELECTION-SCREEN'.
                  subtract 1 from STATEMENT_INDEX.
                  exit.
              endcase.
            endif.
            add 1 to L_NESTED.
            if L_NESTED > L_MAX_NESTED.
              L_MAX_NESTED = L_NESTED.
            endif.
            add 1 to L_COMPLEXITY.
          when 'ENDAT'.
            subtract 1 from L_NESTED.
        endcase.
        if PA_VERSION = 'X'.
          loop at REF_SCAN->TOKENS from STATEMENT_WA-FROM to STATEMENT_WA-TO into TOKEN_WA.
            check TOKEN_WA-ROW <> 0.
            CL_CI_PROVIDE_CHECKSUM=>GEN_CHKSUM_FROM_STRING( exporting P_PARAM     = TOKEN_WA-STR
                                                            changing  P_CRC_VALUE = L_PROC_VERSION-CRC ).
          endloop.
        endif.
        add 1 to L_STMNTS.
      enddo.
      L_PROC_VERSION-PROC_TYPE = P_PROC_TYPE.
      L_PROC_VERSION-PROC_NAME = P_PROC_NAME.
      collect L_PROC_VERSION into PROC_VERSIONS.
      loop at PROC_VERSIONS transporting no fields where PROC_TYPE = P_PROC_TYPE and PROC_NAME = P_PROC_NAME.
        add 1 to L_VERSIONS.
      endloop.
      L_COMPLEXITY_C = L_COMPLEXITY.
      L_NESTED_C     = L_MAX_NESTED.
      L_STMNTS_C     = L_STMNTS.
      L_VERSIONS_C   = L_VERSIONS.
      concatenate P_PROC_TYPE P_PROC_NAME L_STMNTS_C L_COMPLEXITY_C L_NESTED_C L_VERSIONS_C into L_PARAM_1 separated by ' '.
      condense L_PARAM_1.
      raise event MESSAGE exporting
                      P_SUB_OBJ_TYPE = C_TYPE_INCLUDE
                      P_SUB_OBJ_NAME = L_INCLUDE
                      P_LINE         = L_LINE
                      P_COLUMN       = L_COLUMN
                      P_KIND         = C_NOTE
                      P_TEST         = C_MY_NAME
                      P_CODE         = C_CODE_SUMMARY
                      P_PARAM_1      = L_PARAM_1.
      if L_COMPLEXITY >= PA_COMPLEXITY.
        raise event MESSAGE exporting
                      P_SUB_OBJ_TYPE = C_TYPE_INCLUDE
                      P_SUB_OBJ_NAME = L_INCLUDE
                      P_LINE         = L_LINE
                      P_COLUMN       = L_COLUMN
                      P_KIND         = C_WARNING
                      P_TEST         = C_MY_NAME
                      P_CODE         = C_CODE_COMPLEXITY
                      P_PARAM_1      = L_COMPLEXITY_C.
      endif.
      if L_STMNTS >= PA_STMNTS.
        raise event MESSAGE exporting
                      P_SUB_OBJ_TYPE = C_TYPE_INCLUDE
                      P_SUB_OBJ_NAME = L_INCLUDE
                      P_LINE         = L_LINE
                      P_COLUMN       = L_COLUMN
                      P_KIND         = C_WARNING
                      P_TEST         = C_MY_NAME
                      P_CODE         = C_CODE_STMNTS
                      P_PARAM_1      = L_STMNTS_C.
      endif.
      if L_NESTED >= PA_NESTED.
        raise event MESSAGE exporting
                      P_SUB_OBJ_TYPE = C_TYPE_INCLUDE
                      P_SUB_OBJ_NAME = L_INCLUDE
                      P_LINE         = L_LINE
                      P_COLUMN       = L_COLUMN
                      P_KIND         = C_WARNING
                      P_TEST         = C_MY_NAME
                      P_CODE         = C_CODE_NESTED
                      P_PARAM_1      = L_NESTED_C.
      endif.
      if L_VERSIONS >= PA_VERSIONS.
        raise event MESSAGE exporting
                      P_SUB_OBJ_TYPE = C_TYPE_INCLUDE
                      P_SUB_OBJ_NAME = L_INCLUDE
                      P_LINE         = L_LINE
                      P_COLUMN       = L_COLUMN
                      P_KIND         = C_WARNING
                      P_TEST         = C_MY_NAME
                      P_CODE         = C_CODE_VERSIONS
                      P_PARAM_1      = L_VERSIONS_C.
      endif.
    endmethod.

  • CMake behaves differently from within PKGBUILD and from command line

    Hi,
    I am currently struggling with an issue which I cannot find a solution. The problem is, I am trying to create a PKGBUILD for the CasADi code. The following is the PKGBUILD file written. My problem is the cmake configuration part. When the code is configured from the command line, without PKGBUILD, camke detects the -fopenmp flag for C and C++ compilers. For exactly the same compilers, cmake detects openmp for C compiler but fails to do so for the C++ compiler, when configuration is done from within the PKGBUILD file using makepkg.
    My question is, why different behaviors? Any suggestions on what is wrong?
    pkgname=casadi-git
    pkgver=0
    pkgrel=1
    pkgdesc="A symbolic framework for automatic differentiation and numeric optimization"
    arch=('i686' 'x86_64')
    url=""
    license=('GPL')
    groups=()
    depends=('sundials' 'ipopt' 'blas' 'lapack' 'python2')
    makedepends=('cmake' 'swig')
    checkdepends=()
    optdepends=()
    provides=('casadi')
    conflicts=()
    replaces=()
    backup=()
    options=()
    install=
    changelog=
    source=('casadi::git+https://github.com/casadi/casadi.git')
    md5sums='SKIP'
    build() {
    cd "$srcdir/casadi"
    sed -i 's/PythonLibs/PythonLibs 2.7/g' ./cmake_modules/FindNUMPY.cmake ./swig/CMakeLists.txt
    cmake . -DCMAKE_INSTALL_PREFIX=/usr \
    -DPYTHON_EXECUTABLE=/usr/bin/python2 \
    -DWITH_DL:BOOL=ON \
    -DWITH_LLVM:BOOL=OFF \
    -DWITH_PYTHON_INTERRUPTS:BOOL=ON \
    -DWITH_OPENMP:BOOL=ON \
    -DWITH_OOQP:BOOL=ON \
    -DWITH_DOC:BOOL=ON \
    -DWITH_OPENCL:BOOL=OFF
    make
    package() {
    cd "$srcdir/casadi"
    make DESTDIR="$pkgdir/" install
    Output when cmake is run from command line
    -- The C compiler identification is GNU 4.8.1
    -- The CXX compiler identification is GNU 4.8.1
    -- Check for working C compiler: /usr/bin/colorgcc
    -- Check for working C compiler: /usr/bin/colorgcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- The Fortran compiler identification is GNU
    -- Check for working Fortran compiler: /usr/bin/gfortran
    -- Check for working Fortran compiler: /usr/bin/gfortran -- works
    -- Detecting Fortran compiler ABI info
    -- Detecting Fortran compiler ABI info - done
    -- Checking whether /usr/bin/gfortran supports Fortran 90
    -- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
    -- Flag needed for enabling C++11 features: -std=gnu++11
    -- x86_64 architecture detected - setting flag -fPIC
    -- Try OpenMP C flag = [-fopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Success
    -- Try OpenMP CXX flag = [-fopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Success
    -- Found OpenMP: -fopenmp
    -- Looking for Fortran sgemm
    -- Looking for Fortran sgemm - found
    -- Looking for include file pthread.h
    -- Looking for include file pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - found
    -- Found Threads: TRUE
    -- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.1")
    -- A library with BLAS API found.
    -- Looking for Fortran cheev
    -- Looking for Fortran cheev - found
    -- A library with LAPACK API found.
    -- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
    -- checking for one of the modules 'ipopt'
    -- Detected an IPOPT configuration without development headers. Build will proceed, but without callback functionality. To enable it, see https://github.com/casadi/casadi/wiki/enableIpoptCallback
    -- Detected an IPOPT configuration without sIPOPT headers. Build will proceed, but without sIPOPT functionality.
    -- Found IPOPT: ipopt;lapack;blas;m;dl;coinmumps;pthread;blas;gfortran;m;gcc_s;quadmath;coinmetis
    -- Could not find KNITRO include dir
    -- Could not find KNITRO library
    -- Could not find CPLEX include dir
    -- Could not find CPLEX libraries
    -- Could not find MA57
    -- MA57 libraries not found. Falling back to MA27
    -- Could not find MA27
    -- Could not find OOQP include dir
    -- Could not find SNOPT include dir
    -- Found Snopt libs: /usr/lib64/libf2c.a;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
    -- Could not find MATLAB include dir
    -- Could not find Matlab libs
    -- Could not find SNOPT include dir
    -- Found Snopt libs: /usr/lib64/libf2c.a;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
    -- Could not find MATLAB include dir
    -- Could not find Matlab libs
    -- Found SWIG: /usr/bin/swig (found version "2.0.10")
    -- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version "2.7.5", minimum required is "2.7")
    -- Python executable is /home/hamid/bin/python
    -- numpy.get_include() is /usr/lib/python2.7/site-packages/numpy/core/include
    -- Numpy path found: /usr/include/python2.7/numpy
    -- Python libs: /usr/lib64/libpython2.7.so
    -- Numpy includes: /usr/include/python2.7/numpy;/usr/include
    -- Numpy libs: /usr/lib64/python2.7/site-packages/numpy/core/multiarray.so
    -- Found PythonInterp: /home/hamid/bin/python (found version "2.7.5")
    -- Found Doxygen: /usr/bin/doxygen (found version "1.8.4")
    -- Found DOXYFILE_IN: /usr/src/AUR/build/casadi/src/casadi/documentation/api-doc/Doxyfile.in
    -- pyreport not found -- try 'easy_install pyreport'
    -- The following features have been enabled:
    * dynamic-loading , Compile with support for dynamic loading of generated functions (needed for ExternalFunction)
    * using-c++11 , Using C++11 features (improves efficiency and is required for some examples).
    * sundials-interface , Interface to the ODE/DAE integrator suite SUNDIALS.
    * csparse-interface , Interface to the sparse direct linear solver CSparse.
    * lapack-interface , Interface to LAPACK.
    * ipopt-interface , Interface to the NLP solver Ipopt.
    * qpoases-interface , Interface to the active-set QP solver qpOASES.
    * dsdp-interface , Interface to the interior point SDP solver DSDP (requires BLAS and LAPACK).
    -- The following OPTIONAL packages have been found:
    * OpenMP
    * LibXml2
    * BLAS
    * Threads
    * LAPACK
    * PkgConfig
    * IPOPT
    * SWIG
    * NUMPY
    * PythonInterp
    * Doxygen
    -- The following features have been disabled:
    * just-in-time , Just-in-time compiliation via the LLVM compiler framework.
    * opencl-support , Enable just-in-time compiliation to CPUs and GPUs with OpenCL.
    * get-ipopt , Download and build Ipopt.
    * knitro-interface , Interface to the NLP solver KNITRO.
    * cplex-interface , Interface to the QP solver CPLEX.
    * ooqp-interface , Interface to the QP solver OOQP (requires BLAS).
    * worhp-inteface , Interface to the NLP solver Worhp (requires LibXml2 headers).
    -- The following OPTIONAL packages have not been found:
    * KNITRO
    * CPLEX
    * MA57
    * MA27
    * OOQP
    * MATLAB
    * OCTAVE
    * LATEX
    * PYREPORT
    -- Configuring done
    -- Generating done
    Output when running makepkg
    -- The C compiler identification is GNU 4.8.1
    -- The CXX compiler identification is GNU 4.8.1
    -- Check for working C compiler: /usr/bin/colorgcc
    -- Check for working C compiler: /usr/bin/colorgcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- The Fortran compiler identification is GNU
    -- Check for working Fortran compiler: /usr/bin/gfortran
    -- Check for working Fortran compiler: /usr/bin/gfortran -- works
    -- Detecting Fortran compiler ABI info
    -- Detecting Fortran compiler ABI info - done
    -- Checking whether /usr/bin/gfortran supports Fortran 90
    -- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
    -- Flag needed for enabling C++11 features: -std=gnu++11
    -- x86_64 architecture detected - setting flag -fPIC
    -- Try OpenMP C flag = [-fopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Success
    -- Try OpenMP CXX flag = [-fopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [/openmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-Qopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-openmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [ ]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-xopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [+Oopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-qsmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-mp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Could NOT find OpenMP (missing: OpenMP_CXX_FLAGS)
    -- Looking for Fortran sgemm
    -- Looking for Fortran sgemm - found
    -- Looking for include file pthread.h
    -- Looking for include file pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - not found
    -- Looking for pthread_create in pthreads
    -- Looking for pthread_create in pthreads - not found
    -- Looking for pthread_create in pthread
    -- Looking for pthread_create in pthread - found
    -- Found Threads: TRUE
    -- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.1")
    -- A library with BLAS API found.
    -- Looking for Fortran cheev
    -- Looking for Fortran cheev - found
    -- A library with LAPACK API found.
    -- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
    -- checking for one of the modules 'ipopt'
    -- Detected an IPOPT configuration without development headers. Build will proceed, but without callback functionality. To enable it, see https://github.com/casadi/casadi/wiki/enableIpoptCallback
    -- Detected an IPOPT configuration without sIPOPT headers. Build will proceed, but without sIPOPT functionality.
    -- Found IPOPT: ipopt;lapack;blas;m;dl;coinmumps;pthread;blas;gfortran;m;gcc_s;quadmath;coinmetis
    -- Could not find KNITRO include dir
    -- Could not find KNITRO library
    -- Could not find CPLEX include dir
    -- Could not find CPLEX libraries
    -- Could not find MA57
    -- MA57 libraries not found. Falling back to MA27
    -- Could not find MA27
    -- Could not find OOQP include dir
    -- Could not find SNOPT include dir
    -- Found Snopt libs: /usr/lib64/libf2c.a;-lpthread;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
    -- Could not find MATLAB include dir
    -- Could not find Matlab libs
    -- Could not find SNOPT include dir
    -- Found Snopt libs: /usr/lib64/libf2c.a;-lpthread;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
    -- Could not find MATLAB include dir
    -- Could not find Matlab libs
    -- Found SWIG: /usr/bin/swig (found version "2.0.10")
    -- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version "2.7.5", minimum required is "2.7")
    -- Python executable is /usr/bin/python2
    -- numpy.get_include() is /usr/lib/python2.7/site-packages/numpy/core/include
    -- Numpy path found: /usr/include/python2.7/numpy
    -- Python libs: /usr/lib64/libpython2.7.so
    -- Numpy includes: /usr/include/python2.7/numpy;/usr/include
    -- Numpy libs: /usr/lib64/python2.7/site-packages/numpy/core/multiarray.so
    -- Found PythonInterp: /usr/bin/python2 (found version "2.7.5")
    -- Found Doxygen: /usr/bin/doxygen (found version "1.8.4")
    -- Found DOXYFILE_IN: /usr/src/AUR/build/casadi/src/casadi/documentation/api-doc/Doxyfile.in
    -- pyreport not found -- try 'easy_install pyreport'
    -- The following features have been enabled:
    * dynamic-loading , Compile with support for dynamic loading of generated functions (needed for ExternalFunction)
    * using-c++11 , Using C++11 features (improves efficiency and is required for some examples).
    * sundials-interface , Interface to the ODE/DAE integrator suite SUNDIALS.
    * csparse-interface , Interface to the sparse direct linear solver CSparse.
    * lapack-interface , Interface to LAPACK.
    * ipopt-interface , Interface to the NLP solver Ipopt.
    * qpoases-interface , Interface to the active-set QP solver qpOASES.
    * dsdp-interface , Interface to the interior point SDP solver DSDP (requires BLAS and LAPACK).
    -- The following OPTIONAL packages have been found:
    * LibXml2
    * BLAS
    * Threads
    * LAPACK
    * PkgConfig
    * IPOPT
    * SWIG
    * NUMPY
    * PythonInterp
    * Doxygen
    -- The following features have been disabled:
    * just-in-time , Just-in-time compiliation via the LLVM compiler framework.
    * opencl-support , Enable just-in-time compiliation to CPUs and GPUs with OpenCL.
    * get-ipopt , Download and build Ipopt.
    * knitro-interface , Interface to the NLP solver KNITRO.
    * cplex-interface , Interface to the QP solver CPLEX.
    * ooqp-interface , Interface to the QP solver OOQP (requires BLAS).
    * worhp-inteface , Interface to the NLP solver Worhp (requires LibXml2 headers).
    -- The following OPTIONAL packages have not been found:
    * OpenMP
    * KNITRO
    * CPLEX
    * MA57
    * MA27
    * OOQP
    * MATLAB
    * OCTAVE
    * LATEX
    * PYREPORT
    -- Configuring done
    -- Generating done

    With a little creativity, you can actually do all that from the command line with a single command. It'll look a little crazy, but it can be done.
    Whether the script exists on the local machine or not has zero to do with platform indpendence. You assumedly have to get the application onto the local machine, so including the script is not really an issue at all. However, you're talking about system independence, yet still wishing to run command line arguments? The two are mutually exclusive.

  • Show lock entries of a program / include

    Hi abap-comunity,
    before editing a customer-program i want to know whether there are lock entries, no matter which include is involved. Of course i could check each include used in the program separately by checking the version-management functionality. The question is, is there a quicker and more comfortable way?
    I wonder, if anyone knows? For sure......
    Thanks in advance! Looking forward to your reply.
    Gunther

    Hi Gunther,
    adding to what Naredran said:
    You may use function module to get the includes:
          call function 'GET_INCLUDES'
               exporting
                    progname = irdir-name
               tables
                    incltab  = itab_ii.
    You may write a small program:
    Select programs from TRDIR or TADIR
    get includes using FM
    get transport requests for all objects from E071.
    Check Release status (and user) of transports in E070.
    Regards,
    Clemens

  • Apache2 reload error

    when I run the following command to reload the apache,
    /usr/sbin/rcapache2 graceful
    Im getting following error.
    Reload httpd2 (graceful restart)
    /usr/sbin/rcapache2: line 209: 29865 User defined signal 1 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -t
    The command line was:
    /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
    [1A..unused
    Completed at 8/2/2009 5:16 PM
    Any ideas. Thanks

    Thanks for your reply. here is the output you requested...
    APACHE_MPM=prefork
    + '[' -x /usr/sbin/httpd2-prefork ']'
    + action=graceful
    + case "$action" in
    + shift
    + get_server_flags
    + unset server_flags
    + case "$action" in
    + false
    + /usr/share/apache2/get_module_list
    + export get_module_list_done=true
    + get_module_list_done=true
    + false
    + /usr/share/apache2/get_includes
    + export get_includes_done=true
    + get_includes_done=true
    + case "$action" in
    + echo -n 'Reload httpd2 (graceful restart)'
    Reload httpd2 (graceful restart)++ echo /usr/sbin/httpd2-prefork -f /etc/apache2 /httpd.conf
    + cmdline='/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf'
    + eval /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -t
    + killproc -USR1 /usr/sbin/httpd2-prefork
    + rc_status -v
    + rc_check
    + _rc_status_ret=0
    + test 0 -eq 0
    + test 0 -eq 0
    + return
    + test 0 -gt 7
    + _rc_status_ret=0
    + case "$_rc_todo" in
    + local i
    + for i in '"$@"'
    + case "$i" in
    + local vrt=
    + local out=1
    + local opt=en
    + test -n ''
    + opt=e
    + case "$_rc_status" in
    + vrt=' done'
    + echo -e '' done
    done
    + _rc_status=0
    + return 0
    + rc_exit
    + exit 0
    we are running 2.2.3. Thanks

Maybe you are looking for