Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Transfer, Problem with Network Address

Former Member
0 Likes
604

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 ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
565

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

1 REPLY 1
Read only

Former Member
0 Likes
566

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