SAP CPE_TEST_JAVA_FE Function Module for Test Java API of CPE for Formula Evaluation









CPE_TEST_JAVA_FE is a standard cpe test java fe 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 Java API of CPE for Formula Evaluation 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 fe FM, simply by entering the name CPE_TEST_JAVA_FE 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): Remote-Enabled
Update:



Function CPE_TEST_JAVA_FE 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_FE'"Test Java API of CPE for Formula Evaluation
EXPORTING
* IV_VMCDEST = '' "Logical Destination (Specified in Function Call)
* IV_DOC_PRIC_DATE = "Character Field Length = 10
* IV_DOC_CURR = "CPE Caller - Document Currency
* IV_ITEM_QUAN = "Character Field Length = 10
* IV_ITEM_UOM = "CPE Formula - Unit of Measure of Commodity Used in Formula
* IV_ITEM_CURR = "CPE Default Value - Currency
* IV_ITEM_EVAL_DATE = "Character Field Length = 10
* IV_REFDATEROUT1 = '0000001' "CPE Term - Reference Date and Time Routine
* IV_REFTIMESTAMP1 = '11.02.2000 00:00:00' "CPE Term - Calculated Reference Date and Time
* IV_REFDATEROUT2 = '0000002' "CPE Term - Reference Date and Time Routine
* IV_REFTIMESTAMP2 = '11.02.2000 00:00:00' "CPE Term - Calculated Reference Date and Time
* IV_LOGSYS = ' ' "Logical system
* IV_REFDATEROUT3 = '0000011' "CPE Term - Reference Date and Time Routine
* IV_REFTIMESTAMP3 = '11.02.2000 00:00:00' "CPE Term - Calculated Reference Date and Time
* IV_IF_QUANCONVSRC_1 = '01' "CPE - Quantity Conversion Source
* IV_IF_UOMCONV1_1 = 'M3' "CPE - Unit of Measure for Quantity Conversion Factor
* IV_IF_UOMCONV2_1 = 'TO' "CPE - Unit of Measure for Quantity Conversion Factor
* IV_IF_QUANCONV1_1 = '100' "CPE - Quantity for Part of Conversion Factor
* IV_IF_QUANCONV2_1 = '80' "CPE - Quantity for Part of Conversion Factor
* IV_IF_QUANCONVSRC_2 = '01' "CPE - Quantity Conversion Source
* IV_IF_UOMCONV1_2 = 'TO' "CPE - Unit of Measure for Quantity Conversion Factor
* IV_IF_UOMCONV2_2 = 'M3' "CPE - Unit of Measure for Quantity Conversion Factor
* IV_APPLICATION = 'CRM' "CPE Caller - Application using CPE
* IV_IF_QUANCONV1_2 = '100' "CPE - Quantity for Part of Conversion Factor
* IV_IF_QUANCONV2_2 = '125' "CPE - Quantity for Part of Conversion Factor
* IV_IF2_QUANCONVSRC_1 = '06' "CPE - Quantity Conversion Source
* IV_IF2_UOMCONV_1 = 'M3' "CPE - Unit of Measure for Quantity Conversion Factor
* IV_IF2_QUANCONV_1 = '100' "CPE - Quantity for Part of Conversion Factor
* IV_IF2_QUANCONVSRC_2 = '06' "CPE - Quantity Conversion Source
* IV_IF2_UOMCONV_2 = 'TO' "CPE - Unit of Measure for Quantity Conversion Factor
* IV_IF2_QUANCONV_2 = '80' "CPE - Quantity for Part of Conversion Factor
* IV_LOG_PRIORITY = '5' "CPE - Priority of Log Entry
* IV_EXPECTED_FORMRATE = "CPE Formula - Rate in Formula Currency
* IV_ORGANIZATION = ' ' "CPE Caller - Organization
* IV_EXPECTED_FORMVAL = "CPE Formula -Value in Formula Currency
* IV_EXPECTED_FORMCURR = "CPE Formula - Currency
* IV_EXPECTED_FORMPRUN = "CPE Formula - Price Unit
* IV_EXPECTED_FORMUOM = "CPE Formula - Unit of Measure
* IT_REFDATES = "CPE - Table Type for Reference Date and Time Interface
* IT_QUANCONV_PAIR = "CPE - Table Type for Quantity Conv. Interface in Pair Format
* IT_QUANCONV_LIST = "CPE - Table Type for Quantity Conv. Interface in List Form
* IT_NAMEVALUEPAIRS_10 = "CPE Caller - Name Value Pair with Length = 10
* IT_NAMEVALUEPAIRS_50 = "CPE Caller - Name Value Pair with Length = 50
* IT_NAMEVALUEPAIRS_255 = "CPE Caller - Name Value Pair with Length = 255
* IV_HEADER_DOCCATEGORY = '1' "CPE Caller - Document Category
* IV_REFDOCCAT = "CPE Term - Reference Document Category
* IV_REFDOC = "CPE Term - Reference Document Number
* IV_REFITEM = "CPE Term - Reference Document Item Number
* IV_REFCOND = "CPE Term - Reference Condition Type
* IV_REFRATE = "CPE Formula - Rate in Formula Currency
* IV_REFCURR = "CPE Formula - Currency
* IV_REFPRUN = "CPE Formula - Price Unit
* IV_REFUOM = "CPE Formula - Unit of Measure
* IV_RFC_CONTEXT = 'CRM_TO_CPE' "CPE Caller - Context of RFC Destination
* IV_ITEM_DOCCATEGORY = '1' "CPE Caller - Document Category
* IV_FORMID = "CPE Formula - Key
* IV_CONDTYPE_PR = "CPE: Condition Type of Pricing

