Change rounded quantity (VBEP-CMENG) in Sales order with FM
Hello,
In an ABAP program I want to change the rounded quantity of a scheduleline in a sales order using a function module. However with BAPI_SALES_ORDER_CHANGE or SD_SALESDOCUMENT_CHANGE in the input tables for schedulelines however the field for adjusting rounded quantity is not avalable.
Is there anybody who knows another solution to update the rounded quantity. Note i want to avoid to do a call transaction.... ))
TNX
Hi ..
Check your config. again or debug the routine code with your ABAPer and find the problem area.
-Maharshi
Similar Messages
-
Do not change the payment term created a Sales Order with reference
Hi Gurus,
Do not change the payment term created a Sales Order with reference to a contract where the payer of the change in Sales Order.Hello ,
As per my understanding , you do not want the payment terms to be changed even if the payer partner function is changed ,
as standard sap redetermines the payment terms with change in partner function, you may use the exit
USEREXIT_MOVE_FIELD_TO_VBAK- header level
USEREXIT_MOVE_FIELD_TO_VBAP- Item level
in this you could write a small code which will not change the payment terms when payer is redetermined
hope this helps
Thanks
akasha -
Sale order with item category TAN not getting displayed in md04
Hi,
We have a sale order with item category TAN, Schedule line category CP, MRP type ND and availability check as 07. This is not getting reflected in md04. But item category TAB gets displayed under the PR number.
Please let me know what checks to be made or changes to be done for the sale order with item category TAN to get displayed in md04 screen
Thanks & RegardsHi all,
I changed the MRP type to PD, and from the next sale order, line item onwards, it was getting displayed in md04 screen. The already created one anyway dint get reflected. So I had to delete the line item and create a new one.
Thanks all for the help
Regards,
Jegashree -
Can't change quantity when copy from Sale order for Delivery
Hi all!
Can i use authorization for can't change quantity when copy from Sale order for Delivery.Tien,
Approval will not work when you have mutiple rows of data. You would have to work with SP Transaction Notification
There has been threads before on the forum on the same topics.
Block the Quantity in Sales Delivery
Approval Procedure for chaning quantity in Delivery Document
Suda -
Query Alert for a change in value of the Quantity field of the sales order
Hi Experts,
A query alert has been set up to alert the warehouse employee when a new sales order is created by a sales employee. Our client wants the warehouse employee alerted when the sales employee edits the quantity field of an already added sales order.
Kindly assist in designing a query to notify of this change in the Quantity field of the sales order.
DavidTry this one:
SELECT T0.DocNum, T0.CardCode, T1.ItemCode, T3.Quantity 'Old Qty', T0.Quantity 'New Qty', MAX(T2.LogInstanc) 'Times Changed'
FROM dbo.ORDR T0
INNER JOIN dbo.RDR1 T1 ON T1.DocEntry = T0.DocEntry
INNER JOIN dbo.ADOC T2 ON T2.DocNum = T0.DocNum AND T2.ObjType = '17'
INNER JOIN dbo.ADO1 T3 ON T3.DocEntry = T2.DocEntry AND T3.ItemCode = T1.ItemCode
WHERE T0.DocStatus = 'O' and T0.DocType = 'I' AND T1.Quantity != T3.Quantity
GROUP BY T0.DocNum, T0.CardCode, T1.ItemCode, T1.Quantity, T3.quantity -
Issue in creating sales order with ref contract(quantity)
hi friends,
I am creating sales order with reference contract using
"BAPI_SALESORDER_CREATEFROMDAT1"
my issue is with quantity field when i am entering quantity as 1 then it is taking as 0.001
i am also declaring its unit field too but there is no change.
in my program i am taking quantity as parameter.
field description is like this Order qty in sales units - 00009001 corresponds to 9.001
is there any chance of changing the quantity .
please help.There is another similar post...look at those comments. Consider the data types in use...in true numeric fields with decimals, the decimal is implied, so look at how you're sending and/or converting any value.... For instance, if I were sending data to a quantity field described as curr 15, decimals 3, I would expect that I needed to send 1.000 (or perhaps 1000, depending on my testing) in the input to get a quantity of 1.
-
Return sales order( with ref. to Invoice) need to have less quantity
Hi Friends,
Here one issue is coming while creating a return sales order with ref. to invoice.
Example is:
In original invoice an article X is of price 10 having 10 quantity and hence total price 100.
but now customer wish to return only 5 articles and creating this Retun sales order with refernce to this invice
now in return sales order quantity is coming correct i.e 5 but the amount is still the same i.e 100.
But this should be 50( 5*10).
Please can someone help to find the reason why the price is not changing while quantity is changing.
I have already check the copy control but there also setting seems to be correct.
Also when i try to update the pricing via condition tab the price got changed. but that is manually.
Thanks
Punit.Thanks Jignesh,
But can you please tell which pricing input should be the best.
As "price redetermine" option can't be selected as price keep changing.
also i did that for "same price and redetermine tax" but doesn't seems to be working.
Please if you can suggest any option where the price of the article will be same (the old one when article was sold) as proportionate to quantity without redetermining the price.
like article x has qty 10 and price 10 hence amount 100
but later price of article change to 11
then if i chose redetermine price then for five article this will be 55 which is again wrong( it should be 50 as at the time of sale the price was 10)
Hope I made the issue clear enough. Which setting in pricing one can recommend.
Regards
Punit
Thanks -
Sales Order with minimum maximum quantity
Hello SAP Masters,
How to maintain a sales order with minimum - maximum quantity? Is there any programme which i can use to map this scenario?
Thanks in advance
amithi,
we can only maintain minimum order qty. We dont have anything in std. to maintain a max order qty. We need to change the screen in material master. Also update the std. MVKE of material master (Sales view) with a zee field just as we have min. ord qty.
It takes a good bit of customization and also we need very high authorizations from the business owners to do this enhancement.
Else a simple way out is .. create a contract with a dummy customer which can be changed at the sales order level, for that material and make all the sales orde with ref. to that.
Hope this helps. Pl. reward if useful.
Thanks & Regards
Sadhu Kishore -
Restrict manual change in sales order with respect to quotation
Hi All,
The user use to create sales order with respect to quotation. The user can able to change pricing as well as some header and item fields. How can I restrict user for manual change in sales order expect some specific fields.
Thanks.Hi Sunil,
It is possible through configuration better you can post in sd forums.
For the condition type settings , ensure that the manual entries is 'D'. it wont allow any changes in the order.
Regards,
Madhu.
Edited by: madhurao123 on Aug 1, 2011 1:08 PM -
Quantity is different from sale order and delivery
Hi,
Gurus,
Quantity is different from sale order and delivery.
I identified the Material in the sales order, the item category for this material as BOM.
I have also checked the bill of material display header overview. The Base Quantity maintained as 1000 EA3. The SUBITEM maintained in G in the unit field in bill of material display.
Accordingly i have checked the same for material master's additionl data in Units of Measure tab, it is mentioned the basic unit as 1000 EA3 and alternative unit as 600 G.
My client processed the order for 100 QTY. The QTY for the two sub item is 99.601 each in the sale order.
My client Question is why in delivery the Material Qty is coming as 99.730 and the SUB ITEM is coming as 99.330 EACH.
Note:- The material X is maintained in EA3 in Bill of material header overview. I do no how the sale unit came as G for the Material in sale order.
The other two sub item is perfectly coming as G. Because it is maintained in G in the Bill of Material Display.
Guide me GURUS.
Thanks and Regards,
ANANDHello Rumar
I guess you entered the text manually in the sales order. The Ship-to may not be having any text, but the Sold-to may be and it may be coming from sold to.
In transaction VOTXN, check the access sequence for the text type id and see which one takes precedence - one from customer master or from the order by checking the order of accesses. -
Change of Sold to Party in Sales order created with Reference to Contract
Dear Gurus
I want to change the sold to party in Sales Order created with reference to contract.
When I create a Sales order with reference to contract the system copies all the partner functions- Sold to, Ship to, Bill to and Payer alongwith other data.
However Sold to is marked as "Grey" and not changable, rest of the partners can be changed.
There is no subsiquent document created with reference to this Sales Order.
Please advice.
Thanks a lot.
Regards
RaghuHi ,
Please follow the below mentioned step.
1) Create a partner function letts say Authorized SP .
2) Assign all the possible authorised SP (customer) in the contract.
3) When you create sales order with reff to Contract. Put the customer for whom you wish to create a sales order in release partner tab.
Hop this will resolve our problem
Regards,
Krishna O -
Rounding off value problem in sales order
Hi All,
This is related to a rounding off value problem in sales order.
The problem is described by an example which is as follows -
Selling Price of Material A = Rs. 176.76
Excise charged = Rs. 21.80
Total Price = Rs.176.76 + Rs.21.80 = Rs. 198.56
On this total Trade Discount (ZDTD) having access sequence,is calculated at the rate of 4% = Rs. 7.94
But the condition base value after the discount is showing Rs.198.60 instead of Rs.198.56
I want the system to reflect the value as Rs.198.56 intact and it should not round up to the nearest value i.e. Rs. 198.60
Why is this happening? Is it possible to reflect the exact value? If yes what is needed to be done?
The commercial round off is activated for the DIFF Condition Type.
Looking forward to some valuable suggestions.
Thanks & Regards
Priyanka MitraHi Ramesh,
Thanks for your suggestion but the problem has been solved by me.
Regards
Priyanka Mitra -
All changes in sales orders with in a week
Hi gurus,
I want to display a report to display all the changes in sales orders with in a week,
Can anybody help me .If anybody already developed this report can you send to me.
regards,
D..Query table CDHDR and CDPOS with the following fields:
CDHDR-TCODE = VA01 or VA02
CDHDR-UDATE = <specified date range>
Now select from CDPOS where
CDPOS-OBJECTCLAS = CDHDR-OBJECTCLAS
CDPOS-OBJECTID = CDHDR-OBJECTID
CDPOS-CHANGENR = CDHDR-CHANGENR
The rest of the details for the change can be found from the other fields in CDPOS. like tablename, fieldname, old value, new value etc.
Hope this helps.
Sudha -
Changing Price Conditions in Sales Order with SD_SALESDOCUMENT_CHANGE
Hello there!
I need to change the value of a price condition in a sale order ;I'm using the f.m. SD_SALESDOCUMENT_CHANGE.
It doesnt' work as I want, 'cause it creates an other price conditions instead of just changing the price value of the actual one.
Waiting for your tips,
thanks.
This is how my code looks like:
PARAMETER: p_vbeln LIKE vbak-vbeln.
data: st_order_header_inx TYPE bapisdhd1x,
st_conditions LIKE bapicond,
st_conditionsx LIKE bapicondx,
tb_conditions TYPE TABLE OF bapicond,
tb_conditionsx TYPE TABLE OF bapicondx,
tb_return TYPE TABLE OF bapiret2.
st_order_header_inx-updateflag = 'U'.
st_conditions-itm_number = '0010'.
st_conditions-cond_type = 'PR00'.
st_conditions-cond_updat = 'X'.
st_conditions-cond_value = '100'. "Value I want to enter
APPEND st_conditions TO tb_conditions.
st_conditionsx-itm_number = '0010'.
st_conditionsx-cond_type = 'PR00'.
st_conditionsx-updateflag = 'U'.
st_conditionsx-cond_value = 'X'.
APPEND ls_conditionsx TO tb_conditionsx.
CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE'
EXPORTING
salesdocument = p_vbeln
order_header_inx = st_order_header_inx
TABLES
return = tb_return
conditions_in = tb_conditions
conditions_inx = tb_conditionsx .Get the conditions records first from the Sales Order with BAPI BAPISDORDER_GETDETAILEDLIST
CALL FUNCTION 'BAPISDORDER_GETDETAILEDLIST'
EXPORTING
i_bapi_view = lw_bapi_view
TABLES
sales_documents = lt_order
order_conditions_out = lt_conditions_out.
Then populate the conditions internal table with the data that you get from the previous code
move-corresponding lw_conditions_out to lw_order_conditions_in.
lw_order_conditions_in-cond_value = '100' " the value that you want to modify
APPEND lw_order_conditions_in TO lt_order_conditions_in.
CLEAR lw_order_conditions_inx.
lw_order_conditions_inx-itm_number = lv_kposn.
lw_order_conditions_inx-cond_st_no = lw_conditions_out-cond_st_no.
lw_order_conditions_inx-cond_count = lw_conditions_out-cond_count.
lw_order_conditions_inx-cond_type = lw_conditions_out-cond_type.
lw_order_conditions_inx-updateflag = 'U'.
lw_order_conditions_inx-cond_value = lc_x.
APPEND lw_order_conditions_inx TO lt_order_conditions_inx.
You didn't populate the fields cond_st_no and -cond_count. Then just call BAPI SD_SALESDOCUMENT_CHANGE to change the Sales order.
Hope that helps.
Erwin -
Assembly to order: change in sales order with change in Production order
I want to activate change in the sales order data when a production order(which is created w.r.t the sales order) data is changed (Strategy 82 used); I have de-activated "No Update" for the corresponding requirement class 201; also the material for which SO created ,is not a part of any Delivery group.
But when I am changing the production order (date/qty.), SO isn't getting updated accoringly.
Please tell me the reason why it isn't happening!!Hi
The sales order requirement can be made as the production order receipt once you save the order in the system.
so it is possible to change the receipt according to the sales order reqmt if any changes made in the sales order,
in every entry or changes in the sales order ( if you use the stategy 82) . in back end system explode the BOM and the create the production order as per the order reqmt,
even while you do the changes mad in the sales and save that time sytem re explode the BOM once again and change the production order qty.
but if you change the production order , system not re run or explode the BOM , Routing . such setting is not made in the system . so obviously updation will not happen for the sales order .
Edited by: raj on Jun 9, 2009 11:22 AM
Maybe you are looking for
-
I'm getting an error message on Windows 8. Missing apple application support. Itunes will not install. Please help!!, I'm getting an error message on Windows 8. Missing apple application support. Itunes will not install. Please help!!
-
It's very sad that after 8 years of loyalty fios will not honor my contract for another 2 years. Optimum is more then happy to take 11,000 dollars with of business the next 8 years or so .. Really fios you can't cut a loyal customer a break ! But wil
-
How to make available certain features available to a particular user group in APEX.
Hi I am trying to make available certain features like (updating/viewing some fields) to a particular set of users. Our requirement is to use SSO for signing in. So when a particular user logs in she/he will be allowed to update or view only certain
-
How to set the running time of Thread??
Hello all i am new and fresh student to learn Java. i want to set a limit time to run a thread.
-
How to use all the functions on my Bootcamp/windows 7 side?
Hello, Soooo I have an apple desktop running osx 10.4.8 i think, and recently my keyboard got coffee spilt all over it. 3 months later I have brought a new one, but what I didnt realise that its a completely new updated one.... so when I connected it