2007 Jun 05 3:42 AM
HI all,
I am trying to delete the dataset . but the sy-subrc is showing as 4.
Here is the code.
CONCATENATE w_f_i wa_data-uid '.txt' INTO w_f_in.
OPEN DATASET w_f_i FOR INPUT IN TEXT MODE ENCODING DEFAULT.
CLOSE DATASET w_f_i.
IF SY-SUBRC = 0.
DELETE DATASET w_f_i.
ENDIF.
ENDLOOP.
in the above code w_f_i contains the file path like :\CMR_Interface\BP\I\48058.txt.
Can anybody provide me the suggestion.
thanks in advance
KP
2007 Jun 05 3:46 AM
hi KP,
the syntax is correct. But check whether the path from which you are trying to delete the file is correct or not .
Regards,
Santosh
hi KP,
the syntax is correct. But check whether the path from which you are trying to delete the file is correct or not .
Regards,
Santosh
2007 Jun 05 3:45 AM
CONCATENATE w_f_i wa_data-uid '.txt' INTO w_f_in.
OPEN DATASET w_f_i FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF SY-SUBRC = 0.
DELETE DATASET w_f_i.
ENDIF.
CLOSE DATASET w_f_i.
see the above code
2007 Jun 05 3:46 AM
hi KP,
the syntax is correct. But check whether the path from which you are trying to delete the file is correct or not .
Regards,
Santosh
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |