Add Freight Charges using API
I am using oe_order_pub.process_order API to create orders. I need to add a Freight Charge line. Can I do this using oe_order_pub.process_order, or do I need to use another API?
Thank you.
you need to use WSH_FREIGHT_COSTS_PUB.Create_Update_Freight_Costs API to apply frieght costs....
Similar Messages
-
How to add Freight Charges to an invoice using DI API?
I need to be able to add Freight Charges to an invoice of suppliers using DI API. Please I need help....!!!
Hi,
1. Step: Open the Invoice using oDocument.GetByKey("[DocEntry]")
2. Step: Use the Lines in the BusinesObject (maybe copy them in an extra LinesObject for a better reading)
3. Step: Use the Add()-Method to add a new Line
4. Step: Fill the Line-Properties you want
a.E.
oInvoice.Lines.ItemCode = "FREIGHT"
oInvoice.Lines.ItemDescription = "Freight Charge"
oInvoice.Lines.Quantity = 1
oInvoice.Lines.Price = 10.0
oInvoice.Lines.UnitPrice = 10.0
Remember: The Item (ItemCode) you want to insert must be existing
5. Step: Update the main-Business-Object
a.E.
oInvoice.Update()
Hope that help´s
best regards
Jochen -
Freight charges using oe_orde_pub api
freight charges using oe_orde_pub api.
Can you please tell me how to load Charges while creating the Sales Orders using oe_order_pub API.
--Prasanth -
How to add Freight Charges for SO Via B1WS
I am using B1Ws for adding a new Sales Order.
I want to enter Freight Charges details also.
In DIAPI through expense code we can add but in b1ws what is the equivalent of that ?
Can anbody guide me ?
Thanks
Vaithyhi,
can someone take a look to see what I'm missing to update a document with freight add.
I am getting a document from an existing delivery and want to add a new freight line and cost to it.
Dim dl As New Delivery.DeliveryNotesService
Dim d As New DocumentParams
d.DocEntry = "1"
d.DocEntrySpecified = True
Dim msgHeader As New Delivery.MsgHeader
msgHeader.ServiceName = Delivery.MsgHeaderServiceName.DeliveryNotesService
msgHeader.ServiceNameSpecified = True
msgHeader.SessionID = sid
dl.MsgHeaderValue = msgHeader
Dim doc As Document = dl.GetByParams(d)
Dim ex As New DocumentDocumentAdditionalExpense
ex.LineNum = 0
ex.LineTotal = 10
ex.Remarks = "Shipping"
ex.BaseDocEntry = d.DocEntry
ex.BaseDocEntrySpecified = True
doc.DocumentAdditionalExpenses = ???
dl.Update(doc) -
Can't add Shared Member using API
I would like to create a lot of shared members.Using API I do it as following according to documentation: ESS_MBRINFO_T MbrInfo; memset(&MbrInfo, '\0', sizeof(MbrInfo)); strcpy(MbrInfo.szMember, (char*)mbrName); MbrInfo.usShare = ESS_SHARE_SHARE; sts = EssOtlAddMember(getOutline(), &MbrInfo, ESS_NULL, hMbr, &hNewMember); When I try to add shared member, then sts = 1060051.So I have to change names and after correct them manually.Using HAB API I can't add shared member too.Regards,Georgy
Hi and Welcome to the Forums!
To really help, you should come and create an account on these forums...there are many unanswered questions from your initial inquiry...come here, create an account, and open a thread so that it all can be resolved:
http://supportforums.blackberry.com/rim/
Cheers!
Occam's Razor nearly always applies when troubleshooting technology issues!
If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
Join our BBM Channels
BSCF General Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
How to add Freight Charges while creating PO
At the time of creation of Purchase Order, the custom duty and the freight
charges are not known.(Sometimes we know the freight charge)
But when the supplier submit the invoice both these
Custom duty and the freight charges are included, Now how do I go about
matching the invoice. Do I need to go and modify the PO for the difference
before I do the matching of PO with the invoice.
Any suggestions would be appreciatedHi,
I think you need to enable a DFF at PO header to provide the fright charges, this could be the one solution for your requirement.
Regards,
Kevin. -
How could I ADD ITEM by using API
Hi,
I have Portal 9.0.3 installed.
I want to call wwsbr_api from a javascript code (HTML portlet) to add a text item to a region, but I have some problem using this API:
1; I don't know how could I get the p_caid, the p_folder_id and the region_id
I found out that p_caid can be find WWSBR_SITES.ID. Is this correct?
2; when I've tried to call this API from address line I've got a 404 ERROR (but it might have been casued by the wrong attribute values)
So I need to know:
- How could I find out the correct IDs?
- How could I call wwsbr_api.add_item function from a javascript?
Thanks for your help!
THE BOOGIE IS OVERWWSBR_API is currently not supported in Portal Release 2 (902). Support for this API will return in the next version (9.0.2.6, planned for early 2003).
Regards,
Portal Product Manager -
[ACS 5.4] Add Internal hosts using API
Hi,
I tried Machine authentication after importing MAC Address in internal hosts.
Is it possible to use ACS API to import those MAC Address?
I want to develop a specific web interface for support to do this action.
Thanks for your help,
PatrickHi Horst,
Currently this feature is not there, you cannot use filters based on admin created attrbutes,
An enhancement is already open:
CSCui17182 ACS user filtering using custom attribute
Supposed to be included in 5.5, but it was not, so you can look forward to it on future ACS patch.
Save this ID on the bug search and you will get a notification.
**Share your knowledge. It’s a way to achieve immortality.
--Dalai Lama**
Please Rate if helpful.
Regards
Ed -
Add to NI_UserCustomPrivileges using API
I've searched in several ways for this information and have been unsuccessful. Is there a way to add entries to the NI_UserCustomPrivileges container--and save the changes to disk, of course? I've found many examples of adding and deleting users and changing their privileges, but I haven't been able to find a way to add new privilege variables.
Thanks for your help!
Solved!
Go to Solution.Hi strimble,
Assume we create two local variables, an array of Object References called "typeFileArray", and a Number called "typeIndex". Then, the following should allow you to create the type of variable you are interested in.
Locals.typeFileArray =
RunState.Engine.GetTypeUsageLocations("NI_UserCustomPrivileges"),
Locals.typeIndex = Locals.typeFileArray[0].AsPropertyObjectFile.TypeUsageList
.GetTypeIndex("NI_UserCustomPrivileges"),
Locals.typeFileArray[0].AsPropertyObjectFile.TypeUsageList
.GetTypeDefinition(Locals.typeIndex).SetValBoolean("HelloJohn", 1, True),
Locals.typeFileArray[0].AsPropertyObjectFile.IncChangeCount(),
Locals.typeFileArray[0].AsPropertyObjectFile.SaveFileIfModified(True)
I hope this helps!
John M
National Instruments
Applications Engineer -
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 -
Populating Freight Charges on Sales Order
Does anybody know how I can populate freight charges using the UI-API on a sales order? The UI requires the user to click on a link button to pop up another screen. Does anybody have any best practices or advice on how to do this. I know how to do add freight charges with the DI-API, but I need to have it working on the opened (non-saved) sales order, so I mist use the UI-API. Thanks in advance.
CarlosI manage to do something about this but is a very ugly code. You littely have to intercept some event and do a .click() method on the freight link arrow, freeze the form and internally populate the matrix on the freight and then unfreeze the form and do a .click() on the update/ok button on the freight form.
Is very ugly and tricky but it manage to do what the customer wants.
I also saw that if you have freight on a parent document (like sales order) and you do a copy to (like to A/R Invoice) if you have freight amount it will duplicate on the document, one with the original value and a second one with value of zero (0). -
Freight Charges does not correctly show Tax % / calaculate
Hi
When I try to add freight charges to an A/P invoice the tax group shows correctly (V1) but the Tax % shows 0.0 instead of 7.5 on every row/type of freight and therefore the Tax is not calculated automatically.
Somebody an idea whats wrong?
Thanks
FranzProblem solved.
As a difference to all the other modules, A/P Invoice does not have the current day as default posting date (maybe this a bug). Since the Tax calculation needs the posting date, it does not correctly show the Tax on the main form as well as on the freight dialog, it shows the correct code, but always with 0%.
So, for correct tax calculation, always make sure the posting date is entered before.
@SAP: Change the behavior with the default posting date, as it is in all other modules.
Best regards,
Franz -
Add frieght charges to a pro forma invoice
How do you add freight charges to a pro forma invoice?
Thanks,
SeanHI,
Generally Freight charges are determined in delviery document and then from here it will be copied into billing if you want.
But directly if you want to add into proforma billing then u need to maintain these condition types in proforma pricing procedure and make a setup in copy contol picing type field then redetermine the pricing in proforma invoice..
Regards
sankar -
Add freight cost in a cross company code scenario using a costing sheet
Dear Forum,
I will like to add freight cost to a material using a costing sheet. The freight percentage is very easy to add and works fine when the cost is added in the company code costing. My problems start when I want to add the freight in the cross-company code costing. I want to setup a cross-company code costing where the freight cost is added to the material in the buying company code and not on the selling company code. The cross-company code costing is setup using special procurement costing keys.
In below costing (CK11N) the procurement costing key is not used.
From the itemization it is shown that purchase info.record 5300067643 is read and the price of 12,97 is determined. There is added 10% in freight coming from the costing sheet.
The freight is shown in the cost component structure as well.
The special procurement type is now changed from ‘20’ to ‘AT´ on the MRP2 screen in the material master. The procurement is now pointing to an internal plant called ‘DCN’.
The costing of material 105050 is now repeated. I get the expected result from changing the procurement key, as I can now see the material is sourced from plant ‘DCN’. DCN is sourcing the material from BJ07, but that is not relevant for the example.
If I now look at the itemization again on the costing in BGA1 I now see that the price is not coming from the info.record. It is the costing in DCN that is used.
I will still like to add the freight cost in BGA1.
How do I add freight cost in BGA1 when I at the same time want to have the costing to be taken from plant DCN?
Please let me know if you need additional information on the customizing setup of the system.
Best regards,
Kim Hjorth PoulsenHi Srinu,
Thank You for a prompt feedback.
I have tried to follow Your advise. The special procurement costing key is customized like below.
I have updated the special procurement costing key on the costing 1 view of the material master. When costing the material it is using the special procurement key. This can be seen from the qty. structure tab in CK11N.
It is also costing cross company as intended.
The itemization looks like below.
and the cost component structure looks like below.
Unfortunately the freight is not added in the costing in BGA1.
I noticed that when the costing is made without special procurement key the costing sheet used in the costing is for material components. If the costing is made with the special procurement keys the costing sheet used is for finished and semi-finished materials. The customizing in both of the costing sheets are the same, but only when costing is without the special procurement keys the freight is added.
So unfornutely Your suggestion did not solve the problem.
Best regards,
Kim -
Freight charges should not add to Material Cost
Dear All,
We are maintaining the Freight Charges condition in Pricing Procedure for Stock Transport Order process, as per SAP standard the Freight charges will add to the Material Cost for receiving Plant. But we dont want to add the Freight Charges for Material Cost.
Please let me know how to avoid the Freight Charges adding to the Material Cost.
Thanks & regards,
DhanuDear Dhanu,
Add the condition type at header. So it will not be distributed among individual line items.
I hope this will help you.
Regards,
Ganesh
Maybe you are looking for
-
I download a movie from ITunes on my IPad2. I can't find the movie in my library now, what do I do?
-
Powershell Script to obtain current members of a Group
Good morning. Sorry for my English. I would like to change the answer obtained by a script. Today the scrip that I have, give me the following response: Server 1 Group 1 User 1 User 2 User 3 Server 2 Grou
-
Non-standard application use of iMovie and Pyro AV Link
I want to pipe my 12" PC screen into my 2' iMac screen. I must use a hardwire solution and cannot use VNC or remote control over the web. I can get into the details, but no need here. So my question: can I use a VGA/DV converter to feed the screen si
-
Adobe Audition 3.0 Delayed Start When Clicking "Play"
When I click "Play" or hit the space bar to play back an audio file, the green play arrow lights up immediately, but the playback line doesn't start moving to play the audio for about 1 or 2 seconds. I use Audition to play back prerecorded phone cal
-
Hi, I am using the SUM analytical function to accumulate some data from one record to the other record (data per month): TPS_MOI_CODE PRD_PRD_CODE PDV_PDV_CODE RTTCAVCANV 200510 01 9302 -8050 200511 01 9302 -15500