SAP ISM_SET_DATE_CATEGORY Function Module for IS-M/SD: Enter Default Date Category and Period









ISM_SET_DATE_CATEGORY is a standard ism set date category SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-M/SD: Enter Default Date Category and Period processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for ism set date category FM, simply by entering the name ISM_SET_DATE_CATEGORY into the relevant SAP transaction such as SE37 or SE38.

Function Group: JK11
Program Name: SAPLJK11
Main Program: SAPLJK11
Appliation area: J
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ISM_SET_DATE_CATEGORY pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'ISM_SET_DATE_CATEGORY'"IS-M/SD: Enter Default Date Category and Period
EXPORTING
I_XTERMINTYP_AVAILABLE = "IS-M/SD: Date Category Available in Sales Document
I_DRERZ = "Publication
I_POART = "Internal Item Type for Sales Order
I_ZSKLS = "
I_GUELTIGVON = "Valid-from Date of Sales Order Item
I_GUELTIGBIS = "Date to which Sales Order Item is Valid
I_HEFTNUMVON = "Copy Number of First Issue to be Delivered
I_HEFTNUMBIS = "Copy Number of Last Issue for Delivery

IMPORTING
E_TERMVON = "
E_TERMBIS = "
E_TERMVONC = "
E_TERMBISC = "

CHANGING
C_TERMINTYP = "

EXCEPTIONS
INVALID_DRERZ = 1 INVALID_POART = 2 INVALID_INPUT = 3
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLJK11_001 IS-M/SD: Convert Copy Number to Internal Format

IMPORTING Parameters details for ISM_SET_DATE_CATEGORY

I_XTERMINTYP_AVAILABLE - IS-M/SD: Date Category Available in Sales Document

Data type: TJK00-XTERMINTYP
Optional: No
Call by Reference: No ( called with pass by value option)

I_DRERZ - Publication

Data type: JKAP-DRERZ
Optional: No
Call by Reference: No ( called with pass by value option)

I_POART - Internal Item Type for Sales Order

Data type: JKAP-POART
Optional: No
Call by Reference: No ( called with pass by value option)

I_ZSKLS -

Data type: JKAP-ZSKLS
Optional: No
Call by Reference: No ( called with pass by value option)

I_GUELTIGVON - Valid-from Date of Sales Order Item

Data type: JKAP-GUELTIGVON
Optional: No
Call by Reference: No ( called with pass by value option)

I_GUELTIGBIS - Date to which Sales Order Item is Valid

Data type: JKAP-GUELTIGBIS
Optional: No
Call by Reference: No ( called with pass by value option)

I_HEFTNUMVON - Copy Number of First Issue to be Delivered

Data type: JKAP-HEFTNUMVON
Optional: No
Call by Reference: No ( called with pass by value option)

I_HEFTNUMBIS - Copy Number of Last Issue for Delivery

Data type: JKAP-HEFTNUMBIS
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for ISM_SET_DATE_CATEGORY

E_TERMVON -

Data type: RJKPERIOD-TERMVON
Optional: No
Call by Reference: No ( called with pass by value option)

E_TERMBIS -

Data type: RJKPERIOD-TERMBIS
Optional: No
Call by Reference: No ( called with pass by value option)

E_TERMVONC -

Data type: RJKPERIOD-TERMVONC
Optional: No
Call by Reference: No ( called with pass by value option)

E_TERMBISC -

Data type: RJKPERIOD-TERMBISC
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for ISM_SET_DATE_CATEGORY

C_TERMINTYP -

Data type: RJKPERIOD-TERMINTYP
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

INVALID_DRERZ -

Data type:
Optional: No
Call by Reference: Yes

INVALID_POART -

Data type:
Optional: No
Call by Reference: Yes

INVALID_INPUT -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISM_SET_DATE_CATEGORY Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_e_termvon  TYPE RJKPERIOD-TERMVON, "   
lv_c_termintyp  TYPE RJKPERIOD-TERMINTYP, "   
lv_invalid_drerz  TYPE RJKPERIOD, "   
lv_i_xtermintyp_available  TYPE TJK00-XTERMINTYP, "   
lv_i_drerz  TYPE JKAP-DRERZ, "   
lv_e_termbis  TYPE RJKPERIOD-TERMBIS, "   
lv_invalid_poart  TYPE RJKPERIOD, "   
lv_i_poart  TYPE JKAP-POART, "   
lv_e_termvonc  TYPE RJKPERIOD-TERMVONC, "   
lv_invalid_input  TYPE RJKPERIOD, "   
lv_i_zskls  TYPE JKAP-ZSKLS, "   
lv_e_termbisc  TYPE RJKPERIOD-TERMBISC, "   
lv_i_gueltigvon  TYPE JKAP-GUELTIGVON, "   
lv_i_gueltigbis  TYPE JKAP-GUELTIGBIS, "   
lv_i_heftnumvon  TYPE JKAP-HEFTNUMVON, "   
lv_i_heftnumbis  TYPE JKAP-HEFTNUMBIS. "   

  CALL FUNCTION 'ISM_SET_DATE_CATEGORY'  "IS-M/SD: Enter Default Date Category and Period
    EXPORTING
         I_XTERMINTYP_AVAILABLE = lv_i_xtermintyp_available
         I_DRERZ = lv_i_drerz
         I_POART = lv_i_poart
         I_ZSKLS = lv_i_zskls
         I_GUELTIGVON = lv_i_gueltigvon
         I_GUELTIGBIS = lv_i_gueltigbis
         I_HEFTNUMVON = lv_i_heftnumvon
         I_HEFTNUMBIS = lv_i_heftnumbis
    IMPORTING
         E_TERMVON = lv_e_termvon
         E_TERMBIS = lv_e_termbis
         E_TERMVONC = lv_e_termvonc
         E_TERMBISC = lv_e_termbisc
    CHANGING
         C_TERMINTYP = lv_c_termintyp
    EXCEPTIONS
        INVALID_DRERZ = 1
        INVALID_POART = 2
        INVALID_INPUT = 3
. " ISM_SET_DATE_CATEGORY




ABAP code using 7.40 inline data declarations to call FM ISM_SET_DATE_CATEGORY

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single TERMVON FROM RJKPERIOD INTO @DATA(ld_e_termvon).
 
"SELECT single TERMINTYP FROM RJKPERIOD INTO @DATA(ld_c_termintyp).
 
 
"SELECT single XTERMINTYP FROM TJK00 INTO @DATA(ld_i_xtermintyp_available).
 
"SELECT single DRERZ FROM JKAP INTO @DATA(ld_i_drerz).
 
"SELECT single TERMBIS FROM RJKPERIOD INTO @DATA(ld_e_termbis).
 
 
"SELECT single POART FROM JKAP INTO @DATA(ld_i_poart).
 
"SELECT single TERMVONC FROM RJKPERIOD INTO @DATA(ld_e_termvonc).
 
 
"SELECT single ZSKLS FROM JKAP INTO @DATA(ld_i_zskls).
 
"SELECT single TERMBISC FROM RJKPERIOD INTO @DATA(ld_e_termbisc).
 
"SELECT single GUELTIGVON FROM JKAP INTO @DATA(ld_i_gueltigvon).
 
"SELECT single GUELTIGBIS FROM JKAP INTO @DATA(ld_i_gueltigbis).
 
"SELECT single HEFTNUMVON FROM JKAP INTO @DATA(ld_i_heftnumvon).
 
"SELECT single HEFTNUMBIS FROM JKAP INTO @DATA(ld_i_heftnumbis).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!