How to convert "23092004"-string to DATS-type ?

Question: Hi all,

From the SAP Business connector I remotely call a FM in R/3 with an inputparameter. Problem is that the FM requests a 'date' while the SAP BC only outputs Strings.
So the string has to become a date with ABAP.
Can anyone help me ?
(quite new to ABAP....)

thanx,
christian.

Answer:
If there is no way to define data types properly, I would write my own FM in SAP that takes a string, formats it properly, moves that into some field if type DATS and then calls original FM.
_________________
ilya

More input data: http://abaplog.wordpress.com
Sapfans ABAP FAQ: /forums/viewtopic.php?t=94198
R's ABAP Knowledge Corner: http://www.Rard-harper.net/kb/kb.html
Function modules documentation: http://www.se37.com

Answer:
WRITE p_date TO p_date2 DD/MM/YYYY
_________________
I'm the NEXT BEYONCE!!!!

Answer:
Have a look at the function modules CONVERT_DATE_TO_INTERNAL as well.
_________________
Regards

R


Abap KC
SFMDR
Copyright ?2007 - 2008 www.jt77.com