SAP ABAP IMG Activity SAPG_0004 (Maintain Calendar for Japan)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-CUS-TOL-IMG (Application Component) Implementation Guide
     SBEX (Package) BE - General Basis Customizing
IMG Activity
ID SAPG_0004 Maintain Calendar for Japan  
Transaction Code S_BCE_68000181   IMG Activity: SAPG_0004 
Created on 00000000    
Customizing Attributes SAPG_0004   Maintain calendar for Japan 
Customizing Activity SAPG_0004   Maintain calendar for Japan 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name SAPG_0004    

In this activity, you define:

  • The eras used by the Japanese Imperial calendar (known in Japanese as wareki)
  • The written date format for the Imperial calendar

In the Japanese environment, the Imperial calendar is sometimes required in SAPscript forms.

Activities

Maintain the following two tables:

Definition of Beginning Date

LANG    STDATE        ERA        SHERA

J    18680908        �¾�¡ (meiji)        M

J    19120730        �å�³ (taisho)        T

J    19261225        �º�a (shouwa)        S

J    19890108        �½�¬ (heisei)        H

Date Format in Writing

LANG    YY    MM    DD

J    �N(nen)    ��(gatsu)    �ú(nichi)

Further notes

Inserting the System Date in Imperial Format

The standard symbol used for the date in Gregorian format is DATE. The symbol for the system date in Imperial format is LDATE.

You enter    System displays

&DATE&    1995/01/01

&LDATE&    �½�¬ 7�N 1�� 1�ú (heisei 7 nen 1 gatu 1 nichi)

Defining the Database Field Date in the Imperial Format

To include a date in Imperial format in a form, the parameter L must be defined for the database field. However, this function only works with fields with date type DATS.

You enter    System displays

&SYST-DATUM&    1995/01/01

&SYST-DATUM(L)&    �½�¬ 7�N 1�� 1�ú (heisei 7 nen 1 gatu 1 nichi)

Defining the SAPscript Command SET DATE MASK

You use the command SET DATE MASK to define the format of the date. There are three parameters at your disposal, LY (year), LM (month), and LD (date).

SET DATE MASK definition    System displays

New York, MM/DD/YYYY    New York, 01/01/1999

�ú�t: LY�NLM��LD�ú    �ú�t: �½�¬ 7�N 1�� 1�ú

Converting Dates from Gregorian to Imperial Format

To convert dates from Gregorian to Imperial format, use function module CONVERSION_EXIT_JPDAT_OUTPUT.

Business Attributes
ASAP Roadmap ID 201   Make global settings 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency I   Valid for countries specified 
Customizing Attributes Country Key Country Name
SAPG_0004 JP Japan
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG SAPG_0004 0 HLA0009999 Application Components 
Maintenance Objects
Maintenance object type C   Customizing Object 
Assigned objects
Customizing Object Object Type Transaction Code Sub-object Do not Summarize Skip Subset Dialog Box Description for multiple selections
CLJP T - Individual transaction object CLJP 0000000001 Calendar for Japan 
History
Last changed by/on SAP  20020809 
SAP Release Created in