下面的代码将返回在事务 SU01 中为用户设置的格式日期select single ddtext from dd07t inner join usr01 on usr01~datfm = dd07t~domvalue_l into @data(lv_ddtext) where usr01~bname = @sy-uname and dd07t~domname = 'XUDATFM' and dd07t~ddlanguage = 'E'.if sy-subrc is initial. find first occurrence of '(' in lv_ddtext match offset data(lv_offset). data(formatDate) = lv_ddtext(lv_offset).endif.