Skip to Content
author's profile photo Former Member
Former Member

Get the BaseType Document data from a Delivery line

Hi,

I want to get the BaseType Document data from a line in a Delivery Form, but I get always the same error:

"Types Mismatch"

This is the code:

...

Dim loEditText As SAPbouiCOM.EditText

Dim loComboBox As SAPbouiCOM.ComboBox

Dim loItems As SAPbouiCOM.Matrix

Set loItems = coForm.Items.Item("38").Specific

If (loItems.RowCount > 0) Then

Set loComboBox = loItems.Columns.Item(47).Cells.Item(1).Specific

end if

...

What is the object where I should get the Base Type Document data?

Thanks ...

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2005 at 09:09 AM

    Hi Briseida,

    Hope You want to add the base ref # in a combo box. Am I right?

    Please try this

    ...

    Dim loEditText As SAPbouiCOM.EditText

    Dim loComboBox As SAPbouiCOM.ComboBox

    Dim loItems As SAPbouiCOM.Matrix

    Set loItems = coForm.Items.Item("38").Specific

    If (loItems.RowCount > 0) Then

    ' for each row

    loComboBox.ValidValues.Add = intRowCount,loItems.Columns("44").Cells(intIndex).Specific.String

    'next

    end if

    ...

    Ajith

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2005 at 01:42 PM

    Hi,

    I'm doing this somewhere, but I have item 47 in my list as basekey not basetype. Basetype is item 46 and is indeed a combo box. Item 47 is an edittext. Hence when you set a combo to it, it should raise a type mismatch...

    So e.g.:

    Dim txtRead As SAPbouiCOM.EditText

    Set colRead = mtxRead.Columns.Item(intCol)

    Set txtRead = colRead.Cells.Item(intRow).Specific

    Hth,

    Jacques

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2005 at 05:39 PM

    Thank you, all was very useful.

    Regards...

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.