SAP ABAP Class CL_SAWE_SA_API (API provider class staff assignment)
Hierarchy
EA-APPL (Software Component) SAP Enterprise Extension PLM, SCM, Financials
   IS-PRS-LS (Application Component) Lean Staffing
     PSAWE_SA_BL (Package) Staff Assignment Business Layer
Properties
Class CL_SAWE_SA_API  
Short Description API provider class staff assignment    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package PSAWE_SA_BL   Staff Assignment Business Layer 
Created 20091009   SAP 
Last change 20130531   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
2 IF_WE_ENGAGEMENT Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
Interfaces
Class CL_SAWE_SA_API has no interface implemented.
Friends
Class CL_SAWE_SA_API has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_ALT_KEY Constant Private Type reference (TYPE) I '3' read by alternative key 20091026
2 GC_EMPLOYEE Constant Private Type reference (TYPE) I '2' read by employee id 20091026
3 GC_HEADER Constant Private Type reference (TYPE) STRING 'HEADER' 20091026
4 GC_ITEM Constant Private Type reference (TYPE) STRING 'ITEM' 20091026
5 GC_OBJECT Constant Private Type reference (TYPE) I '1' read by object 20091026
6 GV_ON_COMMIT_ERROR Static Attribute Private Type reference (TYPE) ABAP_BOOL 20091116
7 MR_SERVICE_MGR Static Attribute Private Object reference (TYPE REF TO) /BOBF/IF_TRA_SERVICE_MANAGER BO Service Manager 20091009
8 MR_TRANSACTION_MGR Static Attribute Private Object reference (TYPE REF TO) /BOBF/IF_TRA_SLAVE_TRANS_MGR Lean Transaction Manager 20091009
Methods
# Method Level Visibility Method type Description Created on
1 ADD_BOPF_MSG_TO_BAPIRET2 Static method Private Method Build BAPIRET table based on message object 20091019
2 ADD_SY_MESSAGE Static method Private Method Add sy-msg to BAPIRET2 table 20091021
3 AFTER_COMMIT Static method Public Method call BOPF functions after commit 20091113
4 AFTER_ROLLBACK Static method Public Method call BOPF function after rollback 20091113
5 AUTHORITY_CHECK Static method Private Method Check authority to maintain assignments to an eng. object 20091019
6 BEFORE_COMMIT Static method Public Method call BOPF functions on commit 20091113
7 CHANGE Static method Public Method Change staff assignment 20091009
8 CLEANUP Static method Private Method call the cleanup method of the transactionmanger 20091028
9 CONTAINS_ERROR Static method Private Method Check if error message exist 20091026
10 CONVERT_TO_OUTPUT_STRUCTURE Static method Private Method Convert the internal structures to the output structures 20091015
11 CREATE Static method Public Method Create staff assignment 1 assignment 20091009
12 CREATE_MASS Static method Public Method Create staff assignment mass function 20091113
13 CREATE_MOD_FOR_CHANGE Static method Private Method Create mod table for change function 20091020
14 CREATE_MOD_FOR_CREATE Static method Private Method Create mod table for create function 20091020
15 CREATE_MOD_FOR_DELETE Static method Private Method Create mod table for delete function 20091020
16 DELETE Static method Public Method Cancel staff assignment 20091014
17 DETERMINE_DB_KEY Static method Private Method Determine the db key based on object type, id, employee 20091013
18 EXECUTE_BO_FUNCTION Static method Private Method Execute the BO function 20091021
19 GET_BY_ALTERNATIVE_KEY Static method Private Method read staff assignment by alternative key 20091026
20 GET_BY_EMPLOYEE Static method Private Method read staff assignment by employee id 20091026
21 GET_BY_OBJECT Static method Private Method read staff assignment by object 20091026
22 GET_HEADER_SINGLE Static method Private Method Select single header 20091020
23 INITIALIZE_API Static method Public Method Initialize the transaction manager and service manager 20091013
24 ON_COMMIT_ERROR Static method Private Method check if an error was raised during commit 20091116
25 READ_BY_ELEMENTS Static method Public Method Read staff assignment by elements 20091014
26 READ_BY_ID Static method Public Method Read staff assignment 20091012
27 SET_HEADER_CHANGE Static method Private Method Set up header structure for change process 20091127
Events
Class CL_SAWE_SA_API has no event.
Types
Class CL_SAWE_SA_API has no local type.
Method Signatures

