09-07-2007 2:31 PM
hi all,
suggest me some function module for date format( from dd.mm.yyyy to yyyymmdd).
when i am passing sy-datum through bdctable to f-53 transaction code screen.
in sy-datum i have <b>dd.mm.yyyy</b>. and when it goes to on screen (in document date,and in posting date field) it change into to <b>yyyymmdd</b>.
In the table(bkpf) that fields stored as yyyymmdd only. i think due to this ,its happen.
how do i sove that problem.
thank you.
09-07-2007 2:44 PM
09-07-2007 2:44 PM
concatenate l_docdate8(4) l_docdate4(2) l_docdate+0(2) into l_finaldate.
09-07-2007 2:47 PM
hi pavan,
u can convert the date format use EDIT MASK in write statement and then use that variable.
hope this will be usefull...
<b><REMOVED BY MODERATOR></b>
Regards,
prashant
Message was edited by:
Alvaro Tejada Galindo
09-07-2007 2:53 PM
hi
good
data : v_date like sy-datum.
write : v_date using edit mask '__/__/____'
call function 'CONVERT_DATE_TO_INTERNAL'
thanks
mrutyun^
09-07-2007 2:53 PM
While passing the date to BDC you cannot hardcode it.. you should take care of the user format..
simply use WRITE statement to format the date in user format..
data lv_date type char10 .
WRITE sy-datum to lv_date
then pass lv_date to BDC