IMPORTING
EV_TEST_ERROR_OCCURRED = "Single-Character Flag
EV_ERROR_TYPE = "30 Characters
ES_CPE_DOC_RESULT = "Single-Character Flag
ET_LOG = "CPE - Table for Log Data in Documents
EV_REFTIMESTAMP1 = "CPE Term - Calculated Reference Date and Time
.



IMPORTING Parameters details for CPE_TEST_JAVA_FE

IV_VMCDEST - Logical Destination (Specified in Function Call)

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

IV_DOC_PRIC_DATE - Character Field Length = 10

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

IV_DOC_CURR - CPE Caller - Document Currency

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

IV_ITEM_QUAN - Character Field Length = 10

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

IV_ITEM_UOM - CPE Formula - Unit of Measure of Commodity Used in Formula

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

IV_ITEM_CURR - CPE Default Value - Currency

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

IV_ITEM_EVAL_DATE - Character Field Length = 10

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

IV_REFDATEROUT1 - CPE Term - Reference Date and Time Routine

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

IV_REFTIMESTAMP1 - CPE Term - Calculated Reference Date and Time

Data type: CPET_REFTIMESTAMP
Default: '11.02.2000 00:00:00'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_REFDATEROUT2 - CPE Term - Reference Date and Time Routine

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

IV_REFTIMESTAMP2 - CPE Term - Calculated Reference Date and Time

Data type: CPET_REFTIMESTAMP
Default: '11.02.2000 00:00:00'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_LOGSYS - Logical system

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

IV_REFDATEROUT3 - CPE Term - Reference Date and Time Routine

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

IV_REFTIMESTAMP3 - CPE Term - Calculated Reference Date and Time

Data type: CPET_REFTIMESTAMP
Default: '11.02.2000 00:00:00'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_IF_QUANCONVSRC_1 - CPE - Quantity Conversion Source

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

IV_IF_UOMCONV1_1 - CPE - Unit of Measure for Quantity Conversion Factor

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

IV_IF_UOMCONV2_1 - CPE - Unit of Measure for Quantity Conversion Factor

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

IV_IF_QUANCONV1_1 - CPE - Quantity for Part of Conversion Factor

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

IV_IF_QUANCONV2_1 - CPE - Quantity for Part of Conversion Factor

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

IV_IF_QUANCONVSRC_2 - CPE - Quantity Conversion Source

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

IV_IF_UOMCONV1_2 - CPE - Unit of Measure for Quantity Conversion Factor

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

IV_IF_UOMCONV2_2 - CPE - Unit of Measure for Quantity Conversion Factor

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

