Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2175

Re: Referencing business object in same solution

$
0
0

Hi Ognian,

 

You cannot use SAP_UUID in ABSL. (as far as I know).

 

There are only two ways to access back the target BO instance.

1. Retrieve method

Retrieve method will be available if an alternative key is defined in the target BO.

Retrieve method will always return only one instance back.

e.g

 

var empInstance=Employee.Retrieve(this.empID);

if(empInstance.IsSet()){

this.ToEmployee=empInstance;

}

 

2. Query

Query can be used to retrieve one or more instances.

 

e.g

var empQuery=Employee.QueryByElements;

var selParams= empQuery.CreateSelectionParams();

     selparams.Add(empQuery.EmployeeID, "I", "EQ", this.empID);

var results = empQuery.Execute(selParams);

 

foreach(ver result in results){

     this.ToEmployee = result;

    break;

}

 

You will always need a key to access back the target BO instance.

 

Best Regards

Fred


Viewing all articles
Browse latest Browse all 2175

Trending Articles