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 command sy-subrc check

Former Member
0 Likes
1,267

Hi All

Just curious about this thing, I am writing internal table inside the file in the using TRANSFER command. Just wanted to know if we can check something like SY_SUBRC in the after the TRANSFER command.

I am not finding it in SAP HELP or F1 either. Is there any other way to do it.

Amol

5 REPLIES 5
Read only

Former Member
0 Likes
887

HI,

You can not use the Sy-SUBRC for Transfer command, transfer doesn't return the Sy-SUBRC

Regards

Sudheer

Read only

Former Member
0 Likes
887

If you check sy-subrc after the open and close statements, that will be sufficient.

rob

Read only

Former Member
0 Likes
887

Transfer is used to move data...It doesnot check for sy-subrc...So, u can't use sy-subrc for a transfer command...

Read only

Former Member
0 Likes
887

Hi Amol,

SY-SUBRC will not be checked for TRANSFER command

suppose say data can be empty sometimes , so if we check sy-subrc here the data may not be transferred

Read only

Former Member
0 Likes
887

Hi,

open dataset should be checked for sy-subrc .

if the file is open for input or output transfer command

will always work only exception is that user should have access

to write file or read file to application server.

REgards

amole