IV_APPLICATION - CPE Caller - Application using CPE

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

IV_IF_QUANCONV1_2 - CPE - Quantity for Part of Conversion Factor

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

IV_IF_QUANCONV2_2 - CPE - Quantity for Part of Conversion Factor

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

IV_IF2_QUANCONVSRC_1 - CPE - Quantity Conversion Source

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

IV_IF2_UOMCONV_1 - CPE - Unit of Measure for Quantity Conversion Factor

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

IV_IF2_QUANCONV_1 - CPE - Quantity for Part of Conversion Factor

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

IV_IF2_QUANCONVSRC_2 - CPE - Quantity Conversion Source

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

IV_IF2_UOMCONV_2 - CPE - Unit of Measure for Quantity Conversion Factor

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

IV_IF2_QUANCONV_2 - CPE - Quantity for Part of Conversion Factor

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

IV_LOG_PRIORITY - CPE - Priority of Log Entry

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

IV_EXPECTED_FORMRATE - CPE Formula - Rate in Formula Currency

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

IV_ORGANIZATION - CPE Caller - Organization

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

IV_EXPECTED_FORMVAL - CPE Formula -Value in Formula Currency

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

IV_EXPECTED_FORMCURR - CPE Formula - Currency

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

IV_EXPECTED_FORMPRUN - CPE Formula - Price Unit

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

IV_EXPECTED_FORMUOM - CPE Formula - Unit of Measure

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

IT_REFDATES - CPE - Table Type for Reference Date and Time Interface

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

IT_QUANCONV_PAIR - CPE - Table Type for Quantity Conv. Interface in Pair Format

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

IT_QUANCONV_LIST - CPE - Table Type for Quantity Conv. Interface in List Form

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

IT_NAMEVALUEPAIRS_10 - CPE Caller - Name Value Pair with Length = 10

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

IT_NAMEVALUEPAIRS_50 - CPE Caller - Name Value Pair with Length = 50

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

IT_NAMEVALUEPAIRS_255 - CPE Caller - Name Value Pair with Length = 255

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

IV_HEADER_DOCCATEGORY - CPE Caller - Document Category

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

IV_REFDOCCAT - CPE Term - Reference Document Category

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

IV_REFDOC - CPE Term - Reference Document Number

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

IV_REFITEM - CPE Term - Reference Document Item Number

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

IV_REFCOND - CPE Term - Reference Condition Type

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

IV_REFRATE - CPE Formula - Rate in Formula Currency

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

IV_REFCURR - CPE Formula - Currency

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

IV_REFPRUN - CPE Formula - Price Unit

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

IV_REFUOM - CPE Formula - Unit of Measure

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

IV_RFC_CONTEXT - CPE Caller - Context of RFC Destination

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

IV_ITEM_DOCCATEGORY - CPE Caller - Document Category

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

IV_FORMID - CPE Formula - Key

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

IV_CONDTYPE_PR - CPE: Condition Type of Pricing

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

EXPORTING Parameters details for CPE_TEST_JAVA_FE

EV_TEST_ERROR_OCCURRED - Single-Character Flag

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

EV_ERROR_TYPE - 30 Characters

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

ES_CPE_DOC_RESULT - Single-Character Flag

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

ET_LOG - CPE - Table for Log Data in Documents

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

EV_REFTIMESTAMP1 - CPE Term - Calculated Reference Date and Time

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

