on 04-26-2012 11:14 AM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.