Skip to Content
0
Former Member
Apr 22, 2014 at 04:14 AM

UI Application want to change GL account for AR Credit Memo

16 Views

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