Type 0: Definition of Dynamic Function Calls 

Use

You can use this function to call certain R/3 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 standard 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 R/3 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

Displaying of documents created in the R/3 document management system

COPF_DOCUMENT_SHOW_DIRECT

Calculating of the duration of time intervals

COPF_DETERMINE_DURATION

Calculating of the start date of a time interval

COPF_DETERMINE_START_TIME

Calculating of the end date of a time interval

COPF_DETERMINE_END_TIME

Creating 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

Activities

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

To enter this information, you assign the following characteristics to the process instruction in the order 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 allowed
"1" = allowed



< <Export parameters>
< <Changing parameters>
< <Import 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: