Difference between revisions of "SAP ABAP"
From SapWiki
| Line 11: | Line 11: | ||
data gs_options like LINE OF gt_options. | data gs_options like LINE OF gt_options. | ||
| − | gs_options-text = |PERNR | + | gs_options-text = |PERNR EQ '70000000'|. |
APPEND gs_options to gt_options. | APPEND gs_options to gt_options. | ||
Revision as of 23:55, 18 June 2026
Contents
- 1 ABAP 740
- 2 Reportes
- 3 Declaraciones
- 4 Funciones
- 5 Abap Data Dictionary
- 6 Clases
- 7 Formato Excel, Cargar, Descargar, Hojas Excel, Métodos de servicio front end,etc.
- 8 Encriptación
- 9 JSON
- 10 Xslt
- 11 xstring, xtable, codepage, UTF-8, conversiones, etc.
- 12 Expresiones Regulares
- 13 Send EMAIL
- 14 UNIX(Servidor)
- 15 Smartforms, Sapscript & Adobe Forms
- 16 ALV
- 17 Dynamic Programming - Programación dinámica
- 18 HTTP (Web services, proxy, etc.)
- 19 Field Exit
- 20 Log de Aplicación (SLG0,SLG1)
- 21 Tratamiento de Textos
- 22 IDOC
- 23 LSMW
- 24 Tratamiento de archivos
- 25 Rutinas & Programas Varios
- 26 Debugger Scripting
- 27 Tips & Tricks Varios
- 28 Pseudo Comments & Pragmas
- 29 Archive Link
- 30 Enhancement
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 EQ '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.