How to Calculate Net weight, Gross Price, Surhcarges for Confirmed Qty
Hello,
I have a requirement where I need to calculate the Net weight, Amount( gross price), Surhcarges etc.. for the Confirmed qty of
a sales order item. In SAP standard the pricing procedure will run for the Order Qty and all the prices are related to Order qty, not for Confirmed Qty. Confirmed Qty will be sum of all scheudle lines qty.
Is there any standard Function Module to get the prices and weights for Confirmed qty? Just I need to display this data in a Report.
Pelase advise me.
Thanks.
Hello,
Instead of simulating the order I am using the User Exit so that that actaul values will appear in item conditions tab. I am using the Exit USEREXIT_PRICING_PREPARE_TKOMP where I am doing the sum of the scheduled lines confirmed qty and passing the same to TKOMP-MGAME field and the pricing is calculation is done for the confirmed qty. But I am facing some problems when the order has credit block. When the order credit is released via VKM3, the pricing doesn't updated. When doing the credit release, the order cofirms the full order qty and the pricing(Gross price) is not getting updated.
How can we run the pricing update in Order change mode with pricing procedure as 'C'.
Did anyone has worked on this type of req? let me know your thoughts.
Thanks.
prabha
Similar Messages
-
How can i create a drop down menu for set qty in my store?
I'm wondering how i can create a drop down menu for the qty module that sits on the individual product page. My client sells in quantities of 6 packs. I currently have the minimum order at 6 but i would like to give consumers the option for 6,12,18...and so forth. I was told that it could be accomplished? Hopefully someone can help me.
Hi Chris -
Thank you for your reply! I had seen your article before, and just now again attempted to follow it, but I get stuck. There are two things that I'm confused by.
First off, toward the top, referring to the initial button, you say to add this interaction:
ON CLICK; Play Transition to comboBox: selected
ON ROLL OUT; Play Transition to comboBox normal if comboBox is in over state
ON ROLL OVER; Play Transition to comboBox over if comboBox is in normal
However, I do not see these transition options. When I select the button, the only interactions I have are to Play transistion to state, Play action sequence, Go to URL, and two for videos. So that's the first roadblock for me.
But, trying to get passed that, I went down to the portion of the article that refers to adding interaction to the dataset items. Again, I don't get it, as I see no way to add interaction to a dataset item. When I open my design-time data menu, I do see the items, and am able to rename each item, add additional rows, and change the shape of the datalist layout. However, I see no way to add an interaction to a dataset item. I must be missing a step ... Can you help with this?
Again, thank you!
Amy -
How to calculate net price based on customized formula
Hi all expert,
I have a requirement in a rental process:
The price of a rental is defined as daily rate (e.g. 100/day) and monthly rate (e.g. 2500/month).
when I create a rental contract, I'd like SAP to calculate net price based on contract duration with both rate and use the lower one.
e.g. rental 5 days. use daily rate = 500; monthly rate = 2500; So use 500.
e.g. rental >=26 days. use daily rate >= 2600; monthly rate = 2500; So use monthly rate 2500.
I was think to use price condition scales to set:
1 - 25 days: 100/day
>=26 days: 2500/month
But the problem is there are 30day a month and 31 days a month. When the contract has to calculate partial month, daily rate has to be calculated as monthly rate/actual days in the month.
How to handle it?
Thank you in advance!There might be more than one method to resolve the requirement.
You can develop a routine in t.code VOFM and add it in the column AltCTy. The logic in the routine can be if the netvalue exceeds 2500, then the net value should be 2500.
The second option is you can try with using standard. In VK12, after maintaining the pricing as 100/day, go to details. Then in upper limit add value as 2500. Then create a test sales order for 25 days and more than 25 days, then check the values. I think this can help with your scenario.
Regards, -
HOW TO CALCULATE NET SALES AND CONTRACT PRICE?
Dear experts,
I have the requirement of sales price report
the report layout should be
Prod descr material Number Contract type contrcat name rebate net sales contract price units
we have the master data information is reside already in multiprovider and transaction information how to calculate in frond end ?
for sales pricing report how to manipulate teh net sales and contract price
value?
any standard formulaes is there?
plz suggest me
regardsHi,
For quick and best response unless someone answer's in this forum, post your question in SAP Community Network Forums » SAP Solutions » ERP - Sales and Distribution (SD) General or something related to your question.
Check this link if it helps -
http://help.sap.com/saphelp_46c/helpdata/en/93/74353e546011d1a7020000e829fd11/frameset.htm
Thanks,
Shambhu. -
Not able to calculate net weight
Hi
After I create a Delivery, when I do 'Calculate Weight/Volume' the system does not give me any result. This happens for only some items only. When I checked up the physical attributes, some of the items have net weight in their physical attributes, but still the weight / volume calculation fails. However, I am able to ship confirm and process the order, but in the shipping reports I get net weight as zero.
1. Where should I check up for this error?
2. What tables should I query to get the physical attributes of the item? Say I want a list of all items whose net weight is null.
Regards,I checked in the in the mtl_system_item_b, I see the value defined for the item
Unit weight as : 1.05, Weight UOM code: KG
But Volume UOM code and unit volume are null and do you think making these 2 columns populate will solve the issue?
I checked the code and saw that query
SELECT dd.delivery_detail_id,
dd.requested_quantity,
dd.shipped_quantity,
dd.requested_quantity_uom,
dd.net_weight,
dd.weight_uom_code,
dd.volume,
dd.volume_uom_code
FROM wsh_delivery_details dd,
wsh_delivery_assignments da,
wsh_new_deliveries nd,
oe_order_lines_all ol
WHERE dd.delivery_detail_id = da.delivery_detail_id AND
da.delivery_id = nd.delivery_id AND
da.delivery_id IS NOT NULL AND
ol.line_id = dd.source_line_id AND
dd.source_code = 'OE' and
nd.delivery_id =224006
AND dd.container_flag = 'N' AND
dd.oe_interfaced_flag = 'N' and
dd.released_status = 'C' and
NVL(dd.shipped_quantity, 0) > 0;
I see that net weight is populated but not the weight UOM code. Any help on this would be appreciated.
Regards, -
How to calculate the weighted Average
Hi,
How can i calculate the weighted average in BO Webi ??
Thanks,
SivaSiva,
Depends on what type of weighted average you want to calculate, but it will be something like:
=([x1] * [x2]) / Sum([x1]) in Report
Cheers,
Harry -
How can we fetch the gross price form billing (VF02)
Hi all,
Transaction: vf03--> press enter --> double click on item --> select conditions tab --> Here we find condition type, condition name, condition value..
Need is i want to display the 'Gross Price' for that item .
So please tell me the table where this gross price exist, and way to fetch this gross price.
Please give me the valuble answer as early as possible.
Thanks,
Ravi.if the access sequence is there for the conditions then u need to look at teh conditions applied .
let me put it this way ..
goto table vbrk-knmv get the field knumv
now goto table konv and give
KNUMV KPOSN STUNR ZAEHK KAPPL KSCHL
this will give u the KBETR VALUE AND THE CURRENCY.
Now goto table VBRP and fetch the field fkimg
unit price for the item is fetched and then multiplied by the total avaliable qty at ur item level table .
multiply kbetr * fkimg will give u the price .
this is for one condition type.
case 2.when more than one condition type is present ..
now repeat the process for the applied condition types ..
total will add to the gross price .
cross check with ur values in the item conditions with the multiplied total of kbetr and fkimg .
regards,
vijay
best thing is just take one invoice and do the manipulation for an item ..
like fetching the value of unit price , then multiply with the item level qty to the total price .
just work out urself on the paper, cross check it then apply the logic on the tables .
one example is ..
see sometimes the condition will be applicable as 2% like ur discount
so u need to calculate it as ( unit price * 2 / 100 ) = x1
now u need to deduct this value .
Message was edited by:
vijay k -
Doubt in how to calculate net due date
Hi..
Experts i have doubt in my salesmen ageing report i have to display
netamout day wise in the range of 0-30 days , 30-60 days and > 60 days
how to calculate the date difference between to date one is invoice creation date and another one is system date.
Give me any function module available to count the date difference
and how i filter the amount date wise.
Thanks Regds
Prabir Kumar DandpatHi,
check fm;
SD_DATETIME_DIFFERENCE
regards,
Navneeth K.
Message was edited by:
Navneeth Bothra -
How to Calculate Net Cash in Bank
Hi,
I got requirement to write Query which will return Bank wise Net Cash Amount as of Today. Can anyone guide me how can I build query to get Net Cash amount in EBS R12? Is there any report available which i can refer?
Regards,
PriyankaThanks for the guidance.. Executed query using table "ce_bank_acct_balances", FOr some Bank's it is showing value for "Ledger Amount" but not for "Available Amount".
Can you tell me difference between "Ledger Amount" and "Available Amount" ?? and which column will select Net cash available in Bank as of Today..
Regards,
Priyanka -
BSIK-ZTERM - How to calculate net days?
Dear forumers,
I have a question regarding calculating the scheduled date of a vendor invoice, as follows:
Scheduled Date = BSIK-ZFBDT + BSIK-ZTERM.
I was told that in order to do this, I will need to first know the net days associated with each BSIK-ZTERM, for example, 030N has 30 net days.
Please help me out here as to how to obtain the net days.
Many thanks in advance.
P/S: I have viewed this [thread|Due date calculation; and it seems useful, but I am still unsure on how to proceed with the FM mentioned there (NET_DUE_DATE_GET) as the it only deals with BSID fields. Please help.Hi Martin,
Thanks for your explanation here.
I will be looking into the FMs again and will see how things go.
Hello MxG,
You mentioned that the due date can be derived directly from BSIK-ZFBDT + BSIK-ZBD1T.
Will this due date mean the same as the scheduled date that I'm looking for?
Thanks for your help here.
I apologize for the multiple posting of my replies here. There were many internal server errors while replying to this thread earlier, and I can't delete the unnecessary replies anymore - please ignore them here. Thanks.
Edited by: Deborah Tan on Jan 7, 2009 4:30 AM -
How to calculate tax in me49 price
hi guys,
I want to change the standard me49 transaction. the reason is this the rate value it is giving is without excise and tax means flat rate. but i hav to showhere the rate including tax excise etc etc. Can you please give me brief description in this,thx in advanceYou don't need to calculate tax by yourself. The proper tax code will take care it.
Thanks,
Gordon -
How to calculate the number of days worked for a given period
I need to calculate the number of days worked by contractor employees for a time period to be entered by a user. I am building a query on an infoset which contains employee information including contract start date and contract end date for the employee.
Ideally I'd like the user to enter the time period which should be reported on e.g. 01.08.2009 to 31.08.2009
The report should then identify all the contractor employees which were working during this period and to work out how many days they worked during this period. Obviously the contract start and end dates could fall both inside and outside the reporting period.
Can this be done and if so, do you have any suggestions as to how to do it?
Thanks.hi
So here you will first have to load the master data table employee in one internal table and read this table with the variables entries.
Your code in the reporting exit should look like that.
bye
data : wa_employee type /bi0/pemployee.
When 'ZDATE1'
if i_step = 2.
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZDATE2'.
clear l_s_range.
clear wa_employee
1- select the entries from table employees
select single employee dateto datefrom
from /bi0/pemployee
into corresponding fields of wa_employee
where dateto le loc_var_range-low
and datefrom ge loc_var_range-high.
if sy-subrc eq 0.
CALL FUNCTION 'FIMA_DAYS_BETWEEN_TWO_DATES'
EXPORTING
i_datum_von = wa_employee-datefrom
i_kz_ult_von = 'X'
i_datum_bis = wa_employee-dateto
i_kz_ult_bis = 'X'
i_szbmeth = '1'
IMPORTING
e_tage = no_days.
l_s_range-low = no_days.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
ENDIF.
endloop.
ENDIF.
Boujema -
How to calculate start date and last date for current week
Dear All.
i want to calculate the start of the current week as well as the last date of the current week, our week start from Saturday and ends of Friday i.e. Saturday is the first day of the week and Friday is the last day of the week.
How can i acheive this in universe Designer?.
Please help...Hi
the formulas in webi will be as follows
for startdate
=RelativeDate(LastDayOfWeek(CurrentDate());-8)
for enddate:
=RelativeDate(LastDayOfWeek(CurrentDate());-2)
Regards,
Ranganath -
How to calculate the percentage of free space for a table in Oracle
okay, I am a little confused here. I have been searching the web and looking at a lot of documents. What I basically want to find out is this, how do I calculate the difference between the number of bytes a table is using and the total bytes allocated to a table space (going that way to get percent free for a particular table). So I need a byte count of a table and total table space and the percentage difference. I have been looking at the DBA_TABLES DBA_TABLESPACES and DBA_SEGMENTS views. I have tried to calculated the space as num_rows * avg_row_len (if I am wrong, let me know). I have been trying to compare that calculation to the number in DBA_TABLESPACES and DBA_SEGMENTS. I am just looking for the total space allocated to the table space that the table sits in (seem logical right now) to make the percentage value work. Thus I want to be able to track the table as it grows as compated to the table space it sits in to see a value as it changes over time (days, weeks, etc.) each time I run this script I am working on.
Can someone get me straight and help me to find out if I am looking in the right places. Any advice would help.
EdwardYou can use a little modified version of dbms_space from Tom, show_space. Have a look,
SQL> create table test222 as select * from all_objects;
Table created.
SQL> delete from test22 where rownum<=100;
delete from test22 where rownum<=100
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> delete from test222 where rownum<=100;
100 rows deleted.
SQL> analyze table test222 compute statistics;
Table analyzed.
SQL> create or replace procedure show_space
2 ( p_segname in varchar2,
3 p_owner in varchar2 default user,
4 p_type in varchar2 default 'TABLE',
5 p_partition in varchar2 default NULL )
6 -- this procedure uses authid current user so it can query DBA_*
7 -- views using privileges from a ROLE and so it can be installed
8 -- once per database, instead of once per user that wanted to use it
9 authid current_user
10 as
11 l_free_blks number;
12 l_total_blocks number;
13 l_total_bytes number;
14 l_unused_blocks number;
15 l_unused_bytes number;
16 l_LastUsedExtFileId number;
17 l_LastUsedExtBlockId number;
18 l_LAST_USED_BLOCK number;
19 l_segment_space_mgmt varchar2(255);
20 l_unformatted_blocks number;
21 l_unformatted_bytes number;
22 l_fs1_blocks number; l_fs1_bytes number;
23 l_fs2_blocks number; l_fs2_bytes number;
24 l_fs3_blocks number; l_fs3_bytes number;
25 l_fs4_blocks number; l_fs4_bytes number;
26 l_full_blocks number; l_full_bytes number;
27
28 -- inline procedure to print out numbers nicely formatted
29 -- with a simple label
30 procedure p( p_label in varchar2, p_num in number )
31 is
32 begin
33 dbms_output.put_line( rpad(p_label,40,'.') ||
34 to_char(p_num,'999,999,999,999') );
35 end;
36 begin
37 -- this query is executed dynamically in order to allow this procedure
38 -- to be created by a user who has access to DBA_SEGMENTS/TABLESPACES
39 -- via a role as is customary.
40 -- NOTE: at runtime, the invoker MUST have access to these two
41 -- views!
42 -- this query determines if the object is a ASSM object or not
43 begin
44 execute immediate
45 'select ts.segment_space_management
46 from dba_segments seg, dba_tablespaces ts
47 where seg.segment_name = :p_segname
48 and (:p_partition is null or
49 seg.partition_name = :p_partition)
50 and seg.owner = :p_owner
51 and seg.tablespace_name = ts.tablespace_name'
52 into l_segment_space_mgmt
53 using p_segname, p_partition, p_partition, p_owner;
54 exception
55 when too_many_rows then
56 dbms_output.put_line
57 ( 'This must be a partitioned table, use p_partition => ');
58 return;
59 end;
60
61
62 -- if the object is in an ASSM tablespace, we must use this API
63 -- call to get space information, else we use the FREE_BLOCKS
64 -- API for the user managed segments
65 if l_segment_space_mgmt = 'AUTO'
66 then
67 dbms_space.space_usage
68 ( p_owner, p_segname, p_type, l_unformatted_blocks,
69 l_unformatted_bytes, l_fs1_blocks, l_fs1_bytes,
70 l_fs2_blocks, l_fs2_bytes, l_fs3_blocks, l_fs3_bytes,
71 l_fs4_blocks, l_fs4_bytes, l_full_blocks, l_full_bytes, p_partition);
72
73 p( 'Unformatted Blocks ', l_unformatted_blocks );
74 p( 'FS1 Blocks (0-25) ', l_fs1_blocks );
75 p( 'FS2 Blocks (25-50) ', l_fs2_blocks );
76 p( 'FS3 Blocks (50-75) ', l_fs3_blocks );
77 p( 'FS4 Blocks (75-100)', l_fs4_blocks );
78 p( 'Full Blocks ', l_full_blocks );
79 else
80 dbms_space.free_blocks(
81 segment_owner => p_owner,
82 segment_name => p_segname,
83 segment_type => p_type,
84 freelist_group_id => 0,
85 free_blks => l_free_blks);
86
87 p( 'Free Blocks', l_free_blks );
88 end if;
89
90 -- and then the unused space API call to get the rest of the
91 -- information
92 dbms_space.unused_space
93 ( segment_owner => p_owner,
94 segment_name => p_segname,
95 segment_type => p_type,
96 partition_name => p_partition,
97 total_blocks => l_total_blocks,
98 total_bytes => l_total_bytes,
99 unused_blocks => l_unused_blocks,
100 unused_bytes => l_unused_bytes,
101 LAST_USED_EXTENT_FILE_ID => l_LastUsedExtFileId,
102 LAST_USED_EXTENT_BLOCK_ID => l_LastUsedExtBlockId,
103 LAST_USED_BLOCK => l_LAST_USED_BLOCK );
104
105 p( 'Total Blocks', l_total_blocks );
106 p( 'Total Bytes', l_total_bytes );
107 p( 'Total MBytes', trunc(l_total_bytes/1024/1024) );
108 p( 'Unused Blocks', l_unused_blocks );
109 p( 'Unused Bytes', l_unused_bytes );
110 p( 'Last Used Ext FileId', l_LastUsedExtFileId );
111 p( 'Last Used Ext BlockId', l_LastUsedExtBlockId );
112 p( 'Last Used Block', l_LAST_USED_BLOCK );
113 end;
114
115 /
Procedure created.
SQL> desc show_space
PROCEDURE show_space
Argument Name Type In/Out Default?
P_SEGNAME VARCHAR2 IN
P_OWNER VARCHAR2 IN DEFAULT
P_TYPE VARCHAR2 IN DEFAULT
P_PARTITION VARCHAR2 IN DEFAULT
SQL> set serveroutput on
SQL> exec show_space('TEST222','SCOTT');
BEGIN show_space('TEST222','SCOTT'); END;
ERROR at line 1:
ORA-00942: table or view does not exist
ORA-06512: at "SCOTT.SHOW_SPACE", line 44
ORA-06512: at line 1
SQL> conn / as sysdba
Connected.
SQL> grant sysdba to scott;
Grant succeeded.
SQL> conn scott/tiger as sysdba
Connected.
SQL> exec show_space('TEST222','SCOTT');
BEGIN show_space('TEST222','SCOTT'); END;
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'SHOW_SPACE' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
SQL> exec scott.show_space('TEST222','SCOTT');
PL/SQL procedure successfully completed.
SQL> set serveroutput on
SQL> exec scott.show_space('TEST222','SCOTT');
Unformatted Blocks ..................... 0
FS1 Blocks (0-25) ..................... 0
FS2 Blocks (25-50) ..................... 1
FS3 Blocks (50-75) ..................... 0
FS4 Blocks (75-100)..................... 1
Full Blocks ..................... 807
Total Blocks............................ 896
Total Bytes............................. 7,340,032
Total MBytes............................ 7
Unused Blocks........................... 65
Unused Bytes............................ 532,480
Last Used Ext FileId.................... 4
Last Used Ext BlockId................... 1,289
Last Used Block......................... 63
PL/SQL procedure successfully completed.
SQL>http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:5350053031470
I use this to find the space allocations.
Just read your post again,this is not going to show you the percentage of the free/used space. This is going to be the number of blocks which are free/used. For the growth trend, you can look at (in 10g) Oracle EM. It has added now,Segment Growth Trend report which can show you for each object,comparing to the allocated space to the object,how much space is being used by it.
HTH
Aman.... -
How to calculate number of samples ni scope for PXI-5922
Hi,
I am streaming data from one of the channels from a PXI-5922.
Assuming the resolution at 16bits/sample and the sampling rate at 10MS/s, i should be streaming at a data rate of 20MB/s
So, if i stream for about 4 seconds, I should have collected 20x4 = 80MB of data for the duration, but I am collecting well around 300 MB.
Now, I am obviously missing something or my calculations are wrong, either way I will appreciate if someone can enlighten me on this.
Note : I have set the number of records to 524288 (i.e 2^19)Hi Anup_Amin,
Here is a document that helps explain why the sampling rate may not in fact be the same as what you have specified in your VI. Please see the Min Sampling Rate section at the link below:
Coercions of Horizontal Parameters
http://zone.ni.com/reference/en-XX/help/370592N-01/digitizers/horizontal_parameters/
I hope this helps answer your question.
Regards,
Kaitlin N.
National Instruments
Applications Engineer
Maybe you are looking for
-
hi, iam using maintain_bapi of class vmd_ei_api for bank details creation at the time of vendor creation. but im getting error: ' Invalid address:bank Country missing'.please suggest * *** Bank details*************************************** DA
-
I have to upgrade my operating system to Yosemite from 10.6.8. I've already checked to see what app compatibility problems I'll have to deal with, so I know pretty much what to expect. But when I go in to the Mac App Store and hit Upgrade Now, it sen
-
WILL MY E-MAIL ADDRESS GET CANCEL WITH OUT A CALL OR E-MAIL WITH PH# TO CALL BACK? PS i SAVED THIS MESSAGE IN MISC FILE AND ISN'T THERE NOW
-
Bluish tint with 10.4.8
I have the bluish tint with my 10.4.8 update. Can someone please help me with a solution. Thanks in advance
-
Error -2147213312 with installation MediaSour
Hi, there... I made a fresh install of my MS$ Win XP SP3. That means I had to install my soundcard drivers again, too. I own a SoundBlaster Li've!24-Bit. After I installed everything from the original CD, I started AutoUpdate. The screen told me to n