Skip to Content

Sending date value from SAPUI5 to SAP Netweaver Gateway

Dear All,

I have front end using SAPUI5 and want to send date value to sap netweaver gateway.

var uri = "/sap/opu/odata/SAP/ZCREATE_PO_SRV/";
var oModel = new sap.ui.model.odata.ODataModel(uri, true);
var oEntry = {  };

oEntry.CreatDate = "2016-02-24";

oModel.create("/CreateSet", oEntry, null);

Seems i got error that tells i have wrong date format value, :

2016-02-24 11:02:17.803995 The following problem occurred: HTTP request failed400,Bad Request,{"error":{"code":"CX_SY_CONVERSION_NO_DATE_TIME/67AA6842BAA80B7DE10000000A15523C","message":{"lang":"en","value":"Value 2016-02-24 does not represent a valid date/time"},"innererror":{"transactionid":"56CC0E24832120FCE1000000AC1032C4","timestamp":"20160224040119.1492760","Error_Resolution":{"SAP_Transaction":"Run transaction /IWFND/ERROR_LOG on SAP NW Gateway hub system and search for entries with the timestamp above for more details","SAP_Note":"See SAP Note 1797736 for error analysis ("},"errordetails":[]}}}

i try another format value like :






But it doesn't work..

Do you guys ever face this kind of problem? Need your help...

Thank you,

Best Regards

Yoppie A.

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Best Answer
    Posted on Mar 01, 2016 at 06:13 AM

    Hi Antonette,

    I solved it, the right format date is 2015-12-31T00:00:00

    and don't forget to change maxlength to 16 dan type DATES on sap gateway netweaver

    My friend Sandy helped me. Here's my friend linkedin : Aprilie Sandy | LinkedIn

    Big Thanks for you


    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 24, 2016 at 05:59 AM

    Hallo Yoppie

    If your backend is ECC, try this: You have to go to SU01d in ECC and check the date format that is set up for your user:


    Or try this in your code:

    var mydate = sap.ui.getCore().getControl("dateControl").getValue() + "T00:00:00";

    Hope this helps



    su01d.png (23.9 kB)
    Add comment
    10|10000 characters needed characters exceeded