cancel
Showing results for 
Search instead for 
Did you mean: 

DI API Invalid valid value BoServiceSupplyMethods

former_member622512
Participant
0 Kudos
343

Good afternoon,

Currently I try to update an Item through the DI API with version 9.0 PL04.

The code did work before we upgraded from SBO version 8.82 towards DI API 9.0 PL07 however the update of an item resulted in the following message:

Invalid valid value '' in Enum 'BoServiceSupplyMethods', the valid values are 'I', 'R'

Does anyone have a clue what this is?

Kind regards,

Marcel Kieboom

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

This issue was announced as a bug by SAP. Please refer to Note 1937642.

The note also contains the following work-arounds:

Workaround (for all localizations except Italy):

In the DI API script/DTW template, specify the following properties:

  • Intrastat type as Item
  • Service supply method as Immediate
  • Service payment method as Other


Sample script:         Dim oItem As SAPbobsCOM.Items

        oItem = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems)           oItem.GetByKey("i1")

        oItem.IntrastatExtension.IntrastatRelevant = BoYesNoEnum.tYES

        oItem.IntrastatExtension.Type = BoDocumentTypes.dDocument_Items

        oItem.IntrastatExtension.ServiceSupplyMethod = BoServiceSupplyMethods.ssmImmediate

        oItem.IntrastatExtension.ServicePaymentMethod = BoServicePaymentMethods.spmOther

        oItem.IntrastatExtension.CountryOfOrigin = "DK"        RetVal = oItem.Update()


Workaround for Italy localization:In the DI API script/DTW template, specify the following properties:

  • Intrastat type as Service or Item
  • Service supply method as Immediate or To More Resumptions
  • Service payment method as Other or Bank Transfer or Accredited to Bank Account

Beni.

former_member622512
Participant
0 Kudos

Hi Beni,

Thank you for your reply!

This solved the issue.

All functionality is up and running again.

Kind regards,

Marcel

Answers (0)