on 03-01-2016 6:45 PM
Hi experts,
I have the following situation,
I am extending a Customer Quote and Referencing Field from KUT. The problem is with a Field what is necessary to check for duplicity.
The Field was defined like Text and not like ID, i am trying by ABSL code to query by this field but is not shown.
There is a way to check by a KUT field for duplicity ?
Thx!!!.
Regards Pablo.
Hi Guys,
Finally i tried with this way,
var queryCustomers = this.QueryByBusinessObjectCustomer.Execute().CurrentCommon.Where(w=>w.NumerodeDocumento1==numeroDoc).Count();
But i have a problem, This sentence delays 10 seconds to execute.!!
There is another way to execute the same sentence with better performance?
Thx.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pablo,
Take a look at this. http://scn.sap.com/community/business-bydesign/studio/blog/2015/08/27/sap- cloud-application-studio-performance-best-practices. Specifically the bit about using query.ExecuteDataOnly()
Additionally if your tenant is on 1602 you can right click on the ABSL file and click "Performance Tips", it will analyse the ABSL and give you the results on how to improve performance and stop dumps.
Hi Guys,
I am facign the same problem trying to use the Standar query of the customer BO and filtering for the KUT field (using by .ref file). Using Selection params. (I cannot see this KUT Field)
I am trying to filter by iteration. (I know this is not for good performance)
In validation-Onsave.absl i tried by this way.
var nroDoc = this.CurrentCommon.NumerodeDocumento ;
var customers = Customer.QueryByBusinessObjectCustomer.ExecuteFromDB();
foreach (var entry in customers){
if(nroDoc = entry.CurrentCommon.NumerodeDocumento1)
{
return false;
}
}
but is not working .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pablo,
What i understand is you have created a KUT extension field and have created .ref file to access it in
SDK.
You want to check for duplicate entries for this field, for that you want to query and see if the value for
this field already exists.
Have you also enhanced the KUT field to the Query in KUT?
Thanks, Pradeep.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.