Smart form

Van der Burg, Jeroen JA SITI-ITPSEE jeroen.vanderburg at shell.com
Wed Mar 19 03:24:13 EST 2003


Michael,
 
Bit of code below does the trick for me, if there is no mail address =
available for the user I just fill it with a 'fixed' address. If you are =
not using HR you have to grab the mail address from the user master =
record and not the employee one, there is a bapi available to read user =
information.=20
 
   senderPernr =3D pa0105-pernr.                                       =20
   select single * from pa0105 where                                 =20
       pernr eq senderPernr and                                      =20
       subty eq '0010' and                                           =20
       begda le sy-datum and                                         =20
       endda ge sy-datum.                                            =20
       if sy-subrc eq 0."sender's address retrieved                  =20
        swc_set_element container 'AddressString' pa0105-usrid_long. =20
        swc_set_element container 'TypeId' 'U'.                      =20
        swc_call_method sender 'CreateAddress' container.                =
 =20
       endif.                                                        =20
                                                                     =20
* No address could be created                               =20
if sy-subrc ne 0.                                           =20
   swc_set_element container 'AddressString' 'Shell People'.=20
   swc_set_element container 'TypeId' 'U'.                  =20
   swc_call_method sender 'CreateAddress' container.        =20
endif.           =20
 
 
 
Hope this helps,
 
 
Jeroen                                        =20
 
 
-----Original Message-----
From: Michael Chong [mailto:miquel_chong at hotmail.com]
Sent: 19 March 2003 06:37
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Smart form
 
 
Hi Jeroen,
   I'm very interested to know how you "grab the mail address of the
employee linked to the user id of the user who started the workflow in =
the
first place and force it into the mail as the sender's address". I would
like to replace WF-BATCH as the sender of the email triggered by the =
send
mail task.
 
