Integrating SAP Workflow inbox with MS Outlook
Lago, Daniel
daniel.lago at sap.com
Wed Dec 17 07:29:12 EST 2003
Hi Kim,
This topic was discussed in the mails subjected:"RSWUWFML - with =
attachment to launch user's SAP inbox". You only need to use the report =
RSWUWFML and read the documentation concerned to it. If you are in a =
4.6B version and only need what you have posted this report is perfect.
If you need/want to acces to a SAP transaction directly from the =
Outlook email, you could change that report (copying as Z... and so on) =
adding the following source code I developed some years ago in a 4.6B =
system:
...
DATA: LF(1) TYPE X VALUE '0A'.
DATA: CR(1) TYPE X VALUE '0D'.
DATA: CRLF(2) TYPE X VALUE '0A0D'.
...
* Transacci=F3n de acceso a SAP
selection-screen begin of block 3 with frame title text-t02.
parameters: trans like sy-tcode default 'SO01', "<-- Or another =
trans. you want
SNC_PN(30) type c LOWER CASE. "<-- Trick to access with =
SSO,=20
" You need SSO access configured in SAP to fill this =
parameter
...
form send_single_message
...
* Creation of the document attachment
R3_attach =3D '[System]'. APPEND R3_attach.
CONCATENATE CR LF 'Name=3D' SY-SYSID into LINE.
R3_attach =3D LINE. APPEND R3_attach. CLEAR LINE.
CONCATENATE CR LF 'Client=3D' sy-mandt into LINE.
R3_attach =3D LINE. APPEND R3_attach. CLEAR LINE.
CONCATENATE CR LF "<-- Only for SSO access
'GuiParm=3DSNC_PARTNERNAME=3D"' SNC_PN 'SNC_QOP=3D3 /H/' =
"<-- Only for SSO access
SY-host '/S/3200' "<-- Only for SSO access
INTO LINE. "<-- Only for SSO access
R3_attach =3D LINE. APPEND R3_attach. CLEAR LINE.
CONCATENATE CR LF '[User]' into LINE.
R3_attach =3D LINE. APPEND R3_attach. CLEAR LINE.
CONCATENATE CR LF 'Name=3D' into LINE.
R3_attach =3D LINE. APPEND R3_attach. CLEAR LINE.
CONCATENATE CR LF 'Language=3DEN' into LINE.
R3_attach =3D LINE. APPEND R3_attach. CLEAR LINE.
CONCATENATE CR LF '[Function]' into LINE.
R3_attach =3D LINE. APPEND R3_attach. CLEAR LINE.
CONCATENATE CR LF 'Command=3D' trans into LINE.
R3_attach =3D LINE. APPEND R3_attach. CLEAR LINE.
CONCATENATE CR LF 'Type=3DTransaction' into LINE.
R3_attach =3D LINE. APPEND R3_attach. CLEAR LINE.
CONCATENATE CR LF '[Configuration]' into LINE.
R3_attach =3D LINE. APPEND R3_attach. CLEAR LINE.
CONCATENATE CR LF 'GuiSize=3DMaximized' into LINE.
DESCRIBE TABLE R3_attach LINES TAB_LINES.
* Creation of the entry for the compressed attachment
packing_list-TRANSF_BIN =3D 'X'.
packing_list-HEAD_START =3D 1.
packing_list-HEAD_NUM =3D 1.
packing_list-BODY_START =3D 1.
packing_list-BODY_NUM =3D TAB_LINES.
packing_list-DOC_TYPE =3D 'SAP'.
packing_list-OBJ_NAME =3D 'MyATTACH'.
packing_list-OBJ_DESCR =3D 'Direct access to SAP'.
packing_list-DOC_SIZE =3D TAB_LINES * 255.
APPEND packing_list.
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data =3D document_data
* put_in_outbox =3D ' '
importing
sent_to_all =3D sent_to_all
new_object_id =3D new_object_id
tables
packing_list =3D packing_list
object_header =3D object_header
contents_txt =3D contents
contents_bin =3D R3_attach
* OBJECT_PARA =3D
* OBJECT_PARB =3D
receivers =3D real_recipients
exceptions
too_many_receivers =3D 1
document_not_sent =3D 2
document_type_not_exist =3D 3
operation_no_authorization =3D 4
parameter_error =3D 5
x_error =3D 6
enqueue_error =3D 7
others =3D 8.
Best regards,
Dani
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU] On Behalf Of =
Winters, K N
Sent: martes 16 de diciembre de 2003 21:13
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Integrating SAP Workflow inbox with MS Outlook
I apologize for my confusion, because I know this topic has been =
discussed quite a bit lately.
I have been assigned a high priority project to Integrate the SAP =
Workflow inbox with MS Outlook, such that when a userid has one or many =
workitems, they will receive an Outlook email (one per day) with a link =
to their SAP Workflow inbox. Also need the flexibility to use this =
functionality only for specific workflow tasks. We are currently on =
4.6B.
What is the best way to accomplish this?
Kim Winters | GIS SAP | ConocoPhillips | =20
942 PB Bartlesville, OK USA | Tlf : 918 661 7391 | =
K.N.Winters at conocophillips.com
More information about the SAP-WUG
mailing list