Method ADD_BOPF_MSG_TO_BAPIRET2 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_BAPIRET2 Call by reference Type reference (TYPE) BAPIRET2_T Error Messages 20091019
2 Importing IO_MESSAGE Call by reference Object reference (TYPE REF TO) /BOBF/IF_FRW_MESSAGE Interface of Message Object 20091019
3 Importing IT_HEADER Call by reference Type reference (TYPE) SAWE_T_SA_HDR Staff Assignment Header 20091019
4 Importing IT_ITEM Call by reference Type reference (TYPE) SAWE_T_SA_ITM Staff Assignment Item 20091019

Method ADD_BOPF_MSG_TO_BAPIRET2 on class CL_SAWE_SA_API has no exception.

Method ADD_SY_MESSAGE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_BAPIRET2 Call by reference Type reference (TYPE) BAPIRET2_T Return parameter table 20091021

Method ADD_SY_MESSAGE on class CL_SAWE_SA_API has no exception.

Method AFTER_COMMIT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_CLEANUP_MODE Call by reference Type reference (TYPE) /BOBF/CONF_CLEANUP_MODE 20130211
2 Importing IV_EXECUTE_ROLLBACK_WORK Call by reference Type reference (TYPE) BOOLE_D ABAP_TRUE Data element for domain BOOLE: TRUE (='X') and FALSE (=' ') 20130211

Method AFTER_COMMIT on class CL_SAWE_SA_API has no exception.

Method AFTER_ROLLBACK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_CLEANUP_MODE Call by reference Type reference (TYPE) /BOBF/CONF_CLEANUP_MODE 20130211
2 Importing IV_EXECUTE_ROLLBACK_WORK Call by reference Type reference (TYPE) BOOLE_D ABAP_TRUE Data element for domain BOOLE: TRUE (='X') and FALSE (=' ') 20130211

Method AFTER_ROLLBACK on class CL_SAWE_SA_API has no exception.

Method AUTHORITY_CHECK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_ACTIVITY Call by reference Type reference (TYPE) ACTIV_AUTH Activity 20091019
2 Importing IV_ENGAGEMENT_ID Call by reference Type reference (TYPE) IF_WE_ENGAGEMENT=>ID 20091019
3 Importing IV_ENGAGEMENT_TYPE Call by reference Type reference (TYPE) WE_ENGAGEMENT_TYPE Work Engagement type 20091019
4 Returning RV_AUTHORIZED Value transfer Type reference (TYPE) ABAP_BOOL 20091019

Method AUTHORITY_CHECK on class CL_SAWE_SA_API has no exception.

Method BEFORE_COMMIT Signature

Method BEFORE_COMMIT on class CL_SAWE_SA_API has no parameter.
Method BEFORE_COMMIT on class CL_SAWE_SA_API has no exception.

Method CHANGE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_HEADER Call by reference Type reference (TYPE) SAWE_S_SA_HDR_API_OUT Staff assignment header API outbound 20091009
2 Exporting ET_BAPIRET2 Call by reference Type reference (TYPE) BAPIRET2_T Return Parameter 20091009
3 Exporting ET_ITEM Call by reference Type reference (TYPE) SAWE_T_SA_ITM_API_OUT 20091012
4 Importing IS_HEADER Call by reference Type reference (TYPE) SAWE_S_SA_HDR_KEY Staff assignment header key attributes 20091009
5 Importing IS_HEADER_CHANGE Call by reference Type reference (TYPE) SAWE_S_SA_HDR_D Staff assignment header attributes to change 20091127
6 Importing IT_ITEM Call by reference Type reference (TYPE) SAWE_T_SA_ITM_API_IN Staff assignment item table inbound 20091012
7 Importing IV_DB_KEY Call by reference Type reference (TYPE) /BOBF/CONF_KEY UUID staff assignment 20091012

Method CHANGE on class CL_SAWE_SA_API has no exception.

Method CLEANUP Signature

