cancel
Showing results for 
Search instead for 
Did you mean: 

hi i want the date format as 09-jan-1985 without change in print program

Former Member
0 Kudos

could u help me in this

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Check this example of how to get this format..

TABLES: T247.

DATA: V_DATE TYPE SYDATUM.

DATA: V_STRING(20).

V_DATE = SY-DATUM.

SELECT SINGLE * FROM T247

WHERE SPRAS = SY-LANGU

AND MNR = V_DATE+4(2).

IF SY-SUBRC = 0.

CONCATENATE V_DATE+6(2) '-' T247-KTX '-' V_DATE(4)

INTO V_STRING.

WRITE: / V_STRING.

ENDIF.

Thanks,

Naren

Answers (3)

Answers (3)

Former Member
0 Kudos

hello guys thank u for the replies but cant i do it with out change in the print progarm and only changing the variables in the form

Former Member
0 Kudos

Hi Santosh,

Yes.you can do it in the form itself.

/: SET DATE MASK = 'DD-MMM-YYYY'

&DATE&

check with this.

if it is not working try to give space between DD and MMM and YYYY

Former Member
0 Kudos

Santosh,

Is it working.?

Former Member
0 Kudos

make use of this FM

CONVERSION_EXIT_IDATE_OUTPUT

and see its documentation.

Regards

Prabhu

Former Member
0 Kudos

Hi,

You can call a SUBROUTINE and convert the date to your format..

Check this link of how to call subroutine in sapscript..

http://help.sap.com/saphelp_46c/helpdata/EN/d1/802fd3454211d189710000e8322d00/frameset.htm

Thanks,

Naren