on 01-06-2018 5:46 PM
Buenas gente me podrian ayudar , estoy intentando cambiar el calo de mi campo PurPackUn que seria las unidades por caja en mi articulo de SAP, actualmente cambio el codigo de barras pero no logro cambiar mi PurPackUn , estoy intentando con el siguiente codigo pero no me funciona
Try
Dim vPay As SAPbobsCOM.Items
Dim RetVal As Long
Dim ErrCode As Long
Dim ErrMsg As String
Dim nErr As Long
vPay = vCompany.GetBusinessObject(BoObjectTypes.oItems)
If vPay.GetByKey(ItemCode) Then
vPay.BarCode = CodBarras //here i change my codebar and work fine
vPay.Pack = Emp // here it is my problem
'Attempt to update the business partner
RetVal = vPay.Update
If RetVal <> 0 Then
'The update failed
Dim errI As Integer = 0
Dim errS As String = String.Empty
'Check why the update failed
vCompany.GetLastError(errI, errS)
MsgBox("Update failed because: " & errI.ToString & " " & errS)
Return 1
Else
Return 0
'Success, perform any follow-up tasks here
End If
Else
MsgBox("Update failed because: ")
Return 1
End If
Return 0
Catch ex As Exception
Return 1
End Try
Hi,
It looks same as here. Please close one of the thread to avoid unnecessary delay and confusion.
Kind regards,
ANKIT CHAUHAN
SAP SME Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
6 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.