Skip to Content
avatar image
Former Member

Handling dates in SUP MBO as per SAP format

Hi,

I am consuming a function module from SAP which returns the list of customer orders based on the customer & date range parameters. I created a MBO based on that.

When I click the preview and put the values for the parameters customer number, start date and end date, I returns "0" records.

I tried testing the function in SE37 with the same parameter values, it works fine and returns records.

The problem I understand is in the format of the date field.

In SAP I give the date as "01.01.2011".

While in SUP MBO I type it is "2011-01-01".

Any idea how to convert the SUP MBO date format to SAP's understandable format before passing it further to SAP fucntion.

i.e. I want to convert "2011-01-01" to "01.01.2011" in Sybase Unwired Platform, MBO.

Thanks in advance.

Regards,

Ram

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Sep 28, 2011 at 11:13 AM

    Hi,

    You can set date format easily in which language you are developing. If its SUP Workflow app you can set them while you retrieving data by using javascript as follows

    [Date Format-Javascript|http://blog.stevenlevithan.com/archives/date-time-format]

    Regards.

    Add comment
    10|10000 characters needed characters exceeded