Copy and paste ABAP code example for CPE_TEST_JAVA_FE 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_vmcdest  TYPE RFCDEST, "   ''
lv_ev_test_error_occurred  TYPE CHAR1, "   
lv_iv_doc_pric_date  TYPE CPET_NAMEVALUEPAIRS_10-VALUE, "   
lv_iv_doc_curr  TYPE CPET_DOCCURR, "   
lv_iv_item_quan  TYPE CPET_NAMEVALUEPAIRS_10-VALUE, "   
lv_iv_item_uom  TYPE CPET_FORMCOMMUOM, "   
lv_iv_item_curr  TYPE CPET_DEF_CURRENCY, "   
lv_iv_item_eval_date  TYPE CPET_NAMEVALUEPAIRS_10-VALUE, "   
lv_iv_refdaterout1  TYPE CPET_REFDATEROUT, "   '0000001'
lv_iv_reftimestamp1  TYPE CPET_REFTIMESTAMP, "   '11,02,2000 00:00:00'
lv_iv_refdaterout2  TYPE CPET_REFDATEROUT, "   '0000002'
lv_iv_reftimestamp2  TYPE CPET_REFTIMESTAMP, "   '11,02,2000 00:00:00'
lv_iv_logsys  TYPE LOGSYS, "   ' '
lv_ev_error_type  TYPE CHAR30, "   
lv_iv_refdaterout3  TYPE CPET_REFDATEROUT, "   '0000011'
lv_iv_reftimestamp3  TYPE CPET_REFTIMESTAMP, "   '11,02,2000 00:00:00'
lv_iv_if_quanconvsrc_1  TYPE CPET_QUANCONVSRC, "   '01'
lv_iv_if_uomconv1_1  TYPE CPET_UOMCONV, "   'M3'
lv_iv_if_uomconv2_1  TYPE CPET_UOMCONV, "   'TO'
lv_iv_if_quanconv1_1  TYPE CPET_QUANCONV, "   '100'
lv_iv_if_quanconv2_1  TYPE CPET_QUANCONV, "   '80'
lv_iv_if_quanconvsrc_2  TYPE CPET_QUANCONVSRC, "   '01'
lv_iv_if_uomconv1_2  TYPE CPET_UOMCONV, "   'TO'
lv_iv_if_uomconv2_2  TYPE CPET_UOMCONV, "   'M3'
lv_iv_application  TYPE CPET_APPLICATION, "   'CRM'
lv_es_cpe_doc_result  TYPE CPET_CPEDOC_COM_OUT, "   
lv_iv_if_quanconv1_2  TYPE CPET_QUANCONV, "   '100'
lv_iv_if_quanconv2_2  TYPE CPET_QUANCONV, "   '125'
lv_iv_if2_quanconvsrc_1  TYPE CPET_QUANCONVSRC, "   '06'
lv_iv_if2_uomconv_1  TYPE CPET_UOMCONV, "   'M3'
lv_iv_if2_quanconv_1  TYPE CPET_QUANCONV, "   '100'
lv_iv_if2_quanconvsrc_2  TYPE CPET_QUANCONVSRC, "   '06'
lv_iv_if2_uomconv_2  TYPE CPET_UOMCONV, "   'TO'
lv_iv_if2_quanconv_2  TYPE CPET_QUANCONV, "   '80'
lv_iv_log_priority  TYPE CPET_LOG_PRIORITY, "   '5'
lv_iv_expected_formrate  TYPE CPET_FORMRATE, "   
lv_et_log  TYPE CPET_LOG_TAB, "   
lv_iv_organization  TYPE CPET_ORGANIZATION, "   ' '
lv_iv_expected_formval  TYPE CPET_FORMVAL, "   
lv_iv_expected_formcurr  TYPE CPET_FORMCURR, "   
lv_iv_expected_formprun  TYPE CPET_FORMPRUN, "   
lv_iv_expected_formuom  TYPE CPET_FORMUOM, "   
lv_it_refdates  TYPE CPET_REFDATE_IF_TAB, "   
lv_it_quanconv_pair  TYPE CPET_QUANCONV_IF_TAB, "   
lv_it_quanconv_list  TYPE CPET_QUANCONV_IF2_TAB, "   
lv_it_namevaluepairs_10  TYPE CPET_NAMEVALUEPAIRS_10_TAB, "   
lv_it_namevaluepairs_50  TYPE CPET_NAMEVALUEPAIRS_50_TAB, "   
lv_it_namevaluepairs_255  TYPE CPET_NAMEVALUEPAIRS_255_TAB, "   
lv_ev_reftimestamp1  TYPE CPET_REFTIMESTAMP, "   
lv_iv_header_doccategory  TYPE CPET_DOCCATEGORY, "   '1'
lv_iv_refdoccat  TYPE CPET_REFDOCCAT, "   
lv_iv_refdoc  TYPE CPET_REFDOC, "   
lv_iv_refitem  TYPE CPET_REFITEM, "   
lv_iv_refcond  TYPE CPET_REFCOND, "   
lv_iv_refrate  TYPE CPET_FORMRATE, "   
lv_iv_refcurr  TYPE CPET_FORMCURR, "   
lv_iv_refprun  TYPE CPET_FORMPRUN, "   
lv_iv_refuom  TYPE CPET_FORMUOM, "   
lv_iv_rfc_context  TYPE CPET_RFC_CONTEXT, "   'CRM_TO_CPE'
lv_iv_item_doccategory  TYPE CPET_DOCCATEGORY, "   '1'
lv_iv_formid  TYPE CPET_FORMID, "   
lv_iv_condtype_pr  TYPE CPET_CONDTYPE_PR. "   

  CALL FUNCTION 'CPE_TEST_JAVA_FE'  "Test Java API of CPE for Formula Evaluation
    EXPORTING
         IV_VMCDEST = lv_iv_vmcdest
         IV_DOC_PRIC_DATE = lv_iv_doc_pric_date
         IV_DOC_CURR = lv_iv_doc_curr
         IV_ITEM_QUAN = lv_iv_item_quan
         IV_ITEM_UOM = lv_iv_item_uom
         IV_ITEM_CURR = lv_iv_item_curr
         IV_ITEM_EVAL_DATE = lv_iv_item_eval_date
         IV_REFDATEROUT1 = lv_iv_refdaterout1
         IV_REFTIMESTAMP1 = lv_iv_reftimestamp1
         IV_REFDATEROUT2 = lv_iv_refdaterout2
         IV_REFTIMESTAMP2 = lv_iv_reftimestamp2
         IV_LOGSYS = lv_iv_logsys
         IV_REFDATEROUT3 = lv_iv_refdaterout3
         IV_REFTIMESTAMP3 = lv_iv_reftimestamp3
         IV_IF_QUANCONVSRC_1 = lv_iv_if_quanconvsrc_1
         IV_IF_UOMCONV1_1 = lv_iv_if_uomconv1_1
         IV_IF_UOMCONV2_1 = lv_iv_if_uomconv2_1
         IV_IF_QUANCONV1_1 = lv_iv_if_quanconv1_1
         IV_IF_QUANCONV2_1 = lv_iv_if_quanconv2_1
         IV_IF_QUANCONVSRC_2 = lv_iv_if_quanconvsrc_2
         IV_IF_UOMCONV1_2 = lv_iv_if_uomconv1_2
         IV_IF_UOMCONV2_2 = lv_iv_if_uomconv2_2
         IV_APPLICATION = lv_iv_application
         IV_IF_QUANCONV1_2 = lv_iv_if_quanconv1_2
         IV_IF_QUANCONV2_2 = lv_iv_if_quanconv2_2
         IV_IF2_QUANCONVSRC_1 = lv_iv_if2_quanconvsrc_1
         IV_IF2_UOMCONV_1 = lv_iv_if2_uomconv_1
         IV_IF2_QUANCONV_1 = lv_iv_if2_quanconv_1
         IV_IF2_QUANCONVSRC_2 = lv_iv_if2_quanconvsrc_2
         IV_IF2_UOMCONV_2 = lv_iv_if2_uomconv_2
         IV_IF2_QUANCONV_2 = lv_iv_if2_quanconv_2
         IV_LOG_PRIORITY = lv_iv_log_priority
         IV_EXPECTED_FORMRATE = lv_iv_expected_formrate
         IV_ORGANIZATION = lv_iv_organization
         IV_EXPECTED_FORMVAL = lv_iv_expected_formval
         IV_EXPECTED_FORMCURR = lv_iv_expected_formcurr
         IV_EXPECTED_FORMPRUN = lv_iv_expected_formprun
         IV_EXPECTED_FORMUOM = lv_iv_expected_formuom
         IT_REFDATES = lv_it_refdates
         IT_QUANCONV_PAIR = lv_it_quanconv_pair
         IT_QUANCONV_LIST = lv_it_quanconv_list
         IT_NAMEVALUEPAIRS_10 = lv_it_namevaluepairs_10
         IT_NAMEVALUEPAIRS_50 = lv_it_namevaluepairs_50
         IT_NAMEVALUEPAIRS_255 = lv_it_namevaluepairs_255
         IV_HEADER_DOCCATEGORY = lv_iv_header_doccategory
         IV_REFDOCCAT = lv_iv_refdoccat
         IV_REFDOC = lv_iv_refdoc
         IV_REFITEM = lv_iv_refitem
         IV_REFCOND = lv_iv_refcond
         IV_REFRATE = lv_iv_refrate
         IV_REFCURR = lv_iv_refcurr
         IV_REFPRUN = lv_iv_refprun
         IV_REFUOM = lv_iv_refuom
         IV_RFC_CONTEXT = lv_iv_rfc_context
         IV_ITEM_DOCCATEGORY = lv_iv_item_doccategory
         IV_FORMID = lv_iv_formid
         IV_CONDTYPE_PR = lv_iv_condtype_pr
    IMPORTING
         EV_TEST_ERROR_OCCURRED = lv_ev_test_error_occurred
         EV_ERROR_TYPE = lv_ev_error_type
         ES_CPE_DOC_RESULT = lv_es_cpe_doc_result
         ET_LOG = lv_et_log
         EV_REFTIMESTAMP1 = lv_ev_reftimestamp1
