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: 

Excel file upload restriction

Former Member
0 Kudos

Dear,

I have developed a object which upload any type of file( mainly excel file ) form desktop.

Now i want to restrict user to upload the excel file , if that file is open in desktop.

Please give me idea how i ll solve this issue ??????

Thanks & Regards,

Ajit

4 REPLIES 4

VenkatRamesh_V
Active Contributor
0 Kudos

Hi,

If the File is Open or Kept Minimized  it will not  append in Internal Tables, for the Function Modules

TEXT_CONVERT_XLS_TO_SAP.

Regards,

Venkat.

Former Member
0 Kudos

Hi Ajit,

You need not to do any extra efforts to implement this functionality. Many FMs has this functionality.

For example :  TEXT_CONVERT_XLS_TO_SAP

This FM will not allow the user to upload any file if that file is open.

Regards,

Pankaj

philipdavy
Contributor
0 Kudos

Your question is a bit unclear.

  • As others pointed out, if the file is open, the attaching function will be disabled.
  • Do you want a pop up to happen with the reason like why it is not getting opened??

Please give us more details.

Regards,

Philip

Former Member
0 Kudos

Hi Ajith

If you use the FM-TEXT_CONVERT_XLS_TO_SAP with enabling exception, system will say clearly 'Excel file & cannot be processed'

You might tried without exception.

Still you are not clear send your requirements.

Regards,

Vadamalai A