Skip to Content
author's profile photo
Former Member

Linked Object for a Grid Column

Hi,

I'm using linked object (for Sales Order) for a grid column, which is placed in a user defined form.

i.e, When I click the orange arrow in the Grid column, it should open the sales order.

It's working fine for the company A, but doesn't work for company B.

When the Add-on is running for that particular company (B), I can see orange link arrow in the grid. But, when I click that arrow, I get the error message "Sales Order 17 is not found". (Actually, sales order 17 exists)

Following is the code that I'm using:

Dim colDocNo As SAPbouiCOM.EditTextColumn

colDocNo = objGrid.Columns.Item(0)

colDocNo.LinkedObjectType =SAPbouiCOM.BoLinkedObject.lf_Order

Thanks in advance.

-Geetha

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Oct 11, 2007 at 04:38 PM

    Hi Geetha,

    I know for lf_Invoice linked object types you have to specify the OINV.DocEntry value not OINV.DocNum. Maybe it is the same for Orders? If you run the following SQL in company B does it return any records?

    SELECT * FROM ORDR WHERE DocEntry = 17

    If no records are returned then that's the problem. Otherwise I'm not sure.

    Regards,

    Andrew.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 11, 2007 at 06:56 PM

    Hi Andrew,

    Thanks for your reply.

    Just before sometime, I too found out the same problem. (The docentry and docnum values are same for Sales Orders in company A, in which it is working. And, that's not true for the other company(B) ).

    Have a nice day.

    Regards,

    -Geetha

    Add comment
    10|10000 characters needed characters exceeded