Using of Dynamic Function Call in PI Sheet (XStep).
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.
1. Dynamic Function Call
Execution Steps (XSteps)
By,
Ankit Sharma
SAP PP Consultant
businessconsulting007@gmail.com
+91-8888896575 / 8888632763
2. XStep: Dynamic Function Calls
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.
The function can be executed in the following ways:
Manually
A button with the description saved appears in the PI sheet. The function
is only executed, once you have triggered it using the pushbutton.
Event-driven
You can specify an event that triggers the function automatically. The
system automatically executes the function as soon as the event is
triggered.
Manual and event-driven
You can execute the function manually and parallel to this, the function
can also be automatically triggered using a defined event. To do this you
specify an event.
3. Step 1: Create a Folder in Xstep Repository.
Step 2: New Folder Created.
4. Step 3: Enter Description.
Step 4: Folder name changed.
11. Step 17: Enter Parameter Description and Correct Parameter Type – Start Date
Step 18: Enter Parameter Description and Correct Parameter Type – Start Time
12. Step 19: Enter Parameter Description and Correct Parameter Type – End Date
Step 20: Enter Parameter Description and Correct Parameter Type – End Time
27. Step 9: You can view PI sheet and execute the calculation functionality.
Step 10: Enter Values.
28. Step 11: Click on Calculate Duration Button.
Step 12: Total Duration Calculated
10:30 am – 10:00 am = 30 Minutes
29. Step 13: Re-calculate Duration
10:45 am – 10:00 am = 45 Minutes
This is how you can call Dynamic Function Call in PI sheet.
30. 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
Calculate the duration of time intervals COPF_DETERMINE_DURATION
Calculating of the start date of a time interval COPF_DETERMINE_START_TIME
Calculate the end date of a time interval COPF_DETERMINE_END_TIME
Create physical-sample records for quality
inspections during production
QPRS_PI_NEW_SAMPLE_DRAW
Processing of sample drawing
(for example, release/lock physical sample)
Recording of inspection results in QM COPFX_QM_INSPECTION_RESULT_REC
Sample function module for check function COPF_VALIDATION_FUNCTION_TEST
QPRS_PI_NEW_SAMPLE_DRAW_PROCESSING
Some Standard Functional Module