cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow

Former Member
0 Kudos

Hi,

I was in SAP 4.6c..I was given an object in workflow which they want to automatically checking the PO and sending mails issues..

I was new to workflow.Cananyone give me screen shot oriented help or any documented help with stpe by step procedure

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Have a look on the following link, you can get step by step screen shots.

http://www.saptechnical.com/Tutorials/Workflow/Workflow.htm

Regards,

Chandu

Answers (3)

Answers (3)

shaheryar_hashmi
Explorer
0 Kudos

Hello,

Use this FM BAPI_PO_CHANGE for checking the error in PO. If this FM returns some error then concatenate all these error in internal table. Afterwards that internal table pass in email FM.

This is a small program which is used for sending mail.

data : maildata type SODOCCHGI1.

data : mailtxt type table of SOLISTI1 with header line.

data : mailrec type table of SOMLRECI1 with header line.

start-of-selection.

clear : maildata,

mailtxt,

mailrec.

refresh:mailtxt,

mailrec.

maildata-obj_name = 'Test'.

maildata-obj_descr = 'Test'.

maildata-obj_langu = sy-langu.

mailtxt-line = 'This is a test mail'.

append mailtxt.

mailrec-receiver = 'mailid@gmail.com'.

mailrec-rec_type = 'U'. (This "U" means email received at external system)

append mailrec.

CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'

EXPORTING

document_data = maildata

DOCUMENT_TYPE = 'RAW'

PUT_IN_OUTBOX = ' '

COMMIT_WORK = 'X'

  • IMPORTING
  • SENT_TO_ALL =
  • NEW_OBJECT_ID =

tables

OBJECT_HEADER = mailtxt

OBJECT_CONTENT = mailtxt

  • CONTENTS_HEX =
  • OBJECT_PARA =
  • OBJECT_PARB =

receivers = mailrec

  • EXCEPTIONS
  • TOO_MANY_RECEIVERS = 1
  • DOCUMENT_NOT_SENT = 2
  • DOCUMENT_TYPE_NOT_EXIST = 3
  • OPERATION_NO_AUTHORIZATION = 4
  • PARAMETER_ERROR = 5
  • X_ERROR = 6
  • ENQUEUE_ERROR = 7
  • OTHERS = 8

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

I hope you get my point.

Thanks & Regards.

Shaheryar Hashmi (Pakistani).

Former Member
0 Kudos

Hi Mahesh ,

<content removed by moderator as it was just a copy and paste without giving a source>

The following r excellent websites which will solve u'r problem:

Practical Workflow for SAP

http://www.sap-press.com/downloads/h950_preview.pdf

An expert guide to new SAP workflow capabilities

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c6456e89-0a01-0010-0189-a79...

Workflow

http://iris.tennessee.edu/Blueprint/Workflow/Workflow.doc

Workflow Scenarios

http://help.sap.com/saphelp_nw04/helpdata/en/04/926f8546f311d189470000e829fbbd/content.htm

SAP Business Workflow

http://help.sap.com/saphelp_46c/helpdata/en/c5/e4a930453d11d189430000e829fbbd/content.htm

Home to SAP R3 Webflow - Workflow ->

http://www.erpgenie.com/workflow/tips.htm

Why use SAP Workflow?

http://www.insightcp.com/res_23.htm

cheers!

gyanaraj

<inappropriate content removed by moderator>

Edited by: Mike Pokraka on Jul 1, 2008 3:25 PM

Former Member
0 Kudos

Hi Magesh,

Can u be more clear with u question.If ur requirement is to send a notification mail when ever a PO is created in that case it's very simple.

Go to SWDD open standard work flow WS20000075 and in that add a Step type Send mail in that send mail step type give ur user name.

http://www.saptechnical.com/Tutorials/Workflow/POReleaseStrategy/page1.htm

If u r very new to work flow plz go through.

Work flow for dummies part 1 & part 2 By Swapna Modi.

This u will get in blog.

Or better ask ur company to hier a workflow consultant

Regards,

Dheepak