SAP PFO_OBJECT_SINGLE_SWITCH_US Function Module for Single Switch with Universal Succession









PFO_OBJECT_SINGLE_SWITCH_US is a standard pfo object single switch us SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Single Switch with Universal Succession processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for pfo object single switch us FM, simply by entering the name PFO_OBJECT_SINGLE_SWITCH_US into the relevant SAP transaction such as SE37 or SE38.

Function Group: PFO_COMPLEX_SC
Program Name: SAPLPFO_COMPLEX_SC
Main Program: SAPLPFO_COMPLEX_SC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function PFO_OBJECT_SINGLE_SWITCH_US pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'PFO_OBJECT_SINGLE_SWITCH_US'"Single Switch with Universal Succession
EXPORTING
* ID_TERMDATE = "
* ID_LOGNAME = "
* ID_UPDATE_TASK = "
* ID_MASS_PROC = "
* IR_OLD_ASSIGNED = "

CHANGING
CR_STRUCTURE = "
* CD_LOG = "
* CRT_CHANGED = "
* CRT_COMPLETE = "
* CO_BAL = "
* CD_NOW = "
* CO_BUFFER = "
* CT_ENQ_VAL = "

EXCEPTIONS
ALREADY_EXISTS = 1 PROCESSING_ERROR = 2 DB_ERROR = 3 DOESNT_EXIST = 4 ID_INCONSISTENT = 5 ASSIGN_ERROR = 6 LOG_ERROR = 7 WRONG_KIND = 8
.



IMPORTING Parameters details for PFO_OBJECT_SINGLE_SWITCH_US

ID_TERMDATE -

Data type: PFO_TERMDATE
Optional: Yes
Call by Reference: Yes

ID_LOGNAME -

Data type: BALNREXT
Optional: Yes
Call by Reference: Yes

ID_UPDATE_TASK -

Data type: FLAG
Optional: Yes
Call by Reference: Yes

ID_MASS_PROC -

Data type: FLAG
Optional: Yes
Call by Reference: Yes

IR_OLD_ASSIGNED -

Data type: DATA
Optional: Yes
Call by Reference: Yes

CHANGING Parameters details for PFO_OBJECT_SINGLE_SWITCH_US

CR_STRUCTURE -

Data type: DATA
Optional: No
Call by Reference: Yes

CD_LOG -

Data type: BALLOGHNDL
Optional: Yes
Call by Reference: Yes

CRT_CHANGED -

Data type: DATA
Optional: Yes
Call by Reference: Yes

CRT_COMPLETE -

Data type: DATA
Optional: Yes
Call by Reference: Yes

CO_BAL -

Data type: CL_CACS_BAL
Optional: Yes
Call by Reference: Yes

CD_NOW -

Data type: PFO_TERMDATE
Optional: Yes
Call by Reference: Yes

CO_BUFFER -

Data type: CL_PFO_BUFFER
Optional: Yes
Call by Reference: Yes

CT_ENQ_VAL -

Data type: PFO_TI_ENQ_VAL
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

ALREADY_EXISTS -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PROCESSING_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DB_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DOESNT_EXIST -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ID_INCONSISTENT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ASSIGN_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

LOG_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

WRONG_KIND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for PFO_OBJECT_SINGLE_SWITCH_US Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_id_termdate  TYPE PFO_TERMDATE, "   
lv_cr_structure  TYPE DATA, "   
lv_already_exists  TYPE DATA, "   
lv_cd_log  TYPE BALLOGHNDL, "   
lv_id_logname  TYPE BALNREXT, "   
lv_processing_error  TYPE BALNREXT, "   
lv_db_error  TYPE BALNREXT, "   
lv_crt_changed  TYPE DATA, "   
lv_id_update_task  TYPE FLAG, "   
lv_crt_complete  TYPE DATA, "   
lv_doesnt_exist  TYPE DATA, "   
lv_id_mass_proc  TYPE FLAG, "   
lv_co_bal  TYPE CL_CACS_BAL, "   
lv_id_inconsistent  TYPE CL_CACS_BAL, "   
lv_ir_old_assigned  TYPE DATA, "   
lv_cd_now  TYPE PFO_TERMDATE, "   
lv_assign_error  TYPE PFO_TERMDATE, "   
lv_co_buffer  TYPE CL_PFO_BUFFER, "   
lv_log_error  TYPE CL_PFO_BUFFER, "   
lv_ct_enq_val  TYPE PFO_TI_ENQ_VAL, "   
lv_wrong_kind  TYPE PFO_TI_ENQ_VAL. "   

  CALL FUNCTION 'PFO_OBJECT_SINGLE_SWITCH_US'  "Single Switch with Universal Succession
    EXPORTING
         ID_TERMDATE = lv_id_termdate
         ID_LOGNAME = lv_id_logname
         ID_UPDATE_TASK = lv_id_update_task
         ID_MASS_PROC = lv_id_mass_proc
         IR_OLD_ASSIGNED = lv_ir_old_assigned
    CHANGING
         CR_STRUCTURE = lv_cr_structure
         CD_LOG = lv_cd_log
         CRT_CHANGED = lv_crt_changed
         CRT_COMPLETE = lv_crt_complete
         CO_BAL = lv_co_bal
         CD_NOW = lv_cd_now
         CO_BUFFER = lv_co_buffer
         CT_ENQ_VAL = lv_ct_enq_val
    EXCEPTIONS
        ALREADY_EXISTS = 1
        PROCESSING_ERROR = 2
        DB_ERROR = 3
        DOESNT_EXIST = 4
        ID_INCONSISTENT = 5
        ASSIGN_ERROR = 6
        LOG_ERROR = 7
        WRONG_KIND = 8
. " PFO_OBJECT_SINGLE_SWITCH_US




ABAP code using 7.40 inline data declarations to call FM PFO_OBJECT_SINGLE_SWITCH_US

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!