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

Re: CostingCode Linked value 1 does not exist in DocumentLineItem

$
0
0

Hi Eric

 

Now I am getting an issue when setting value as

If Dimension1/ Dimension2 are Active and Dimension3/4/5 are In-active and assigning value like as

documentLines[1].CostingCode = "NY_B";

            documentLines[1].CostingCode2 = "P1";

            documentLines[1].CostingCode3 = "P2";

            documentLines[1].CostingCode4 = "P2";

            documentLines[1].CostingCode5 = "P2";

 

 

540000160 - You cannot continue; distribution rule P2 is not related to dimension 3

 

if I assign value as

documentLines[1].CostingCode = "NY_B";

            documentLines[1].CostingCode2 = "P2";

            documentLines[1].CostingCode3 = "P2";

            documentLines[1].CostingCode4 = "P2";

            documentLines[1].CostingCode5 = "P2";

Now it is working fine.

 

So with my understanding I only can assign value of costcenter only to active dimension, if assign to inactive dimension with previous assigned cost-center value.

Can you suggest how can assign cost-center value to dimennsion?

 

If I want assign Dimension1 cost center value to CostingCode2="B1".

Can you suggest where and what is wrong or what values can we assign?


Viewing all articles
Browse latest Browse all 8720

Trending Articles