cancel
Showing results for 
Search instead for 
Did you mean: 

About Link Button

Former Member
0 Kudos

Hi

Everybody

How can I open user form using link button from other user form or system form?

Thanks in advance

Mithun

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Anitha

I have already specify an UDO for user form.

But from link button I can't able to open it.

Pls help me with some details on it.

ITS URGENT

Thanks in advance

Mithun

Former Member
0 Kudos

Try this,

U have to write this in itemevent of itempressed

If pVal.ItemUID = "pilink" And pVal.BeforeAction = False Then

Try

Dim IndentNo As String

IndentNo = HEAD_oDBds.GetValue("U_INo", 0)

Dim oForm As SAPbouiCOM.Form

Dim Bool As Boolean = False

For frm As Integer = 0 To app.Forms.Count - 1

Try

If app.Forms.Item(frm).UniqueID = "PI" Then

oForm = app.Forms.Item("PI")

oForm.Close()

Exit For

End If

Catch ex As Exception

app.StatusBar.SetText(ex.Message)

End Try

Next

If Bool = False Then

app.ActivateMenuItem("PI")

oForm = app.Forms.Item("PI")

oForm.Select()

oForm.Freeze(True)

oForm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE

oForm.Items.Item("t_ino").Specific.Value = Trim(IndentNo)

oForm.Items.Item("1").Click()

oForm.Freeze(False)

End If

Catch ex As Exception

app.StatusBar.SetText(ex.Message)

End Try

End If

Catch ex As Exception

app.MessageBox(ex.Message)

End Try

Where U_INo is the variable of the text having link button

PI is the form name to which u want to link to

t_ino is the text box name of which u want to link there

thats is iam linking RQ form to PI form

If its helps give reward points,

Regards,

Anitha

Answers (1)

Answers (1)

Former Member
0 Kudos

Mithun,

For System form u have to specific the Object Type for user form u have to create the user form as UDO.

Regards,

Anitha