SAP Function Modules

ISM_GET_VALUE_DATE_CATEGORY SAP Function module - IS-M/SD: Input Help for Date Category-Controlled Date







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

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


Pattern for FM ISM_GET_VALUE_DATE_CATEGORY - ISM GET VALUE DATE CATEGORY





CALL FUNCTION 'ISM_GET_VALUE_DATE_CATEGORY' "IS-M/SD: Input Help for Date Category-Controlled Date
  EXPORTING
    i_drerz =                   " jkap-drerz    Publication
*   i_termintyp = 'T'           " rjkperiod-termintyp
*   i_pva =                     " jkap-pva      Edition
*   i_bezugstyp =               " jkap-bezugstyp  Mix Type
*   i_bezper = '  '             " jkep-bezper   Service Type
*   i_xdisplay = ' '            " jpsd_xfeld
*   i_mark_date = SYST-DATUM    " rj45a-vorlaufdat  Date of shipping preparation as deadline for order changes
  IMPORTING
    e_select_value =            " rjkperiod-termvon
  EXCEPTIONS
    NO_SELECTION = 1            "
    INVALID_DRERZ = 2           "
    .  "  ISM_GET_VALUE_DATE_CATEGORY

ABAP code example for Function Module ISM_GET_VALUE_DATE_CATEGORY





The ABAP code below is a full code listing to execute function module ISM_GET_VALUE_DATE_CATEGORY 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_e_select_value  TYPE RJKPERIOD-TERMVON .


SELECT single DRERZ
FROM JKAP
INTO @DATA(ld_i_drerz).


DATA(ld_i_termintyp) = some text here

SELECT single PVA
FROM JKAP
INTO @DATA(ld_i_pva).


SELECT single BEZUGSTYP
FROM JKAP
INTO @DATA(ld_i_bezugstyp).


SELECT single BEZPER
FROM JKEP
INTO @DATA(ld_i_bezper).

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

DATA(ld_i_mark_date) = 20210129 . CALL FUNCTION 'ISM_GET_VALUE_DATE_CATEGORY' EXPORTING i_drerz = ld_i_drerz * i_termintyp = ld_i_termintyp * i_pva = ld_i_pva * i_bezugstyp = ld_i_bezugstyp * i_bezper = ld_i_bezper * i_xdisplay = ld_i_xdisplay * i_mark_date = ld_i_mark_date IMPORTING e_select_value = ld_e_select_value EXCEPTIONS NO_SELECTION = 1 INVALID_DRERZ = 2 . " ISM_GET_VALUE_DATE_CATEGORY
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here 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_e_select_value  TYPE RJKPERIOD-TERMVON ,
ld_i_drerz  TYPE JKAP-DRERZ ,
ld_i_termintyp  TYPE RJKPERIOD-TERMINTYP ,
ld_i_pva  TYPE JKAP-PVA ,
ld_i_bezugstyp  TYPE JKAP-BEZUGSTYP ,
ld_i_bezper  TYPE JKEP-BEZPER ,
ld_i_xdisplay  TYPE JPSD_XFELD ,
ld_i_mark_date  TYPE RJ45A-VORLAUFDAT .


SELECT single DRERZ
FROM JKAP
INTO ld_i_drerz.


ld_i_termintyp = some text here

SELECT single PVA
FROM JKAP
INTO ld_i_pva.


SELECT single BEZUGSTYP
FROM JKAP
INTO ld_i_bezugstyp.


SELECT single BEZPER
FROM JKEP
INTO ld_i_bezper.

ld_i_xdisplay = 'Check type of data required'.

ld_i_mark_date = 20210129

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