Method CLEANUP on class CL_SAWE_SA_API has no parameter.
Method CLEANUP on class CL_SAWE_SA_API has no exception.

Method CONTAINS_ERROR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_MESSAGE Call by reference Object reference (TYPE REF TO) /BOBF/IF_FRW_MESSAGE Interface of Message Object 20091026
2 Returning RV_ERROR_MESSAGE Value transfer Type reference (TYPE) ABAP_BOOL 20091026

Method CONTAINS_ERROR on class CL_SAWE_SA_API has no exception.

Method CONVERT_TO_OUTPUT_STRUCTURE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_HEADER Call by reference Type reference (TYPE) SAWE_S_SA_HDR_API_OUT Staff assignment header API outbound 20091015
2 Exporting ET_HEADER Call by reference Type reference (TYPE) SAWE_T_SA_HDR_API_OUT Staff assignment header API outbound table 20091015
3 Exporting ET_ITEM Call by reference Type reference (TYPE) SAWE_T_SA_ITM_API_OUT Staff assignment item table 20091015
4 Importing IS_HEADER Call by reference Type reference (TYPE) SAWE_S_SA_HDR Staff Assignment Header 20091015
5 Importing IT_HEADER Call by reference Type reference (TYPE) SAWE_T_SA_HDR Staff Assignment Header 20091015
6 Importing IT_ITEM Call by reference Type reference (TYPE) SAWE_T_SA_ITM Staff Assignment Item 20091015

Method CONVERT_TO_OUTPUT_STRUCTURE on class CL_SAWE_SA_API has no exception.

Method CREATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_HEADER Call by reference Type reference (TYPE) SAWE_S_SA_HDR_API_OUT Staff assignment header API outbound 20091009
2 Exporting ET_BAPIRET2 Call by reference Type reference (TYPE) BAPIRET2_T Return Parameter 20091009
3 Exporting ET_ITEM Call by reference Type reference (TYPE) SAWE_T_SA_ITM_API_OUT 20091012
4 Importing IS_HEADER Call by reference Type reference (TYPE) SAWE_S_SA_HDR_KEY Staff assignment header key attributes 20091009
5 Importing IT_ITEM Call by reference Type reference (TYPE) SAWE_T_SA_ITM_API_IN Staff assignment item table inbound 20091012

Method CREATE on class CL_SAWE_SA_API has no exception.

Method CREATE_MASS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_BAPIRET2 Call by reference Type reference (TYPE) BAPIRET2_T Return Parameter 20091113
2 Exporting ET_HEADER_ITEM Call by reference Type reference (TYPE) SAWE_T_SA_HDR_ITM_API_OUT Staff assignment output 20091113
3 Importing IT_HEADER_ITEM Call by reference Type reference (TYPE) SAWE_T_SA_HDR_ITM Staff assignment header item 20091113

Method CREATE_MASS on class CL_SAWE_SA_API has no exception.

Method CREATE_MOD_FOR_CHANGE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MOD Call by reference Type reference (TYPE) /BOBF/T_FRW_MODIFICATION Changes 20091020
2 Importing IS_HEADER_CHANGE Call by reference Type reference (TYPE) SAWE_S_SA_HDR_D Staff assignment header attributes 20091127
3 Importing IS_HEADER_OLD Call by reference Type reference (TYPE) SAWE_S_SA_HDR Staff Assignment Header 20091202
4 Importing IT_ITEM Call by reference Type reference (TYPE) SAWE_T_SA_ITM_API_IN Staff assignment item table inbound 20091020
5 Importing IT_ITEM_OLD Call by reference Type reference (TYPE) SAWE_T_SA_ITM Staff Assignment Item 20091202
6 Importing IV_DB_KEY Call by reference Type reference (TYPE) /BOBF/CONF_KEY NodeID 20091020

Method CREATE_MOD_FOR_CHANGE on class CL_SAWE_SA_API has no exception.

