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

Date/Time Problem in BLS

Former Member
0 Likes
388

Hi,

I have a scenario to input date from the UI(HTML) to SAP. I have mapped my fields in the transaction to the BAPI.

1. Run application

2. Enter the date field in the UI

3.Click on Submit.

After this the Transaction is executed and when i look into the SAP table the date is taking the current system date not the date i entered in the UI. I'm using the date/time datatype for the transaction variable.

Part 1 Test:

I have given the alert in the javascript where i could able to view the entered value in the UI.

Part 2 Test:

When i try the same by directly hardcoding the value in the transaction variable i would able to see the correct value ineserted in the SAP table.

Part 3 Test:

When i try to hard code the param value in xAcute Query i'm not getting desired result .

All this error scenario is only for date/time datatype of xMII whereas its woring fine for all other data type.

Is there any issue of date/time data type?

Thanks,

Bala

View Entire Topic
agentry_src
Active Contributor
0 Likes

Check the format of the system date as it is contained the Response segment of the BAPI or RFC that you use to send the information to SAP. You need to match it exactly as SAP is usually not very forgiving of mismatches. Most dates in xMII are in xml format. You may need to explicitly convert it to a string (most likely problem IMO).

Good luck,

Mike