SAP FPB_PERS_API_POST Function Module for









FPB_PERS_API_POST is a standard fpb pers api post SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 fpb pers api post FM, simply by entering the name FPB_PERS_API_POST into the relevant SAP transaction such as SE37 or SE38.

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



Function FPB_PERS_API_POST 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 'FPB_PERS_API_POST'"
EXPORTING
IT_VALUE = "
* ID_PERSKEYTP = 'U' "
* ID_PERSKEY = "
* ID_SUBCONTEXT = "
* ID_DATEFROM = "
* ID_DATETO = "
* ID_ORIGIN = 'I' "
* ID_DELETE = 'X' "
* ID_NO_COMMIT = ' ' "

EXCEPTIONS
AUTHORITY_CHECK_FAILED = 1 ORIGIN_NOT_VALID = 10 EXISTENCE_CHECK_FAILED = 2 DATA_INCONSISTENCE = 3 NO_INPUT = 4 OVER_DEFINED = 5 DIALOG_NOT_FOUND = 6 APPLID_NOT_FOUND = 7 FIELDNAME_NOT_FOUND = 8 FIELDTYPE_NOT_VALID = 9
.



IMPORTING Parameters details for FPB_PERS_API_POST

IT_VALUE -

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

ID_PERSKEYTP -

Data type: FPB_KEYTP
Default: 'U'
Optional: Yes
Call by Reference: Yes

ID_PERSKEY -

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

ID_SUBCONTEXT -

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

ID_DATEFROM -

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

ID_DATETO -

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

ID_ORIGIN -

Data type: CHAR1
Default: 'I'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ID_DELETE -

Data type: FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ID_NO_COMMIT -

Data type: FLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

AUTHORITY_CHECK_FAILED -

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

ORIGIN_NOT_VALID -

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

EXISTENCE_CHECK_FAILED -

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

DATA_INCONSISTENCE -

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

NO_INPUT -

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

OVER_DEFINED -

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

DIALOG_NOT_FOUND -

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

APPLID_NOT_FOUND -

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

FIELDNAME_NOT_FOUND -

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

FIELDTYPE_NOT_VALID -

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

Copy and paste ABAP code example for FPB_PERS_API_POST 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_it_value  TYPE FPB_T_VALUES, "   
lv_authority_check_failed  TYPE FPB_T_VALUES, "   
lv_origin_not_valid  TYPE FPB_T_VALUES, "   
lv_id_perskeytp  TYPE FPB_KEYTP, "   'U'
lv_existence_check_failed  TYPE FPB_KEYTP, "   
lv_id_perskey  TYPE FPB_KEY, "   
lv_data_inconsistence  TYPE FPB_KEY, "   
lv_no_input  TYPE FPB_KEY, "   
lv_id_subcontext  TYPE FPB_APPSUBCON, "   
lv_id_datefrom  TYPE DATUM, "   
lv_over_defined  TYPE DATUM, "   
lv_id_dateto  TYPE DATUM, "   
lv_dialog_not_found  TYPE DATUM, "   
lv_id_origin  TYPE CHAR1, "   'I'
lv_applid_not_found  TYPE CHAR1, "   
lv_id_delete  TYPE FLAG, "   'X'
lv_fieldname_not_found  TYPE FLAG, "   
lv_id_no_commit  TYPE FLAG, "   SPACE
lv_fieldtype_not_valid  TYPE FLAG. "   

  CALL FUNCTION 'FPB_PERS_API_POST'  "
    EXPORTING
         IT_VALUE = lv_it_value
         ID_PERSKEYTP = lv_id_perskeytp
         ID_PERSKEY = lv_id_perskey
         ID_SUBCONTEXT = lv_id_subcontext
         ID_DATEFROM = lv_id_datefrom
         ID_DATETO = lv_id_dateto
         ID_ORIGIN = lv_id_origin
         ID_DELETE = lv_id_delete
         ID_NO_COMMIT = lv_id_no_commit
    EXCEPTIONS
        AUTHORITY_CHECK_FAILED = 1
        ORIGIN_NOT_VALID = 10
        EXISTENCE_CHECK_FAILED = 2
        DATA_INCONSISTENCE = 3
        NO_INPUT = 4
        OVER_DEFINED = 5
        DIALOG_NOT_FOUND = 6
        APPLID_NOT_FOUND = 7
        FIELDNAME_NOT_FOUND = 8
        FIELDTYPE_NOT_VALID = 9
. " FPB_PERS_API_POST




ABAP code using 7.40 inline data declarations to call FM FPB_PERS_API_POST

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.

 
 
 
DATA(ld_id_perskeytp) = 'U'.
 
 
 
 
 
 
 
 
 
 
DATA(ld_id_origin) = 'I'.
 
 
DATA(ld_id_delete) = 'X'.
 
 
DATA(ld_id_no_commit) = ' '.
 
 


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!