Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Doubt with a format date.

Former Member
0 Likes
776

I need to put the date in this form: September 29, 2005 into a Smartform.

How can I do that?

1 ACCEPTED SOLUTION
Read only

FredericGirod
Active Contributor
0 Likes
755

Hi Carlos,

use the table T015M.

data : w_monam type monam.

select single monam 
       into w_monam
       from t015m
       where spras eq sy-langu (or nast-langu)
       and monum eq w_date+4(2).

write : /1 w_monam, w_date+6(2), ',', w_date+0(4).

Rgd

Frédéric

6 REPLIES 6
Read only

FredericGirod
Active Contributor
0 Likes
756

Hi Carlos,

use the table T015M.

data : w_monam type monam.

select single monam 
       into w_monam
       from t015m
       where spras eq sy-langu (or nast-langu)
       and monum eq w_date+4(2).

write : /1 w_monam, w_date+6(2), ',', w_date+0(4).

Rgd

Frédéric

Read only

andreas_mann3
Active Contributor
0 Likes
755

Hi,

try with that sample:

PARAMETERS : date TYPE sy-datum DEFAULT '20050925'.
DATA dstr TYPE string.
* get name
SELECT SINGLE * FROM t247
                      WHERE spras = sy-langu
                         AND  mnr  = date+4(2).


CONCATENATE t247-ltx date+6(2) ',' date(4) INTO dstr
SEPARATED BY space.
WRITE : / dstr.

Andreas

Read only

0 Likes
755

Hi Andreas,

funny, there are 2 differents tables in SAP that make this.

Fédéric

Read only

Former Member
0 Likes
755

Frederic,

what is w_date, is a variable or what??

thanks

Read only

Former Member
0 Likes
755

OK, I understand what is w_date.

Read only

0 Likes
755

The input,

don't know if you need sy-datum or something from your NAST structure/table

Rgd

Frédérc