Dear Experts,
Our system is SAP CRM 2007 SP00.
I am trying to set a delivery block for a certain order type.
I have written the code that should set the stuff. Please find a copy below. When I test the solution the order is not blocked.
...
bcolCOLBOSALESDOCHEADERSTATUS = mObj.COLBOSALESDOCHEADERSTATUS
If (Not bcolCOLBOSALESDOCHEADERSTATUS Is Nothing) Then
boCOLBOSALESDOCHEADERSTATUS = bcolCOLBOSALESDOCHEADERSTATUS.AddNew(1)
boCOLBOSALESDOCHEADERSTATUS.SetAttribute("mandt", mObj.GetAttribute("mandt"))
boCOLBOSALESDOCHEADERSTATUS.SetAttribute("Sfavbak", mObj.GetAttribute("Sfavbak"))
boCOLBOSALESDOCHEADERSTATUS.SetAttribute("uvvlk", "C")
End If
...
Any idea?
Thanks,
Alberto