CF_ASIT_CLASSIC - ASIT Factory for Classic Accesses
SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up ABAP Short ReferenceThis documentation is copyright by SAP AG.
Functionality
Through factory class CF_ASIT_CLASSIC you obtain iterators with which you can access Archive InformationSystem data. It was designed in such a way that it is relatively easy to replace accesses via the AS_API_READ and AS_API_SYSTEM_SELECT function modules, with an iterator solution.
The main advantage of the iterator solution is that the Archive Information System delivers each recordindividually and that the calling program can decide for itself when a sufficient number of results have been delivered.
Relationships
Example
The following coding can be implemented to read a maximum number of n entries from infostructure SAP_BC_SBOOK01.
DATA: l_iterator TYPE REF TO if_as_iterator,
lt_arkey TYPE TABLE OF aind_arkey,
l_arkey TYPE aind_arkey.
l_iterator = cf_asit_classic=>create_from_infostruc(
im_infostruc = 'SAP_BC_SBOOK01' ).
TRY.
DO n TIMES.
CALL METHOD l_iterator->next
IMPORTING
ex_result = l_arkey.
APPEND l_arkey TO lt_arkey.
ENDDO.
CATCH cx_asit_end.
ENDTRY.
l_iterator->close( ).
Notes
Further information
For more information about access to the Archive Information System see the documentation of the functiongroup AS_API. The method CF_ASIT_CLASSIC=>CREATE_FROM_INFOSTRUC corresponds to the function module AS_API_SYSTEM_SELECT, the method CF_ASIT_CLASSIC=>CREATE_FROM_FIELDCAT to function module AS_API_READ.
CPI1466 during Backup ROGBILLS - Synchronize billing plans
This documentation is copyright by SAP AG.
Length: 2218 Date: 20120526 Time: 075250 triton ( 79 ms )






