Skip to Content
0

Error(Doesnot exist) while activating Business logic

Nov 15, 2017 at 10:17 AM

88

avatar image

Hello Experts,

In SDK, using BODL i created structure like below.

import AP.Common.GDT as apCommonGDT;

businessobject BusinessObject1 {

[Label("Bonusplan ID")] [AlternativeKey] element BonusPlanId:ID;

[Label("Start date")] element StartDate:Date;

[Label("End date")] element EndDate:Date;

[Label("Bonus rate")] element BonusRate:Percent;

[Label("Target amount date")] element TargetAmount:Amount;

[Label("Total revenue")] element TotalRevenue:Amount;

[Label("Total bonus")] element TotalBonus:Amount;

action Calculatebonus; }

Here, successfully activated the Business object.

In ABSL while activating i am getting an Error and i am unable to see Fields or BO fields in Codecompletion

import ABSL;

if (this.TotalRevenue.content < this.targetamount.content) {

this.TotalBonus.content = this.totalrevenue.content * (this.bonusrate / 100);

}

Error :
Error1 Identifier 'TotalRevenue' does not exist.

Error2 Identifier 'TotalBonus' does not exist.

What might be the Problem ?

Thanks in Advance

Balreddy

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Anant Acharya
Nov 19, 2017 at 02:45 AM
1

Dear Balreddy

The script file you have created must be mass enabled.

From 1705 release, all the script files are mass enabled by default to enhance system performance.

Try to use GetFirst() function in your script

Example: this.GetFirst().Total Revenue

OR

When you try to create a script file you have to de-select the check box for Mass Enabled.

Regard

Anant

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hello Anant Acharya

Thanks for your Response.

I am very much New to SAP Cloud application studio.

Can you please tell me where can we find that Mass enables checkbox orelse Suggest me Blog or link
Thanks
Balreddy

0

Hope this helps to correct your issue.

Regard
Anant

0

Hello Anant,

I got the output using Getfirst().

I want to know Mass enabled

0