Absolute Discount & Freight at Header Level in Quotation
Hi All,
I have a requirement wherein I want my header conditions such as absolute discount,freight,customs etc. should be equally divided among line items. In the current scenario whatever I am putting as absolute discount or freight is getting multiplied by the line items. I want it to work vise versa wherein the header discount or freight gets divided by the line items. Is this possible? If so please provide the way to do so.
Thanks
Dear,
Check with Group Conditions and test in Quality.
Check this link: Purchace order header condition distribution to items
Regards,
Syed Hussain.
Similar Messages
-
Freight at header level in PO is not appearing Invoice
Hi Experts,
I have entered "Freight" condition at header level which is distributed to items as per their value. When i did the goods receipt, freight charges were showing in FI document created. But now when i am doing invoice for the same purchase order, freight charge is not appeared in Invoice or in FI documents. Please advise.
Regards,
KamalHi Kamal,
While doing MIRO,Please check the layout in right side of screen.There is three options:
1.Good/Service items
2.Planned delivery costs
3.Good/Service items+Planned delivery costs
Please select option 3 and then try.
Regards,
Manish -
Dear Friends
1 In a Contract or PO, we give some discount (2%) at HEADER level and maybe some discount at the item level (5%). The effective discount will be 7% or 5%.
2 How the Freight cost and other miscellaneous costs are taken into consideration while calculating the MAP of a raw material (as seen in mm03, accounting 1 view).
For example, we buy 10 pcs @ $10 and pay $50 for freight and $20 as miscellaneous cost. The moving average price of the stock will be $17 [(1005020)/10] or $ 10.
Regards
Sanjeev1 In a Contract or PO, we give some discount (2%) at HEADER level and maybe some discount at the item level (5%). The effective discount will be 7% or 5%.
The effective cost will be 7% if your discount based on the quantity but if it absolute amount then that 2% will be propotionated to all the items
2 How the Freight cost and other miscellaneous costs are taken into consideration while calculating the MAP of a raw material (as seen in mm03, accounting 1 view).
For example, we buy 10 pcs @ $10 and pay $50 for freight and $20 as miscellaneous cost. The moving average price of the stock will be $17 (1005020)/10 or $ 10.
Freight cost will not be a part of your MAP becuase it is posting to accrual account but the $20 misc cost can be if the condition is not defined as accrual condition then only.
If you want to add the freight also a part of the mateiral then define the condition like surcharge without accrual. -
Conditions on RFQ Header are not changeable at PO Header level
Dear Gurus,
I have maintained a Quotation and enter the conditions on Header level in Quotation. Once i adopt the Quotation in Purchase Order, these conditions are displayed both at Item and Header level and i cannot edit the condition value at PO Header level, they are editable at Item level but not at header level.
I want to edit them at PO Header level too.
Please advise.
Johi KapoorHi,
If that is item condition then you can not change it at header level
check in M/06 make it at header level in change which can be made tab
Regards
Kailas Ugale -
U201C Header level discount problem u201C
Hi,
The case is like this.
I have a quotation as follows :
Item a unit price kd 10 qty 6 total price 60kd
Item b unit price kd 5 qty 5 total price 25 kd
Total = KD 85
Special discount KD 21.25( 25%)
Final total = KD 63.75
For the above quote if I have to make a PO in sap at present the following thing happens :
Unit price for item is given as 10 and 5 respectively.
Header level discount is given as kd 21.25 ( 25%)
When the po is saved and printed
The discount gets calculated in the item level so now my unit prices will be 7.5 and 3.75 respectively.
Total after discount matches with the quote thatu2019s fine.
But the unit price should not be discounted at item level .
As per the quote Discount is applicable to the total. Even in sap the discount should be applicable to the final total not distributed on the item.
ThanksHi,
Pl check the discount condition in M/06 under Grouping condition is flagged( Ticked) which results in discount value is distributing among the line item of The PO. -
Discount value not updating at contract header level
Dear Friends
I am facing problem of updating discount value at contract header level. The scenario is u2026. my client used to provide certain service to their customer. For that they maintain quantity contract & bill them as per billing plan. When customer avail three or more services they get 10% extra discount. Now the problem is after continue for some days if some customer wants to drop one item we are cancelling the line item by assigning proper cancellation procedure but the system is not reversing the 10% discount.
Example u2013
Contract valid for 1st Jan 2009 to 31st Dec 2010(Value for each service = 10)
(Total no of item-3)
(Discount-10%)
Here bill value for each month is 10x3-(30x0.10) =27
At the month of march 2009 customer decided to drop for one item so hence forth the bill value should be 10x2=20
But the system is calculating 10x2-(20x0.10)=18
We need to update the value at contract header level only to satisfy some CRM functionality.
Please suggest how to solve this issueHi,
If that is item condition then you can not change it at header level
check in M/06 make it at header level in change which can be made tab
Regards
Kailas Ugale -
Discounts at sales order header level
Hi,
Is it possible to create discounts at header level,
if it is possible what are the setups & procedure to follow
and if there is any doc pls share it to [email protected]
Thanks in Advance
RaghuYes.
When you define the modifier, set the level to header.
See http://oracleebusinesssuite.wordpress.com/2007/09/12/how-to-setup-manual-modifier-for-special-charges/ -
Freight charges in PO at header level
Hi Friends,
I have created a PO having 10 line items. I dont have individual freight charges for each line item.I have total freight charges for the whole PO. I have defines a freight charge at header level.I want the system should devide the whole freight charges among the line items as per the value. But when I enter any value in the header freight condition type, its simply multiplying the freight by 10. The system is not dividing the freight charges amonth the line items as per their valuation.
Please guide me and suggest how to do the settings in customization so that system should divide the freight charges as per line item value.
Thanks & Regards
SatyaHI,
Go to M/06.select the frieght condition type and tick the group condition indicator and Group condition routine as 1 Overall document .and then enter condition value at header level in PO.
reward if helpful.
Regards,
Chetan. -
Freight Charges at Header Level using API oe_order_pub
Hello,
I am trying to process Header Level Freight Charges using oe_order_pub.process_order api. Please advice me as it is not entering charges. Here is my code. Thanks for your time and appreicate your help.
====
declare
l_header_rec Oe_Order_Pub.header_rec_type;
l_header_adj oe_order_pub.Header_Adj_Rec_Type;
l_header_scredit_tbl Oe_Order_Pub.header_scredit_tbl_type;
l_header_adj_tbl Oe_Order_Pub.header_adj_val_tbl_type;
l_action_request_tbl Oe_Order_Pub.request_tbl_type;
l_line_tbl Oe_Order_Pub.line_tbl_type;
l_line_adj_tbl Oe_Order_Pub.line_adj_tbl_type;
l_line_scredit_tbl Oe_Order_Pub.line_scredit_rec_type;
/*Out Parameters for Order API*/
l_header_rec_out Oe_Order_Pub.header_rec_type;
l_header_val_rec_out Oe_Order_Pub.header_val_rec_type;
l_header_adj_tbl_out Oe_Order_Pub.header_adj_tbl_type;
l_header_adj_val_tbl_out Oe_Order_Pub.header_adj_val_tbl_type;
l_header_price_att_tbl_out Oe_Order_Pub.header_price_att_tbl_type;
l_header_adj_att_tbl_out Oe_Order_Pub.header_adj_att_tbl_type;
l_header_adj_assoc_tbl_out Oe_Order_Pub.header_adj_assoc_tbl_type;
l_header_scredit_tbl_out Oe_Order_Pub.header_scredit_tbl_type;
l_header_scredit_val_tbl_out Oe_Order_Pub.header_scredit_val_tbl_type;
l_line_tbl_out Oe_Order_Pub.line_tbl_type;
l_line_val_tbl_out Oe_Order_Pub.line_val_tbl_type;
l_line_adj_tbl_out Oe_Order_Pub.line_adj_tbl_type;
l_line_adj_val_tbl_out Oe_Order_Pub.line_adj_val_tbl_type;
l_line_price_att_tbl_out Oe_Order_Pub.line_price_att_tbl_type;
l_line_adj_att_tbl_out Oe_Order_Pub.line_adj_att_tbl_type;
l_line_adj_assoc_tbl_out Oe_Order_Pub.line_adj_assoc_tbl_type;
l_line_scredit_tbl_out Oe_Order_Pub.line_scredit_tbl_type;
l_line_scredit_val_tbl_out Oe_Order_Pub.line_scredit_val_tbl_type;
l_lot_serial_tbl_out Oe_Order_Pub.lot_serial_tbl_type;
l_lot_serial_val_tbl_out Oe_Order_Pub.lot_serial_val_tbl_type;
l_action_request_tbl_out Oe_Order_Pub.request_tbl_type;
/*Local Variables*/
l_ret_stat VARCHAR2 (1);
l_msg_cnt NUMBER;
l_msg_data VARCHAR2 (2000);
x_return_status VARCHAR2 (1) := '';
l_order_type VARCHAR2(80);
l_order_type_id NUMBER;
l_accounting_rule_id NUMBER;
l_invoicing_rule_id NUMBER;
l_price_list_id NUMBER;
l_header_id NUMBER;
l_customer_id NUMBER;
l_order_number NUMBER;
l_line_xml XMLTYPE;
icount NUMBER;
l_item_id NUMBER;
l_count NUMBER;
p_status varchar2(10);
p_header_id number;
p_error varchar2(1000);
l_created_by number:=9930;
BEGIN
DBMS_APPLICATION_INFO.set_client_info ('104');
Fnd_Global.apps_initialize (9930,50257,660);
---Initialise In Parameters
l_header_rec := Oe_Order_Pub.g_miss_header_rec;
l_action_request_tbl (1) := Oe_Order_Pub.g_miss_request_rec;
l_line_tbl (1) := Oe_Order_Pub.g_miss_line_rec;
/*required Fields for Header Record*/
l_header_rec.orig_sys_document_ref :=8089;
l_header_rec.order_type_id := 1245;
l_header_rec.sold_to_org_id := 16273647;
l_header_rec.order_number := 8094; -- Currenlty commented, eventuall we need to use this as this needs be to unique.
l_header_rec.attribute1 := 8088; -- Currenlty capturing Order Number in ATT1
l_header_rec.price_list_id := 150022; -- l_price_list_id;
l_header_rec.payment_term_id := 1040;
l_header_rec.operation := Oe_Globals.g_opr_create; --'CREATE';
l_header_rec.flow_status_code := 'ENTERED';
--l_header_adj := Oe_Order_Pub.G_MISS_HEADER_ADJ_TBL;
l_header_adj.header_id := 9584924;
l_header_adj.automatic_flag :='N';
l_header_adj.list_header_id :=154010;
l_header_adj.list_line_id :=150071;
l_header_adj.list_line_type_code :='FREIGHT_CHARGE';
l_header_adj.change_reason_code :='MANUAL';
l_header_adj.change_reason_text :='TEST';
l_header_adj.updated_flag :='Y';
l_header_adj.applied_flag :='Y';
l_header_adj.operand :=10;
l_header_adj.arithmetic_operator:='LUMPSUMP';
l_header_adj.charge_type_code :='FREIGHT';
l_header_adj.modifier_level_code :='ORDER';
icount :=1;
-- FOR icount IN 1 .. l_line_tbl.COUNT LOOP
---Initialising Line table records
l_line_tbl (1) := Oe_Order_Pub.g_miss_line_rec;
/*required Fields for Line Record*/
l_line_tbl (icount).inventory_item_id := 71161;
l_line_tbl (icount).operation := Oe_Globals.g_opr_create;
l_line_tbl (icount).ordered_quantity := 3;
l_line_tbl (icount).unit_selling_price := 5;
l_line_tbl (icount).unit_list_price :=5;
l_line_tbl (icount).calculate_price_flag :='P';
---Reset message
Oe_Msg_Pub.initialize;
---Call API to Create Sales order with 2 lines in Entered Status
--dbms_output.put_line(l_header_rec.order_number||'-'||l_order_number);
apps.Oe_Order_Pub.process_order
(p_api_version_number => 1.0
,p_header_rec => l_header_rec
,p_line_tbl => l_line_tbl
,p_action_request_tbl => l_action_request_tbl
,x_header_rec => l_header_rec_out
,x_header_val_rec => l_header_val_rec_out
,x_header_adj_tbl => l_header_adj_tbl_out
,x_header_adj_val_tbl => l_header_adj_val_tbl_out
,x_header_price_att_tbl => l_header_price_att_tbl_out
,x_header_adj_att_tbl => l_header_adj_att_tbl_out
,x_header_adj_assoc_tbl => l_header_adj_assoc_tbl_out
,x_header_scredit_tbl => l_header_scredit_tbl_out
,x_header_scredit_val_tbl => l_header_scredit_val_tbl_out
,x_line_tbl => l_line_tbl_out
,x_line_val_tbl => l_line_val_tbl_out
,x_line_adj_tbl => l_line_adj_tbl_out
,x_line_adj_val_tbl => l_line_adj_val_tbl_out
,x_line_price_att_tbl => l_line_price_att_tbl_out
,x_line_adj_att_tbl => l_line_adj_att_tbl_out
,x_line_adj_assoc_tbl => l_line_adj_assoc_tbl_out
,x_line_scredit_tbl => l_line_scredit_tbl_out
,x_line_scredit_val_tbl => l_line_scredit_val_tbl_out
,x_lot_serial_tbl => l_lot_serial_tbl_out
,x_lot_serial_val_tbl => l_lot_serial_val_tbl_out
,x_action_request_tbl => l_action_request_tbl_out
,x_return_status => l_ret_stat
,x_msg_count => l_msg_cnt
,x_msg_data => l_msg_data
-- COMMIT;
DBMS_OUTPUT.PUT_LINE ('Return Status is ' || l_ret_stat);
DBMS_OUTPUT.PUT_LINE ( 'Order Number in ARB Org is '
|| l_header_rec_out.order_number||'-'||
l_header_rec_out.header_id
p_status := l_ret_stat;
p_header_id := l_header_rec_out.header_id;
-- p_error := ltrim(rtrim(l_msg_data));
Xx_Xmldb_Pkg.xx_insert_errors
('With or w/o Error After API'
,p_error
,p_header_id
,p_status
,SYSDATE
,l_created_by
/*Check Errors */
IF l_ret_stat <> 'S' THEN
p_status :='FAILURE';
IF l_msg_cnt > 0
THEN
FOR i IN 1 .. l_msg_cnt
LOOP
l_msg_data := Oe_Msg_Pub.get (p_msg_index => i
,p_encoded => 'F');
-- p_error := ltrim(rtrim(l_msg_data));
DBMS_OUTPUT.PUT_LINE ('Errors ...' || l_msg_data);
Xx_Xmldb_Pkg.xx_insert_errors
('Error After API'
,p_error
,p_header_id
,p_status
,SYSDATE
,l_created_by
END LOOP;
END IF;
END IF;
IF l_ret_stat = Fnd_Api.g_ret_sts_success
THEN
l_header_rec := Oe_Order_Pub.g_miss_header_rec;
l_action_request_tbl (1) := Oe_Order_Pub.g_miss_request_rec;
l_line_tbl (1) := Oe_Order_Pub.g_miss_line_rec;
---Book Order
l_action_request_tbl (1).request_type := Oe_Globals.g_book_order;
l_action_request_tbl (1).entity_code := Oe_Globals.g_entity_header;
l_action_request_tbl (1).entity_id := l_header_rec_out.header_id;
---Book the order
/* Oe_Msg_Pub.initialize;
---API Call to Book the Order
Oe_Order_Book_Util.complete_book_eligible
(1.0
,Fnd_Api.g_false
,l_header_rec_out.header_id
,l_ret_stat
,l_msg_cnt
,l_msg_data
-- COMMIT;
IF l_ret_stat <> 'S' THEN
p_status :='FAILURE';
IF l_msg_cnt > 0
THEN
FOR i IN 1 .. l_msg_cnt
LOOP
l_msg_data :=
Oe_Msg_Pub.get (p_msg_index => i
,p_encoded => 'F');
DBMS_OUTPUT.PUT_LINE (l_msg_data);
Xx_Xmldb_Pkg.xx_insert_errors ('Load XML Order Data, After api error .'
,l_msg_data
,null
,NULL
,SYSDATE
,1124
END LOOP;
END IF;
END IF;
IF l_ret_stat = Fnd_Api.g_ret_sts_success
THEN
x_return_status := l_action_request_tbl (1).return_status;
END IF;
ELSE
DBMS_OUTPUT.PUT_LINE ('Failure');
p_status :='FAILURE';
END IF;
end;
/Hi,
Can you pls try by passing this parameter value too.
l_header_adj.adjusted_amount := 5;
Thanks,
Praveen -
How to mantain entire freight charges in header condition or header level.
Dear - all
when am creating a purchase order i have 2line items with different materials. but i want to give freight charges as header level for which value will be distributed to each and every line item, so for that what will i do - which is my item condition and which is header condition.
But i want to enter the entire freight charges in header level or in header condition.
Pls suggest the procedure for mantaing the header condition for that i enter the total freight value in header level.
thanks
sunilhi
u can do it by checking the tick of header condition in the respective condition
copy the condition FRA1-Freight % or FRB1-Freight (Value) in M/06
then
in changes which can be made coulumn u will get tick of header ,just tick it and add this condition to ur schema in M/08
hope it help -
Freight condition calculated on header level , not at item level
Hi,
I am creating PO with 2 line items..
mat X qty 1 price 100 INR
mat Y qty 1 price 100 INR
Now i have given freight as 500 INR in header level...
My prob is freight is getting calculated based on number of item level...
It means if i have 2 item levels my freight is coming 1000 INR....
it is adding based on line item.....
but it shud come 500 INR....
I want my freight to be added at header level......
UtsavHI
What will u do if in case freight shud be 500 + 500 = 1000
So leave this condition as it is
Goto Tcode M/06 ... and create a new condition for freight ... by copying the present condition type and then add it in pricing procedure
But in "details "of this new condition type put a tick mark against group condition and header condition.
"To go into details of a condition type ... select the condition type and then click on lens button" -
Header Level Cash Discount For VBRK-VBELN, Where Can I get?
Hi Experts,
I know the # of VBELN of VF03 (VBRK), now, I need to pull the data of,
<b>1- Header Level Cash Discount - Condition Value and
2 - Header Level Cash Discount - Amount i.e.
% Value.</b>
Normally, I know the procedure is,
(The relationship is )
KONV-KNUMV = VBRK-KNUMV
For all the columns the field KONV-KWERT can be used
But, its ITEM level, where as I am looking for Header Level?
So, Where Can I get the VBRK-KNUMV Header level,
1- Cash Discount Condition Value data? and
2- Cash Discount Amount data i.e. %
Thank you,
Message was edited by:
SrikharThanQ Sheshu,
No, there is no entry in KONV-KNUMH for KSHCL type of Discounts i.e. SKTV. THere r entries i.e. record #s for Pricing matters! I dont know Y?
So, It seems to b, I hv to use the follwoing code,
at new knumv
SUM (of types KONV-KSHCL = SKTV)
endat.
Or Do u hv any other clue? like, other tables searching?
anyways, thanq -
OTC . How is freight calculated in OM header level
Hi
We have this business scenario where Freight is calculated at order header.
But we were checking the API for that
WSH_INTERFACE_GRP.Create_Update_Freight_Costs
This is done at Delivery or Delivery detail level.
So CANT we have freight costs at order header level???
Basically i have say 3 labels created for an order i need to generate freight for these 3 labels. Please not 3 labels DOES NOT correspond to 3 lines.
So can i create Freight lines for these 3 labels for that order header Id.
And also another question is for RETURN orders we wont have any deliveries then how are freight cost calculated
Regards
GibinFUNCTION ZSAVE_NOTES_SAVE.
*"*"Local interface:
*" IMPORTING
*" VALUE(OBJECT_ID) TYPE CRMT_OBJECT_ID
*" VALUE(OBJECT_TYPE) TYPE CRMT_SUBOBJECT_CATEGORY
*" REFERENCE(HEADER) TYPE THEAD OPTIONAL
*" REFERENCE(TEXT) TYPE TDTXTLINES
*" TABLES
*" LINES STRUCTURE TLINE
TYPES : BEGIN OF STRUC,
GUID TYPE CRMD_ORDERADM_H-GUID,
END OF STRUC.
DATA : WA_STRUC TYPE STRUC,
IT_STRUC LIKE TABLE OF WA_STRUC.
TYPES : BEGIN OF STRUC1,
TDOBJECT TYPE STXH-TDOBJECT,
TDNAME TYPE STXH-TDNAME,
TDID TYPE STXH-TDID,
TDSPRAS TYPE STXH-TDSPRAS,
TDTITLE TYPE STXH-TDTITLE,
TDLINE TYPE STXH-TDTXTLINES,
END OF STRUC1.
DATA : WA_STRUC1 TYPE STRUC1,
IT_STRUC1 LIKE TABLE OF WA_STRUC1.
SELECT SINGLE GUID FROM CRMD_ORDERADM_H INTO WA_STRUC WHERE
OBJECT_ID = OBJECT_ID AND OBJECT_TYPE = OBJECT_TYPE.
SELECT SINGLE TDOBJECT TDNAME TDID TDSPRAS TDTITLE TDTXTLINES FROM STXH
INTO WA_STRUC1 WHERE TDNAME = WA_STRUC-GUID.
APPEND WA_STRUC1 TO IT_STRUC1.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = HEADER
INSERT = ' I '
SAVEMODE_DIRECT = ' X '
OWNER_SPECIFIED = ' SAPUSER '
* LOCAL_CAT = ' '
* IMPORTING
* FUNCTION =
* NEWHEADER = HEADER
TABLES
LINES = LINES
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
COMMIT WORK.
ENDFUNCTION.
Have alook at the follolwing threads
Probelem with SAVE_TEXT
SAVE_TEXT FUNCTION MODULE
save_text?
there are many more examples. -
Hi Experts,
I am looking to pull the data of,
<b>VF03-----> Header Level Cash Discount - Amount i.e. say, 3%</b>
So, Where Can I get the Header level,
Cash Discount Amount data e.g. 3%
Thank you,.
-
Hi Experts,
The VF03(Display Billing Doc)--> Cash Discount(Header Level ) - Amount, say, 3%, In which table, it stores?
Path is, VF03>Menu>GO TO>HEADER->Pricing Conditions Header>(Condition Type)SKTV> Amount, say, 3%------->Where it stores?
Thanq.Hi,
I dont have SAP in front of me.
Simply go to ST05
Activate Trace then execute your givrn path and then Deactivate trace.
Display Trace and see from where it is fetching.
Reward if useful!
Maybe you are looking for
-
I have photoshop CS 5.1. How many computers can I install it on?
i have photoshop CS 5.1. How many computers can I install it on?
-
I have Aperture 2, changed my imac, used the backup system and found that I cannot find my serial number for Aperture 2. I have Aperture 3 upgrade, so can someone please advise how I get my serial number for Aperture 2 please. Hence I can not install
-
Need help getting music off ipod
I used to have 2 libraries on my itunes (mine & hubby's). Now it only shows hubby's music library - no classical. How do I get the missing music that is on my ipod back in the itunes library so I can sync my new ipod and get all the music?
-
hii I have oracle 10g forms installed on my pc, I want to display some icons on the button.i have done all of the required things like:I have kept all the gif icons in the particular place,& have changed the formsweb.cfg file by changing imagebase pa
-
What is the best way to manage SQL Server Agent Jobs? Requirement: If any job fails I need an entry(log) to be done in a table. Please use Mark as Answer; if my reply solved your problem. Use Vote As Helpful if a post was useful. |WWW.FACEBOOK.COM/SO