Can freight be calculated at Sales order header
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
Gibin
Right Now I am populating if the order header is successful as below to capture freight info at header level.
PROCEDURE xx_freight_charges(l_amount IN NUMBER,
l_header_id IN NUMBER,
l_created_by IN NUMBER)
IS
v_seq NUMBER;
v_list_header_id_h NUMBER;
v_list_line_id_h NUMBER;
v_arithmatic_operator_h VARCHAR2(30);
v_list_line_no_h NUMBER;
v_program varchar2(80) :='XX_UTILLITY_PKG.XX_FREIGHT_CHARGES';
BEGIN
select oe_price_adjustments_s.nextval
into v_seq
from dual;
SELECT list_header_id
,list_line_id
,arithmetic_operator
,list_line_no
INTO v_list_header_id_h
,v_list_line_id_h
,v_arithmatic_operator_h
,v_list_line_no_h
FROM qp_list_lines ql
WHERE end_date_active IS NULL
AND modifier_level_code = 'ORDER'
AND list_header_id IN (SELECT list_header_id
FROM qp_secu_list_headers_vl
WHERE name = 'Freight Charge'
AND active_flag = 'Y'
insert into oe_price_adjustments
(price_adjustment_id,creation_date, created_by, last_updated_by,last_update_date, header_id, automatic_flag,
list_header_id,list_line_id, list_line_type_code, change_reason_code,change_reason_text, updated_flag,applied_flag,
operand, arithmetic_operator, charge_type_code,modifier_level_code, list_line_no)
values
(v_seq,SYSDATE,l_created_by,l_created_by,SYSDATE,l_header_id,'N',
v_list_header_id_h,v_list_line_id_h,'FREIGHT_CHARGE','MANUAL','Manually applied adjustment','Y','Y',
l_amount,v_arithmatic_operator_h,'FREIGHT','ORDER',v_list_line_no_h);
COMMIT;
EXCEPTION
WHEN OTHERS THEN
Xx_Xmldb_Pkg.xx_insert_errors ('Freight Charges', v_program,
l_header_id, l_amount, SYSDATE, l_created_by);
END;
I think you can do it using api, also but I was not successful.
Similar Messages
-
BADI for sales order header level data
Is there any BADI which will give me the sales order header level data? I need net price of the sales order in header level. KOMK structure does not contains the net price value.
My requirement is:
I am writing a pricing routine for calculating ZSMR condition value in sales order header level. The formula for calculating is (NET PRICE / NET SALES COST) / NET PRICE.
I can't use VBAK because I have not saved the sales order yet. I need to use some structure.
Which structure contains the net price of the sales order in header level. KOMK structure does not contains the net price value.
Edited by: dossgs on May 21, 2010 4:08 PM -
How to update the sales order header & item data in TM system
Hi Experts,
Greetings!
I need your help,I have a one requirement sales order data came from ECC these sales order data need to update in TM Sales order header table as well as item table also these fields are additional fields.
Can anyone please guide me I am very new in TLM .
Thanks in advance.
Thanks&Regards,
Siva.Hi Siva
"/SCMTMS/TRQ~ROOT" is for sales order header and "/SCMTMS/TRQ~ITEM" is for details.
I assume you need to
enhance the structures for these nodes to hold your add. fields;
and do the same for the input parameter of service TransportationRequestRequest_In (which is used to create OTR) from PI side;
Pass the add. fields during service call (impelment in ERP system);
Map the fields from service paremeter to node attribute (implement in TM system, BAdI /SCMTMS/TRQ_SE_TPNRQ_REQ~CHANGE_MODIFICATION create modification table for the input parameter).
I cannot find source code for all of that; hope it helps.
Sensen -
How to update TEXT in Sales order header
Hello ,
I have requirement in which I am creating SO via IDOC calling BAPI_SALESORDER_CREATEFROMDAT2.
Question: Can any one help me in finding a solution to update the TEXT in sales order header which is confogured IN TEXT CONTROL in SD.
I have tried various option using CREATE_TEXT but it is only updating STXH table , the text is not coming in the sales order.
If someone knows about this , <removed by moderator>.
Edited by: Thomas Zloch on Nov 15, 2010 4:20 PM - please do assign priorities > normalSounds like a text determination config issue - have you assigned the text in VOTXN? Have you run the text determination analysis from VA02 in the document?
-
Changing screen sequence in sales order header
Hi Folks
we have a requirement to change the sequence of the screens which appear in sales order header and we need to add an additional custom screen.
Request you all to suggest how we can achieve this functionality.Hi,
REquest you to take the help of ABAPer and do the modification in standard Program
But instead of creating a new custom tab you can use additional data B tab to cater your requirement. Its given blank in standard so that we can modify as per our requirement .So the same will be reflected in all screen no. 4013
REgards,
Krishna O -
Activate field at sales order header level
Hi,
I can see field AUFNR (Order) in sales order header table VBAK. But not able to found same filed in sales order through using t c.code VA01. Where I can see this at header level? How to activate this field if I want to see in sales order?
Thanks,
MohanHi Mohan
First of all Welcome to SDN forum
Go to transaction variants using t.code SHD0 and give t.code VA01 and then give the business object as BUS2032 then you will get the programs . select the program and in that and check the AUFNR order feild
that is as you said that it can be seen in the VBAK table check in this VBAK table ( AUFNR - VBAK) . If that feild is suppressed then make it optional and then save it and then create the sales order and then check the AUFNR feild in VBAK table. It should come in optional mode
Regards
Srinath -
I have a requirement where a partner function is needed at sales order header level where sales order handler can assign any value. the partner function should allow any free value to be entered without any need to actually define a master record for the value to be entered in the partner function at sales order header level.
Please guide how can a new partner function be defined with this facility. Thanks !Hi
Goto SPRO>SD>Basic functions>Partner determination>sales docuemnt header.
Define a new partner function.
Assign it to your partner determination procedure.
Don't make it as mandatory.
Assign that partner procedure to your sales order type.
now test it.
try and revert -
Third Party : Sales order Header text should copy to PO Header text
Hi,
I need to copy sales order header text to PO Header text
in the third Party sales order scenario.
Can anybody suggest how to do it.
Thanx in advance.
Regards,
RRS.I doupt that this is possible without using a user exit.
The 3rd sales order will create a PR, the PR has no header text (just a header note = internal use), the PO is created in reference to the PR. And it is not possible to copy PR header text to PO header text. -
Purchase order type in sales order header
Dear Friends,
how can I make purchase order type in sales order header be default.
With regardsHi Vamsi,
if you want to enter a default value in the purchase order type field in sales order header, then do it by either of the ways
1. by variant tcode SHD0
2. by USEREXIT_MOVE_FIELD_TO_VBKD in program MV45AFZZ
regards,
Santosh -
Need help in Sales order Header Details
Hellp Experts,
I need to modify data on 'Additional Info B' in Sales Order Header (VA03 Transaction) . As it is a Standard program I am aware that we have to use user Exits. But before that I have to debug the code to that point. I wish to know info from where a particular data is coming in the field (End User). How should I proceed for debugging? Can anybody help me?
Moderators,
I could n't found any similar question when searcher. If it is can you please provide me the links?
Best Regards,
Harish
Moderator message: debugging is standard developer practice, enhancement of this screen has been discussed many times, it seems you did not look in the right places.
Edited by: Thomas Zloch on Nov 30, 2010 5:48 PMHi Harish,
Perhaps have a look at the following thread...
Additional Data B tab blank in VA01
Have a look at some of the includes mentioned in the thread and if you don't find the information there, you should at least be pointed in the right direction.
Kind Regards,
Richard. -
Requied code in abap to display sales order header text
hi all,
can anybody help me to send the code in abap to display sales order header text.Use FM, Read_text. Pass the necessary parameters like object name, id, language. You can see some of the infos in by clicking the scroll-like button.
Reward points if useful -
How to add a new output type in sales order header via ABAP program
Hi All,
I have to add new output type (ex Z001) in sales order header via an ABAP program. please let me know how to do this.
Thank you all in advance.Hi,
You can use the FM ..RV_MESSAGE_UPDATE..
Thanks
Naren -
Sales order header data change by using the ORDERS05 IDOC
Hello Team
I am getting sales order number and some code value from the legacy system. i need to check whether the sales order is avialable in SAP or not. if it is there, i need to update the CODE value (ie for example ABC100) in sales order header data> order data> your reference field. For doing this i am using the IDOC type ORDERS05 and message type ORDCHG message type.
Now i want to know what are the mandatory fields which i need to do the mapping for the IDOC ORDERS05, to change the sales order header data. please check and suggest me the required fields of the IDOC to be mapped, so that i can change the sales order header data.
Please correct me if i am doing something wrong here.
Regards
RjHello chirag
Thanks for your reply. My requirement is to change the sales order which is already avialable in SAP. Just i need to change the header data of the sales order, for example if i am getting the sales order as 1000 and CODE as ABC100. i need to change the Sales document number 1000 and put the code ABC100 in sales order header data>orders data>your reference field.
So now i want to know the below points
1. what are the mandatory fields for which i need to pass the values for the IDOC ORDERS05.
2. what is the user-exit used for picking up those values from SAP because i am getting only sales order number and CODE values from legacy system.
Please check and suggest me accordingly.
Regards
Rj -
Sales tab in Sales order header
Hello Gurus
When i create a sales order and delivery number for my warehouse. the the 'Delivery status' field of Sales tab in the sales order header data is automatically getting updated 'Fully delivered' .If i create a sales order with out saving the entry and if i go to 'Delivery status' field to check for the delivery status it says 'Not delivered'
Can you please let me know how this field is getting updated .Is there a config where i can control this .
ThanksHi,
Once you create a delivery for the respective line item for same qty the delivery status will be change to fully delivered.
But when you create a sales order in VA01 and before saving you see the status its " Not delivered" because the line item deliver has not been donr ( delivery document not created). Its an standard SAP behavior.
Also check the copy control in VTFA in update document flow field at item category level
Hope this will help you to resolve your query!!
Regards,
Krishna O
Edited by: Krishna O on May 28, 2010 7:16 AM -
Which table stores the Sales Order--Header--Texts--EDI Text?
Hi Experts,
I hv a requirenment regarding the Sales Order -> HEADER -> TEXTs -> EDI Text-Int, so, I need to hv some Orders(#). which does hv this text on them, for as test data.
So, I am looking which table stores, this text for my_sales_oders_12345678.
[ actually, i got some info from sdn, like,
Table TTXOB -> stores Texts: application object for Sales order header it is always VBBK i.e. field TDOBJECT = VBBK.
Now all the text types i.e. text ids are stored in table TTXID
So fetch all text ids(TDID) from this table based on TDOBJECT = VBBK. And its descriptions are stored in TTXIT table.
but, no use this ]
thanq
Edited by: Srinivas on Jul 10, 2008 11:06 PMHi Srinivas,
Generally to access the text we use READ_TEXT function Module.
we need to pass the four parameters
ID
LANGUAGE
NAME
OBJECT
You can find these parameters in the sales order it self.
Goto ---> Header ---> Texts
Now double click on the text it takes you to the Text Editor. You can find the screen Display Form Header . In this goto Menu Path Goto ---> Header. You get a screen Text header. Here you can find the these parameters.
Text Name
Language
Text ID
Text Object
You need to pass these parameters to the function Module to text the text.
You can also fins the text in Table STXH
Best regards,
raam
Maybe you are looking for
-
I just updated my iPhone with the newest update IOS 6.1. My old Apple ID keeps popping up on my iPhone for me to type in the password that I no longer know. All the passwords I type in do not work. I no longer have access to this email which is my ol
-
I'm trying to print from a full-size, 30x42 pdf of an AutoCAD file. I only want to print an 8 1/2 x 11 portion, in scale. How do I select the window and print in scale on my 8 1/2 x 11 printer (Brother MFC-9340CDW)?
-
Need help starting very troubled iBook
About a week ago I started having problems starting my iBook (it would get stuck on the Apple screen), and the few times I could get it to start up, it would lock up soon after. So I've already decided the end is near for it and I've upgraded to a Ma
-
Why is the Flag button missing in the new iPhoto
I ugraded to iPhoto 9 and I really don't know why the flag button is missing in the bottom bar (beside share, edit etc.). It was there all the time before and one could easily flag any open photo (and I did it very often). And there is enough free sp
-
Can i use the iphone 4s that is on an at&t contact in another country?
can i use the iphone 4s that is on an at&t contact in another country?