on 02-01-2010 3:06 PM
Hallo Gurus,
is it possible, in smartforms, to use a command like the old "set date mask" of sapscript?
for example: Invoice Smartformsa convert date into the format of the nation of the partner, while I need to use european format without changing customizing for US.
Thanks!
Mick
The following processes 2 lines, the first line remains unchanged, the second line is changed to "Today is June 05, 2008":
DATA ls_header TYPE thead.
DATA ls_line TYPE tline.
DATA lt_line TYPE TABLE OF tline.
ls_header-tdspras = sy-langu.
ls_header-tdlinesize = 72.
ls_line-tdformat = '/:'.
ls_line-tdline = 'SET DATE MASK = ''MMMM DD, YYYY'''.
append ls_line to lt_line.
ls_line-tdformat = '*'.
ls_line-tdline = 'Today is &SY-DATUM&'.
append ls_line to lt_line.
CALL FUNCTION 'TEXT_SYMBOL_REPLACE'
EXPORTING
HEADER = ls_header
TABLES
LINES = lt_line.
READ TABLE lt_line INTO ls_line INDEX 2.
WRITE : / ls_line-tdline.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great, thx for the feedback. Note that it SET COUNTRY already existed in SAPscript technology. This is used to choose the day/month/year sequence and the separator between them (this is stored in T005X). While SET DATE MASK is to write the month as a word (and more), it works in SAPscript, but is ignored in Smart Form. It's why I thought your question was about a workaround to use SET DATE MASK in smart form.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.