Object Title: Error IDOC Notification
Object Title: Error IDOC Notification
Object Title: Error IDOC Notification
Object Description : Mail Will be sent for groups when Outbound IDOC Fails .
Whenever an IDoc gets into error or a negative acknowledgement is received, a notification can
be configured to be sent to a responsible user via workflow task
Standard Task is available which will be triggered on Outbound IDOC error. Since we need
it as a mail notification, created custom task and used Business object IDOCAPPL. For Mail
notification I have delegated the Standard BUS object by adding custom method which will send
Nofication. Automatically notification will reach the responsible user if any error arises or negative
acknowledgement is received in outbound IDOC so that immediate action can be taken.
lv_key = object-key.
CASE sy-subrc.
WHEN 0. " OK
WHEN OTHERS. " to be implemented
ENDCASE.
end_method.
FUNCTION z_sc_idoc_err_workflow.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" VALUE(IV_DOCNO) TYPE EDIDC-DOCNUM OPTIONAL
*"----------------------------------------------------------------------
* Send Mail
IF lref_utility IS BOUND.
lref_utility->send_mail(
EXPORTING
iv_subject_255 = lv_subject
it_message = lt_body
iv_dist_group = lc_dist_prof
IMPORTING
ev_return = lv_result ).
ENDIF.
ENDFUNCTION.
Configurations are done in WE46 and WE47 Transactions.
Method : ZSCIDOCERRWORKFLOW.
Object Title: Travel Expense Approval Workflow
Object Description: This workflow automates travel expenses settlement process. There will be
two levels of approval with approval and rejection notifications sent to employees.
a. Notification text: Please review the trip number XXXXXXXXX for employee name
“ABC’ (employee number XXXXXXXX) in SAP Business Workplace (Transaction
Code: SBWP). Please approve or reject this expense report. Please provide a note
if you reject.
4. The approver will login to SAP and perform the following actions:
a. Approve
b. Send back for corrections
c. Reject
5. Send correct notification to employee’s MS Outlook based on approver’s decision, is task
approved/ sent back for correction/ rejected by the approver.
a. This notification content/ text for decisions, sent back for correction/ rejected
should be taken from the approver on the run time during the decision-making.
b. If the trip is approved, two notifications will be triggered as follows:
I. Notification to Internal Auditor MS Outlook for further review and
approval.
i. Notifications text: The employee name “approver name /
employee number” approves Trip number XXXXXXXXXX. Please
review further to complete the task in SAP Business Workplace
(Transaction Code: SBWP).
I. Notification to employee MS Outlook as follows:
ii. Notifications text: Your trip number XXXXXXXXX has been
approved and moved to internal auditor review and approval.
6. If the trip has been sent back for correction or rejection, employee have to update the
correction, send it back for approval. Again, the task starts from step 6.
7. Once the trip is approved, the internal auditor will review the trip for further approval.
8. Auditor can perform the following actions:
a. Approve
b. Send back for corrections
c. Reject
9. If the trip has been sent back for correction or rejection, employee have to update the
correction, send it back for approvals. Again, the task starts from step 6.
a. This notification content/ text for sent back for correction/ rejected decision
should be taken from the internal auditor’s notes during the decision-making
process.
b. If the task is approved, then send notification to employee’s MS Outlook as
follows:
i. Notifications text: Your trip number XXXXXXXXX has been approved &
moved for payment process.
ii. The following table and point number 3 must be included in the
notification only when there is a correction in the travel expense
receipt amount by the Internal Auditor.
Original New Credit
Receipt Amount Adjustment Amount Card
Date Expense Type (INR) (INR) (INR) Expense Justification Reason Note
Your expense
does not comply
with company
policy. Please
Hotel- provide a
24-Apr- Accommodation- justification for
2015 Domestic New 3,358.00 101.94 3,256.06 No hotel stay this expense.
Travel WF.pdf
METHOD settle_trip.
lv_timra = lc_set.
lv_check = lc_set.
lv_period = sy-datum+4(2).
lv_year = sy-datum+0(4).
ENDMETHOD.
*---------------------------------------------------------------------*
* FORM EXCLFUNC_REFRESH *
*---------------------------------------------------------------------*
FORM exclfunc_refresh.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""""""""""""""""$"$\SE:(1) Form EXCLFUNC_REFRESH, Start
A
*$*$-Start: (1)--------------------------------------------------------------
-------------------$*$*
ENHANCEMENT 1 ZEIMP_HR_EXPENSE_NOTIFY. "active version
ENDENHANCEMENT.
*$*$-End: (1)--------------------------------------------------------------
-------------------$*$*
Implementation of User exit
Object Title: Perform mass upload of service entry against the Bulk PO.
Object Description: Perform mass upload of service entry against the Bulk PO along with
workflow emails.
Bulk PO.pdf
Workflow notifications will be emailed through for approval to the Service Entry Level-1 Approver.
If the workflow is rejected then a workflow notification will be sent to the creator of the Service Entry.
If the workflow is approved then a workflow notification will be sent to the Service Entry Creator
and the AP team.
The Notification must contain the Bulk PO Number and Item Number, Service Entry Sheet Number and
Vendor Invoice Number.
A entry is made in the change document view ‘SWEVCDOBJ1’ or through the Transaction code
‘SWEC’.
ZMMM_WF_AGENT
Description: Procurement Workflow Release Maintenance
Field Name Data Element Data Type Length Decimal Place Description
MANDT MANDT CLNT 3 0 Client
OBJECT SWO_OBJTYP CHAR 10 0 Object Type
FRGGR FRGGR CHAR 2 0 Release Group
FRGCO FRGCO CHAR 2 0 Release Code
BUKRS BUKRS CHAR 4 0 Company Code
OBJID ACTORID CHAR 12 0 Agent ID in
Organization
Management
Wait on the Release Indicator Status Change
This step will wait on the event BUS2091 ‘APPROVED’. The Event is raised by system whenever
the approver releases the Service Entry Sheet and there is a change in the status in the ‘Release
indicator’ field from ‘A’(Not Accepted) to ‘B’(Accepted) in the T-code ZML81N.
Configuration in T-code swec
Object Title: Purchase Order Approval
Object Description: The Purchase Order document is an external document issued to Vendor
for them to provide Materials and Services. This document needs to be approved by COLT as
per the COLT Authority Matrix (CAM) before it is issued to Vendor.
Step 1:
Option 1: Create PO
Should call ME21N transaction where in buyer enter PO with details and save. Without
saving PO then the work item should not be in approver inbox.
IF PO Creator Authorized:
First validation should be done whether he is a valid sap user or not. And the
second validation is whether approver does have authority to release PO.
IF PO Approver Authorized:
A work item should go to Approver inbox with 2 options i.e., Approve, Reject
PO_WF.pdf
Event Linkages
Maintain Event linkages using transaction code ‘SWETYPV’ for object BUS2012 and event
RELEASESTEPCREATED
Agent Determination:
ZMMM_WF_AGENT
Description: Procurement Workflow Release Maintenance
Field Name Data Element Data Type Length Decimal Place Description
MANDT MANDT CLNT 3 0 Client
OBJECT SWO_OBJTYP CHAR 10 0 Object Type
FRGGR FRGGR CHAR 2 0 Release Group
FRGCO FRGCO CHAR 2 0 Release Code
BUKRS BUKRS CHAR 4 0 Company Code
OBJID ACTORID CHAR 12 0 Agent ID in
Organization
Management
Option 1: Approve
Option 2: Reject
Option 1: Amend PO (Should able to change the PO, ME22N) and again’ IF PO
Creator NOT Authorized’ step will be repeated
Option 2: Cancel and Keep work item (Standard SAP Workflow functionality)
Agent Determination Logic:
SAP Standard Solution: As part of SAP Standard World Template One, two or three level approval is
available for a non-PO AP invoice.
COLT requirement is to have dynamic multi level approvals as per the CAM (Colt Authority Matrix).
The non-PO vendor invoice requires approval as per the COLT Authority Matrix (CAM) and
certain exceptions.
The CAM prescribes a dynamic approval matrix based on who the workflow is initiated to and the
nature of the expense.
NON_PO_WF.pdf
GL Account Categories:
01 – SWIN
02 - Operating Costs
03 – Rent and Property
04 – External Consultants
05 – Charitable Donations
06 – Capex Cost
2) CAM Table
G/L Account Category CAM Band / Level Approval Amount
(KEY) (KEY)
<2 Char> <1 Number> <ACDOCA-HSL>
Event Linkage:
Event: CREATED.
Delegate the standard BO FIPP to ZFIPP and add a new event ‘WAIT’.
Object Title: ERO Budget Workflow
Object Description: Equipment Request Order (ERO) Approval Workflow process is required for
all the ERO for Internal projects
Budget_ERO_WF.p
df
SAP Standard Solution: The standard solution in SAP is creating a free of charge delivery (FOC)
Business Process:
The Equipment request ordering (ERO) process for internal projects would require a workflow
process. The process flow for the same is provided below in detail:
1) The requester will create an ERO with transaction code ZVA01. The workflow process is valid
only if the selected WBS starts with IP*** (Internal Project). The workflow process is not
required for external projects.
2) The requester will save the ERO after entering the item along with the quantity required. The
order custom status would remain as ZENT (Order entry)
3) On saving the sales order for the first time, the ERO approval workflow will be triggered. An
outlook email and SAP mail would be sent to the project owner (approver). Further an email
will be sent to the requester as well.
4) The approver would access the SAP inbox for approving or rejecting the workflow.
5) The project owner can approve the ERO by clicking on the approve button in the SAP email.
On clicking “approve button” the status of the ERO would be changed from ZENT to ZBKD
(Order booked)
6) Once the order is moved to ZBKD status, no changes in ERO for increase in quantity or addition
of line item will be allowed.
7) As soon as the status is changed to ZBKD, the ERO would be available for picking and
shipping.
8) However if an authorized user wants to reduce quantity from a line item or delete the line item
itself, it will be allowed even after the ERO status is moved to ZBKD status.
9) The authorization of changing status from ZENT to ZBKD would be limited only to the project
owners (approvers)
10) The project owner would also have the choice of rejecting the workflow. The reason of rejecting
the workflow can be for example choosing the wrong equipment, order quantity beyond the
budget etc.
11) If the project owner decides to reject the workflow, he will put the rejection comment in the
email and click on reject button to reject the workflow.
12) This will trigger workflow back to the ERO creator who will either modify the ERO order and re
trigger the workflow for approval or cancel the ERO (put the status to ZCLD).
13) The ERO can be rejected multiple times by approver. There will be a button provided in ERO
for re triggering the workflow item for re approval once it is back to the requester. The requester
will click on the re-trigger button once he has made the changes and when the ERO is ready
for re approval.
14) The rejection comments would be stored in sales order (VA02/VA03) as header text. The
history of rejection comments would be provided to be stored in sales order.
15) Substitution process: In case the approver (Project owner) is on leave or not available the
project owner would assign the substitute in the SAP mail (SAP business workplace). In case
for some reason the project owner is not able to assign the substitute before leaving for vacation
(or any other reason, business can raise an ITSR to the authorization team (workflow
administrator) to create substitute for a limited time period. Further substitution functionality will
be based on user-ID. Hence the workflow email would be triggered to the same substitute for
all purposes (ERO workflow/PO approval/HR workflow).
16) Further in case if for some reason workflow is not triggered due to some technical reason
(authorization/Personnel ID not maintained), an email notification will be sent to the
requester/email group to take follow up action.
Dependency Formatted
All SAP User IDs must have e-mail IDs specified using the transaction
‘SU01’.
Basis team must configure the System in such a way that e-mails can be
sent to Microsoft Outlook.
Triggering Event logic
Delegate the standard Business object BUS2032 to ZBUS2032 to add the additional event
‘RETRIGGER’ that is used to retrigger the workflow
Business Object
BUS2032- CREATE
BUS2032- RETRIGGER
Object Title: Approval before posting inventory differences
Object Description: Physical inventory is the process of carrying out the physical stock verification of
company’s stock.
The differences between the Physical stock and the system stock are posted.
PI_WF.pdf
Procedure
Physical Inventory:
Steps to create
physical Inventory document.docx
Step 1:
Option 1: Create Physical Inventory in MI07
Physical inventory process in SAP comprises of three phases:
First validation should be done whether he is a valid sap user or not. And the
second validation is whether approver does have authority to post Physical
Inventory Document.
A work item should go to Approver inbox with 2 options i.e., Approve, Reject
t Title
Object Title: Sales Order Modification Workflow
Object Description: This workflow covers sending Email Notification to Planner whenever sales
order items will be cancelled or modified
Change quantity of SO line items OR Cancel a line item OR add new line item to the SO WF is triggered to send notification mail to the SO creator.