cancel
Showing results for 
Search instead for 
Did you mean: 

Code for opening qld

Former Member
0 Kudos

I have designed a parameterised report using QLD.I want a code on the click event of button to open the report in sap b one.

Accepted Solutions (1)

Accepted Solutions (1)

Nussi
Active Contributor
0 Kudos

Hi,

make yourself a procedure like

********

Private Sub Preview(sPreviewDocument As String)

appl.ActivateMenuItem "4868"

Set frm = appl.Forms.GetFormByTypeAndCount(4666, 0)

Set oMatrix = frm.Items("5").Specific

Set oColumn = oMatrix.Columns(1)

For i = 1 To oColumn.Cells.Count

If oColumn.Cells(i).Specific.String = sPreviewDocument Then

oColumn.Cells(i).Click

appl.ActivateMenuItem "519"

End If

Next i

frm.Close

.

.

.

*************

regards

Answers (0)