Thanks in advance,
Michael
 
 
 
 
 
 
>From: "Van der Burg, Jeroen JA SITI-ITPSEE"
><jeroen.vanderburg at shell.com>
>Reply-To: SAP Workflow Users' Group <SAP-WUG at MITVMA.MIT.EDU>
>To: SAP-WUG at MITVMA.MIT.EDU
>Subject: Re: Smart form
>Date: Wed, 12 Mar 2003 13:16:50 +0100
>
>:) Of course it is
>
>Do not forget:
>1. You have to set the allowed outgoing document types correctly for =
your
>node in SCOT, it can be a bit fiddly as SAPconnect conversions are not =
as
>straightforward as what you would expect from the conversion rules =
ranking
>settings. I would not advise just setting them to all.
>
>2. You have to provide a correct sender's address in your mail one way =
or
>another, also when WF-Batch sends it. I normally grab the mail address =
of
>the employee linked to the user id of the user who started the workflow =
in
>the first place and force it into the mail as the sender's address.
>
>
>Good luck,
>
>
>Jeroen
>
>
>
>-----Original Message-----
>From: Soady, Phil [mailto:phil.soady at sap.com]
>Sent: 12 March 2003 12:59
>To: SAP-WUG at MITVMA.MIT.EDU
>Subject: Re: Smart form
>
>
>Kris,
>what Jerome says is true, the outbound process from SAPConnect
>will attempt to do conversions based on the output types supported
>in your INT gateway node.
>
>ie in Transaction SCOT, the node INT has "file types" associated with =
it.
>Lets PDF and TXT as valid types.
>
>Assuming the conversion rule table V_SXCONV
>is intact with something like,
>ALI     HTM     2       SX_OBJECT_CONVERT_ALI_HTM
>ALI     PS      2       SX_OBJECT_CONVERT_ALI_PRT
>ALI     RAW     1       SX_OBJECT_CONVERT_ALI_RAW
>ICS     RAW     8       SX_OBJECT_CONVERT_ICS_RAW
>INT     RAW     1       SX_OBJECT_CONVERT_INT_RAW
>OBJ     HTM     2       SX_OBJECT_CONVERT_OBJ_HTM
>OTF     PDF     1       SX_OBJECT_CONVERT_OTF_PDF
>OTF     PS      2       SX_OBJECT_CONVERT_OTF_PRT
>OTF     RAW     9       SX_OBJECT_CONVERT_OTF_RAW
>RAW     SCR     9       SX_OBJECT_CONVERT_RAW_SCR
>RAW     TXT     7       SX_OBJECT_CONVERT_RAW_TXT
>SCR     OTF     1       SX_OBJECT_CONVERT_SCR_OTF
>TXT     INT     7       SX_OBJECT_CONVERT_TXT_INT
>URL     HTM     2       SX_OBJECT_CONVERT_OBJL_HTM
>
>then it will indeed convert to PDF on the way out.
>
>
>If you still want to the conversion directly try
>
>CALL FUNCTION 'CONVERT_OTF'
>      EXPORTING
>           FORMAT                =3D 'PDF'
>           ARCHIVE_INDEX         =3D ARCHIVE_INDEX
>      IMPORTING
>           BIN_FILESIZE          =3D BIN_FILESIZE
>      TABLES
>           OTF                   =3D OTF
>           LINES                 =3D LINES
>      EXCEPTIONS
>           ERR_CONV_NOT_POSSIBLE =3D 1.
>
>
>hth,
>
>
>
>Phil Soady
>Senior Consultant
>Business Technologies
>SAP Australia
>* : 0412 213 079
>* : phil.soady at sap.com
>
>
>
>
>-----Original Message-----
>From: Van der Burg, Jeroen JA SITI-ITPSEE
>[mailto:jeroen.vanderburg at shell.com]
>Sent: Wednesday, 12 March 2003 6:44 PM
>To: SAP-WUG at MITVMA.MIT.EDU
>Subject: Re: Smart form
>
>Kris,
>
>You can use logo's either directly on Smartforms or as variable fields;
>after uploading the BMP into SAP. You do not need to use
>SO_DOCUMENT_SEND_API.
>
>I use the standard PDF conversion routines from SAPconnect using the
>SAPconnect customising, you do not need to do this yourself but just =
let
>SAPconnect do it for you when the OTF document is send out.
>
>
>Regards,
>
>
>Jeroen
>
>-----Original Message-----
>From: Kris Wug [mailto:kris_wug at hotmail.com]
>Sent: 12 March 2003 05:05
>To: SAP-WUG at MITVMA.MIT.EDU
>Subject: Re: Smart form
>
>
>Jeron,
>
>That is neat. Are there any function modules to convert the Smart form =
to
>PDF or HTML doc ?
>We wanted to send the emails with a Logo on it. I know we can import a =
logo
>on to the SAP form. I am not sure how to pass that into the function =
module
>SO_DOCUMENT_SEND_API  .
>I appreciate sharing any information on this.
>
>Thanks,
>Kris
>
>
>----- Original Message -----
>From: "Van der Burg, Jeroen JA SITI-ITPSEE" =
<jeroen.vanderburg at shell.com>
>To: <SAP-WUG at MITVMA.MIT.EDU>
>Sent: Monday, March 10, 2003 1:42 AM
>Subject: Re: Smart form
>
>
>Yes,
>
>We do send out large volumes of smartforms to (outlook) email inboxes; =
the
>forms can contain extensive amounts of SAP data (eg remuneration
>overviews);
>and are send out as PDF attachments to normal emails.
>
>
>Regards,
>
>
>Jeroen
>
>-----Original Message-----
>From: Kris Wug [mailto:kris_wug at hotmail.com]
>Sent: 07 March 2003 19:47
>To: SAP-WUG at MITVMA.MIT.EDU
>Subject: Smart form
>
>
>Hello all,
>
>Did anyone worked on sending SAP form to the outlook email as a =
document
>with logo from Workflow?
>I appreciate anyone sharing that info.
>
>Thank you in advance.
>Kris
>ERM project.
>City Govt of SANANTONIO.
 
 
_________________________________________________________________
Take a break! Find destinations on MSN Travel. =
http://www.msn.com.sg/travel/
 


More information about the SAP-WUG mailing list