Application Development 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: 

Error while displaying the attached file

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

Hi Experts

Any idea how to solve this error ?

Former Member
0 Kudos

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