cancel
Showing results for 
Search instead for 
Did you mean: 

dont want popup when sending mail

Former Member
0 Kudos

Hi Experts,

Im working on scripts, in that i need to send mail to the customer.

In selection screen i have print & mail radio btns, when print is selected, popup comes to select the output device, but when mail is selected, i dont want that popup.

For that, i have already given DIALOG = ' ' in OPEN_FORM function module when mail is selected, but still im getting the popup to select the output device.

Some one please suggest how to supress that popup window.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I hope you are using SO_NEW_DOCUMENT_SEND_API1 FM to send the email. in this FM pass SKIP_SCREN = 'X' and try.

also try to go through OPEN_FORM FM Documentation.

Thanks,

Sree.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi all,

Thanks alot for all ur replies.

After setting DIALOG = ' ', it need to give the default print device LOCL in settings.

Then the problem was resolved.

Former Member
0 Kudos

Hi Mytri,

There's nothing wrong with your step.

Just make sure you set the

DIALOG = space.

and also make sure the rest importing parameter set as default, i.e

APPLICATION = 'TX'

DEVICE = 'PRINTER'

LANGUAGE = sy-langu

AND RAW_DATA_INTERFACE = '*'.

Looking forward if you find any other problem with this solution.

Rgds

Former Member
0 Kudos

hi,

Thank alot for ur reply.

Im getting the popup immeadiatly after executing the OPEN_FORM function module.

So i hope setting the parameter in Mail related function module may not solve this problem.

Plz help me in this regard.

Former Member
0 Kudos

Hi

In the Fm...in the structure OPTIONS, there is a field TDNOPREV, just pass 'X' to it.

Hope it works.

Regards,

Vishwa.

Former Member
0 Kudos

Hi Mytri

To avoid the popup, why dont you try passing the values related to the printer in 'OPEN_FORM' itself.

The relevant import parameter in the function 'OPEN_FORM' is 'OPTIONS'.

Hope this helps.

Regards

Neeraj