Ansicht
Dokumentation
_ISPSFM_WOROLMI - Role Definition for Earmarked Funds and Funds Transfers
CL_GUI_FRONTEND_SERVICES - Frontend Services General Material DataThis documentation is copyright by SAP AG.
Role definition is used for earmarked funds and funds transfer in workflow template WS50000016 for the standard task TS50000006 "Decide on document approval" (TS50000006).
(The role definition is also used in the standard task ‘Decide on joint document approval’ (TS80500064) if you are using this in your workflow template.)
To activate the workflow template you must make the following entry in the event type linkage table:
Object type | FMRE |
Event | CREATED |
Receiver type | WS50000016 |
Receiver call | Function module |
Receiver function module | SWW_WI_CREATE_VIA_EVENT |
Check function | |
Destination | |
Linkage activated | X |
To define these entries, choose the following in the SAP menu: Tools -> ABAP Workbench -> Development -> Workflow -> Administration -> Event Manager -> Type Linkages (transaction SWETYPV)
You must also assign the following standard tasks in the organizational structure:
- 50000006 (Decide on document approval)
- 50000008 (Change document)
To define this setting, proceed as follows:
- Choose the following in the SAP menu Tools -> ABAP Workbench -> Development -> Definition Tools -> Tasks/Task Groups -> Display (transaction PFTC_DIS) and enter a standard task.
- Choose Additional Data -> Processor Assignment -> Maintain and assign the standard task to the processor types that are relevant for you.
Control Parameter Workflow Template
The workflow template has two control parameters that you can define as initial values:
- MaxWFLevel Number of workflow levels
Template setting : '1'
The levels determine the sequential order of the approval. The next higher level is reached if an approval has been given for the previous level.
If a rejection occurs at a level, the document must be changed accordingly. The current level is reset to 1. All authorization levels must be run again.
- DefineRole Type of role definition
Template setting: ' ' space, no role definition
You can enter the following values:
'1' data in the first document row is evaluated.
"X" Data from all document lines is evaluated.
- Value ' '
If a role definition is not performed, the document data is not evaluated. All users assigned to task TS50000006 can be processors of the work item.
- Value '1'
Only the first document line of the earmarked funds document is evaluated.
The system determines all amount groups in which the amount in the document line is found. The FM account assignment (combination of commitment item, funds center and fund) in the document line means that all FM account assignments that have this combination are identified.
The parameters required are also determined as follows:
Workflow level: From workflow; in template: 1
Document class: From document header: Document category
Activity type : From workflow; in template: 01 = Approve
FM area: From document header: FM area
Fiscal year: From document header: Document date
The role definition table is read with the key fields above. All selected entries are used for role definition.
- Value "X"
All document lines are evaluated.
The number of different processor groups is determined for the individual document lines. A parallel processing branch is dynamically generated for each group in the workflow, whereby the assignment of the document lines to the groups remains unchanged.
Each group must approve the lines for which they are responsible. This means that a document is only approved at each level if each group (a user of each group) has approved it.
Example: Document with 3 lines.
2 different processor groups are determined.
2 parallel processing branches are generated.
The document must therefore be approved twice before the current level is approved.
RFUMSV00 - Advance Return for Tax on Sales/Purchases ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 5262 Date: 20240523 Time: 175558 sap01-206 ( 60 ms )