cancel
Showing results for 
Search instead for 
Did you mean: 

Clear "VatGroup" in Journal Entry matrix

Former Member
0 Kudos

Hi,

I'm trying to clear the "VatGroup" in the Journal Entry matrix (V6.5 SP1) with the code:

For i=1 To oMatrix.RowCount

oMatrix.Columns.Item("17").Cells.Item(i).Specific.Select(0,SAPbouiCOM.BoSearchKey.psk_Index)

Next

but, I can't do it.

I can change the "VatGroup" to any value in ComboBox but not to the empty value.

I've tryed the "SAPbouiCOM.BoSearchKey.psk_ByValue" and "SAPbouiCOM.BoSearchKey.psk_ByDescription" options and I get the same result.

In v2004 it's OK.

Accepted Solutions (0)

Answers (1)

Answers (1)

FOA
Advisor
Advisor
0 Kudos

Hi Fernando, instead of setting an "0" you have to indicate just "" in the Combo.Select statement, with it I obtain the "blank" value in system forms.

Here an example:

Combo = oForm.Items.Item(pVal.ItemUID).Specific

Combo.Select("", SAPbouiCOM.BoSearchKey.psk_ByDescription)

Hope this helps,

Saludos

Felipe

Former Member
0 Kudos

Hi Felipe,

I've tried but I still can't select the "blank" value.

May be the problem is just for a matrix combo box and B1 Version 6.50.097 SP:01 EF:07.

Thanks,

Fernando.

FOA
Advisor
Advisor
0 Kudos

It works in 2004. I havent tried in 6.5 . You can save the form as xml in order to check how the blank value in the combo is saved, then you can set it in the Combo.Select statement.

Hope this works,

Felipe

Former Member
0 Kudos

Hi,

I don't have this problem in 2004 too, but I need that for 6.5.

I can't check the blank value in xml cause I can't edit\save the system form "Journal Entry" (392).

Thanks.

Fernando.

Former Member
0 Kudos

Hi,

with "GetAsXML", "loadXML" and "Save" methods I could save the "Journal Entry" form in a XML file.

Now, I see that this form has the blank value "" but We can't select it in 6.5 version. This bug is fixed in 2004 version.

Thanks.

Fernando.