SAP Function Modules

CPE_TEST_FORMULA_ASSEMBLY SAP Function module - CPE: Ttest Formula Assembly







CPE_TEST_FORMULA_ASSEMBLY is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CPE_TEST_FORMULA_ASSEMBLY into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CPE_TEST_FORMULA_ASSEMBLY
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM CPE_TEST_FORMULA_ASSEMBLY - CPE TEST FORMULA ASSEMBLY





CALL FUNCTION 'CPE_TEST_FORMULA_ASSEMBLY' "CPE: Ttest Formula Assembly
  EXPORTING
    iv_write_details = 'X'      " char1         write the details of the results
    iv_log_priority = '5'       " cpet_log_priority  CPE - Priority of Log Entry
*   iv_run_test1 = 'X'          " char1         Single-Character Flag
*   iv_run_test2 = 'X'          " char1         Single-Character Flag
*   iv_run_test3 = 'X'          " char1         Single-Character Flag
*   iv_run_test4 = 'X'          " char1         Single-Character Flag
*   iv_run_test5 = 'X'          " char1         Single-Character Flag
*   iv_run_test6 = 'X'          " char1         Single-Character Flag
*   iv_run_test7 = 'X'          " char1         Single-Character Flag
*   iv_run_test8 = 'X'          " char1         Single-Character Flag
*   iv_run_test9 = 'X'          " char1         Single-Character Flag
*   iv_run_test10 = 'X'         " char1         Single-Character Flag
*   iv_run_test11 = 'X'         " char1         Single-Character Flag
*   iv_run_test12 = 'X'         " char1         Single-Character Flag
  IMPORTING
    ev_test_error_occurred =    " char1         Single-Character Flag
    ev_rc_test_all =            " char16        Field of length 16
    ev_rc_test1 =               " char16        Field of length 16
    ev_rc_test2 =               " char16        Field of length 16
    ev_rc_test3 =               " char16        Field of length 16
    ev_rc_test4 =               " char16        Field of length 16
    ev_rc_test5 =               " char16        Field of length 16
    ev_rc_test6 =               " char16        Field of length 16
    ev_rc_test7 =               " char16        Field of length 16
    ev_rc_test8 =               " char16        Field of length 16
    ev_rc_test9 =               " char16        Field of length 16
    ev_rc_test10 =              " char16        Field of length 16
    ev_rc_test11 =              " char16        Field of length 16
    ev_rc_test12 =              " char16        Field of length 16
    .  "  CPE_TEST_FORMULA_ASSEMBLY

ABAP code example for Function Module CPE_TEST_FORMULA_ASSEMBLY





The ABAP code below is a full code listing to execute function module CPE_TEST_FORMULA_ASSEMBLY including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_ev_test_error_occurred  TYPE CHAR1 ,
ld_ev_rc_test_all  TYPE CHAR16 ,
ld_ev_rc_test1  TYPE CHAR16 ,
ld_ev_rc_test2  TYPE CHAR16 ,
ld_ev_rc_test3  TYPE CHAR16 ,
ld_ev_rc_test4  TYPE CHAR16 ,
ld_ev_rc_test5  TYPE CHAR16 ,
ld_ev_rc_test6  TYPE CHAR16 ,
ld_ev_rc_test7  TYPE CHAR16 ,
ld_ev_rc_test8  TYPE CHAR16 ,
ld_ev_rc_test9  TYPE CHAR16 ,
ld_ev_rc_test10  TYPE CHAR16 ,
ld_ev_rc_test11  TYPE CHAR16 ,
ld_ev_rc_test12  TYPE CHAR16 .

