SAP Function Modules

ISP_DISTRIBUTION_VARI_CHECK SAP Function module - IS-M/SD: Determine and Format Shipping Schedule Variants







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

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


Pattern for FM ISP_DISTRIBUTION_VARI_CHECK - ISP DISTRIBUTION VARI CHECK





CALL FUNCTION 'ISP_DISTRIBUTION_VARI_CHECK' "IS-M/SD: Determine and Format Shipping Schedule Variants
  EXPORTING
    einstieg =                  " rjv2401-einstieg
    trtyp =                     " tj180-trtyp
  IMPORTING
    loc_rjv2401 =               " rjv2401
    ueb_okcode =                "
  TABLES
    rjv2402_tab =               " rjv2402
    rjv2403_tab =               " rjv2403
    rjv2404_tab =               " rjv2404
    rjv2405_tab =               " rjv2405
    rjv2408_tab =               " rjv2408
    .  "  ISP_DISTRIBUTION_VARI_CHECK

ABAP code example for Function Module ISP_DISTRIBUTION_VARI_CHECK





The ABAP code below is a full code listing to execute function module ISP_DISTRIBUTION_VARI_CHECK 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:
ld_loc_rjv2401  TYPE RJV2401 ,
ld_ueb_okcode  TYPE STRING ,
it_rjv2402_tab  TYPE STANDARD TABLE OF RJV2402,"TABLES PARAM
wa_rjv2402_tab  LIKE LINE OF it_rjv2402_tab ,
it_rjv2403_tab  TYPE STANDARD TABLE OF RJV2403,"TABLES PARAM
wa_rjv2403_tab  LIKE LINE OF it_rjv2403_tab ,
it_rjv2404_tab  TYPE STANDARD TABLE OF RJV2404,"TABLES PARAM
wa_rjv2404_tab  LIKE LINE OF it_rjv2404_tab ,
it_rjv2405_tab  TYPE STANDARD TABLE OF RJV2405,"TABLES PARAM
wa_rjv2405_tab  LIKE LINE OF it_rjv2405_tab ,
it_rjv2408_tab  TYPE STANDARD TABLE OF RJV2408,"TABLES PARAM
wa_rjv2408_tab  LIKE LINE OF it_rjv2408_tab .


DATA(ld_einstieg) = some text here

SELECT single TRTYP
FROM TJ180
INTO @DATA(ld_trtyp).


"populate fields of struture and append to itab
append wa_rjv2402_tab to it_rjv2402_tab.

"populate fields of struture and append to itab
append wa_rjv2403_tab to it_rjv2403_tab.

"populate fields of struture and append to itab
append wa_rjv2404_tab to it_rjv2404_tab.

"populate fields of struture and append to itab
append wa_rjv2405_tab to it_rjv2405_tab.

"populate fields of struture and append to itab
append wa_rjv2408_tab to it_rjv2408_tab. . CALL FUNCTION 'ISP_DISTRIBUTION_VARI_CHECK' EXPORTING einstieg = ld_einstieg trtyp = ld_trtyp IMPORTING loc_rjv2401 = ld_loc_rjv2401 ueb_okcode = ld_ueb_okcode TABLES rjv2402_tab = it_rjv2402_tab rjv2403_tab = it_rjv2403_tab rjv2404_tab = it_rjv2404_tab rjv2405_tab = it_rjv2405_tab rjv2408_tab = it_rjv2408_tab . " ISP_DISTRIBUTION_VARI_CHECK
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_loc_rjv2401  TYPE RJV2401 ,
ld_einstieg  TYPE RJV2401-EINSTIEG ,
it_rjv2402_tab  TYPE STANDARD TABLE OF RJV2402 ,
wa_rjv2402_tab  LIKE LINE OF it_rjv2402_tab,
ld_ueb_okcode  TYPE STRING ,
ld_trtyp  TYPE TJ180-TRTYP ,
it_rjv2403_tab  TYPE STANDARD TABLE OF RJV2403 ,
wa_rjv2403_tab  LIKE LINE OF it_rjv2403_tab,
it_rjv2404_tab  TYPE STANDARD TABLE OF RJV2404 ,
wa_rjv2404_tab  LIKE LINE OF it_rjv2404_tab,
it_rjv2405_tab  TYPE STANDARD TABLE OF RJV2405 ,
wa_rjv2405_tab  LIKE LINE OF it_rjv2405_tab,
it_rjv2408_tab  TYPE STANDARD TABLE OF RJV2408 ,
wa_rjv2408_tab  LIKE LINE OF it_rjv2408_tab.


ld_einstieg = some text here

"populate fields of struture and append to itab
append wa_rjv2402_tab to it_rjv2402_tab.

SELECT single TRTYP
FROM TJ180
INTO ld_trtyp.


"populate fields of struture and append to itab
append wa_rjv2403_tab to it_rjv2403_tab.

"populate fields of struture and append to itab
append wa_rjv2404_tab to it_rjv2404_tab.

"populate fields of struture and append to itab
append wa_rjv2405_tab to it_rjv2405_tab.

"populate fields of struture and append to itab
append wa_rjv2408_tab to it_rjv2408_tab.

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