10-22-2007 7:37 AM
Hi ,
I am doing one task ,where I need to attach a TIFF file to the workitem .
I am getting desired output while attaching the file from presentation server but While doing from application server , I am able to attach the file to corrseponding workitem but when i tried to display it ,it gives an error <b>" Operation could not be performed"</b>
So could you please help me out how to do this ?
I am using a FM "SCMS_UPLOAD" for uploading file from application server .
Is there any other way to upload or read the file .
Thanks
10-22-2007 9:50 AM
10-22-2007 9:58 AM
Hi,
Use the other FM's
'SO_OBJECT_UPLOAD'
OR
If you are trying to read the file from an SAP Application server,
1) "OPEN DATASET" to open the file,
2) "READ DATASET" to read the data into an internal table
3) "CLOSE DATASET".
OR
* Retrieve Data file from Application server(Upload from Unix)
DATA: i_file like rlgrap-filename value '/usr/sap/tmp/file.txt'.
OPEN DATASET i_file FOR INPUT IN TEXT MODE.
IF sy-subrc NE 0.
MESSAGE e999(za) WITH 'Error opening file' i_file.
ENDIF.
DO.
* Reads each line of file individually
READ DATASET i_file INTO wa_datatab.
* Perform processing here
* .....
ENDDO.
Regards,
Nandha