Hierarchy
⤷ PP-PI-PMA-RCP (Application Component) Control Recipe
⤷ CMX_CR (Package) Manufacturing Execution: Control Recipe
IMG Activity
ID | COCB436-4 | Create Function Modules for Dynamic Function Calls |
Transaction Code | S_ALR_87007328 | IMG Activity: COCB436-4 |
Created on | 19981222 | |
Customizing Attributes | COCB436-4 | Create Function Modules for Dynamic Function Calls |
Customizing Activity | COCB436-4 | Create Function Modules for Dynamic Function Calls |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | COCB436-4 |
In this IMG activity, you define the function modules that you want to call up from the PI sheet using dynamic function calls.
Standard settings
The standard system contains the following function modules that you can use in dynamic function calls:
Function Module Use
COPF_ENTER_CONFIRMATION Confirm phase in process order
COPF_DOCUMENT_SHOW_DIRECT Display document in SAP Document Management
COPF_MATERIAL_QUANTITY_CALC Display material quantity calculation of process order
COPF_DETERMINE_DURATION Calculate duration of a time interval
COPF_DETERMINE_START_TIME Calculate start date of a time interval
COPF_DETERMINE_END_TIME Calculate end date of a time interval
In the SAP reference client of your system, you will find a predefined function call for each of these function modules.
For further information on processing and parameters, see the documentation of the individual function modules.
Activities
Define the function modules that you want to call up in the PI sheet.
Notes on maintaining function modules
For general information on maintaining function modules, see Extended Help. In addition to this, note the following:
- Do not define table parameters.
- You can define exceptions, but you should link them to a system message. This system message is then transferred to the error log when the exception occurs. Otherwise, you will only be informed in the log that an exception has occurred.
If an exception occurs, the values of the export and changing parameters are not transferred to the PI sheet. This means that the variables to which the parameter values should be transferred remain unchanged.
- The reference fields for the import, export, and changing parameters of the function module can have the following formats:
- Numeric
- Alphanumeric
- Date
- Time
You can use any field length. During the function call, the system transfers a maximum of 30 characters, but not more than defined for the parameter.
- The function modules must be programmed in such a way that no errors occur when the PI sheet is accessed repeatedly.
- Function modules that you wish to call from the browser-based PI sheet cannot deduce a COMMIT WORK unless this occurs in a separate internal mode. You have the following options:
- Calling an executable program/report:
- Write an executable program or report for the required function.
- Use a user-defined function module for the dynamic function call by calling this program with the statement "SUBMIT rep AND RETURN".
- Calling a new transaction:
- Define a separate transaction for the required function.
- Call this transaction in the dynamic function call using the standard function module COPF_CALL_TRANSACTION or a separate function module.
- Function calls with asynchronous RFC:
- Use a separate function module for the dynamic function call by calling the function containing the COMMIT WORK with the statement "CALL FUNCTION func STARTING NEW TASK taskname"´.
You can find additional information about writing executable programs, transactions, and function calls in the SAP Library.
Business Attributes
ASAP Roadmap ID | 257 | Create User Exits |
Mandatory / Optional | 1 | Mandatory activity |
Critical / Non-Critical | 2 | Non-critical |
Country-Dependency | A | Valid for all countries |
Assigned Application Components
Documentation Object Class | Documentation Object Name | Current line number | Application Component | Application Component Name |
---|---|---|---|---|
SIMG | COCB436-4 | 0 | HLA0006280 | ABAP List-Based PI Sheet |
Maintenance Objects
Maintenance object type | C | Customizing Object |
Assigned objects | ||||||
---|---|---|---|---|---|---|
Customizing Object | Object Type | Transaction Code | Sub-object | Do not Summarize | Skip Subset Dialog Box | Description for multiple selections |
DWBDUMMY | D - Dummy object | SE37 | 16 | Define ABAP Function Module |
History
Last changed by/on | SAP | 20070731 |
SAP Release Created in |