cancel
Showing results for 
Search instead for 
Did you mean: 

How to save a time (hh:mm) with a BAPI...

Former Member
0 Kudos

Hi experts,

I have a BAPI that saves a time-value. Thus in Visual Composer my data service has an input field of type E TIME. I add a clock, displying the actual day time TNOW(). I want to save this value.

However, when I execute the model, it delivers the date i.e. 06.05.2007 to the BAPI.

Any idea, how I can save a time value? The field in my BAPI is of type TIMS 6?

Best Regards, Benni

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Benni,

I can recommend you a workaround. Create an ABAP RFC which calls your BAPI then use the ABAP time (I think this must sy-uzeit, sy-date; you can have a look with transaction SE11 for the structure syst). So you have nothing to do in VC.

Best Regards,

Marcel

Former Member
0 Kudos

Hi Marcel,

thank you for your answer. The problem is: I have to save different times, not necessarily the actual time. I just did that for testing purpose. The only workaround I know so far, is to change the structure of my BAPI. Instead of TIMS, take a CHAR field and perform a type cast within the BAPI. I just wanted to avoid that.

How is it possible, that in Visual Composer there exists a type TIME, that is handled as date when it comes to save it? I wonder if anybody tested that.

Best Regards, Benni