cancel
Showing results for 
Search instead for 
Did you mean: 

Prob in sending script to email as pdf attachment

Former Member
0 Kudos

hi,

i m trying to send a script to email as pdf attachment. Mail is being sent succesfully BUT I dont want to see the dialogue box once i execute the pgm.

I have checked the structure SSFCTRLOP, used for smart froms. Here i can see NO_DIALOG. but i cant see such field available in itcpo, used for scripts.

I dont want any dialogue box after F8.

Please help me out.

Thanks.

Aafaque Husain

Accepted Solutions (1)

Accepted Solutions (1)

Simha_
Employee
Employee
0 Kudos

Hi,

You can do it through coding itself.

You can check the sy-subrc and then if sy-subrc = 0.

then you can call FM 'POPUP_TO_INFORM'.

And can give ur own mesaage.

Cheers,

Simha.

Former Member
0 Kudos

Thanks Narasimha,

i m doing like this.

gs_struct-tdgetotf = 'X'.

gs_struct-tdnoprev = 'X'.

gs_itcpp-TDDEVICE = 'MAIL'.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

device = ' '

dialog = ' '

form = 'HR_GBTAXP11D2000'

language = sy-langu

OPTIONS = gs_struct

EXCEPTIONS

Everytime the sy-subrc is 0 but i cant stop the dialogue box, which is asking me for pritner name.

I dont wanna enter any printer name, simply it shud send mail after execution.

Thanks again.

Simha_
Employee
Employee
0 Kudos

Hi,

In the FM OPEN_FORM, there is a paremeter "OPTIONS".

In that parameter there is a field TDNOPREV.

check it to 'X' and pas it to OPTIONS.

Cheers,

Simha.

Answers (0)