cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

error passing input from ui5 into transaction as input parameter

0 Kudos
331

Hi all,

I have this transaction in which transaction has input type date timestamp

but i created a web page were input is only in date not datetime stamp

How to change date timestamp to date in transaction??

Accepted Solutions (1)

Accepted Solutions (1)

siriyadav0902
Explorer

Hi,

Declare startdate and enddate as string datatype. from datepciker value will come as in dd-mm-yyyy format.

You can convert the datepicker format to MII XML Dateformat with the expression editor function datetoxmlformat(dateString, fromFormat).

dateString is your datepicker date like 28-12-2016.

fromFormat is your datepicker format dd-mm-yyyy.

it convert into 2016-12-28T00:00:00 .

Answers (1)

Answers (1)

swaroop_anasane
Active Contributor
0 Kudos

Hi Anju,

I would second Srisailam here, to avoid glitches with Datetime, we pass strings and do conversion as per target's requirement.

We have a lot of functions to play around with date formats. Do let me know if there is any specific reason you had kept input as datetime.

Regards,

Swaroop