Sending SAPScript form by e-mail
I use a print program RFKORD11 for printing a customer statement. In SAP documentation I read that for sending SAPscript by e-mail the parameters MAIL_SENDER, MAIL_RECIPIENT, MAIL_APPL_OBJ must be set and also DEVICE has to be set to 'MAIL'. Those parameters are set for the function module OPEN_FORM.
But how do I set the parameters MAIL_SENDER, MAIL_RECIPIENT and MAIL_APPL_OBJ? They are defined as "LIKE SWOTOBJID" and the SWOTOBJID is a structure. How should I fill this structure?
Or is there another way how to print a sapscript form which is using the RFKORD11 program?
Thanks all for help.