SAP CF_GET_PRC_AMOUNTS_BPAK Function Module for









CF_GET_PRC_AMOUNTS_BPAK is a standard cf get prc amounts bpak 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 cf get prc amounts bpak FM, simply by entering the name CF_GET_PRC_AMOUNTS_BPAK into the relevant SAP transaction such as SE37 or SE38.

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



Function CF_GET_PRC_AMOUNTS_BPAK 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 'CF_GET_PRC_AMOUNTS_BPAK'"
EXPORTING
I_FIKRS = "
I_WAERS = "
I_CF_BTR = "
I_F_BPAK = "
I_OBJNR = "
I_POSIT = "
I_GEBER = "
I_FAREA = "
I_GJAHR = "
I_CF_WRTTP = "
I_X_CFB = "
* I_CFPARAMETER = "

TABLES
E_T_BPAK = "

EXCEPTIONS
PRC_EXCEED = 1 RECEIVERS_ERROR = 2
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLFMCF_BUD_001 ISPS: FYC Budget: Calculation Maximum Transferable Amount
EXIT_SAPLFMCF_BUD_002 ISPS: FYC Budget: Can Approved/Requested Amount Be Negative

IMPORTING Parameters details for CF_GET_PRC_AMOUNTS_BPAK

I_FIKRS -

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

I_WAERS -

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

I_CF_BTR -

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

I_F_BPAK -

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

I_OBJNR -

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

I_POSIT -

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

I_GEBER -

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

I_FAREA -

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

I_GJAHR -

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

I_CF_WRTTP -

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

I_X_CFB -

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

I_CFPARAMETER -

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

TABLES Parameters details for CF_GET_PRC_AMOUNTS_BPAK

E_T_BPAK -

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

EXCEPTIONS details

PRC_EXCEED -

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

RECEIVERS_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CF_GET_PRC_AMOUNTS_BPAK 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_i_fikrs  TYPE FM01-FIKRS, "   
lt_e_t_bpak  TYPE STANDARD TABLE OF BPAK, "   
lv_prc_exceed  TYPE BPAK, "   
lv_i_waers  TYPE FMCFAB-WAERS, "   
lv_i_cf_btr  TYPE FMCFAB-CF_BTR, "   
lv_i_f_bpak  TYPE BPAK, "   
lv_i_objnr  TYPE IFMCFSB-OBJNR, "   
lv_receivers_error  TYPE IFMCFSB, "   
lv_i_posit  TYPE IFMCFSB-POSIT, "   
lv_i_geber  TYPE IFMCFSB-GEBER, "   
lv_i_farea  TYPE IFMCFSB-FAREA, "   
lv_i_gjahr  TYPE IFMCFSB-GJAHR, "   
lv_i_cf_wrttp  TYPE IFMCFSB-CF_WRTTP, "   
lv_i_x_cfb  TYPE FM_XCFB, "   
lv_i_cfparameter  TYPE FM_CFRULE. "   

  CALL FUNCTION 'CF_GET_PRC_AMOUNTS_BPAK'  "
    EXPORTING
         I_FIKRS = lv_i_fikrs
         I_WAERS = lv_i_waers
         I_CF_BTR = lv_i_cf_btr
         I_F_BPAK = lv_i_f_bpak
         I_OBJNR = lv_i_objnr
         I_POSIT = lv_i_posit
         I_GEBER = lv_i_geber
         I_FAREA = lv_i_farea
         I_GJAHR = lv_i_gjahr
         I_CF_WRTTP = lv_i_cf_wrttp
         I_X_CFB = lv_i_x_cfb
         I_CFPARAMETER = lv_i_cfparameter
    TABLES
         E_T_BPAK = lt_e_t_bpak
    EXCEPTIONS
        PRC_EXCEED = 1
        RECEIVERS_ERROR = 2
. " CF_GET_PRC_AMOUNTS_BPAK




ABAP code using 7.40 inline data declarations to call FM CF_GET_PRC_AMOUNTS_BPAK

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.

"SELECT single FIKRS FROM FM01 INTO @DATA(ld_i_fikrs).
 
 
 
"SELECT single WAERS FROM FMCFAB INTO @DATA(ld_i_waers).
 
"SELECT single CF_BTR FROM FMCFAB INTO @DATA(ld_i_cf_btr).
 
 
"SELECT single OBJNR FROM IFMCFSB INTO @DATA(ld_i_objnr).
 
 
"SELECT single POSIT FROM IFMCFSB INTO @DATA(ld_i_posit).
 
"SELECT single GEBER FROM IFMCFSB INTO @DATA(ld_i_geber).
 
"SELECT single FAREA FROM IFMCFSB INTO @DATA(ld_i_farea).
 
"SELECT single GJAHR FROM IFMCFSB INTO @DATA(ld_i_gjahr).
 
"SELECT single CF_WRTTP FROM IFMCFSB INTO @DATA(ld_i_cf_wrttp).
 
 
 


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!