SAP CXPS_CALC_FIELDS_FOR_ORDER Function Module for NOTRANSL: PS: zusätzliche Berechnungen für Netzplan/Auftrag
CXPS_CALC_FIELDS_FOR_ORDER is a standard cxps calc fields for order SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: PS: zusätzliche Berechnungen für Netzplan/Auftrag 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 cxps calc fields for order FM, simply by entering the name CXPS_CALC_FIELDS_FOR_ORDER into the relevant SAP transaction such as SE37 or SE38.
Function Group: CXPS
Program Name: SAPLCXPS
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CXPS_CALC_FIELDS_FOR_ORDER 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 'CXPS_CALC_FIELDS_FOR_ORDER'"NOTRANSL: PS: zusätzliche Berechnungen für Netzplan/Auftrag.
EXPORTING
I_AFKO = "Order Header Data PP Orders
I_CALENDAR = "Factory Calendar
* I_FILL_SHOW = ' ' "Generic Type
IMPORTING
E_BASIC_DURATION = "Duration
E_PROCES_DURATION = "Processing % of duration
E_FORECAST_DURATION = "Forecast duration
E_ACT_DURATION = "Act. Dur.
E_EARLIER = "Actual start is before earliest scheduled start
E_LATER = "Actual Finish/Planned Finish After Latest Scheduled Finish
E_DELAY = "Duration After Latest Scheduled Finish
E_PAST = "Duration After Latest Scheduled Start
E_UNIT = "Consumption unit
E_REM_DURATION = "Remaining duration
TABLES
* I_BT_FIELDS = "Extended Help Fields
* E_IT_SHOW = "Field Content of Extended Help
EXCEPTIONS
MISSING_PARAMETER = 1 UNIT_ERROR = 2
IMPORTING Parameters details for CXPS_CALC_FIELDS_FOR_ORDER
I_AFKO - Order Header Data PP Orders
Data type: AFKOOptional: No
Call by Reference: Yes
I_CALENDAR - Factory Calendar
Data type: AFVGD-KALIDOptional: No
Call by Reference: Yes
I_FILL_SHOW - Generic Type
Data type: CDefault: ' '
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for CXPS_CALC_FIELDS_FOR_ORDER
E_BASIC_DURATION - Duration
Data type: PS_EDAUEROptional: No
Call by Reference: Yes
E_PROCES_DURATION - Processing % of duration
Data type: PS_ABARBDOptional: No
Call by Reference: Yes
E_FORECAST_DURATION - Forecast duration
Data type: PS_PDAUEROptional: No
Call by Reference: Yes
E_ACT_DURATION - Act. Dur.
Data type: PS_IDAUEROptional: No
Call by Reference: Yes
E_EARLIER - Actual start is before earliest scheduled start
Data type: FRUEHEROptional: No
Call by Reference: Yes
E_LATER - Actual Finish/Planned Finish After Latest Scheduled Finish
Data type: SPAETEROptional: No
Call by Reference: Yes
E_DELAY - Duration After Latest Scheduled Finish
Data type: VERZUGOptional: No
Call by Reference: Yes
E_PAST - Duration After Latest Scheduled Start
Data type: VORBEIOptional: No
Call by Reference: Yes
E_UNIT - Consumption unit
Data type: VEINHOptional: No
Call by Reference: Yes
E_REM_DURATION - Remaining duration
Data type: PS_RDAUEROptional: No
Call by Reference: Yes
TABLES Parameters details for CXPS_CALC_FIELDS_FOR_ORDER
I_BT_FIELDS - Extended Help Fields
Data type: CXPS_FIELDSOptional: Yes
Call by Reference: Yes
E_IT_SHOW - Field Content of Extended Help
Data type: CXPS_SHOWOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
MISSING_PARAMETER - Parameter Missing
Data type:Optional: No
Call by Reference: Yes
UNIT_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CXPS_CALC_FIELDS_FOR_ORDER 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_i_afko | TYPE AFKO, " | |||
| lt_i_bt_fields | TYPE STANDARD TABLE OF CXPS_FIELDS, " | |||
| lv_e_basic_duration | TYPE PS_EDAUER, " | |||
| lv_missing_parameter | TYPE PS_EDAUER, " | |||
| lv_e_proces_duration | TYPE PS_ABARBD, " | |||
| lt_e_it_show | TYPE STANDARD TABLE OF CXPS_SHOW, " | |||
| lv_i_calendar | TYPE AFVGD-KALID, " | |||
| lv_unit_error | TYPE AFVGD, " | |||
| lv_e_forecast_duration | TYPE PS_PDAUER, " | |||
| lv_i_fill_show | TYPE C, " ' ' | |||
| lv_e_act_duration | TYPE PS_IDAUER, " | |||
| lv_e_earlier | TYPE FRUEHER, " | |||
| lv_e_later | TYPE SPAETER, " | |||
| lv_e_delay | TYPE VERZUG, " | |||
| lv_e_past | TYPE VORBEI, " | |||
| lv_e_unit | TYPE VEINH, " | |||
| lv_e_rem_duration | TYPE PS_RDAUER. " |
|   CALL FUNCTION 'CXPS_CALC_FIELDS_FOR_ORDER' "NOTRANSL: PS: zusätzliche Berechnungen für Netzplan/Auftrag |
| EXPORTING | ||
| I_AFKO | = lv_i_afko | |
| I_CALENDAR | = lv_i_calendar | |
| I_FILL_SHOW | = lv_i_fill_show | |
| IMPORTING | ||
| E_BASIC_DURATION | = lv_e_basic_duration | |
| E_PROCES_DURATION | = lv_e_proces_duration | |
| E_FORECAST_DURATION | = lv_e_forecast_duration | |
| E_ACT_DURATION | = lv_e_act_duration | |
| E_EARLIER | = lv_e_earlier | |
| E_LATER | = lv_e_later | |
| E_DELAY | = lv_e_delay | |
| E_PAST | = lv_e_past | |
| E_UNIT | = lv_e_unit | |
| E_REM_DURATION | = lv_e_rem_duration | |
| TABLES | ||
| I_BT_FIELDS | = lt_i_bt_fields | |
| E_IT_SHOW | = lt_e_it_show | |
| EXCEPTIONS | ||
| MISSING_PARAMETER = 1 | ||
| UNIT_ERROR = 2 | ||
| . " CXPS_CALC_FIELDS_FOR_ORDER | ||
ABAP code using 7.40 inline data declarations to call FM CXPS_CALC_FIELDS_FOR_ORDER
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.| "SELECT single KALID FROM AFVGD INTO @DATA(ld_i_calendar). | ||||
| DATA(ld_i_fill_show) | = ' '. | |||
Search for further information about these or an SAP related objects