on 04-22-2014 5:14 AM
Hi,
I am now creating a UI Application for AR Credit Memo. I will have a pop up message for user to select two scenario. Different scenario will point to different GL account once user press 'ADD'. However, UI not allow me to update the GL account . There is no any error message but seems cannot use the following statment to update GL value. No matter i choose which scenario, system will still catching my GL account setting in GL determination and not the value that i set in SDK. Is there anyone also have this problem before? Please help. 8.82 PL12
oMatrix.Columns.Item("29").Cells.Item(j).Specific.value
= "550111300"
Regards,
Anna
Program in VB:
If BusinessObjectInfo.FormTypeEx = "179" And
BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD And BusinessObjectInfo.Type <> "112" Then
If BusinessObjectInfo.BeforeAction = False And BusinessObjectInfo.ActionSuccess
= True Then
oForm = SBO_Application.Forms.Item(BusinessObjectInfo.FormUID)
oMatrix = oForm.Items.Item("38").Specific
If SBO_Application.MessageBox("Return or Correction?", 1, "Return", "Correction")
= 1 Then
'return
oForm.Freeze(True)
oMatrix.Columns.Item("29").Cells.Item(1).Click()
For j As Integer = 1 To
oMatrix.RowCount - 1
oMatrix.Columns.Item("29").Cells.Item(j).Specific.value
= "550111300"
Next
oForm.Freeze(False)
Else
'correction
oForm.Freeze(True)
oMatrix.Columns.Item("29").Cells.Item(1).Click()
For j As
Integer = 1 To
oMatrix.RowCount - 1
oMatrix.Columns.Item("29").Cells.Item(j).Specific.value
= "550111100"
Next
oForm.Freeze(False)
End If
End If
End If
Hi Anna,
Your code is running after the record has already been added to the database so changing the values in the form won't make any difference to the data. Have you tried putting your code in the Item Pressed event for the Add/Update button (UID "1") instead? If the form is in Add mode when the user clicks on the button then you can run your code to update the values in the matrix and these should then be picked up when the document is added.
Kind Regards,
Owen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.