Skip to Content

Error with pricing factor syntax $set_pricing_factor

Apr 21, 2017 at 01:45 PM


avatar image
Former Member

Hello Experts,

Appreciate if you could guide me here.

I have created a object dependency type procedure with below syntax for changing pricing factor. It working fine in sales order but every time i click on any value assignment screen , system is giving below message at bottom. Not sure whats it and how to get away from it.

$set_pricing_factor($self, SD_PRICE, '1002',QUAN_1 ) IF QUAN_1Specified,
$set_pricing_factor($self,SD_PRICE, '1004',QUAN_2 ) IF QUAN_2 Specified.

Compilation of dependency PRINCING_FACTOR_NEW incorrect: code line 2 not found
Message No. 28520
Diagnosis The compilation of a dependency contains errors or is incomplete.

System Response Dependency processing terminated the analysis of the dependency.

Procedure Check whether the error can be resolved by saving the dependency in the dependency maintenance function again.

I followed the instruction and open and saved dependency in CU02 multiple time, syntax check shows no error but in sales order as well as CU50 the message is persistent.


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

2 Answers

William Singh Apr 21, 2017 at 02:07 PM


Have you assigned the condition value for pricing factor to variant condition characteristic before calling set pricing statement? If not, please try assigning char value first to variant condition characteristic in dependency and then call set pricing statement.

Hope it may help.

BR, William

10 |10000 characters needed characters left characters exceeded
avatar image
Former Member
May 02, 2017 at 11:02 AM

In case the syntax is also formatted in your system as in your post:

$set_pricing_factor($self, SD_PRICE,'1002',QUAN_1 )IF QUAN_1Specified,

$set_pricing_factor($self,SD_PRICE,'1004',QUAN_2 )IF QUAN_2 Specified.

please make sure in the first line that SPECIFIED is separated with a space from QUAN_1 .

10 |10000 characters needed characters left characters exceeded