CALC SAP Method Calculate the Schema for a Request
Below is documentation, parameters and attributes of ABAP Method CALC within SAP class /SCMB/IF_SC_CALC. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /SCMB/IF_SC_CALC into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The following technical details of method CALC can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CALC
.| Name | Type | Data Type | Description | Default Value |
| IT_ENTRIES | Importing | TYPE /SCMB/SC_ENTRYDATE_TAB | SCMB Scheduling: Table of Entry Point Dates per Sched. Req. | |
| IT_FDATES | Importing | TYPE /SCMB/SC_FIXDATE_TAB | SCMB Scheduling: Table of Fixed Dates per Scheduling Request | |
| IT_GRAPHS | Importing | TYPE /SCMB/SC_GRAPH_TAB | SCMB Scheduling: Table of Activity Graph per Sched. Request | |
| IT_REQUESTS | Importing | TYPE /SCMB/SC_REQUEST_TAB | SCMB Scheduling: Scheduling Request(s) | |
| IV_FLG_LOGDATA | Importing | TYPE /SCMB/SC_FLG_LOGDATA | SCMB Scheduling: Create Algorithm Log | |
| IV_FLG_NOIOFORMAT | Importing | TYPE /SCMB/SC_FLG_NOIOFORMAT | SCMB Scheduling: No Input-Output Formatting of Dates | |
| ET_SCHEDRES | Exporting | TYPE /SCMB/SC_SCHEDRES_TAB | SCMB Scheduling: Results of Scheduling Request(s) |
Exceptions of Method CALC
/SCMB/CX_SC_CALC - SCMB Scheduling: Exceptions External MethodsExample ABAP coding
DATA: lo_class TYPE REF TO /SCMB/IF_SC_CALC.
DATA: lv_ET_SCHEDRES TYPE /SCMB/SC_SCHEDRES_TAB,
lv_IT_ENTRIES TYPE /SCMB/SC_ENTRYDATE_TAB,
lv_IT_FDATES TYPE /SCMB/SC_FIXDATE_TAB,
lv_IT_GRAPHS TYPE /SCMB/SC_GRAPH_TAB,
lv_IT_REQUESTS TYPE /SCMB/SC_REQUEST_TAB,
lv_IV_FLG_LOGDATA TYPE /SCMB/SC_FLG_LOGDATA,
lv_IV_FLG_NOIOFORMAT TYPE /SCMB/SC_FLG_NOIOFORMAT,
lv_other TYPE c.
CALL METHOD lo_class=>CALC(
EXPORTING
IT_ENTRIES = lv_IT_ENTRIES
IT_FDATES = lv_IT_FDATES
IT_GRAPHS = lv_IT_GRAPHS
IT_REQUESTS = lv_IT_REQUESTS
IV_FLG_LOGDATA = lv_IV_FLG_LOGDATA
IV_FLG_NOIOFORMAT = lv_IV_FLG_NOIOFORMAT
IMPORTING
ET_SCHEDRES = lv_ET_SCHEDRES ).
Links to Related Class(s)
/SCMB/IF...Full list of available SAP object classes
Search for further information about these or an SAP related objects