DATA(ld_iv_write_details) = 'Check type of data required'.
DATA(ld_iv_log_priority) = 'Check type of data required'.
DATA(ld_iv_run_test1) = 'Check type of data required'.
DATA(ld_iv_run_test2) = 'Check type of data required'.
DATA(ld_iv_run_test3) = 'Check type of data required'.
DATA(ld_iv_run_test4) = 'Check type of data required'.
DATA(ld_iv_run_test5) = 'Check type of data required'.
DATA(ld_iv_run_test6) = 'Check type of data required'.
DATA(ld_iv_run_test7) = 'Check type of data required'.
DATA(ld_iv_run_test8) = 'Check type of data required'.
DATA(ld_iv_run_test9) = 'Check type of data required'.
DATA(ld_iv_run_test10) = 'Check type of data required'.
DATA(ld_iv_run_test11) = 'Check type of data required'.
DATA(ld_iv_run_test12) = 'Check type of data required'. . CALL FUNCTION 'CPE_TEST_FORMULA_ASSEMBLY' EXPORTING iv_write_details = ld_iv_write_details iv_log_priority = ld_iv_log_priority * iv_run_test1 = ld_iv_run_test1 * iv_run_test2 = ld_iv_run_test2 * iv_run_test3 = ld_iv_run_test3 * iv_run_test4 = ld_iv_run_test4 * iv_run_test5 = ld_iv_run_test5 * iv_run_test6 = ld_iv_run_test6 * iv_run_test7 = ld_iv_run_test7 * iv_run_test8 = ld_iv_run_test8 * iv_run_test9 = ld_iv_run_test9 * iv_run_test10 = ld_iv_run_test10 * iv_run_test11 = ld_iv_run_test11 * iv_run_test12 = ld_iv_run_test12 IMPORTING ev_test_error_occurred = ld_ev_test_error_occurred ev_rc_test_all = ld_ev_rc_test_all ev_rc_test1 = ld_ev_rc_test1 ev_rc_test2 = ld_ev_rc_test2 ev_rc_test3 = ld_ev_rc_test3 ev_rc_test4 = ld_ev_rc_test4 ev_rc_test5 = ld_ev_rc_test5 ev_rc_test6 = ld_ev_rc_test6 ev_rc_test7 = ld_ev_rc_test7 ev_rc_test8 = ld_ev_rc_test8 ev_rc_test9 = ld_ev_rc_test9 ev_rc_test10 = ld_ev_rc_test10 ev_rc_test11 = ld_ev_rc_test11 ev_rc_test12 = ld_ev_rc_test12 . " CPE_TEST_FORMULA_ASSEMBLY
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_ev_test_error_occurred  TYPE CHAR1 ,
ld_iv_write_details  TYPE CHAR1 ,
ld_ev_rc_test_all  TYPE CHAR16 ,
ld_iv_log_priority  TYPE CPET_LOG_PRIORITY ,
ld_ev_rc_test1  TYPE CHAR16 ,
ld_iv_run_test1  TYPE CHAR1 ,
ld_ev_rc_test2  TYPE CHAR16 ,
ld_iv_run_test2  TYPE CHAR1 ,
ld_ev_rc_test3  TYPE CHAR16 ,
ld_iv_run_test3  TYPE CHAR1 ,
ld_ev_rc_test4  TYPE CHAR16 ,
ld_iv_run_test4  TYPE CHAR1 ,
ld_ev_rc_test5  TYPE CHAR16 ,
ld_iv_run_test5  TYPE CHAR1 ,
ld_ev_rc_test6  TYPE CHAR16 ,
ld_iv_run_test6  TYPE CHAR1 ,
ld_ev_rc_test7  TYPE CHAR16 ,
ld_iv_run_test7  TYPE CHAR1 ,
ld_ev_rc_test8  TYPE CHAR16 ,
ld_iv_run_test8  TYPE CHAR1 ,
ld_iv_run_test9  TYPE CHAR1 ,
ld_ev_rc_test9  TYPE CHAR16 ,
ld_iv_run_test10  TYPE CHAR1 ,
ld_ev_rc_test10  TYPE CHAR16 ,
ld_iv_run_test11  TYPE CHAR1 ,
ld_ev_rc_test11  TYPE CHAR16 ,
ld_iv_run_test12  TYPE CHAR1 ,
ld_ev_rc_test12  TYPE CHAR16 .

ld_iv_write_details = 'Check type of data required'.
ld_iv_log_priority = 'Check type of data required'.
ld_iv_run_test1 = 'Check type of data required'.
ld_iv_run_test2 = 'Check type of data required'.
ld_iv_run_test3 = 'Check type of data required'.
ld_iv_run_test4 = 'Check type of data required'.
ld_iv_run_test5 = 'Check type of data required'.
ld_iv_run_test6 = 'Check type of data required'.
ld_iv_run_test7 = 'Check type of data required'.
ld_iv_run_test8 = 'Check type of data required'.
ld_iv_run_test9 = 'Check type of data required'.
ld_iv_run_test10 = 'Check type of data required'.
ld_iv_run_test11 = 'Check type of data required'.
ld_iv_run_test12 = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CPE_TEST_FORMULA_ASSEMBLY or its description.