Method CREATE_MOD_FOR_CREATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MOD_HEADER Call by reference Type reference (TYPE) /BOBF/T_FRW_MODIFICATION Changes 20091020
2 Exporting ET_MOD_ITEM Call by reference Type reference (TYPE) /BOBF/T_FRW_MODIFICATION Changes 20091020
3 Exporting EV_DB_KEY Call by reference Type reference (TYPE) /BOBF/CONF_KEY NodeID 20091020
4 Importing IS_HEADER Call by reference Type reference (TYPE) SAWE_S_SA_HDR_KEY Staff assignment header key attributes 20091020
5 Importing IT_ITEM Call by reference Type reference (TYPE) SAWE_T_SA_ITM_API_IN Staff assignment item table inbound 20091020

Method CREATE_MOD_FOR_CREATE on class CL_SAWE_SA_API has no exception.

Method CREATE_MOD_FOR_DELETE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MOD Call by reference Type reference (TYPE) /BOBF/T_FRW_MODIFICATION Changes 20091020
2 Importing IV_DB_KEY Call by reference Type reference (TYPE) /BOBF/CONF_KEY NodeID 20091020

Method CREATE_MOD_FOR_DELETE on class CL_SAWE_SA_API has no exception.

Method DELETE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_BAPIRET2 Call by reference Type reference (TYPE) BAPIRET2_T Return parameter table 20091014
2 Importing IS_HEADER Call by reference Type reference (TYPE) SAWE_S_SA_HDR_KEY Staff assignment header key attributes 20091014
3 Importing IV_DB_KEY Call by reference Type reference (TYPE) /BOBF/CONF_KEY UUID staff assignment 20091014

Method DELETE on class CL_SAWE_SA_API has no exception.

Method DETERMINE_DB_KEY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_DB_KEY Call by reference Type reference (TYPE) /BOBF/CONF_KEY NodeID 20091013
2 Importing IS_HEADER Call by reference Type reference (TYPE) SAWE_S_SA_HDR_KEY Staff assignment header key attributes 20091013

Method DETERMINE_DB_KEY on class CL_SAWE_SA_API has no exception.

Method EXECUTE_BO_FUNCTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EO_MESSAGE Call by reference Object reference (TYPE REF TO) /BOBF/IF_FRW_MESSAGE Interface of Message Object 20091021
2 Importing IT_MOD Call by reference Type reference (TYPE) /BOBF/T_FRW_MODIFICATION Changes 20091021
3 Importing IT_MOD_HEADER Call by reference Type reference (TYPE) /BOBF/T_FRW_MODIFICATION Changes 20091021
4 Importing IT_MOD_ITEM Call by reference Type reference (TYPE) /BOBF/T_FRW_MODIFICATION Changes 20091021

Method EXECUTE_BO_FUNCTION on class CL_SAWE_SA_API has no exception.

Method GET_BY_ALTERNATIVE_KEY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_BAPIRET2 Call by reference Type reference (TYPE) BAPIRET2_T Return parameter table 20091026
2 Exporting ET_HEADER Call by reference Type reference (TYPE) SAWE_T_SA_HDR Staff Assignment Header 20091026
3 Exporting ET_ITEM Call by reference Type reference (TYPE) SAWE_T_SA_ITM Staff Assignment Item 20091026
4 Importing IS_DATE_PERIOD Call by reference Type reference (TYPE) SAWE_S_SA_QUERY_DATE_PERIOD Staff assignment date periode 20091026
5 Importing IV_EMPLOYEE_ID Call by reference Type reference (TYPE) PERNR_D Personnel Number 20091026
6 Importing IV_OBJECT_ID Call by reference Type reference (TYPE) SWO_OBJID Object ID 20091026
7 Importing IV_OBJECT_TYPE Call by reference Type reference (TYPE) WE_ENGAGEMENT_TYPE Work Engagement type 20091026

Method GET_BY_ALTERNATIVE_KEY on class CL_SAWE_SA_API has no exception.

Method GET_BY_EMPLOYEE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_BAPIRET2 Call by reference Type reference (TYPE) BAPIRET2_T Return parameter table 20091026
2 Exporting ET_HEADER Call by reference Type reference (TYPE) SAWE_T_SA_HDR Staff Assignment Header 20091026
3 Exporting ET_ITEM Call by reference Type reference (TYPE) SAWE_T_SA_ITM Staff Assignment Item 20091026
4 Importing IS_DATE_PERIOD Call by reference Type reference (TYPE) SAWE_S_SA_QUERY_DATE_PERIOD Staff assignment date periode 20091026
5 Importing IV_EMPLOYEE_ID Call by reference Type reference (TYPE) PERNR_D Personnel Number 20091026

