SAP CPE_GUI_FORM_SIMU_START Function Module for CPE GUI: Call Start Screen for Formula Simulation









CPE_GUI_FORM_SIMU_START is a standard cpe gui form simu start SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for CPE GUI: Call Start Screen for Formula Simulation 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 gui form simu start FM, simply by entering the name CPE_GUI_FORM_SIMU_START into the relevant SAP transaction such as SE37 or SE38.

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



Function CPE_GUI_FORM_SIMU_START 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_GUI_FORM_SIMU_START'"CPE GUI: Call Start Screen for Formula Simulation
EXPORTING
IV_SIMU_APPLICATION = "CPE Caller - Application using CPE
IV_APPLICATION_FNAME = "Name of Function Module
* IV_DEFAULT_PATH = 'C: CPE_SIMULATION ' "Character 100
* IV_DEFAULT_COND_TYPE = "CPE: Condition Type for Commodity Pricing

IMPORTING
EV_SIMU_START_RETURN_FCODE = "Function code that PAI triggered
EV_SIMU_START_DOC_GUID = "CPE Caller - GUID of Document Header
EV_SIMU_START_DOCITEM_GUID = "CPE Caller - GUID of Document Item
ES_SIMU_START_CPEDOC = "CPE - Work Structure with All Output Data
EV_SIMU_START_ORGANIZATION = "CPE Caller - Organization
EV_SIMU_START_DOCCATEGORY = "CPE Caller - Document Category
EV_SIMU_START_COND_TYPE = "Condition type
EV_SIMU_START_FORMID = "CPE Formula - Key
EV_SIMU_START_DOCNO = "Character Field Length = 10
EV_SIMU_START_DOCITEMNO = "Character Field Length = 10
EV_SIMU_START_FILEPATH = "Character 100
EV_SIMU_START_EVAL_TIMESTAMP = "CPE - 'Valid From' Time Stamp of Commodity Pricing Object

EXCEPTIONS
ERROR_OCCURRED = 1
.



IMPORTING Parameters details for CPE_GUI_FORM_SIMU_START

IV_SIMU_APPLICATION - CPE Caller - Application using CPE

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

IV_APPLICATION_FNAME - Name of Function Module

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

IV_DEFAULT_PATH - Character 100

Data type: CHAR100
Default: 'C: CPE_SIMULATION '
Optional: Yes
Call by Reference: Yes

IV_DEFAULT_COND_TYPE - CPE: Condition Type for Commodity Pricing

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

EXPORTING Parameters details for CPE_GUI_FORM_SIMU_START

EV_SIMU_START_RETURN_FCODE - Function code that PAI triggered

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

EV_SIMU_START_DOC_GUID - CPE Caller - GUID of Document Header

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

EV_SIMU_START_DOCITEM_GUID - CPE Caller - GUID of Document Item

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

ES_SIMU_START_CPEDOC - CPE - Work Structure with All Output Data

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

EV_SIMU_START_ORGANIZATION - CPE Caller - Organization

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

EV_SIMU_START_DOCCATEGORY - CPE Caller - Document Category

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

EV_SIMU_START_COND_TYPE - Condition type

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

EV_SIMU_START_FORMID - CPE Formula - Key

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

EV_SIMU_START_DOCNO - Character Field Length = 10

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

EV_SIMU_START_DOCITEMNO - Character Field Length = 10

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

EV_SIMU_START_FILEPATH - Character 100

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

EV_SIMU_START_EVAL_TIMESTAMP - CPE - 'Valid From' Time Stamp of Commodity Pricing Object

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

EXCEPTIONS details

ERROR_OCCURRED - Error has occurred

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CPE_GUI_FORM_SIMU_START 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_error_occurred  TYPE STRING, "   
lv_iv_simu_application  TYPE CPET_APPLICATION, "   
lv_ev_simu_start_return_fcode  TYPE SYUCOMM, "   
lv_ev_simu_start_doc_guid  TYPE CPET_DOC_GUID, "   
lv_ev_simu_start_docitem_guid  TYPE CPET_DOCITEM_GUID, "   
lv_es_simu_start_cpedoc  TYPE CPET_CPEDOC_COM_WRK, "   
lv_iv_application_fname  TYPE RS38L_FNAM, "   
lv_ev_simu_start_organization  TYPE CPET_ORGANIZATION, "   
lv_iv_default_path  TYPE CHAR100, "   'C: CPE_SIMULATION '
lv_ev_simu_start_doccategory  TYPE CPET_DOCCATEGORY, "   
lv_iv_default_cond_type  TYPE CPET_COND_TYPE, "   
lv_ev_simu_start_cond_type  TYPE CPET_COND_TYPE, "   
lv_ev_simu_start_formid  TYPE CPET_FORMID, "   
lv_ev_simu_start_docno  TYPE CHAR10, "   
lv_ev_simu_start_docitemno  TYPE CHAR10, "   
lv_ev_simu_start_filepath  TYPE CHAR100, "   
lv_ev_simu_start_eval_timestamp  TYPE CPET_EVAL_TIMESTAMP. "   

  CALL FUNCTION 'CPE_GUI_FORM_SIMU_START'  "CPE GUI: Call Start Screen for Formula Simulation
    EXPORTING
         IV_SIMU_APPLICATION = lv_iv_simu_application
         IV_APPLICATION_FNAME = lv_iv_application_fname
         IV_DEFAULT_PATH = lv_iv_default_path
         IV_DEFAULT_COND_TYPE = lv_iv_default_cond_type
    IMPORTING
         EV_SIMU_START_RETURN_FCODE = lv_ev_simu_start_return_fcode
         EV_SIMU_START_DOC_GUID = lv_ev_simu_start_doc_guid
         EV_SIMU_START_DOCITEM_GUID = lv_ev_simu_start_docitem_guid
         ES_SIMU_START_CPEDOC = lv_es_simu_start_cpedoc
         EV_SIMU_START_ORGANIZATION = lv_ev_simu_start_organization
         EV_SIMU_START_DOCCATEGORY = lv_ev_simu_start_doccategory
         EV_SIMU_START_COND_TYPE = lv_ev_simu_start_cond_type
         EV_SIMU_START_FORMID = lv_ev_simu_start_formid
         EV_SIMU_START_DOCNO = lv_ev_simu_start_docno
         EV_SIMU_START_DOCITEMNO = lv_ev_simu_start_docitemno
         EV_SIMU_START_FILEPATH = lv_ev_simu_start_filepath
         EV_SIMU_START_EVAL_TIMESTAMP = lv_ev_simu_start_eval_timestamp
    EXCEPTIONS
        ERROR_OCCURRED = 1
. " CPE_GUI_FORM_SIMU_START




ABAP code using 7.40 inline data declarations to call FM CPE_GUI_FORM_SIMU_START

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_default_path) = 'C: CPE_SIMULATION '.
 
 
 
 
 
 
 
 
 


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!