cancel
Showing results for 
Search instead for 
Did you mean: 

Pressing Copy To via UI API but for Sales Orders

Former Member
0 Kudos

Hi,

I'm trying to find out how do I have to press the Copy To button in a Sales Quotation so it copies to a Sales Order.

But I don't know what type of control it is and I don't know how to select Sales Order

the item is 10000329. I can click on it but it doesn't copie a Sales Order

since there's a combox that appear when you click it and there are 3 items in this combo and the sales order is the last one

Also is there any way to know the type of control is a certain control ?

I'm often faced with this kind of problem when coding. Sometimes its obvious like an EditText but sometimes I declare a ComboBox for which seems to be one in a Matrix but it isn't

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Here's how I did it :

// Don't use the psk_Description in case the language changes

((SAPbouiCOM.ComboBox)SQ_Form.Items.Item("10000329").Specific).Select(2, BoSearchKey.psk_Index);

SQ_Form.Items.Item("10000329").Click(BoCellClickType.ct_Regular);

Would have been nice to be able to do all this but without seeing the Sales Quotation at all...

Former Member
0 Kudos

Hello

It's a Combobox, as far as I remember.

Try to use Item.Type property for determining types.

"Returns or sets a value specifying the item type."