Method GET_BY_EMPLOYEE on class CL_SAWE_SA_API has no exception.

Method GET_BY_OBJECT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_BAPIRET2 Call by reference Type reference (TYPE) BAPIRET2_T Return parameter table 20091026
2 Exporting ET_HEADER Call by reference Type reference (TYPE) SAWE_T_SA_HDR Staff Assignment Header 20091026
3 Exporting ET_ITEM Call by reference Type reference (TYPE) SAWE_T_SA_ITM Staff Assignment Item 20091026
4 Importing IS_DATE_PERIOD Call by reference Type reference (TYPE) SAWE_S_SA_QUERY_DATE_PERIOD Staff assignment date periode 20091026
5 Importing IV_OBJECT_ID Call by reference Type reference (TYPE) SWO_OBJID Object ID 20091026
6 Importing IV_OBJECT_TYPE Call by reference Type reference (TYPE) WE_ENGAGEMENT_TYPE Work Engagement type 20091026

Method GET_BY_OBJECT on class CL_SAWE_SA_API has no exception.

Method GET_HEADER_SINGLE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning ES_HEADER Value transfer Type reference (TYPE) SAWE_S_SA_HDR Staff Assignment Header 20091020
2 Importing IT_HEADER Call by reference Type reference (TYPE) SAWE_T_SA_HDR Staff Assignment Header 20091020
# Exception Resumable Description Created on
1 ERROR_INITIAL Header table is initial 20091020
2 ERROR_NOT_SINGLE Header table contains multiple records 20091020

Method INITIALIZE_API Signature

Method INITIALIZE_API on class CL_SAWE_SA_API has no parameter.
Method INITIALIZE_API on class CL_SAWE_SA_API has no exception.

Method ON_COMMIT_ERROR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_ERROR Value transfer Type reference (TYPE) ABAP_BOOL 20091116

Method ON_COMMIT_ERROR on class CL_SAWE_SA_API has no exception.

Method READ_BY_ELEMENTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_BAPIRET2 Call by reference Type reference (TYPE) BAPIRET2_T Return Parameter 20091014
2 Exporting ET_HEADER Call by reference Type reference (TYPE) SAWE_T_SA_HDR_API_OUT 20091014
3 Exporting ET_ITEM Call by reference Type reference (TYPE) SAWE_T_SA_ITM_API_OUT Staff assignment item table 20091014
4 Importing IS_DATE_PERIOD Call by reference Type reference (TYPE) SAWE_S_SA_QUERY_DATE_PERIOD Staff assignment date periode 20091026
5 Importing IS_HEADER Call by reference Type reference (TYPE) SAWE_S_SA_HDR_KEY Staff assignment header key attributes 20091014

Method READ_BY_ELEMENTS on class CL_SAWE_SA_API has no exception.

Method READ_BY_ID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_HEADER Call by reference Type reference (TYPE) SAWE_S_SA_HDR_API_OUT Staff assignment header API outbound 20091012
2 Exporting ET_BAPIRET2 Call by reference Type reference (TYPE) BAPIRET2_T Return Parameter 20091012
3 Exporting ET_ITEM Call by reference Type reference (TYPE) SAWE_T_SA_ITM_API_OUT Staff assignment item table 20091012
4 Importing IS_HEADER Call by reference Type reference (TYPE) SAWE_S_SA_HDR_KEY Staff assignment header key attributes 20091012

Method READ_BY_ID on class CL_SAWE_SA_API has no exception.

Method SET_HEADER_CHANGE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_HEADER_CHANGE Call by reference Type reference (TYPE) SAWE_S_SA_HDR_D Staff assignment header attributes 20091127
2 Importing IS_HEADER Call by reference Type reference (TYPE) SAWE_S_SA_HDR Staff Assignment Header 20091127
3 Importing IS_HEADER_CHANGE Call by reference Type reference (TYPE) SAWE_S_SA_HDR_D Staff assignment header attributes 20091127

Method SET_HEADER_CHANGE on class CL_SAWE_SA_API has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 605