COST FILED IN VBRP TABLE
Hi Experts,
Cost filed is not updated in VBRP table! We have gone through the pricing procedure that there we found there not assigned VPRS statistical condition type,so please tell me what is the impact on ERP system. We came to know same issue ,while implementing the BIW. So please tell how it is possible to resolve. Is it possible to get those previous value through any program ,if now i assign same condition in pricing procedure.
Please guide me ,if any table or FM
Best Rgds
SumaMani
Dear Yadav,
We have assigned VRPS condition just now, now it is shown those cost values in billing document as well mentioned tables.
I would like to know is it possible to update previous posted documents with cost field.If yes,please tell me procedure. We would like to update those billing documents from 2007 onwards. Is SAP suggested any programe or any standard transaction code to update previous documents costs in billing documents?
Best Rgds
Suma
Similar Messages
-
Cost fileds description of table in KEPH
Dear All,
I am developing a query with table KEKO and KEPH for the material cost estimate. I need to run for several materials. CK13N is can be used for only one material.
I am getting Cost estimate No from the table KEKO and passing the value to KEPH for the cost values. but in KEPH table there are 40 cost fields are there from KST001 to KST040.
I need which cost filed is for which category like Purchases, Surchages,direct labour etc.... It would be great if anyone give us the details regarding the same.
Please let me know for any clarification. Thanks in advance.
Regards,
Raja.AHi,
Based on your cost component strcuture , while running the KSPI ( Activity price calculation ) system allign the cost fields of KEPH table.
Depending on your cost component setting - say you have ticked fixed and variable both then - two field in KEPH get alligned with that cost component - One for total cost and other for fixed cost. This is why if you notice there are 40 cost field in KEPH and in cost component structure maximum you can have 20 cost component.
But allignement of KEPH table field to Cost component get restructured dynamically if you change your cost component sructure and do the KSPI.
If you want to see your existing allignment , if in all your cost component allows fixed and variable , then straight away you can assume cost field 1 and cost field 2 for your first cost component .. and cost feild 3 and cost field 4 for your second cost component. Cost field 1 for total of that cost component and cost field 2 for fixed cost of that cost component.
I hope this explain you the structure. Please let me know if you need more information.
Regards
Ranjan Kumar -
We have created a Z report by using the filed values in VBRP.
One of the field used is kzwi1.
In pricing procedure assigned 1 in Sub total column for price and by mistake same 1 is alos assigned for Cess (JAY1).
Now i can change and in from tomorrow only basic value will appear in KZWI1.
I want to know wheteher any soloution is there to change the values of previuos records in VBRP table for the filed KZWI1.
rGDS
BJhi
consult ur abaper and ask him make necessary changes in the table as u only need changes to be made to the data of previous days, give him the exact dates from which date to which date u need a change in the data, and aslo do specify him with the fields, and tables to be changed..
Reward fi USeful
Thanx & Regards
Naren.. -
How to update the VBFA table without entries in VBRK and VBRP tables
Hello,
I have a requirement , where the sales order , delivery happens in one SAP system say X system and billing document wil happens in other sap system say Y.
Now in this particular case , if the user want to know the billing document number in X system. what would be the solution.
Is there any possibility to update the VBFA table with invoice number of Y system (without updating the VBRK and VBRP tables).
User want to see the billing doc number from sales order in the form of document flow in X system
Thanks in advance
PradeepHii
Without updating VBRK/VBRP table and updating VBFA is not possible, So you have to play with work arround to create one Z TABLE, so whenever system Y will create billing document with the reference of System X data you have to update Ztable with Invoice number created in System Y, The primary key will be in Z TABLE is Delivery document number to track one to one with billing doc.
Thanks and Regards
Shambhu Sarkar -
Raw material planned cost and qty in table MCKALKW
Hi,
Raw material planned cost and quantity in table MCKALKW is not equal to cost analysis in CO01 / CO02.
Could you please let me know how to get the planned cost and quantity for production order components for report development. i checked other tables like AFPO and AFKO and it is showing only for main material and not for its compoenHi,
You can check the cost of the individual components in Bill of materials of each material seperately. Hope this works for you.
Thanks and regards,
Murali krishna Maganti -
For display budgeted amount in cost center what is table in sap?
For display budgeted amount in cost center what is table in sap?
Hi,
Is it budget or planning ? Budget is in BPJA; while planning is mainly in COSS, but also in COSP.
Regards,
Eli -
Netvalue field in VBRP table for JPY
Hi friends,
We are having a Z report which is fetching net value for billing documents from the VBRP-NETWR field. For JPY the value in this field is showing incorrectly. For example if the value in the document is 1234 JPY, the value in the VBRP-NETWR field shows as 12.34 JPY i.e. with two decimal places. Since the report is fetching the values directly from this field, the report is showing incorrect values for JPY. For other currencies the report seems to be fine.
Can anyone please let me know what is the issue here and how it can be resolved
Thanks,
SajiHi
Please take the help of your technical consultant and check in the program wheather any loop has been put that for the JPY currency that it should show in two decimals only.If it is showing correct in VBRP table check the currency that is coming in the biling document->line item ->conditions tab and check the currency. In the same way check in header data->condiitions tab what is the currency that is coming.
Regards
Srinath -
Add username filed in SY Table
hi gurus,
I use pa51 for pay slip with form, I want to print user name in pay slip but I did't find out the username filed ind SY table like DATUM
Please help me how I can add this field in SY table.
Thanks
Waqasahi vijay,
I want only add a username filed in the SY table. which is use in pay slip printing through form.
Thansk,
waqasa -
Accessing of VBRP Table takes time
Hi Folks,
I have written a Query to fetch records from VBRP Table as below.
SELECT vbeln posnr netwr matnr aubel knuma_ag mwsbp
prodh vkorg_auft vtweg_auft spart
FROM vbrp
INTO TABLE t_vbrp
FOR ALL ENTRIES IN t_vbrk
WHERE vbeln = t_vbrk-vbeln
AND spart = t_vbrk-spart .
In the t-vbrk internal table there are some 1,00,000 records. I cant even execute the program. Please help me on this.Hi,
For 100K records, a Single FOR ALL ENTRIES will not work.
Break your Driver Internal Table into a Part of Three to Four and then use
SELECT .....FOR ALL ENTRIES.
Break Itab into itab1 , itab2, itab3 & itab4 and use
SELECT .....FOR ALL ENTRIES itab1.
SELECT .....FOR ALL ENTRIES itab2.
SELECT .....FOR ALL ENTRIES itab3.
SELECT .....FOR ALL ENTRIES itab4.
Before writing the SELECT FOR ENTRIES, always check that Driver should not be Empty and that the Records in it should be very large in Size, In case they are Large, get them broken into smaller one and use multiple SELECT .....FOR ALL ENTRIES -
How to link vbak and vbrp tables
hi friends,
i want to display lips table values based on lips-vbeln = it_vbrp-vgbel
here i want a filed thru which i can link vbrp-<fieldname> to vbak/vbap-vbeln
so that i can get values into it_vbrp.
here is equation.
it_vbrp => vbak-vbeln = vbrp-< ? >
it_lips => vbrp-vgbel = lips-vbeln.
thanks in advance for your co operation
regards,
Anil kumar pu can reach vbrp vbeln from vbrk vbeln
and to get vbrk vbeln from vbak vbeln
goto table VBFA
1.
GIVE VBFA-VBELV = VBAK-VBELN
and
VBFA-VBTYP_N = 'M'. "INVOICE IN CAPS
AND F8
THIS WILL GIVE U VBRK-VBELN .
NOW U CAN USE VBRK-VBELN TO FETCH VBRP
SIMILARLY
2.
IF U WANT TO PICK DELIVERY NUMBER FROM LIKP USING VBAK-VBELN.
SAME PPROCEDURE
PUT VBFA -VBELV = VBAK-VBELN
VBFA-VBTYP_N = ' J'. "IN CAPS
WILL FETCH U LIKP-VBELN "DELIVERY
USE THIS TO GET LIPS ENTRIES
hope this helps
regards,
vijay -
"How to sum FKIMG in VBRK and VBRP Table with sample output
Sir\Mam\Gurus ;
I hardly found it difficult in resolving my program in getting the sum of FKIMG inside the VBRP and VBRK tables
The scenario is that i have one Sales Order with multiple invoices . What i need to do is to sum up the fkimg or the quanitity of specific material regardless of how many invoices the material have in a particular SO
Example I have Sales Order number 35678952 with
3 invoices
Invoice # 123 with material number mat1=12, mat2=5 , mat3=7
345 with material number mat1=7, mat2=7
678 with material number mat1=5, mat3=10
Output shoud be
salesorder# 35678952
mat1 = 24
mat2 = 12
mat3 = 17
Below is my Sample Codes:
DATA : it_vbrp_details TYPE STANDARD TABLE OF wa_vbrp_details,
ls_vbrp_details TYPE wa_vbrp_details,
ls_vbrp_details1 TYPE wa_vbrp_details,
lsfinal_vbrp_details TYPE wa_vbrp_details,
it2_vbrp_details TYPE STANDARD TABLE OF wa2_vbrp_details,
ls2_vbrp_details TYPE wa2_vbrp_details,
it3_vbrp_details TYPE STANDARD TABLE OF wa_vbrp_details,
itfinal1_vbrp_details TYPE STANDARD TABLE OF wa_vbrp_details,
itfinal2_vbrp_details TYPE STANDARD TABLE OF wa_vbrp_details,
itfinal3_vbrp_details TYPE STANDARD TABLE OF wa_vbrp_details,
ls3_vbrp_details TYPE wa_vbrp_details,
rtime1 TYPE i,
rtime2 TYPE i,
rtime3 TYPE i,
s_erdate type d,
scr_erdat type d,
s_erdate = scr_erdat.
CALL FUNCTION 'MONTH_PLUS_DETERMINE'
EXPORTING
months = 1 " Negative to subtract from old date, positive to add
olddate = s_erdate
IMPORTING
newdate = new_date.
""" This is another way manual adding by days
CALL FUNCTION 'CALCULATE_DATE'
EXPORTING
days = +30
start_date = s_erdate
IMPORTING
result_date = new_date.
result_date = ddate.
REFRESH: it_vbrp_details.
SELECT
vbrp~matnr
vbrp~aubel
vbrp~aupos
vbrp~vbeln
vbrp~kzwi1
vbrp~kzwi2
vbrp~kzwi3
vbrp~kzwi4
vbrp~kzwi5
vbrp~kzwi6
vbrp~mvgr1
vbrp~mvgr2
vbrp~mvgr3
vbrp~mvgr4
vbrp~mvgr5
vbrp~knuma_pi
vbrp~knuma_ag
vbrp~mwsbp
vbrp~vkaus
vbrp~fkimg
vbrk~vbeln
vbrk~fkart
vbrk~belnr
vbrk~xblnr
vbrk~vbtyp
vbrk~kunag
vbrk~fksto
vbap~posnr
INTO TABLE it_vbrp_details
FROM vbrp INNER JOIN vbrk ON vbrkvbeln EQ vbrpvbeln
where vbeln eq gt_data-vbeln
where vbrpaubel eq vbapvbeln
WHERE vbrp~posnr GE ''
AND vbrk~vbtyp EQ 'M'
AND vbrk~fksto NE 'X'
AND ( vbrperdat GE s_erdate OR vbrperdat LE new_date OR vbrp~erdat IN s_erdat ) " + JP 09 19 2011 Additional Optimization
ORDER BY aubel aupos .
ORDER BY aubel aupos matnr.
"""" This where i need your help Sir\Mam\Gurus
it3_vbrp_details = it_vbrp_details.
SORT it3_vbrp_details BY aubel matnr fkimg kzwi1 kzwi2 kzwi3 kzwi4 kzwi5 kzwi6 aupos vbeln
mvgr1 mvgr2 mvgr3 mvgr4 mvgr5 knuma_pi knuma_ag mwsbp vkaus fkart belnr vbtyp kunag fksto.
LOOP AT it3_vbrp_details INTO ls_vbrp_details.
COLLECT ls_vbrp_details INTO itfinal1_vbrp_details.
APPEND ls_vbrp_details TO it_vbrp_details.
ENDLOOP.
kzwi1,kzwi2,kzwi3 is also been sum up
Sir the output is something like this
Sales Ord# Material Qty KWIZ1 KWIZ2 KWIZ3 MGVR1 VBELN
1234 Mat1 24 23.2 22 12 LastInvoice#
1234 Mat2 12 20.0 21 15 LastInvoice#
1234 Mat3 37 22.0 22 16 LastInvoice#
5432 Mat1 30 25.0 23 15 LastInvoice#
5432 Mat2 24 22.0 24 23 LastInvoice#
5432 Mat3 20 18.0 20 12 LastInvoice#
Hope you can help me as i cant hardy sleep thinking of this ...
I will really appreciate your great help..
Thanks !
I will really appreciate your great help..
Thanks !
Moderator message: duplicate post locked.
Edited by: Thomas Zloch on Sep 20, 2011 3:05 PMHi,
How you want to display the output?..
If you want to display the output as mentioned below, then you have to use nested loop & dynamic field assignments to get result.
Output column
sales order Mat1 Mat2 Mat3 ......
1234 24 12 37
Kindly let me know, if you have any questions
Regards,
S.Senthilkumar -
Not able to create a Data source with qty filed in the table
Hi i am having scenario.
i am doing a Genric R/3 extraction for R/3 system. I created a view from two tables. I have added a net quantity field also in then view table. But when i created a data source for that view it is showing a error message which says that it cannot create a data source with a quantity field in the table.
Here is my question. How to create a Data Source for a view table which has Qty filed in it.
Pls help with this.
SenthilHi Sensai,
U need to add reference table for the unit .... when added into the view u create .......the reference table name u can find in the table itself from where it is brought into the view.... in the table currency quantity fields........
U can add that table in the currency /quantity fields of the view....u need to add referecne field and table...and activate ........
i think it works
Regards
vamsi -
Cost of Goods Sold Table of CK13N
Dear Experts,
How to find Cost of Goods sold components of CK13N values with respective cost element in Table
kindly provide valuable suggestion
With regards,
GaneshGanesh,
you will get the cost estimate results from KEKO and KEPH tables.
In the standard cost scenario COGM and COGS values are same.
when yo see the cost component view in the CK13N it will match with cost fields in the KEPH.
pass the material and plant in KEKO table from there take cost estimate number, now pass this cost estimate number in KEPH table as per your cost components in each cost fields you will get the details.
Please let me know if you need any further help.
Regards,
Ravi -
Project cost plan Header Data table ( PS module - T.code CJR2)
Hi,
I am working on PS module where we have to build a integration between PS Cost plan (At WBS Element level) to SD Quotation. I have to use transaction CJR2 for this. we will add the custom field 'Indicator' on the initial screen of transaction CJR2 for this. I want to know what is the HEADER DATA table for Project Cost Plan, so i can add this custom field in that table and letter on use in CJR2.
If someone have done any kind of modification for work on CJR2 transaction, please provide me some information on this since i am first time working on PS module. I need some information on modifying the initial screen on transaction CJR2.
Any inputs will be appreciated.
Thanks,Hi,
you'll find Project cost plan in tables RPSCO / COSP
regards Andreas -
How to update the COST column using another table's column
Dear All,
I have table:
table parts: pno, pname, qoh, price, olevel
table orders: ono, cno, eno, received, shipped
table odetails: ono, pno, qty
view:orders_view: ono, cno, eno, received, shipped,sum(qty*price)order_costview:odetails_view: ono, pno, qty, (qty*price)cost
after I update the price in parts, I need to update COST and ORDER_COST too. The orders_view does not have pno, qty, and price, the odetails_view does not have price, how can I update the COST and ORDER_COST. Please help and Thanks in advance!!!
I wrote the update the price in parts:
create or replace procedure change_price(ppno in parts.pno%type, pprice in parts.price%type) as
begin
update parts
set price = pprice
where pno = ppno;
end;
show errorsthis procedure works fine.
I wrote the trigger:
create or replace trigger update_orders_v
after update of price on parts
for each row
begin
update orders_view
set order_cost = sum(parts.(:new.price)*parts.qty)
where parts.pno = :new.pno;
end;
show errorsIt gives me:Errors for TRIGGER UPDATE_ORDERS_V:
LINE/COL ERROR
3/5 PL/SQL SQL Statement ignored
4/22 PL/SQL ORA-00934: group function is not allowed hereplease help!You could add the columns to the tables and then you would need a trigger to update those columns. However, you could just as easily select the price * qty to get the cost, without creating an additional column or trigger. I have no idea what you might want to do with a global temporary table. I think you need to explain what your purpose is, before any of us can suggest the best method. Since I have already demonstrated an update with a view, I will demonstrate an update with the cost column added to the odetails table and a trigger as you asked about. Notice that you will need triggers on both tables, the one that has qty and the one that has price.
scott@ORA92> create table parts
2 (pno number(5) not null primary key,
3 pname varchar2(30),
4 qoh integer check(qoh >= 0),
5 price number(6,2) check(price >= 0.0),
6 olevel integer)
7 /
Table created.
scott@ORA92> create table odetails
2 (ono number(5),
3 pno number(5) references parts,
4 qty integer check(qty > 0),
5 cost number,
6 primary key (ono,pno))
7 /
Table created.
scott@ORA92> create or replace procedure change_price
2 (ppno in parts.pno%type,
3 pprice in parts.price%type)
4 as
5 begin
6 update parts
7 set price = pprice
8 where pno = ppno;
9 end;
10 /
Procedure created.
scott@ORA92> create or replace trigger update_cost1
2 after insert or update of price on parts
3 for each row
4 begin
5 update odetails
6 set cost = qty * :new.price
7 where pno = :new.pno;
8 end update_cost1;
9 /
Trigger created.
scott@ORA92> show errors
No errors.
scott@ORA92> create or replace trigger update_cost2
2 before insert or update of qty on odetails
3 for each row
4 declare
5 v_price parts.price%type;
6 begin
7 select price
8 into v_price
9 from parts
10 where pno = :new.pno;
11 --
12 :new.cost := :new.qty * v_price;
13 end update_cost2;
14 /
Trigger created.
scott@ORA92> show errors
No errors.
scott@ORA92> insert into parts values (1, 'name1', 1, 10, 1)
2 /
1 row created.
scott@ORA92> insert into odetails values (1, 1, 22, null)
2 /
1 row created.
scott@ORA92> -- starting data:
scott@ORA92> select * from parts
2 /
PNO PNAME QOH PRICE OLEVEL
1 name1 1 10 1
scott@ORA92> select * from odetails
2 /
ONO PNO QTY COST
1 1 22 220
scott@ORA92> -- update:
scott@ORA92> execute change_price (1, 11)
PL/SQL procedure successfully completed.
scott@ORA92> -- results:
scott@ORA92> select * from parts
2 /
PNO PNAME QOH PRICE OLEVEL
1 name1 1 11 1
scott@ORA92> select * from odetails
2 /
ONO PNO QTY COST
1 1 22 242
scott@ORA92> -- select works without extra cost column or trigger:
scott@ORA92> select o.ono, o.pno, o.qty, (o.qty * p.price) as cost
2 from odetails o, parts p
3 where o.pno = p.pno
4 /
ONO PNO QTY COST
1 1 22 242
scott@ORA92>
Maybe you are looking for
-
Some more history - I'm not too techie so added everything in I thought might be significant! - Installed Mavericks on iMac in October 2013 - experienced regular low memory issues - used Memory Clean app as a workaround - last week decided to upgrade
-
Infopath not working After migrating site to HTTPS
I have infopath installed as client and I publishes it on the server. I dont have infopath on the server and I cannot install there. Developed infopath form with a dataconnection via webservice "GetUserProfileByName". It was working fine with HTTP Af
-
Error messages Sap gui 7.1 pl 6 and 7 + guixt
Hello, We have a problem with SAP GUI 7.10 PL 6 and 7 in combination with GUIXT 2008-Q2-1. When the user is starting a transaction that is combined with GUIXT, they are getting mostly three error messages: Message 1: "Not enough memory - please incr
-
Bapi for the deletion of Automatic blocking indicator for open vendor
Hi All, At the time of Downpayment of vendor Automatic block indicator is set in vendor payment . Is there any Bapi is available which can delete the payment block key for the all vendor (open item ) with document type 'KZ'- vendor payment at the tim
-
My iPod is synced with another iTunes library?!?!
We got a new computer a couple of months ago and I'm trying to download more tunes from iTunes. It's saying my iPod is synced with another iTunes library. It's asking if I want to erase this iPod and sync with this iTunes library. NO! I don't want to