Skip to Content
0
Former Member
Jun 11, 2014 at 12:39 PM

Transfer, Problem with Network Address

21 Views

I am trying to transfer a file to the Network Address named : \\bhz-fls-nfs\MRVBH\SAP\Interfaces_DEV\HCM\KOFAX\HR_ADMISSAO\ , so i concatenate this address with the filename ( 100200023 ) and I use the following code:

OPEN DATASET p_arq FOR OUTPUT IN BINARY MODE.

IF sy-subrc NE 0.

RAISE erro_diretorio.

RETURN.

ENDIF.

TRANSFER iv_data TO p_arq.

IF sy-subrc NE 0.

CLOSE DATASET p_arq.

RAISE erro_transferencia.

ENDIF.

where p_arq is \\bhz-fls-nfs\MRVBH\SAP\Interfaces_DEV\HCM\KOFAX\HR_ADMISSAO\100200023

and iv_data is the content of file .

But, this create a file in the path ./ , named \\bhz-fls-nfs\MRVBH\SAP\Interfaces_DEV\HCM\KOFAX\HR_ADMISSAO\100200023, i need to create a file named 100200023 in the folder \\bhz-fls-nfs\MRVBH\SAP\Interfaces_DEV\HCM\KOFAX\HR_ADMISSAO\ how can i do that ?