Show TOC

 Type 0: Definition of Dynamic Function Calls Locate this document in the navigation structure

Use

You can use this function to call certain SAP functions from within the PI sheet or perform certain calculations and checks in the PI sheet. ABAP function calls that have been created for the corresponding use are used for the function call.

Prerequisites

The function module to be called must exist and be active in the Function Builder (ABAP Development Workbench).

Features

The SAP system contains a number of predefined function modules that you can use in function calls. You can also create your own function modules.

To create or display function modules, go to Customizing for Process Management and choose   Process Instructions   Define PI Categories for PI Sheet Using Characteristic Overview.   -> Assign Characteristics to Dynamic Function Calls   Create Function Modules for Dynamic Function Calls.  

The following table provides an overview of the function modules that you can define as dynamic function calls:

Function

Function Module

Calling of any transaction

COPF_CALL_TRANSACTION

Order confirmation for phases

COPF_ENTER_CONFIRMATION

Displaying of material quantity calculation in the order

COPF_MATERIAL_QUANTITY_ CALC

Display of documents created in the SAP document management system

COPF_DOCUMENT_ SHOW _DIRECT

Calculation of the duration of time intervals

COPF_DETERMINE_DURATION

Calculate the start date of a time interval

COPF_DETERMINE_START_TIME

Calculation of the end date of a time interval

COPF_DETERMINE_END_TIME

Creation of physical-sample records for quality inspections during production

QPRS_PI_ NEW _SAMPLE_DRAW

Processing of sample drawing(for example, release/lock physical sample)

QPRS_PI_SAMPLE_DRAW_PROCESSING

Recording of inspection results in QM

COPFX_QM_INSPECTION_RESULT_REC

Sample function module for check function

COPF_VALIDATION_FUNCTION_TEST

Display PI sheet in layout of batch record (EBR)

PI_SHEET_PRINT_WITH_EBR_ STYLE

Activities

When defining dynamic function calls, you specify the following information in the process instruction:

  • The name of the function module you want to call

  • Any short text to be displayed on the pushbutton

  • The characteristic that specifies whether the function can be called when the PI sheet is displayed

  • The parameters defined in the function module

To enter this information, you assign the following characteristics to the process instruction in the sequence specified below:

Characteristic

Meaning

Value

PPPI_FUNCTION_NAME

Name of a function module

Name of the function module you want to call

PPPI_BUTTON_TEXT

Text for pushbutton

Any short text

PPPI_FUNCTION_DURING_DISPLAY

Specifies whether the function can be called when the PI sheet is displayed

"0" = Not permitted"1" = Permitted

< <Export parameters> < <Changing parameters> < <Import parameters> < <Table Parameters>

Parameters according to definition in function module: < Export parameters < Changing parameters < Import parameters

Parameters of the function module < Import parameters < Changing parameters < Export parameters

For more information on how to define the parameters of the function module in the process instruction, see: