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

Put Password to Excel File - SO_DOCUMENT_SEND_API1

Former Member
0 Likes
451

Hi,

I am using function module SO_DOCUMENT_SEND_API1 to send XLS file as attachment. Now my requirement is to put password to excel file. Is there is any parameter in SO_DOCUMENT_SEND_API1 where I can set password to excel file generated.

Thanks.

Vimal

Hi,

I am using function module SO_DOCUMENT_SEND_API1 to send XLS file as attachment. Now my requirement is to put password to excel file. Is there is any parameter in SO_DOCUMENT_SEND_API1 where I can set password to excel file generated.

Thanks.

Vimal

1 REPLY 1
Read only

jordi_escodaruiz
Active Participant
0 Likes
339

Dear Nair:

You have to save you excel with password, in this way:

CALL METHOD OF mysheet 'SAVEAS' EXPORTING #1 = u2018C:\Excel.xlsu2019
                      #2 = -4143 #3 = u2018MyPasswordu2019 #4 = u2018MyPasswordu2019.

Pls reward if helpful.

Cheers

Jordi