SAP SUSR_CHANGE_DOC_STATUS_HISTORY Function Module for









SUSR_CHANGE_DOC_STATUS_HISTORY is a standard susr change doc status history SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for susr change doc status history FM, simply by entering the name SUSR_CHANGE_DOC_STATUS_HISTORY into the relevant SAP transaction such as SE37 or SE38.

Function Group: SU_USER_CHANGE_DOC
Program Name: SAPLSU_USER_CHANGE_DOC
Main Program: SAPLSU_USER_CHANGE_DOC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SUSR_CHANGE_DOC_STATUS_HISTORY pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'SUSR_CHANGE_DOC_STATUS_HISTORY'"
EXPORTING
* IT_USERNAME = "
* IV_USER_DEL = ' ' "
* IV_PASS = ' ' "
* IV_TYPE = ' ' "
* IV_LOCK = ' ' "
* IV_ALOCK_S = ' ' "
* IV_ALOCK_D = ' ' "
* IV_FLOCK_S = ' ' "
* IV_FLOCK_D = ' ' "
* IV_TVAL = ' ' "
* IV_ACCNT = ' ' "
* IT_CDUSERNAME = "
* IV_REFUS = ' ' "
* IV_GROUP = ' ' "
* IV_ALIAS = ' ' "
* IV_SNC = ' ' "
* IV_PROF = ' ' "
* IV_ROLE = ' ' "
* IV_SECU = ' ' "
* IV_FDATE = "
* IV_TDATE = "
* IV_FTIME = "
* IV_TTIME = "
* IV_ARCHIVE = ' ' "
* IV_VIEW = ' ' "
* IV_USER_CRT = ' ' "

IMPORTING
ET_CDRED_OUTPUT_NARR = "
ET_CDRED_OUTPUT_WIDE = "
.



IMPORTING Parameters details for SUSR_CHANGE_DOC_STATUS_HISTORY

IT_USERNAME -

Data type: CDUSERNAME_RANGE_TAB
Optional: Yes
Call by Reference: Yes

IV_USER_DEL -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_PASS -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_TYPE -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_LOCK -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_ALOCK_S -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_ALOCK_D -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_FLOCK_S -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_FLOCK_D -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_TVAL -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_ACCNT -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

IT_CDUSERNAME -

Data type: CDUSERNAME_RANGE_TAB
Optional: Yes
Call by Reference: Yes

IV_REFUS -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_GROUP -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_ALIAS -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_SNC -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_PROF -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_ROLE -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_SECU -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_FDATE -

Data type: CDHDR-UDATE
Optional: Yes
Call by Reference: Yes

IV_TDATE -

Data type: CDHDR-UDATE
Optional: Yes
Call by Reference: Yes

IV_FTIME -

Data type: CDHDR-UTIME
Optional: Yes
Call by Reference: Yes

IV_TTIME -

Data type: CDHDR-UTIME
Optional: Yes
Call by Reference: Yes

IV_ARCHIVE -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_VIEW -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

IV_USER_CRT -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for SUSR_CHANGE_DOC_STATUS_HISTORY

ET_CDRED_OUTPUT_NARR -

Data type: SUSR_T_USRCD_N
Optional: No
Call by Reference: Yes

ET_CDRED_OUTPUT_WIDE -

