SAP PFO_OBJECT_FREE_SELECTION Function Module for NOTRANSL: Datenbeschaffung per freier Selektion









PFO_OBJECT_FREE_SELECTION is a standard pfo object free selection SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Datenbeschaffung per freier Selektion 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 free selection FM, simply by entering the name PFO_OBJECT_FREE_SELECTION into the relevant SAP transaction such as SE37 or SE38.

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



Function PFO_OBJECT_FREE_SELECTION 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_FREE_SELECTION'"NOTRANSL: Datenbeschaffung per freier Selektion
EXPORTING
* ID_TERMDATE = "Date on Which an Object is Due to End
* ID_LOGNAME = "Application Log: External Identification
* IS_OBJECTDATA = "Object Types of Portfolio Assignment for DB Tables
* IT_WHERECOND = "
* ID_WHERECOND = "

CHANGING
* CR_STRUCTURE = "Data Record
* CD_LOG = "Application Log: Log Handle
CT_CHANGED = "Resulting Quantity
* CT_COMPLETE = "All Data Records of Object
* CO_BAL = "CUX: Application LOG

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



IMPORTING Parameters details for PFO_OBJECT_FREE_SELECTION

ID_TERMDATE - Date on Which an Object is Due to End

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

ID_LOGNAME - Application Log: External Identification

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

IS_OBJECTDATA - Object Types of Portfolio Assignment for DB Tables

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

IT_WHERECOND -

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

ID_WHERECOND -

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

CHANGING Parameters details for PFO_OBJECT_FREE_SELECTION

CR_STRUCTURE - Data Record

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

CD_LOG - Application Log: Log Handle

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

CT_CHANGED - Resulting Quantity

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

CT_COMPLETE - All Data Records of Object

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

CO_BAL - CUX: Application LOG

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

EXCEPTIONS details

ALREADY_EXISTS -

Data type:
Optional: No
Call by Reference: Yes

PROCESSING_ERROR -

Data type:
Optional: No
Call by Reference: Yes

DB_ERROR -

Data type:
Optional: No
Call by Reference: Yes

DOESNT_EXIST -

Data type:
Optional: No
Call by Reference: Yes

ID_INCONSISTENT -

Data type:
Optional: No
Call by Reference: Yes

LOG_ERROR -

Data type:
Optional: No
Call by Reference: Yes

ASSIGN_ERROR -

Data type:
Optional: No
Call by Reference: Yes

NO_METADATA -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for PFO_OBJECT_FREE_SELECTION 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_ct_changed  TYPE DATA, "   
lv_is_objectdata  TYPE PFO_S_OBJECT, "   
lv_ct_complete  TYPE DATA, "   
lv_doesnt_exist  TYPE DATA, "   
lv_it_wherecond  TYPE RSDS_TWHERE, "   
lv_co_bal  TYPE CL_CACS_BAL, "   
lv_id_wherecond  TYPE STRING, "   
lv_id_inconsistent  TYPE STRING, "   
lv_log_error  TYPE STRING, "   
lv_assign_error  TYPE STRING, "   
lv_no_metadata  TYPE STRING. "   

  CALL FUNCTION 'PFO_OBJECT_FREE_SELECTION'  "NOTRANSL: Datenbeschaffung per freier Selektion
    EXPORTING
         ID_TERMDATE = lv_id_termdate
         ID_LOGNAME = lv_id_logname
         IS_OBJECTDATA = lv_is_objectdata
         IT_WHERECOND = lv_it_wherecond
         ID_WHERECOND = lv_id_wherecond
    CHANGING
         CR_STRUCTURE = lv_cr_structure
         CD_LOG = lv_cd_log
         CT_CHANGED = lv_ct_changed
         CT_COMPLETE = lv_ct_complete
         CO_BAL = lv_co_bal
    EXCEPTIONS
        ALREADY_EXISTS = 1
        PROCESSING_ERROR = 2
        DB_ERROR = 3
        DOESNT_EXIST = 4
        ID_INCONSISTENT = 5
        LOG_ERROR = 6
        ASSIGN_ERROR = 7
        NO_METADATA = 8
. " PFO_OBJECT_FREE_SELECTION




ABAP code using 7.40 inline data declarations to call FM PFO_OBJECT_FREE_SELECTION

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!