cancel
Showing results for 
Search instead for 
Did you mean: 

Matrix Link Button

Former Member
0 Kudos

Hi,

I have a Matrix which has order doc num in one of the columns. I have set a link button for this column inorder to open the respective order document when the user clicks the link button nect to doc number. Howeverm i'm getting an error saying that no match found.... When i tried the same using docentry insted of doc num everything works perfect. However, i think it is not a good practice to expose the docentry. Is there any way by which I can use Docnum with linkbutton?

Thanks

Ajith

Accepted Solutions (0)

Answers (2)

Answers (2)

barend_morkel2
Active Contributor
0 Kudos

What I do when I want to add a linked column for example a Business Partner is this.

1. Create the XML code for the Screen in Screen painter. (note the column name that you want to link)

2. Access the XML using notepad

3. Set the Column type to 116 -> This is the linked button type. The XML snippet for the column looks like this : title="Rented To" type="116" uid="Col7" val_off=""........

4. Link the datasource through code as normal to the column - query the datasource and load it to the matrix.

This should display the linked column objects

Former Member
0 Kudos

Your right barend, but then you have to load the docentry... The question was how to do this with the docnum (with docnum, this won't work)...

former_member185703
Active Contributor
0 Kudos

Hi Ajith,

I think you can only set the LinkedObject type to lf_None and handle the whole processing by yourself... activating the corresponding menu item + "find"ing the appropriate record...

Regards,

Frank

Former Member
0 Kudos

Hi Frank,

I'm unsuccessfully trying to get an answer on this issue for a long time. You probably are right, it needs a special processing, but I see so many links to SO using DocNum in standard SAP BO forms, that I'm sure there is a normal way to get it.

I've already asked SAP support about that, but they could not get me a piece of code to see how it is done (which is strange)...

Anyway, thanks for the prompt - I will also do it my way.

Natalya

Former Member
0 Kudos

Hi Natalya!

How is that (your) way?

- Capture the et_MATRIX_LINK_PRESSED event

- ...?

How do you open the right document...?

Thnx!

Former Member
0 Kudos

set oForm = <So Form>

oForm.mode = fm_Find_Mode

set oItem = <DocNum field on the SO Form>

oItem.specific.Value = < your DocNum >

Set oButton <Find button on the SO form (Index = 0)>

oButton.Click