. " CPE_TEST_JAVA_FE




ABAP code using 7.40 inline data declarations to call FM CPE_TEST_JAVA_FE

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_vmcdest) = ''.
 
 
"SELECT single VALUE FROM CPET_NAMEVALUEPAIRS_10 INTO @DATA(ld_iv_doc_pric_date).
 
 
"SELECT single VALUE FROM CPET_NAMEVALUEPAIRS_10 INTO @DATA(ld_iv_item_quan).
 
 
 
"SELECT single VALUE FROM CPET_NAMEVALUEPAIRS_10 INTO @DATA(ld_iv_item_eval_date).
 
DATA(ld_iv_refdaterout1) = '0000001'.
 
DATA(ld_iv_reftimestamp1) = '11.02.2000 00:00:00'.
 
DATA(ld_iv_refdaterout2) = '0000002'.
 
DATA(ld_iv_reftimestamp2) = '11.02.2000 00:00:00'.
 
DATA(ld_iv_logsys) = ' '.
 
 
DATA(ld_iv_refdaterout3) = '0000011'.
 
DATA(ld_iv_reftimestamp3) = '11.02.2000 00:00:00'.
 
DATA(ld_iv_if_quanconvsrc_1) = '01'.
 
DATA(ld_iv_if_uomconv1_1) = 'M3'.
 
