Amyedit
http://amyedit.sourceforge.net/
Anyone willing to make me a pkg ? i tried to compile but cant quite seem to get it.. :-/
thnx in advance (even thou i'll thank you again when you give a link) hehe..
Hi Gordon,
Which version of VB are you using? If you're using .net version put a try... catch... end try block around your code. Where you catch the exception and display a message. This will give you more insight into the problem, example:
Dim aForm As SAPbouiCOM.Form
Dim aMatrix As SAPbouiCOM.Matrix
Dim aFieldEdit As SAPbouiCOM.EditText
Dim aMyEdit As SAPbouiCOM.EditText
Dim aColumnPrice As SAPbouiCOM.Column
Try
Updating UDF's on marketing document lines
Posted: Dec 8, 2005 12:27 PM
I am new to the SDK (and VB!) and am struggling to update a user defined field on the line of a sales order. The update seems to work OK for fields on the order header and standard fields on the lines but when the code to update the UDF is commented in it simply exits at that point without getting to the later message boxes put in for debugging purposes.
This is the code I am using.
Dim aForm As SAPbouiCOM.Form
Dim aMatrix As SAPbouiCOM.Matrix
Dim aFieldEdit As SAPbouiCOM.EditText
Dim aMyEdit As SAPbouiCOM.EditText
Dim aColumnPrice As SAPbouiCOM.Column
Try
aForm = oApp.Forms.ActiveForm
Catch ex as Exception
oApp.Messagebox(ex.message)
End Try
One question though is: Is this field (U_SO_No) a alpanumeric or an integer/numeric value? You are sending it as a string. Secondly are you sure you've got the field name correct?
Hope it helps,
Adele
Similar Messages
-
Changing the status of an employee in HR system in PA30 Trnx
Hi,
I need to edit,the status... i.e from active to inactive by changing action type to 'leave' for 'maternity/paternity'.
As of now i was able to HIRE an employee. But for changing the action type to 'leave' is not possibe because this field remains deactivated. Kinldy help.
Regards,RavishHi Alban,
The easiest way is probably with a formatted search. Write a query that checks the value of the one field and if it is not null, then update the other. Refer to this post: but with this there is also some shortcomings.
Creating a Query to Change Price
If you want to do it with code it should happen somewhere in your item event - when you exit a column, like item number or your field.
Some sample code: (I am just not sure which event to use)
If pVal.FormType = 133 Then
If pVal.BeforeAction = True Then
If pVal.ItemUID = 38 Then
If pVal.ColUID = 1 Then
'If pVal.EventType = SAPbouiCOM.BoEventTypes.et_LOST_FOCUS Then
Dim aForm As SAPbouiCOM.Form
Dim aMatrix As SAPbouiCOM.Matrix
Dim aPriceEdit As SAPbouiCOM.EditText
Dim aMyEdit As SAPbouiCOM.EditText
Dim aColumnPrice As SAPbouiCOM.Column
aForm = oApplication.Forms.ActiveForm
aMatrix = aForm.Items.Item("38").Specific
aMyEdit = aMatrix.Columns.Item("U_...").Cells.Item(pVal.Row).Specific
If aMyEdit.Value > 0 Then
aPriceEdit = aMatrix.Columns.Item("17").Cells.Item(pVal.Row).Specific
aPriceEdit.Value = 0
End If
End If
End If
End If
End If
Hope it helps,
Adele
Maybe you are looking for
-
How to find out the standard smartforms?
how to find out the standard smartforms?
-
Keynote as a screensaver on a PC?
I am a dentisst. I have done a series of before and after photos of teeth as a "Keynote" presentation that I would like to run on a loop in the computers in my office treatment rooms. I would like to set it up as a screensaver to come on when we are
-
Users having issue filling out form
It appears that when you first access the below form on our website, there can be a delay in the fillable boxes appearing within the form but once you move the mouse they will appear. So what is happening is that applicants are printing the applicat
-
Why my iMessages are seen on all connected devices to the iTunes account, Why my iMessages are seen on all connected devices to the iTunes account?
-
Hi, I have prepared following script for BPC 7.0 MS Version for eliminating all the amounts in IC accounts irrespective of having Trading partner value. All the IC accounts are marked with property called ELIMACC with value of ICBAL OR ICdiff. But t