CLAS CL_ABAP_DATFM

Source Link
Open in ADT

Home
Previous Object: CL_ABAP_DATADESCR
Next Object: CL_ABAP_DB_C_LOCATOR

Status: RELEASED

Public
Type ty_country TYPE LAND1
Type ty_datext TYPE CHAR10
Type ty_datfm TYPE c LENGTH 1
Type ty_delimiter TYPE BAPI_SIGN
Type ty_isldate TYPE c LENGTH 8
Type ty_langu TYPE c LENGTH 1
Type ty_gregdate TYPE c LENGTH 8
Static Method check_date_format
  IMPORTING
    im_datfm TYPE c LENGTH 1
  RETURNING re_is_valid TYPE ABAP_BOOL
Static Method conv_date_ext_to_int
  IMPORTING
    im_datext TYPE csequence
    im_datfmdes TYPE c LENGTH 1 Optional
  EXPORTING
    ex_datint TYPE D
    ex_datfmused TYPE c LENGTH 1
  RAISING cx_abap_datfm_no_date
  RAISING cx_abap_datfm_invalid_date
  RAISING cx_abap_datfm_format_unknown
  RAISING cx_abap_datfm_ambiguous
Static Method conv_date_int_to_ext
  IMPORTING
    im_datint TYPE D
    im_datfmdes TYPE c LENGTH 1 Optional
  EXPORTING
    ex_datext TYPE csequence
    ex_datfmused TYPE c LENGTH 1
  RAISING cx_abap_datfm_format_unknown
Static Method conv_date_int_to_shortex
  IMPORTING
    im_datint TYPE D
    im_datfmdes TYPE c LENGTH 1 Optional
  EXPORTING
    ex_abbrdatext TYPE csequence
    ex_datfmused TYPE c LENGTH 1
  RAISING cx_abap_datfm_format_unknown
Static Method conv_isl_to_greg_formula
  IMPORTING
    isldate TYPE c LENGTH 8
  EXPORTING
    gregdate TYPE c LENGTH 8
Static Method conv_period_ext_to_int
  IMPORTING
    im_periodext TYPE csequence
    im_datfmdes TYPE c LENGTH 1 Optional
    im_inweeks TYPE ABAP_BOOL Optional
    im_inarbitrary TYPE ABAP_BOOL Optional
  EXPORTING
    ex_periodint TYPE csequence
    ex_datfmused TYPE c LENGTH 1
  RAISING cx_abap_datfm_no_date
  RAISING cx_abap_datfm_invalid_date
  RAISING cx_abap_datfm_format_unknown
  RAISING cx_abap_datfm_ambiguous
Static Method conv_period_int_to_ext
  IMPORTING
    im_periodint TYPE csequence
    im_datfmdes TYPE c LENGTH 1 Optional
  EXPORTING
    ex_periodext TYPE csequence
    ex_datfmused TYPE c LENGTH 1
  RAISING cx_abap_datfm_format_unknown
Static Method conv_year_ext_to_int
  IMPORTING
    im_datfmdes TYPE c LENGTH 1 Optional
    im_yearext TYPE clike
    im_by_parameter TYPE ABAP_BOOL Optional
  EXPORTING
    ex_yearint TYPE clike
  RAISING cx_abap_datfm_invalid_date
  RAISING cx_abap_datfm_no_date
Static Method conv_year_int_to_ext
  IMPORTING
    im_datfmdes TYPE c LENGTH 1 Optional
    im_yearint TYPE clike
    im_by_parameter TYPE ABAP_BOOL Optional
  EXPORTING
    ex_yearext TYPE clike
Static Method get_country_datfm
  IMPORTING
    country TYPE LAND1
  RETURNING datfm TYPE c LENGTH 1
Static Method get_date_format_des
  IMPORTING
    im_datfm TYPE c LENGTH 1 Optional
    im_langu TYPE c LENGTH 1 Optional
    im_plain TYPE ABAP_BOOL Optional
    im_long TYPE ABAP_BOOL Optional
  EXPORTING
    ex_dateformat TYPE csequence
  RAISING cx_abap_datfm_format_unknown
Static Method get_date_format_des_j
  IMPORTING
    im_datfm TYPE c LENGTH 1 Optional
  EXPORTING
    ex_dateformat TYPE csequence
  RAISING cx_abap_datfm_format_unknown
Static Method get_datfm
  RETURNING datfm TYPE c LENGTH 1
Static Method get_delimiter
  IMPORTING
    im_datfm TYPE c LENGTH 1 Optional
  EXPORTING
    ex_delimiter TYPE BAPI_SIGN
  RAISING cx_abap_datfm_format_unknown
Static Method get_num_of_dateformats
  RETURNING re_num TYPE INT4
Static Method get_period_format_des
  IMPORTING
    im_datfm TYPE c LENGTH 1 Optional
    im_langu TYPE c LENGTH 1 Optional
    im_plain TYPE ABAP_BOOL Optional
    im_long TYPE ABAP_BOOL Optional
    im_isweeks TYPE ABAP_BOOL Optional
  EXPORTING
    ex_periodformat TYPE csequence
  RAISING cx_abap_datfm_format_unknown

Exists on:
754true
750true
702true

Bug reports and ideas welcome
Made using abaplint.app