Skip to Content
author's profile photo Former Member
Former Member

Problem setting StartTime property of Contacts object

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jan 20, 2005 at 05:43 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.