cancel
Showing results for 
Search instead for 
Did you mean: 

sapscript

Former Member
0 Kudos

hi gurus,

i have an issue with date printing format. ima extracting ERDAT in subroutine and i want to print that field in script in DD.MM.YYYY format can anybody please usggest its urgent.

thanks and regards,

Rajesh Reddy

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi

think this is sutable for ur question

check it first

/: SET DATE MASK = 'DDMMYYYY'

Award points if helpful...

Regards,

Nagesh

Edited by: Nagesh Babu on Apr 3, 2008 10:20 PM

former_member196280
Active Contributor
0 Kudos

Use this before your print your date

/: SET DATE MASK = 'DDMMYYY'

Regards,

SaiRam

Former Member
0 Kudos

Hi,

I don't think u need that conversion.

Plz print the variable as it is.

&ERDAT&

Hop this is useful.

Former Member
0 Kudos

Hi,

ERDAT is displayed as dd.mm.yyyy.

if ur date is coming as ddmmyyyy then

Use This FM CONVERT_DATE_BY_PERIOD_INPUT

Pass ERDAT in Parameter I_EDATE.

and in EXport Parameter pass a Variable to Store The Date in DD.MM.YYYY format

Display the Value of the varable in SAPSCRIPT

And you will get the result.

Regards

Sandipan

Former Member
0 Kudos

hi sandipan,

can you please be more effective because i have called the function module nad tried its not working can you please expalin with an example so that i can work

plz help me its urgent.

Former Member
0 Kudos

Hi rajesh,

while passing that date field from subroutine. u can change the date format using WRITE TO statement .....as below

date: v_date type c length 10.

write wa-itab-erdat to v_date.

pass this v_date via subroutine....and print the same to get it done...

Hope this solves ur problem.....

all the very best.....

Regards,

Sreenivasa Sarma K.