Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

About Link Button

Hi

Everybody

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

Thanks in advance

Mithun

Former Member
Former Member replied

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

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question