SAP Function Modules

STATUS_CHANGES_GET SAP Function module







STATUS_CHANGES_GET is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name STATUS_CHANGES_GET into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: BSVA
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM STATUS_CHANGES_GET - STATUS CHANGES GET





CALL FUNCTION 'STATUS_CHANGES_GET' "
* EXPORTING
*   client = SY-MANDT           " sy-mandt      Client
*   objnr = SPACE               " onr00-objnr   Object Number
* TABLES
*   t_changes =                 " jest_upd      Status changes
*   t_jsto_ins =                " jsto          New JSTO records
*   t_jsto_upd =                " jsto_upd      Updated JSTO records
    .  "  STATUS_CHANGES_GET

ABAP code example for Function Module STATUS_CHANGES_GET





The ABAP code below is a full code listing to execute function module STATUS_CHANGES_GET including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_t_changes  TYPE STANDARD TABLE OF JEST_UPD,"TABLES PARAM
wa_t_changes  LIKE LINE OF it_t_changes ,
it_t_jsto_ins  TYPE STANDARD TABLE OF JSTO,"TABLES PARAM
wa_t_jsto_ins  LIKE LINE OF it_t_jsto_ins ,
it_t_jsto_upd  TYPE STANDARD TABLE OF JSTO_UPD,"TABLES PARAM
wa_t_jsto_upd  LIKE LINE OF it_t_jsto_upd .

DATA(ld_client) = 'Check type of data required'.

SELECT single OBJNR
FROM ONR00
INTO @DATA(ld_objnr).


"populate fields of struture and append to itab
append wa_t_changes to it_t_changes.

"populate fields of struture and append to itab
append wa_t_jsto_ins to it_t_jsto_ins.

"populate fields of struture and append to itab
append wa_t_jsto_upd to it_t_jsto_upd. . CALL FUNCTION 'STATUS_CHANGES_GET' * EXPORTING * client = ld_client * objnr = ld_objnr * TABLES * t_changes = it_t_changes * t_jsto_ins = it_t_jsto_ins * t_jsto_upd = it_t_jsto_upd . " STATUS_CHANGES_GET
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_client  TYPE SY-MANDT ,
it_t_changes  TYPE STANDARD TABLE OF JEST_UPD ,
wa_t_changes  LIKE LINE OF it_t_changes,
ld_objnr  TYPE ONR00-OBJNR ,
it_t_jsto_ins  TYPE STANDARD TABLE OF JSTO ,
wa_t_jsto_ins  LIKE LINE OF it_t_jsto_ins,
it_t_jsto_upd  TYPE STANDARD TABLE OF JSTO_UPD ,
wa_t_jsto_upd  LIKE LINE OF it_t_jsto_upd.

ld_client = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_changes to it_t_changes.

SELECT single OBJNR
FROM ONR00
INTO ld_objnr.


"populate fields of struture and append to itab
append wa_t_jsto_ins to it_t_jsto_ins.

"populate fields of struture and append to itab
append wa_t_jsto_upd to it_t_jsto_upd.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name STATUS_CHANGES_GET or its description.