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]]==
−
==Funciones==
+
==[[SAP_ABAP_FUNCTIONS|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 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.</nowiki>
 
−
 
 
 
==[[SAP_ABAP_DICTIONARY|Abap Data Dictionary]]==
 
==[[SAP_ABAP_DICTIONARY|Abap Data Dictionary]]==
 
==[[SAP_ABAP_CLASES|Clases]]==
 
==[[SAP_ABAP_CLASES|Clases]]==

Revision as of 20:37, 19 June 2026