PFO_OBJECT_UPDATE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name PFO_OBJECT_UPDATE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
PFO_BASIS
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'PFO_OBJECT_UPDATE' "
* EXPORTING
* id_termdate = " pfo_termdate
* id_logname = " balnrext
* id_update_task = " flag
* id_mass_proc = " flag
CHANGING
cr_structure = " data
* cd_log = " balloghndl
* crt_changed = " data
* crt_complete = " data
* co_bal = " cl_cacs_bal
* cd_now = " cacstimestamp
* co_buffer = " cl_pfo_buffer
EXCEPTIONS
ALREADY_EXISTS = 1 "
PROCESSING_ERROR = 2 "
DB_ERROR = 3 "
DOESNT_EXIST = 4 "
ID_INCONSISTENT = 5 "
ASSIGN_ERROR = 6 "
LOG_ERROR = 7 "
. " PFO_OBJECT_UPDATE
The ABAP code below is a full code listing to execute function module PFO_OBJECT_UPDATE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
DATA(ld_cr_structure) = 'Check type of data required'.
DATA(ld_cd_log) = 'Check type of data required'.
DATA(ld_crt_changed) = 'Check type of data required'.
DATA(ld_crt_complete) = 'Check type of data required'.
DATA(ld_co_bal) = 'Check type of data required'.
DATA(ld_cd_now) = 'Check type of data required'.
DATA(ld_co_buffer) = 'Check type of data required'.
DATA(ld_id_termdate) = 'Check type of data required'.
DATA(ld_id_logname) = 'Check type of data required'.
DATA(ld_id_update_task) = 'Check type of data required'.
DATA(ld_id_mass_proc) = 'Check type of data required'. . CALL FUNCTION 'PFO_OBJECT_UPDATE' * EXPORTING * id_termdate = ld_id_termdate * id_logname = ld_id_logname * id_update_task = ld_id_update_task * id_mass_proc = ld_id_mass_proc CHANGING cr_structure = ld_cr_structure * cd_log = ld_cd_log * crt_changed = ld_crt_changed * crt_complete = ld_crt_complete * co_bal = ld_co_bal * cd_now = ld_cd_now * co_buffer = ld_co_buffer EXCEPTIONS ALREADY_EXISTS = 1 PROCESSING_ERROR = 2 DB_ERROR = 3 DOESNT_EXIST = 4 ID_INCONSISTENT = 5 ASSIGN_ERROR = 6 LOG_ERROR = 7 . " PFO_OBJECT_UPDATE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ENDIF.
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_cr_structure | TYPE DATA , |
| ld_id_termdate | TYPE PFO_TERMDATE , |
| ld_cd_log | TYPE BALLOGHNDL , |
| ld_id_logname | TYPE BALNREXT , |
| ld_crt_changed | TYPE DATA , |
| ld_id_update_task | TYPE FLAG , |
| ld_crt_complete | TYPE DATA , |
| ld_id_mass_proc | TYPE FLAG , |
| ld_co_bal | TYPE CL_CACS_BAL , |
| ld_cd_now | TYPE CACSTIMESTAMP , |
| ld_co_buffer | TYPE CL_PFO_BUFFER . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name PFO_OBJECT_UPDATE or its description.