DATA(ld_iv_if_uomconv2_1) = 'TO'.
 
DATA(ld_iv_if_quanconv1_1) = '100'.
 
DATA(ld_iv_if_quanconv2_1) = '80'.
 
DATA(ld_iv_if_quanconvsrc_2) = '01'.
 
DATA(ld_iv_if_uomconv1_2) = 'TO'.
 
DATA(ld_iv_if_uomconv2_2) = 'M3'.
 
DATA(ld_iv_application) = 'CRM'.
 
 
DATA(ld_iv_if_quanconv1_2) = '100'.
 
DATA(ld_iv_if_quanconv2_2) = '125'.
 
DATA(ld_iv_if2_quanconvsrc_1) = '06'.
 
DATA(ld_iv_if2_uomconv_1) = 'M3'.
 
DATA(ld_iv_if2_quanconv_1) = '100'.
 
DATA(ld_iv_if2_quanconvsrc_2) = '06'.
 
DATA(ld_iv_if2_uomconv_2) = 'TO'.
 
DATA(ld_iv_if2_quanconv_2) = '80'.
 
DATA(ld_iv_log_priority) = '5'.
 
 
 
DATA(ld_iv_organization) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_iv_header_doccategory) = '1'.
 
 
 
 
 
 
 
 
 
DATA(ld_iv_rfc_context) = 'CRM_TO_CPE'.
 
DATA(ld_iv_item_doccategory) = '1'.
 
 
 


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!