Enterprise Resource Planning Blogs by Members
Gain new perspectives and knowledge about enterprise resource planning in blog posts from community members. Share your own comments and ERP insights today!
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member

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

Labels in this area