COLLECT_JOB SAP Method Find All Job Instances in Tree for PJOB
Below is documentation, parameters and attributes of ABAP Method COLLECT_JOB within SAP class CNODE. 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 CNODE 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 COLLECT_JOB can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method COLLECT_JOB
.Name | Type | Data Type | Description | Default Value |
PFIELD | Importing | TYPE ANY | Field Name in Struc TFC_*_ITEM | |
PRECURSIVE | Importing | TYPE I | ||
PVALUE | Importing | TYPE ANY | Value of Field Name | |
PITEMS | Changing | TYPE CITEMS | Item table |
Exceptions of Method COLLECT_JOB
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO CNODE.
DATA: lv_PFIELD TYPE ANY,
lv_PITEMS TYPE CITEMS,
lv_PRECURSIVE TYPE I,
lv_PVALUE TYPE ANY,
lv_other TYPE c.
CALL METHOD lo_class=>COLLECT_JOB(
EXPORTING
PFIELD = lv_PFIELD
PRECURSIVE = lv_PRECURSIVE
PVALUE = lv_PVALUE
CHANGING
PITEMS = lv_PITEMS ).
Links to Related Class(s)
CNODE...Full list of available SAP object classes
Search for further information about these or an SAP related objects