Data type: SUSR_T_USRCD_W
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SUSR_CHANGE_DOC_STATUS_HISTORY Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_it_username  TYPE CDUSERNAME_RANGE_TAB, "   
lv_et_cdred_output_narr  TYPE SUSR_T_USRCD_N, "   
lv_iv_user_del  TYPE C, "   SPACE
lv_iv_pass  TYPE C, "   SPACE
lv_iv_type  TYPE C, "   SPACE
lv_iv_lock  TYPE C, "   SPACE
lv_iv_alock_s  TYPE C, "   SPACE
lv_iv_alock_d  TYPE C, "   SPACE
lv_iv_flock_s  TYPE C, "   SPACE
lv_iv_flock_d  TYPE C, "   SPACE
lv_iv_tval  TYPE C, "   SPACE
lv_iv_accnt  TYPE C, "   SPACE
lv_it_cdusername  TYPE CDUSERNAME_RANGE_TAB, "   
lv_et_cdred_output_wide  TYPE SUSR_T_USRCD_W, "   
lv_iv_refus  TYPE C, "   SPACE
lv_iv_group  TYPE C, "   SPACE
lv_iv_alias  TYPE C, "   SPACE
lv_iv_snc  TYPE C, "   SPACE
lv_iv_prof  TYPE C, "   SPACE
lv_iv_role  TYPE C, "   SPACE
lv_iv_secu  TYPE C, "   SPACE
lv_iv_fdate  TYPE CDHDR-UDATE, "   
lv_iv_tdate  TYPE CDHDR-UDATE, "   
lv_iv_ftime  TYPE CDHDR-UTIME, "   
lv_iv_ttime  TYPE CDHDR-UTIME, "   
lv_iv_archive  TYPE C, "   SPACE
lv_iv_view  TYPE C, "   SPACE
lv_iv_user_crt  TYPE C. "   SPACE

  CALL FUNCTION 'SUSR_CHANGE_DOC_STATUS_HISTORY'  "
    EXPORTING
         IT_USERNAME = lv_it_username
         IV_USER_DEL = lv_iv_user_del
         IV_PASS = lv_iv_pass
         IV_TYPE = lv_iv_type
         IV_LOCK = lv_iv_lock
         IV_ALOCK_S = lv_iv_alock_s
         IV_ALOCK_D = lv_iv_alock_d
         IV_FLOCK_S = lv_iv_flock_s
         IV_FLOCK_D = lv_iv_flock_d
         IV_TVAL = lv_iv_tval
         IV_ACCNT = lv_iv_accnt
         IT_CDUSERNAME = lv_it_cdusername
         IV_REFUS = lv_iv_refus
         IV_GROUP = lv_iv_group
         IV_ALIAS = lv_iv_alias
         IV_SNC = lv_iv_snc
         IV_PROF = lv_iv_prof
         IV_ROLE = lv_iv_role
         IV_SECU = lv_iv_secu
         IV_FDATE = lv_iv_fdate
         IV_TDATE = lv_iv_tdate
         IV_FTIME = lv_iv_ftime
         IV_TTIME = lv_iv_ttime
         IV_ARCHIVE = lv_iv_archive
         IV_VIEW = lv_iv_view
         IV_USER_CRT = lv_iv_user_crt
    IMPORTING
         ET_CDRED_OUTPUT_NARR = lv_et_cdred_output_narr
         ET_CDRED_OUTPUT_WIDE = lv_et_cdred_output_wide
. " SUSR_CHANGE_DOC_STATUS_HISTORY




ABAP code using 7.40 inline data declarations to call FM SUSR_CHANGE_DOC_STATUS_HISTORY

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
DATA(ld_iv_user_del) = ' '.
 
DATA(ld_iv_pass) = ' '.
 
DATA(ld_iv_type) = ' '.
 
DATA(ld_iv_lock) = ' '.
 
DATA(ld_iv_alock_s) = ' '.
 
DATA(ld_iv_alock_d) = ' '.
 
DATA(ld_iv_flock_s) = ' '.
 
DATA(ld_iv_flock_d) = ' '.
 
DATA(ld_iv_tval) = ' '.
 
DATA(ld_iv_accnt) = ' '.
 
 
 
DATA(ld_iv_refus) = ' '.
 
DATA(ld_iv_group) = ' '.
 
DATA(ld_iv_alias) = ' '.
 
DATA(ld_iv_snc) = ' '.
 
DATA(ld_iv_prof) = ' '.
 
DATA(ld_iv_role) = ' '.
 
DATA(ld_iv_secu) = ' '.
 
"SELECT single UDATE FROM CDHDR INTO @DATA(ld_iv_fdate).
 
"SELECT single UDATE FROM CDHDR INTO @DATA(ld_iv_tdate).
 
"SELECT single UTIME FROM CDHDR INTO @DATA(ld_iv_ftime).
 
"SELECT single UTIME FROM CDHDR INTO @DATA(ld_iv_ttime).
 
DATA(ld_iv_archive) = ' '.
 
DATA(ld_iv_view) = ' '.
 
DATA(ld_iv_user_crt) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!