Skip to Content
avatar image
Former Member

Error with pricing factor syntax $set_pricing_factor

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.

Cheers

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Apr 21, 2017 at 02:07 PM

    Hi MS

    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

    Add comment
    10|10000 characters needed 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 .

    Add comment
    10|10000 characters needed characters exceeded