CHANGE_STATE SAP Method Changes the Status of an Order Item
Below is documentation, parameters and attributes of ABAP Method CHANGE_STATE within SAP class CL_ISH_UTL_CORD. 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 CL_ISH_UTL_CORD into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Static
This is a Static Method so you can call it directlyThe following technical details of method CHANGE_STATE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CHANGE_STATE
.| Name | Type | Data Type | Description | Default Value |
| IR_CORDPOS | Importing | TYPE REF TO CL_ISHMED_PREREG | IS-H*MED: Preregistration | |
| IR_ENVIRONMENT | Importing | TYPE REF TO CL_ISH_ENVIRONMENT | IS-H: Class for Collecting All Objects in Memory | |
| I_COMMIT | Importing | TYPE ISH_ON_OFF | IS-H: Boolean Data Type for ON (= 'X') and OFF (= ' ') | |
| I_ENQUEUE | Importing | TYPE ISH_ON_OFF | IS-H: Boolean Data Type for ON (= 'X') and OFF (= ' ') | |
| I_PLANOE | Importing | TYPE NORG-ORGID | IS-H: Identification Key of Organizational Unit | |
| I_POPUP_ALLOWED | Importing | TYPE ISH_ON_OFF | IS-H: Boolean Data Type for ON (= 'X') and OFF (= ' ') | |
| I_SET_NEXT_STATE | Importing | TYPE ISH_ON_OFF | IS-H: Boolean Data Type for ON (= 'X') and OFF (= ' ') | |
| I_TARGET_STATE | Importing | TYPE J_ESTAT | User Status | |
| I_VKGID | Importing | TYPE N1VKG-VKGID | IS-H: CORD/PREG: ID of an Order Item (Preregistration) | |
| E_RC | Exporting | TYPE ISH_METHOD_RC | IS-H: Return Code for Method Calls | |
| CR_ERRORHANDLER | Changing | TYPE REF TO CL_ISHMED_ERRORHANDLING | ISHMED: Class for Error Handling |
Exceptions of Method CHANGE_STATE
This method does not have any exceptionsExample ABAP coding
DATA: lv_CR_ERRORHANDLER TYPE CL_ISHMED_ERRORHANDLING,
lv_E_RC TYPE ISH_METHOD_RC,
lv_IR_CORDPOS TYPE CL_ISHMED_PREREG,
lv_IR_ENVIRONMENT TYPE CL_ISH_ENVIRONMENT,
lv_I_COMMIT TYPE ISH_ON_OFF,
lv_I_ENQUEUE TYPE ISH_ON_OFF,
lv_I_PLANOE TYPE NORG-ORGID,
lv_I_POPUP_ALLOWED TYPE ISH_ON_OFF,
lv_I_SET_NEXT_STATE TYPE ISH_ON_OFF,
lv_I_TARGET_STATE TYPE J_ESTAT,
lv_I_VKGID TYPE N1VKG-VKGID,
lv_other TYPE c.
CALL METHOD CL_ISH_UTL_CORD=>CHANGE_STATE(
EXPORTING
IR_CORDPOS = lv_IR_CORDPOS
IR_ENVIRONMENT = lv_IR_ENVIRONMENT
I_COMMIT = lv_I_COMMIT
I_ENQUEUE = lv_I_ENQUEUE
I_PLANOE = lv_I_PLANOE
I_POPUP_ALLOWED = lv_I_POPUP_ALLOWED
I_SET_NEXT_STATE = lv_I_SET_NEXT_STATE
I_TARGET_STATE = lv_I_TARGET_STATE
I_VKGID = lv_I_VKGID
IMPORTING
E_RC = lv_E_RC
CHANGING
CR_ERRORHANDLER = lv_CR_ERRORHANDLER ).
Links to Related Class(s)
CL_ISH_U...Full list of available SAP object classes
Search for further information about these or an SAP related objects