cancel
Showing results for 
Search instead for 
Did you mean: 

Profit ctr valuation condition PCVP in SO

Former Member
0 Kudos

Hi

The condition type PCVP value gets populated in billing document however the same value we would like in sales order. It does not get populated in SO and shown as 'Inactive via formulae of incorrect'.

Could some suggest me how to populate this value please.

Thanks in advance

Regards

Krishiv

Accepted Solutions (1)

Accepted Solutions (1)

Lakshmipathi
Active Contributor
0 Kudos

Check in your Pricing Procedure for this condition type whether routine 24 is assigned under "Reqt" tab.  If so, it will flow only in billing document.

G. Lakshmipathi

Former Member
0 Kudos

Hi Lakshmipathi

The routine 24 already removed from the pricing procedure hence the PCVP appear on SO, however it with red icon and value is zero.

regards

Krishiv

Former Member
0 Kudos

Hi

We have found how the PCVP value being assigned in Invoice and also the solution to get populated in Sales Order.

The logic is:

1. In FM TP_GI_VALUES_GET (Include LPC33U05) it reads the material document number for a outbound delivery number from MKPF table

2. Using the material document number it reads material ledger document number from table join of MLPP and MLCR.

3. And reads the value of profit center valuation price from this table join for material ledger document number then assigns the value to field WAVWR_PCVP.

If the requirement routine 24 is not assigned in the pricing procedure against PCVP, it fails to populate the value in Sales order as the outbound delivery is not yet created during the sales order creation.

The solution we are thinking of is to populate the PCVP in Sales order using material valuation and material ledger tables.

Enhance the requirement routine 24 -

1. Check whether the document category is 'C'

2. If yes then read the KALN1 (Cost Estimate Number - Product Costing) from table MBEW (Material Valuation) for material number and plant which is valuation area  (BWKEY).

3. Get LOSGR (Lot Size for Product Costing) from table KEKO (Product Costing - Header Data) for the above KALN1 (step 2) (pass in field KALNR (Cost Estimate Number - Product Costing)) and  FEH_STA = FR (costing status - Released without errors). Ensure that TPVAR (Variant for Finding Transfer Price) is not blank or zero while reading LOSGR.

4. Read the value LPLPR ( Current Planned Price) from table CKMLPR (Material Ledger: Prices) for the combination of KALN1 (pass into KALNR) and CURTP = 32 (Currency Type and Valuation View =  32 - Group currency, profit center valuation).

5. Divide the value of LPLPR with LOSGR and the result assign to PCVP condition type.

Answers (0)