SAP CPE_TEST_JAVA_FA Function Module for test formula assembly









CPE_TEST_JAVA_FA is a standard cpe test java fa SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for test formula assembly 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 cpe test java fa FM, simply by entering the name CPE_TEST_JAVA_FA into the relevant SAP transaction such as SE37 or SE38.

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



Function CPE_TEST_JAVA_FA 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 'CPE_TEST_JAVA_FA'"test formula assembly
EXPORTING
* IV_ASSEMBLY_DATE = '20041105' "assembly date
IV_SHIP_TO_PARTY = "ship to party
* IV_PRI_COND_TYPE = 'FA00' "pricing condition type
IV_PRI_COND_TYPE2 = "2nd pricing condition type
IV_PRODUCT = "product
IV_PRODUCT_GROUP = "product group
* IV_PRIC_PROC = '0CRM01' "pricing procedure
* IV_FA_PROC = '0CPEF2' "fa procedure
* IV_FA_ROUT = 1 "CPE - Routine
* IV_SALES_ORG = 'O 50000020' "sales org
* IV_DIS_CHANNEL = 'G1' "dis channel
* IV_DIVISION = 'G1' "division
* IV_CUST_GROUP = '01' "Customer group
IV_SOLD_TO_PARTY = "sold to party
.



IMPORTING Parameters details for CPE_TEST_JAVA_FA

IV_ASSEMBLY_DATE - assembly date

Data type: CHAR50
Default: '20041105'
Optional: No
Call by Reference: Yes

IV_SHIP_TO_PARTY - ship to party

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

IV_PRI_COND_TYPE - pricing condition type

Data type: CHAR50
Default: 'FA00'
Optional: No
Call by Reference: Yes

IV_PRI_COND_TYPE2 - 2nd pricing condition type

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

IV_PRODUCT - product

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

IV_PRODUCT_GROUP - product group

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

IV_PRIC_PROC - pricing procedure

Data type: CPET_PRC_PROCEDURE
Default: '0CRM01'
Optional: No
Call by Reference: Yes

IV_FA_PROC - fa procedure

Data type: CPET_FA_PROCEDURE
Default: '0CPEF2'
Optional: No
Call by Reference: Yes

IV_FA_ROUT - CPE - Routine

Data type: CPET_ROUTINE
Default: 1
Optional: No
Call by Reference: Yes

IV_SALES_ORG - sales org

Data type: CHAR50
Default: 'O 50000020'
Optional: No
Call by Reference: Yes

IV_DIS_CHANNEL - dis channel

Data type: CHAR50
Default: 'G1'
Optional: No
Call by Reference: Yes

IV_DIVISION - division

Data type: CHAR50
Default: 'G1'
Optional: No
Call by Reference: Yes

IV_CUST_GROUP - Customer group

Data type: CHAR50
Default: '01'
Optional: No
Call by Reference: Yes

IV_SOLD_TO_PARTY - sold to party

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

Copy and paste ABAP code example for CPE_TEST_JAVA_FA 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_iv_assembly_date  TYPE CHAR50, "   '20041105'
lv_iv_ship_to_party  TYPE CHAR50, "   
lv_iv_pri_cond_type  TYPE CHAR50, "   'FA00'
lv_iv_pri_cond_type2  TYPE CHAR50, "   
lv_iv_product  TYPE CHAR50, "   
lv_iv_product_group  TYPE CHAR50, "   
lv_iv_pric_proc  TYPE CPET_PRC_PROCEDURE, "   '0CRM01'
lv_iv_fa_proc  TYPE CPET_FA_PROCEDURE, "   '0CPEF2'
lv_iv_fa_rout  TYPE CPET_ROUTINE, "   1
lv_iv_sales_org  TYPE CHAR50, "   'O 50000020'
lv_iv_dis_channel  TYPE CHAR50, "   'G1'
lv_iv_division  TYPE CHAR50, "   'G1'
lv_iv_cust_group  TYPE CHAR50, "   '01'
lv_iv_sold_to_party  TYPE CHAR50. "   

  CALL FUNCTION 'CPE_TEST_JAVA_FA'  "test formula assembly
    EXPORTING
         IV_ASSEMBLY_DATE = lv_iv_assembly_date
         IV_SHIP_TO_PARTY = lv_iv_ship_to_party
         IV_PRI_COND_TYPE = lv_iv_pri_cond_type
         IV_PRI_COND_TYPE2 = lv_iv_pri_cond_type2
         IV_PRODUCT = lv_iv_product
         IV_PRODUCT_GROUP = lv_iv_product_group
         IV_PRIC_PROC = lv_iv_pric_proc
         IV_FA_PROC = lv_iv_fa_proc
         IV_FA_ROUT = lv_iv_fa_rout
         IV_SALES_ORG = lv_iv_sales_org
         IV_DIS_CHANNEL = lv_iv_dis_channel
         IV_DIVISION = lv_iv_division
         IV_CUST_GROUP = lv_iv_cust_group
         IV_SOLD_TO_PARTY = lv_iv_sold_to_party
. " CPE_TEST_JAVA_FA




ABAP code using 7.40 inline data declarations to call FM CPE_TEST_JAVA_FA

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_iv_assembly_date) = '20041105'.
 
 
DATA(ld_iv_pri_cond_type) = 'FA00'.
 
 
 
 
DATA(ld_iv_pric_proc) = '0CRM01'.
 
DATA(ld_iv_fa_proc) = '0CPEF2'.
 
DATA(ld_iv_fa_rout) = 1.
 
DATA(ld_iv_sales_org) = 'O 50000020'.
 
DATA(ld_iv_dis_channel) = 'G1'.
 
DATA(ld_iv_division) = 'G1'.
 
DATA(ld_iv_cust_group) = '01'.
 
 


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!