on 06-09-2009 4:02 PM
Hola foro!!
Necesito saber si existe algun MF en sap para subir y cargar en una tabla interna un fichero .csv.Los campos estan delimitados por ',' o ';'.
Tengo mis dudas sin con el MF gui_upload se puede hacer, pero nose que parámetros pasarle para que me tenga en cuenta la delimitación.
Saludos, y gracias!!
Lo mas facil, es que hagas un split.
Subir fichero
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = fichero
filetype = 'ASC'
TABLES
data_tab = itab
EXCEPTIONS
conversion_error = 1
file_open_error = 2
file_read_error = 3
invalid_table_width = 4
invalid_type = 5
no_batch = 6
unknown_error = 7
OTHERS = 8.
LOOP AT itab INTO wa_itab.
SPLIT wa_itab AT ';'
INTO wa-campo1
wa-campo2....
Si no, siempre puedes utilizar el MF ALSM_EXCEL_TO_INTERNAL_TABLE.
Saludos
Alex Alvarez
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hola,
Puedes usar GUI_UPLOAD. Te permite subir datos a una tabla interna.
Espero que sirva de ayuda.
Saludos.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.