SAP Function /SAPHT/DRM_AGREEMENT_STAT_CHAN - Agreement: change the status

Parameter Reference Type Length Default Optional Text
IV_AGREEMENT_NUMBER VBAK-VBELN C 10 Sales document
IV_CHANGE_TEXT T681-KSDAT C 1 'X' X Checkbox
IV_NEW_STATE TJ30-ESTAT C 5 User status

Parameter Reference Type Length Text
EV_ERROR SYST-SUBRC I 4 Return value, return value after ABAP statements

Exception Text
INVALID_INPUT
STATE_CHANGE_NOT_ALLOWED