on 08-31-2017 1:20 PM
Hi Swati,
You can refer following code:
import ABSL;
import AP.FO.BusinessPartner.Global;
var q = BusinessPartner.QueryByIdentification;
var p = q.CreateSelectionParams();
p.Add( q.InternalID, "I", "EQ", "1042044"); // Contact ID for whcih account name to be identified
var r = q.Execute(p);
if (r.GetFirst().IsSet())
{
var n = r.GetFirst();
if (n.BusinessPartnerRelationship.GetFirst().IsSet())
{
var t = n.BusinessPartnerRelationship.GetFirst();
if ( t.IsSet())
{
var b = t.FirstBusinessPartner;
if ( b.IsSet())
{
var name = b.CurrentCommon.Organisation.Name.FirstLineName;
var sort = b.CurrentCommon.SortingFormattedName;
}
}
}
}
Thanks
Saurabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.