Ver Mensaje Individual
  #1  
Viejo 27/06/12, 13:34:44
SAPING SAPING is offline
Senior Member
 
Fecha de Ingreso: may 2010
Localización: Buenos Aires, Argentina
Mensajes: 199
Matchcode download

Buenas.
Necesito descargar un txt en el servidor y necesito un matchcode para esto...
Actualemente estoy usando este codigo:

lf_location = 'A'.

* obtengo los servidores
CALL FUNCTION 'RFC_GET_LOCAL_SERVERS'
TABLES
hosts = lt_host
EXCEPTIONS
not_available = 1
OTHERS = 2.

IF sy-subrc IS INITIAL.

* Nombre del servidor a la estructura
CLEAR lw_host.
READ TABLE lt_host INTO lw_host INDEX 1.
IF sy-subrc <> 0.

CLEAR lw_host.

ENDIF.

ENDIF.

* abro la ayuda de busqueda segun corresponda pc o servidor
CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
EXPORTING
i_location_flag = lf_location
i_server = lw_host-name
IMPORTING
o_path = pa_path2
EXCEPTIONS
rfc_error = 1
error_with_gui = 2
OTHERS = 3.
IF sy-subrc IS NOT INITIAL.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

El tema es que si o si me pide seleccionar un archivo, y yo lo que quiero es la carpeta...
Alguien sabe que funcion me permite hacer esto?.

Gracias.
Responder Con Cita