cancel
Showing results for 
Search instead for 
Did you mean: 

Problem setting StartTime property of Contacts object

Former Member
0 Kudos

Hi,

I am creating a new contacts record in code using the Contacts object.

The StartTime property needs to be set so that when the record is viewed in the Business Partner Contacts (Form 651) the Start Time is blank (not 12:00 am). It is possible to set the StartTime to blank in the UI and save the record, which results in the value of NULL actually being stored in the database.

The problem is that the StartTime property of the Contacts object cannot be set to NULL because the property itself is of type date.

Example:

Set objContacts = oSboDICompany.GetBusinessObject(oContacts)

‘set other properties such as CardCode

objContacts.StartTime = “” ‘gives error

objContacts.StartTime = NULL ‘gives error

objContacts.StartTime = 0 ‘Results in 12:00 AM

objContacts.StartTime = ????? ‘Needs to store the value NULL in the DB

Thanks in advance for any help you can give

Accepted Solutions (1)

Accepted Solutions (1)

former_member185703
Active Contributor
0 Kudos

Hi,

Apparently this is not supported through DI API.

If you really need it and cannot live with "00:00", please open a Development request (DRQ) on SAP Service Marketplace.

Thanks,

Frank

Answers (0)