jueves, 17 de diciembre de 2015

ABAP 7.5 Was Launched

Les compartimos este artículo relacionado con el lanzamiento de ABAP 7.5 ( Ver artículo )

miércoles, 16 de diciembre de 2015

ABAP Questions For Test Yor Knowledgement Part 1

001. Which of the following tasks does the BADI implementing class perform?

A. Filtering
B. Sequencing
C. Inserting
D. Deleting

002. What can you create using the ABAP Dictionary? (Choose three)


A. Domains
B. Type pools
C. Transparent tables

D. Field symbols
E. Internal tables

 
003. What features are provided by the database interface? (Choose three)


A. Database independence of application programs
B. Conversion of Open SQL statements from ABAP statements into the corresponding database statements

C. Syntax check of Native SQL commands
D. Access to SAP table buffers
E. Data consistency check using foreign key relationships


004. Which statements are allowed for processing internal tables? (Choose three)


A. SELECT
B. INSERT
C. DELETE
D. MODIFY

E. UPDATE


005. You always want to check the user authorization for data entered in an input field of a selection screen.
Where do you do this?


A. In the event block AT SELECTION-SCREEN
B. In the event block AT SELECTION-SCREEN OUTPUT
C. In the event block INITIALIZATION
D. In the event block AT SELECTION-SCREEN on VALUE-REQUEST

 
006. What can you use to achieve polymorphism?


A. Events
B. Subroutines
C. Inheritance
D. Reports

 
007. What happens when an authorization check fails?


A. The program is terminated.
B. The system field SY-SUBRC is set to a value other than zero.
C. A type E message is displayed.
D. A CX_AUTH_FAILED type exception is raised.

 
008. Which parameter types can be used in the signature of a functional method? (Choose two)


A. EXPORTING
B. IMPORTING
C. RETURNING

D. CHANGING

 
009. You are establishing the business logic layer for a Web Dynpro Component. Which service types are available in the Service Call wizard? (Choose three)


A. Transaction code
B. Web service proxy
C. Class method
D. Function module

E. Function group

 
010. Which of the following predefined ABAP types is incomplete?


A. F
B. P
C. XSTRING
D. STRING

martes, 15 de diciembre de 2015

viernes, 11 de diciembre de 2015

jueves, 10 de diciembre de 2015

Ejecutar Transacciones Sin Autorización ( Programa )

En días pasados publicamos una entrada en donde indicamos la manera de ejecutar transacciones sobre las cuales no poseíamos autorización ( Ver artículo aquí ). El día de hoy traemos este pequeño programa que enmascara el llamado al módulo de función RS_HDSYS_CALL_TC_VARIANT  y permite ejecutar transaciones para las cuales no poseemos autorización, de una manera fácil.

Programa principal

*----------------------------------------------------------------------*
* General Information
*----------------------------------------------------------------------*
* Program     : YTUTOABAP_001
* Description : Execute TCODE Without Authorization
*----------------------------------------------------------------------*


*----------------------------------------------------------------------*
* Program Flow
*----------------------------------------------------------------------*
REPORT  YTUTOABAP_001.

*----------------------------------------------------------------------*
* Includes
*----------------------------------------------------------------------*
INCLUDE YTUTOABAP_001V.
INCLUDE YTUTOABAP_001F.


*----------------------------------------------------------------------*
* Event: START-OF-SELECTION
*----------------------------------------------------------------------*
START-OF-SELECTION.
  PERFORM start_of_selection.

Include de Variables

*&---------------------------------------------------------------------*
*&  Include           YTUTOABAP_001V
*&---------------------------------------------------------------------*
SELECTION-SCREEN BEGIN OF BLOCK blq1 WITH FRAME TITLE text-001.
PARAMETERS:
pa_tcode TYPE shdfv-tcode.
SELECTION-SCREEN END OF BLOCK blq1.

Include de Subrutinas

*&---------------------------------------------------------------------*
*&  Include           YTUTOABAP_001F
*&---------------------------------------------------------------------*
*&---------------------------------------------------------------------*
*&      Form  START_OF_SELECTION
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM start_of_selection .

  CALL FUNCTION 'RS_HDSYS_CALL_TC_VARIANT'
    EXPORTING
      tcode              = pa_tcode
      authority_check    = space
    EXCEPTIONS
      no_variant         = 1
      no_authority_tcode = 2
      OTHERS             = 3.

  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.



ENDFORM.                    " START_OF_SELECTION



viernes, 4 de diciembre de 2015

Modificación de Datos Mediante Transacción SE16N ( Solución Alterna )

En días pasados habíamos punlicado una entrada en donde se indicaba la manera de modificar datos de una tabla del dicccionario de datos por medio de la transacción SE16N ( Vea el artículo aquí ). Sin embargo existe otra manera de realizar esta operación de una manera un poco mas fácil. Unicamente se deben seguir los siguientes pasos:

1. Ejecutar el módulo de función SE16N_INTERFACE mediante la transacción SE37:




2. Ingresar en el parámetro I_TAB el nombre de la tabla del diccionario de datos a la cual se le desean modificar los datos. Adicionalmente, asignar el valor 'X' en los parámetros I_EDIT y I_SAPEDIT:




3. Ejecutar el módulo de función con los parámetros ingresados anteriormente. Se desplegará la interface de la transacción SE16N con las opciones de modificación habilitadas: