ISH_KHSTATV2002_SA2_MVMT_CALC 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 ISH_KHSTATV2002_SA2_MVMT_CALC into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
NKHSTATV2002
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'ISH_KHSTATV2002_SA2_MVMT_CALC' "
EXPORTING
i_einri = " tn01-einri
i_ausbegdt = " sy-datum
i_ausenddt = " sy-datum
i_fatyp = " fatyp
i_fachr_insges = " ish_fachr
* i_call_for_sa1 = OFF " xfeld
TABLES
it_sa2 = " rnkhstatv2002_sa2
it_ent_kh = " rnrangebwart
it_auf_kh = " rnrangebwart
it_tot = " rnrangebwart
it_bewegungen = " rnsbew
it_falldaten = " rnspat
it_nur_intensiv = " rnsbew
it_int_tage = " rnkhstatv2002_int_tage
. " ISH_KHSTATV2002_SA2_MVMT_CALC
The ABAP code below is a full code listing to execute function module ISH_KHSTATV2002_SA2_MVMT_CALC 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).
| it_it_sa2 | TYPE STANDARD TABLE OF RNKHSTATV2002_SA2,"TABLES PARAM |
| wa_it_sa2 | LIKE LINE OF it_it_sa2 , |
| it_it_ent_kh | TYPE STANDARD TABLE OF RNRANGEBWART,"TABLES PARAM |
| wa_it_ent_kh | LIKE LINE OF it_it_ent_kh , |
| it_it_auf_kh | TYPE STANDARD TABLE OF RNRANGEBWART,"TABLES PARAM |
| wa_it_auf_kh | LIKE LINE OF it_it_auf_kh , |
| it_it_tot | TYPE STANDARD TABLE OF RNRANGEBWART,"TABLES PARAM |
| wa_it_tot | LIKE LINE OF it_it_tot , |
| it_it_bewegungen | TYPE STANDARD TABLE OF RNSBEW,"TABLES PARAM |
| wa_it_bewegungen | LIKE LINE OF it_it_bewegungen , |
| it_it_falldaten | TYPE STANDARD TABLE OF RNSPAT,"TABLES PARAM |
| wa_it_falldaten | LIKE LINE OF it_it_falldaten , |
| it_it_nur_intensiv | TYPE STANDARD TABLE OF RNSBEW,"TABLES PARAM |
| wa_it_nur_intensiv | LIKE LINE OF it_it_nur_intensiv , |
| it_it_int_tage | TYPE STANDARD TABLE OF RNKHSTATV2002_INT_TAGE,"TABLES PARAM |
| wa_it_int_tage | LIKE LINE OF it_it_int_tage . |
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_i_einri | TYPE TN01-EINRI , |
| it_it_sa2 | TYPE STANDARD TABLE OF RNKHSTATV2002_SA2 , |
| wa_it_sa2 | LIKE LINE OF it_it_sa2, |
| ld_i_ausbegdt | TYPE SY-DATUM , |
| it_it_ent_kh | TYPE STANDARD TABLE OF RNRANGEBWART , |
| wa_it_ent_kh | LIKE LINE OF it_it_ent_kh, |
| ld_i_ausenddt | TYPE SY-DATUM , |
| it_it_auf_kh | TYPE STANDARD TABLE OF RNRANGEBWART , |
| wa_it_auf_kh | LIKE LINE OF it_it_auf_kh, |
| ld_i_fatyp | TYPE FATYP , |
| it_it_tot | TYPE STANDARD TABLE OF RNRANGEBWART , |
| wa_it_tot | LIKE LINE OF it_it_tot, |
| ld_i_fachr_insges | TYPE ISH_FACHR , |
| it_it_bewegungen | TYPE STANDARD TABLE OF RNSBEW , |
| wa_it_bewegungen | LIKE LINE OF it_it_bewegungen, |
| ld_i_call_for_sa1 | TYPE XFELD , |
| it_it_falldaten | TYPE STANDARD TABLE OF RNSPAT , |
| wa_it_falldaten | LIKE LINE OF it_it_falldaten, |
| it_it_nur_intensiv | TYPE STANDARD TABLE OF RNSBEW , |
| wa_it_nur_intensiv | LIKE LINE OF it_it_nur_intensiv, |
| it_it_int_tage | TYPE STANDARD TABLE OF RNKHSTATV2002_INT_TAGE , |
| wa_it_int_tage | LIKE LINE OF it_it_int_tage. |
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 ISH_KHSTATV2002_SA2_MVMT_CALC or its description.