Avalados por :
"-Início-----------------------------------------------------------------
Report Z_CSV_LOAD.
"-Variáveis-----------------------------------------------------------
Data CSV Type Ref To Z_CSV_IMPORT.
"-Principal------------------------------------------------------------
Delete From SFLIGHT.
Commit Work.
Create Object CSV.
CSV->Load_CSV_File( 'C:\Dummy\sflight.csv' ).
CSV->Transform_CSV_Data( 'SFLIGHT' ).
CSV->Get_CSV_Data( 'SFLIGHT' ).
"-Fim--------------------------------------------------------------------
"-Início-----------------------------------------------------------------
Class Z_CSV_IMPORT Definition Public Final Create Public .
Public Section.
Methods Constructor.
Methods LOAD_CSV_FILE
Importing
Value(I_FILENAME) Type String.
Methods TRANSFORM_CSV_DATA
Importing
Value(I_TABLENAME) Type String.
Methods GET_CSV_DATA
Importing
Value(I_TABLENAME) Type String.
Protected Section.
Data G_CSV_DATA type STRINGTAB .
Data G_ERROR_FLAG type ABAP_BOOL value ABAP_FALSE.
Data G_TAB_FIELDS Type Standard Table Of String .
Private
contacto@primeinstitute.com
(+51) 1641 9379
(+57) 1489 6964
© 2024 Copyright. Todos los derechos reservados.
Desarrollado por Prime Institute