ABAP OO Class Methods

SET_IDOC_STATUS SAP Method - Set IDOC Status







Below is documentation, parameters and attributes of ABAP Method SET_IDOC_STATUS within SAP class EDX_UTIL. There is also a number of example ABAP code snipts to help you implement this method.

This method is available within SAP systems depending on your version and release level and you can view further information by entering the class name EDX_UTIL into relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in. Also check out the contributions below to view or add related hints, tips, example screen shots and any other information.


SAP Class method belongs too

EDX_UTIL

Method Name

SET_IDOC_STATUS

Method Type

Static Method:  This is a Static Method so you can call it directly






Importing Parameters:

Below is a list of importing parameters associated with this method, including its name, description and data type


I_IDOC_NUMBER " EDX: IDoc Number for This Message TYPE EDX_IDOC_NUMBER
I_IDOC_STATUS " Status of IDoc TYPE EDI_STATUS
I_MSGID " Status Message ID TYPE EDI_STAMID
I_MSGNO " Number of Status Message TYPE EDI_STAMNO
I_PARAM1 " Parameter(s) TYPE EDI_PARMTR
I_PARAM2 " Parameter(s) TYPE EDI_PARMTR
I_PARAM3 " Parameter(s) TYPE EDI_PARMTR
I_PARAM4 " Parameter(s) TYPE EDI_PARMTR

Exceptions:


STATUS_NOT_UPDATED - Status of IDoc not Reset



Example ABAP coding


DATA:
ld_I_IDOC_NUMBER TYPE EDX_IDOC_NUMBER ,
ld_I_IDOC_STATUS TYPE EDI_STATUS ,
ld_I_MSGID TYPE EDI_STAMID ,
ld_I_MSGNO TYPE EDI_STAMNO ,
ld_I_PARAM1 TYPE EDI_PARMTR ,
ld_I_PARAM2 TYPE EDI_PARMTR ,
ld_I_PARAM3 TYPE EDI_PARMTR ,
ld_I_PARAM4 TYPE EDI_PARMTR.

" ld_I_IDOC_NUMBER = "
" ld_I_IDOC_STATUS = "
" ld_I_MSGID = "
" ld_I_MSGNO = "
" ld_I_PARAM1 = "
" ld_I_PARAM2 = "
" ld_I_PARAM3 = "
" ld_I_PARAM4 = "

CALL METHOD EDX_UTIL=>SET_IDOC_STATUS(
EXPORTING
I_IDOC_NUMBER = ld_I_IDOC_NUMBER
I_IDOC_STATUS = ld_I_IDOC_STATUS
I_MSGID = ld_I_MSGID
I_MSGNO = ld_I_MSGNO
I_PARAM1 = ld_I_PARAM1
I_PARAM2 = ld_I_PARAM2
I_PARAM3 = ld_I_PARAM3
I_PARAM4 = ld_I_PARAM4
EXCEPTIONS
STATUS_NOT_UPDATED = 1 ).