cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong Date in VC model

Former Member
0 Kudos

Hi All,

I have a model on VC 7 SP14, I'm calling an R3 Bapi from this model. This bapi has two date type fields in the export tab, My issue is that when VC shows this fields trough an input form, the value appears ALWAYS like "01/01/2000" without care the correct one. If I right click on the bapi object and select the option "test..." the result value is correct, it shows it in a long format like "March 13th 2008".

In de Date control theres not a default vale configured, neither a formatting, what else can I check??

Thanks a lot !!!!!!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Yolanda,

use the following expression for your date field.

if the parameter passing the date is called DATE_FIELD

place this expression in the default value of your form field

DSTR(@DATE_FIELD,’MON DD, YYYY’)

Regards,

Ahmed Salah

Donot forget to reward points !!

Former Member
0 Kudos

Hi Ahmed,

Thanks for your answer. I tried what you said but It only changed the format to "Jan 01, 2000", but the value is not the correct, because the bapi return a "Mon Mar 31 00:00:00 GMT 2008", I dont know why in composer always shows 01.01.2000

Any Idea??

Regards. 😃

Yolanda.

Answers (2)

Answers (2)

former_member203343
Contributor
0 Kudos

Hi Yolanda,

If you can somehow change the BAPI so it will return a date in the format of dd.mm.yyyy or mm.dd.yyy , it should work correctly.

Natty

former_member190457
Contributor
0 Kudos

hi,

I had this same problem on EP70 SP14 patch1 (flex2), using a custom RFC.

The format was appearently ok in the source code, but it didn't work and behaved exactly as in your scenario.

Upon using a standard bapi everything worked ok.

On OSS it was rejected as consulting issue, don't try.

Regards