cancel
Showing results for 
Search instead for 
Did you mean: 

date format in smartforms

Former Member
0 Kudos

hi experts,

how to print date as 21/feb/2008 in smartforms.

thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

by using EDIT MASK OR

By using Function Module that is CONVERSION_EXIT_LDATE_OUTPUT

We can change Date formats..AND also see this Link below you will find different DATE FORMATS

https://www.sdn.sap.com/irj/scn/advancedsearch?adv=true&cat=sdn_all&cat=sdn_library&query=yyyy&searc...

Answers (4)

Answers (4)

Former Member
0 Kudos

hi

try this.

in global definisions declare

G_BLDAT TYPE CHAR11

WRITE l_date TO g_bldat USING EDIT MASK '==SDATE'.

Cheers

former_member196280
Active Contributor
0 Kudos

Create program lines in your smartform, use function module 'CONVERSION_EXIT_SDATE_OUTPUT' to change the date to your required format.

Close the thread once your question is answered.

Regards,

SaiRam

former_member585060
Active Contributor
0 Kudos

Hi,

Use the FM CONVERSION_EXIT_SDATE_OUTPUT

DATA:  int_datum LIKE sy-datum VALUE '19940102',
            ext_datum(11) TYPE c.
 
     
CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
     EXPORTING
        input      = int_datum
     IMPORTING
         output        = ext_datum.
 
WRITE 😕 ext_datum.

Result

02.JAN.1994

Regards

Bala Krishna

Former Member
0 Kudos

search in se37 with CONVERSIONEXITDATE* hit an F4 u'll get some conversion exits like the one chennakesava has already specified, scripts have a command call set date mask but i dont think it will work in smartforms

кu03B1ятu03B9к