cancel
Showing results for 
Search instead for 
Did you mean: 

Linked Button to BP Name

costas_ioannou2
Active Participant
0 Kudos

Hi,

is it possible to add a linked button on a grid to a Business Partner name, or does it always have to be the BP Code?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Actually it always has to be the BP code.

But as a work around u can try the following and check if it works, add a invisible BP code colunm and have a link button at the BP name but link the link button to the BP code.

Check if the above works, i have did a simolar thing for edit texts but not for grid cols, but i think it should work.

Hope it helps,

Vasu Natari.

costas_ioannou2
Active Participant
0 Kudos

Hi thanks for the reply

I'm not sure if I can link it to one column and display it in another since I am using a grid. The code would have to be something like this

oLink = (SAPbouiCOM.EditTextColumn)oGrid.Columns.Item("Bp Code");

oLink.LinkedObjectType = "2";

This doesn't allow you to move it somewhere else (at least I don't think so)

Former Member
0 Kudos

Hi Costas,

You can link the CardName column to the BusinessPartner Object ("2"), and than handle the link arrow click to open the correct BP Master Data Record.

Regards,

Vítor Vieira

costas_ioannou2
Active Participant
0 Kudos

Hi Vitor,

I'm not sure I understand what you mean. The grid is based on a query. I'm not sure how to make the arrow appear on one column and be linked to another. Do you have an example?

Edited by: Costas Ioannou on Jul 22, 2009 10:44 AM

Former Member
0 Kudos

Hi Costas,


            Dim oGrid As SAPbouiCOM.Grid = oForm.Items.Item("GRID_ID").Specific
            Dim oEditText As SAPbouiCOM.EditTextColumn = oGrid.Columns.Item("Print?")
            oEditText.Type = BoGridColumnType.gct_CheckBox

            oEditText = oGrid.Columns.Item("BP Name")
            oEditText.LinkedObjectType = "2"

            oGrid.AutoResizeColumns()

Then you need to catch the et_MATRIX_LINK_PRESSED event and load the correct BP record.

Regards,

Vítor Vieira

costas_ioannou2
Active Participant
0 Kudos

Thanks I'll have a look at it