Skip to Content

Ayuda ha cambiar mi PurPackUn de articulo en SAP

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
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 07 at 07:19 AM

    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

    Add comment
    10|10000 characters needed characters exceeded