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

SAP SCRIPT

Former Member
0 Likes
544

How we print date like 1 Oct 2005 instead of 01-10-2005?

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
519

You can use edit masks in your sapscript code.

Regards,

Rich Heilman

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
520

You can use edit masks in your sapscript code.

Regards,

Rich Heilman

Read only

0 Likes
519

can u plz clear it again

Read only

Former Member
0 Likes
519

Check this out -

http://help.sap.com//saphelp_470/helpdata/EN/d1/8031dd454211d189710000e8322d00/content.htm

Cheers.

( Dont forget to reward if answers were helpful)

Read only

Former Member
0 Likes
519

Hi,

here is the code.

DT <H>Date:</>,,&HERE GIVE YOUR FIELD OF DATE FROM WHERE YOU ARE GETTING&

/: SET DATE MASK = 'MM/DD/YY'

See this will work.

If your issue is solved plzzz award points.

CHEERS

Read only

Former Member
0 Likes
519

use this fm AND CONCEPT......-----

DATA: BEGIN OF it_month OCCURS 0.

INCLUDE STRUCTURE t247.

DATA: END OF it_month.

CALL FUNCTION 'MONTH_NAMES_GET'

EXPORTING

language = sy-langu

  • mnr = num

  • IMPORTING

  • RETURN_CODE =

TABLES

month_names = it_month

  • EXCEPTIONS

  • MONTH_NAMES_NOT_FOUND = 1

  • OTHERS = 2

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

READ TABLE it_month WITH KEY mnr = date+4(2).