Skip to Content
Author's profile photo Former Member

SAP Update EditSize for UserFieldsMD

Hello, i want to share with a code for updating UserFieldsMD EditSize

First you have to got the TableName of UserFieldsMD and the FieldID then;

Dim IRs as integer = 0

Dim _SizeInt As Integer = 50

oUserFieldMD as SAPbobsCOM.UserFieldsMD

oUserFieldMD.EditSize = _SizeInt

OUserFiedMD.Update()

IF IRs <> 0 then

msgBox ( “Object already exists in the database.”)

Else

msgBox(“Size Update.”)

END IF

________________________

Hope That was helpful for you

Good Day

Amina D

Hello,

I want to share my experience with you about updating a UserFieldsMD:

oUserFieldMD.GetByKey(sTableName, sFieldID)

                       

                            oUserFieldMD.EditSize = _SizeInt

                            oUserFieldMD.Update()

                            Dim lRetCode As Integer = 0

                            lRetCode = oUserFieldMD.Update

                            If 0 <> lRetCode Then

                                MsgBox(“Object already exists in the database.”)

                            Else

                                MsgBox(“Size updated.”)

                            End If

I hope thant was a helpful for you.

Good Day.

Amina D

Hello,

I want to share my experience with you about updating a UserFieldsMD:

oUserFieldMD.GetByKey(sTableName, sFieldID)

                       

                            oUserFieldMD.EditSize = _SizeInt

                            oUserFieldMD.Update()

                            Dim lRetCode As Integer = 0

                            lRetCode = oUserFieldMD.Update

                            If 0 <> lRetCode Then

                                MsgBox(“Object already exists in the database.”)

                            Else

                                MsgBox(“Size updated.”)

                            End If

I hope thant was a helpful for you.

Good Day.

Amina D

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.