cancel
Showing results for 
Search instead for 
Did you mean: 

LinkButton to Contact Person

former_member682029
Contributor
0 Kudos

Hello,

Here is another question from me regarding the SDK.

Actually I need to specify a link button for a Contact Employee.

In Sales Order System form, this is working. When we click the link button just near to the contact person, the BP master data window with the Contact Person tab will come to front.

Can you please tell me which option should we select from BoLinkedObject Enum for getting this?

Here is my code sample

oLinkBtn = (SAPbouiCOM.LinkedButton)oForm.Items.Item("lnkCntct").Specific;

oLinkcustCode.LinkedObject = ?;

Thanks in Advance.

Anoop

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member682029
Contributor
0 Kudos

None answered

Former Member
0 Kudos

Hi Anoop,

Please try object 53.

Regards,

Vítor Vieira

rasmuswulff_jensen
Active Contributor
0 Kudos

Hi.

I'm not a a machine currently where i can test this but try this one:

BoLinkedObject.lf_ContactWithCustAndVend

If this is not the case and you don't find it, use BoLinkedObject.lf_None, and catch the event of the user pressing the linkbutton and:

1. Open the BP Master data screen (using ActivateMenuitem)

2. Enter the BP Code in the gui (EditText.Value)

3. Simulate a click on the find button

¤. Simulate a click on the Contact Person Tab

former_member682029
Contributor
0 Kudos

Thankyou Rasmus

But the BoLinkedObject.lf_ContactWithCustAndVend is the Contacts object and the Activity window is loading while we pressing this.

Using the second method, it is a difficult thing to do all these. Since if there is 4 Contact persons, we should click on the selected contact Person in the Contact persons tab for displaying his/her details in the window.

Any other method ?

Thank you

Anoop