SAP Function Modules

ISP_MC_STATISTICS_AUF_UPD_DI SAP Function module







ISP_MC_STATISTICS_AUF_UPD_DI 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 ISP_MC_STATISTICS_AUF_UPD_DI into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM ISP_MC_STATISTICS_AUF_UPD_DI - ISP MC STATISTICS AUF UPD DI





CALL FUNCTION 'ISP_MC_STATISTICS_AUF_UPD_DI' "
  EXPORTING
*   control = SPACE             " mccontrol
    zeitp =                     " tmc5-zeitp
    modus =                     " mccontrol-modus
    par_xupdate_task =          " sy-batch
  TABLES
    mcinf =                     " mcsoinf
    xmcjhak =                   " mcjhakb
    xmcjhap =                   " mcjhapb
    xmcjhaga =                  " mcjhagab
    xmcjhagvz =                 " mcjhagvzb
    xmcjhae =                   " mcjhaeb
    .  "  ISP_MC_STATISTICS_AUF_UPD_DI

ABAP code example for Function Module ISP_MC_STATISTICS_AUF_UPD_DI





The ABAP code below is a full code listing to execute function module ISP_MC_STATISTICS_AUF_UPD_DI 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_mcinf  TYPE STANDARD TABLE OF MCSOINF,"TABLES PARAM
wa_mcinf  LIKE LINE OF it_mcinf ,
it_xmcjhak  TYPE STANDARD TABLE OF MCJHAKB,"TABLES PARAM
wa_xmcjhak  LIKE LINE OF it_xmcjhak ,
it_xmcjhap  TYPE STANDARD TABLE OF MCJHAPB,"TABLES PARAM
wa_xmcjhap  LIKE LINE OF it_xmcjhap ,
it_xmcjhaga  TYPE STANDARD TABLE OF MCJHAGAB,"TABLES PARAM
wa_xmcjhaga  LIKE LINE OF it_xmcjhaga ,
it_xmcjhagvz  TYPE STANDARD TABLE OF MCJHAGVZB,"TABLES PARAM
wa_xmcjhagvz  LIKE LINE OF it_xmcjhagvz ,
it_xmcjhae  TYPE STANDARD TABLE OF MCJHAEB,"TABLES PARAM
wa_xmcjhae  LIKE LINE OF it_xmcjhae .

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

SELECT single ZEITP
FROM TMC5
INTO @DATA(ld_zeitp).


DATA(ld_modus) = some text here
DATA(ld_par_xupdate_task) = 'some text here'.

"populate fields of struture and append to itab
append wa_mcinf to it_mcinf.

"populate fields of struture and append to itab
append wa_xmcjhak to it_xmcjhak.

"populate fields of struture and append to itab
append wa_xmcjhap to it_xmcjhap.

"populate fields of struture and append to itab
append wa_xmcjhaga to it_xmcjhaga.

"populate fields of struture and append to itab
append wa_xmcjhagvz to it_xmcjhagvz.

"populate fields of struture and append to itab
append wa_xmcjhae to it_xmcjhae. . CALL FUNCTION 'ISP_MC_STATISTICS_AUF_UPD_DI' EXPORTING * control = ld_control zeitp = ld_zeitp modus = ld_modus par_xupdate_task = ld_par_xupdate_task TABLES mcinf = it_mcinf xmcjhak = it_xmcjhak xmcjhap = it_xmcjhap xmcjhaga = it_xmcjhaga xmcjhagvz = it_xmcjhagvz xmcjhae = it_xmcjhae . " ISP_MC_STATISTICS_AUF_UPD_DI
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_control  TYPE MCCONTROL ,
it_mcinf  TYPE STANDARD TABLE OF MCSOINF ,
wa_mcinf  LIKE LINE OF it_mcinf,
ld_zeitp  TYPE TMC5-ZEITP ,
it_xmcjhak  TYPE STANDARD TABLE OF MCJHAKB ,
wa_xmcjhak  LIKE LINE OF it_xmcjhak,
ld_modus  TYPE MCCONTROL-MODUS ,
it_xmcjhap  TYPE STANDARD TABLE OF MCJHAPB ,
wa_xmcjhap  LIKE LINE OF it_xmcjhap,
ld_par_xupdate_task  TYPE SY-BATCH ,
it_xmcjhaga  TYPE STANDARD TABLE OF MCJHAGAB ,
wa_xmcjhaga  LIKE LINE OF it_xmcjhaga,
it_xmcjhagvz  TYPE STANDARD TABLE OF MCJHAGVZB ,
wa_xmcjhagvz  LIKE LINE OF it_xmcjhagvz,
it_xmcjhae  TYPE STANDARD TABLE OF MCJHAEB ,
wa_xmcjhae  LIKE LINE OF it_xmcjhae.

ld_control = 'some text here'.

"populate fields of struture and append to itab
append wa_mcinf to it_mcinf.

SELECT single ZEITP
FROM TMC5
INTO ld_zeitp.


"populate fields of struture and append to itab
append wa_xmcjhak to it_xmcjhak.

ld_modus = some text here

"populate fields of struture and append to itab
append wa_xmcjhap to it_xmcjhap.
ld_par_xupdate_task = 'some text here'.

"populate fields of struture and append to itab
append wa_xmcjhaga to it_xmcjhaga.

"populate fields of struture and append to itab
append wa_xmcjhagvz to it_xmcjhagvz.

"populate fields of struture and append to itab
append wa_xmcjhae to it_xmcjhae.

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 ISP_MC_STATISTICS_AUF_UPD_DI or its description.