Difference between revisions of "SAP ABAP"

From SapWiki
Line 2: Line 2:
 
==[[SAP_ABAP_REPORT|Reportes]]==
 
==[[SAP_ABAP_REPORT|Reportes]]==
 
==[[SAP_ABAP_DECLARATIONS|Declaraciones]]==
 
==[[SAP_ABAP_DECLARATIONS|Declaraciones]]==
−
==[http://wiki.sdn.sap.com/wiki/display/ABAP/Useful+ABAP+Function+Modules Funciones ABAP]==
+
==Funciones==
 +
===[http://wiki.sdn.sap.com/wiki/display/ABAP/Useful+ABAP+Function+Modules Funciones ABAP]===
 +
===RFC_READ_TABLE===
 +
 
 +
<nowiki>data gt_data type TABLE OF TAB512.
 +
data gt_options type TABLE OF RFC_DB_OPT.
 +
 
 +
data gs_options like LINE OF gt_options.
 +
 
 +
gs_options-text = |PERNR = '70000000'|.
 +
APPEND gs_options to gt_options.
 +
 
 +
call function 'RFC_READ_TABLE'
 +
*DESTINATION 'AA1'
 +
  exporting
 +
    query_table                = 'PA0001'
 +
*  DELIMITER                  = ' '
 +
*  NO_DATA                    = ' '
 +
*  ROWSKIPS                  = 0
 +
*  ROWCOUNT                  = 0
 +
*  GET_SORTED                =
 +
*  USE_ET_DATA_4_RETURN      =
 +
* IMPORTING
 +
*  ET_DATA                    =
 +
TABLES
 +
  OPTIONS                    = gt_options
 +
*  FIELDS                    =
 +
  DATA                      = gt_data
 +
EXCEPTIONS
 +
  TABLE_NOT_AVAILABLE        = 1
 +
  TABLE_WITHOUT_DATA        = 2
 +
  OPTION_NOT_VALID          = 3
 +
  FIELD_NOT_VALID            = 4
 +
  NOT_AUTHORIZED            = 5
 +
  DATA_BUFFER_EXCEEDED      = 6
 +
  OTHERS                    = 7
 +
          .
 +
if sy-subrc <> 0.
 +
* Implement suitable error handling here
 +
endif.</nowiki>
 +
 
 
==[[SAP_ABAP_DICTIONARY|Abap Data Dictionary]]==
 
==[[SAP_ABAP_DICTIONARY|Abap Data Dictionary]]==
 
==[[SAP_ABAP_CLASES|Clases]]==
 
==[[SAP_ABAP_CLASES|Clases]]==

Revision as of 23:51, 18 June 2026

ABAP 740

Reportes

Declaraciones

Funciones

Funciones ABAP

RFC_READ_TABLE

data gt_data type TABLE OF TAB512.
data gt_options type TABLE OF RFC_DB_OPT.

data gs_options like LINE OF gt_options.

gs_options-text = |PERNR = '70000000'|.
APPEND gs_options to gt_options.

call function 'RFC_READ_TABLE'
*DESTINATION 'AA1'
  exporting
    query_table                = 'PA0001'
*   DELIMITER                  = ' '
*   NO_DATA                    = ' '
*   ROWSKIPS                   = 0
*   ROWCOUNT                   = 0
*   GET_SORTED                 =
*   USE_ET_DATA_4_RETURN       =
* IMPORTING
*   ET_DATA                    =
 TABLES
   OPTIONS                    = gt_options
*   FIELDS                     =
   DATA                       = gt_data
 EXCEPTIONS
   TABLE_NOT_AVAILABLE        = 1
   TABLE_WITHOUT_DATA         = 2
   OPTION_NOT_VALID           = 3
   FIELD_NOT_VALID            = 4
   NOT_AUTHORIZED             = 5
   DATA_BUFFER_EXCEEDED       = 6
   OTHERS                     = 7
          .
if sy-subrc <> 0.
* Implement suitable error handling here
endif.

Abap Data Dictionary

Clases

Formato Excel, Cargar, Descargar, Hojas Excel, Métodos de servicio front end,etc.

Encriptación

JSON

Xslt

xstring, xtable, codepage, UTF-8, conversiones, etc.

Expresiones Regulares

Send EMAIL

UNIX(Servidor)

Smartforms, Sapscript & Adobe Forms

ALV

Dynamic Programming - Programación dinámica

HTTP (Web services, proxy, etc.)

Field Exit

Log de Aplicación (SLG0,SLG1)

Tratamiento de Textos

IDOC

LSMW

Tratamiento de archivos

Rutinas & Programas Varios

Debugger Scripting

Tips & Tricks Varios

Pseudo Comments & Pragmas

Archive Link

Enhancement