2014 Jun 11 1:39 PM
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 ?
2014 Jun 11 1:44 PM
Hi,
Your OPEN DATASET...TRANSFER commands operate at the O/S level where your SAP application is running. So, you can't assume that at this level it knows where \\bhz-fls-nfs is (particularly as you seem to be running on UNIX).
So, this is more a Basis question than one of ABAP development, in terms of understanding what is needed to write from your SAP O/S to this network location.
Regards,
Nick
Hi,
Your OPEN DATASET...TRANSFER commands operate at the O/S level where your SAP application is running. So, you can't assume that at this level it knows where \\bhz-fls-nfs is (particularly as you seem to be running on UNIX).
So, this is more a Basis question than one of ABAP development, in terms of understanding what is needed to write from your SAP O/S to this network location.
Regards,
Nick
2014 Jun 11 1:44 PM
Hi,
Your OPEN DATASET...TRANSFER commands operate at the O/S level where your SAP application is running. So, you can't assume that at this level it knows where \\bhz-fls-nfs is (particularly as you seem to be running on UNIX).
So, this is more a Basis question than one of ABAP development, in terms of understanding what is needed to write from your SAP O/S to this network location.
Regards,
Nick
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |