Skip to Content
0
Former Member
Mar 21, 2008 at 05:15 AM

Link Button

30 Views

Hai To All,

In my form i have only one matrix. While form loading using sql query iam loading data's from various table. For Example

DocEntry | Date | Remark

-


1 | 12/3 | jhjk

2 | 11/3 | jhjkh

3 | 10/3 | hjjhdf

Here first and second record coming from Purchase Module and third record coming from Sales Module.

Docentry having linkbutton if i click 1 and 2 record of link button its going to particular but if i click 3 record its not going to particular form of sales.

My code is here

If obj = "ORS_UDO" Then

app.ActivateMenuItem("ORS")

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

oForm.Select()

oForm.Freeze(True)

oForm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE

oForm.Items.Item("txt_RNo").Specific.Value = Trim(doc)

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

oForm.Freeze(False)

ElseIf obj = "SALES_PO" Then

app.ActivateMenuItem("PO")

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

oForm.Select()

oForm.Freeze(True)

oForm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE

oForm.Items.Item("txt_qno").Specific.Value = Trim(doc)

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

oForm.Freeze(False)

End If

Here first ORS_UDO goes to purchase but how to specific the menuid of sales???

Anyone have idea help me..........

Regards,

Anitha