Pricing date on sales orders
Hi Gurus,
I have the following requirement: When the user is creating an order and put the Request Delivery Date equal to "tomorrow", the pricing date should NOT be the today's date but it has to be "tomorrow" date.
Is there a BADI to be used to recalculate the pricing date at item level accordingly to the Reuqest Date by the user?
Thanks in advance!
Hi Michele,
U will get order guid in parameter IV_REF_GUID. Using this u have to use FM CRM_ORDER_READ and get the item details from order ( ET_ORDERADM_I).
Now loop in the ET_ORDERADM_I and using ET_ORDERADM_IET_ORDERADM_I-GUID
again read the order by passing the above guid to it_item_guid. Here u will get the et_schedlin_i details
for the corresponding item where u will get the requested date (LATEST_TIME_CONFIRMED). Now u
just pass this date to changing parameter CS_PRICING_BADI-PRICE_DATE. This will change the
pricing date for items while saving the order.
Regards,
Pavan.A.
Similar Messages
-
Helllo ,
my pricing date in sales order is based on the requested delivery date....But many times users change the requested
delivery date and the pricing date is changed.I need to have initial pricing date always and never changed.
I think SAP standard dont have solution for this right?
Thanks and best regards
LHai Luis Guilhermo,
In sales order program ,
SAPMV45A
Include : MV45AFZZ
FORM userexit_save_document_prepare
CODE:
CONSTANTS: c_t(45) TYPE c VALUE 'Please enter current date or future date in ',
c_t1(18) TYPE c VALUE 'Pricing date field'.
IF sy-tcode = 'VA01' OR sy-tcode = 'VA02'.
IF vbkd-prsdt LT sy-datum.
MESSAGE e000(zmsg1) DISPLAY LIKE 'E' WITH c_t c_t1.
ENDIF.
ENDIF.
This user exit code will check your pricing date should be equal to or more that system date, else gives error.
Regards,
Mani -
Block Pricing Date in Sales Order
hello guys,
I've a question regarding pricing date in sales order. I want to make pricing date in sales order uneditable for most of the users and only few allowed users will be given access to change it.
So how can i do that?....Do I need to use User exit for it or is there any other solution available.?
ThanksHi Tarun,
You need to go for user exit as per Mr.Eduardo said,in that you maintain a Z table to which user id it should allow to change and
to which it should not,you maintain those details in Z table, according to that system will allow to change the authorized user id
only.
Check and revert
Regards
Ram -
Pricing date in Invoice same as pricing date in Sales order
Dear Experts,
I have a situation wherein i need to maintain the pricing date in Invoice same as pricing date in Sales order. what setting i should maintain in IMG so the default pricing date in Invoice is same sales order pricing date date?
Regards,Hi,
As per my knowledge, there is no need of any configuration. I have tried creating billing doc.
System copies Pricing date from Sales doc. to Billing doc.
Make sure that you have maintained Pricing date in sales order.
You can set Pricing date in VOV8 as to what it should be like Today's date, req. del. date or contract start date
Try once again. It should work
Sagar -
Dear sap gururs
can any body tell me how to freze pricing date in sales order means nobody can change pricing date it should be come today date( sales order creation date ) only. if any one knows plz tell me .
regardsHi,
You ask an abaper to put an error message when a user tries to change the pricing date in the document. Probably userexit_save_document_prepare can be used for this. We can set an error message when that field value gets chnaged, system would not allow the user to change the document.
Regards
Ram Pedarla -
Pricing Date in Sales Order Documents
Where can I get the Pricing Date field for sales order? I checked the input screen, there is Pricing Date at both header and item level, but I couldn't find corresponding field in VBAK and VBAP.
Thanks in advance!Hi
It is VBKD-PRSDT for both.
Reg's
Edan -
Hey
my question is how to change or control the pricing date in quantity contract to sale order. while creating sale order with reference to contract pricing date is copying from contract. My requirment : pricing date should come of that date when we create sale order.
RegardsHello,
Go to VOV8, Under Requested delivery date/Pricing date/ Purchase Order date, There is a Feild for - Prop.f.pricing date
In this feild you have four options:
Blank - Proposal based on today's date
A - Proposal based on requested dlv.date (header)
B - Proposal based on valid-from date (header)
C - Proposal based on contract start (header/item)
Probably in your system, it would be set a C - based on Contract Start date.
Make this feild blank & system will take Pricing Date as Today's (Which is nothing but Sales Order date).
Hope this helps,
THanks,
Jignesh Mehta -
Update the pricing data from sales order
Hello Friends,
we use vk11 to create a combination for a particular condition type pricing so the same will be reflected when we create a sales order.
my requirement.
If the user makes any changes in the price for a paticular condition in the sales order thn the same should get updated in the masters so tht next time if i create sales order for the same combination it should reflect the updated price.
in simple terms i want to update master data for a particular condition if the user makes changes in sales order pricing.
Regards,
SunnyDear Sunny,
in simple terms i want to update master data for a particular condition if the user makes changes in sales order pricing.
It is not possible to update condition record when you change the price in the sales order.
I hope this will help you,
Regards,
Murali. -
Copying Pricing date from Sales Order to Invoice
Hello,
I am trying to copy pricing date at line item level from sales document to invoice. Currently I have a pricing date of 04/02/2015 in sales order line item, but in invoice, the same line item pricing date is coming up to be 04/08/2015. The pricing date is defaulting to when the invoice was created.
How can I change the pricing date of the invoice so that it matches sales order pricing date?
Thanks,
BrijeshHello Shiva,
The line item I am looking at has the item category of Z0N1 (used for Stock item), but when I go into copy control using tcode (VTFA) under item level, I don't see this item category as one of the options for selection. Is that normal?
Thanks,
Brijesh -
Table for getting pricing data in sales order
Dear experts
how to get red mark field data for an ZREPORT in KONV i am unable to get this data
Regards
AbhiHi
yes i checked by step no. but step of this value in not available in KONV
like ZDCM is on 125 step value available and JASS is on 170 value is available but
NET EX MILL PRICE is on 160 and this 160 step is not available.
Regards
Abhi -
How to get the pricing hierarchy based on the delivery date for sales order
Hi,
How to get the pricing hierarchy based on the delivery date for sales order other than system date.
My requirement is to get the Pricing hierarchy based on the delivery date other than system date.
Waiting for kind response.
Best Regards,
BDPHI Sai,
please refer teh document already how to write FM based extration on generic extractors.
and here the logic to find the latest records values:-
-> get the data in an internal table
->Sort the internal table data based from date descending
-> Using READ statement , we can read the first record of the table which is nothign but your latest record.
Regards.
Sakthi -
Pricing after change of delivery date in sales order
Hi,
When i change delivery date in a sales order prices are not recalculated automatically .
I want the prices to be calculated automatically .
thank you.
Ashokhi,
i have this problem, can anyone suggest me, is there any user exit or anything relevant for the solution.
When we attempt to remove the Rejection flag (for any Reason) The system is changing Dates in sales order like Delivery date , Shipping date, GR date to current date this needs to be stopped and client wants to retain old set of dates when rejection flag is removed
waiting eagerly for this solution. if you find send me mail to my id [email protected]
bharadwaj. -
How to read pricing conditions on sales order
Hi
i need to retrive pricing conditions of sales order but before posting sales order
any user exit avialable ...?
also i hv found one user exit in that there is FM EXIT_SAPMV45A_003
But i am not able to read pricing conditions values
also no data is there in konv table coz sales order has yet not been post
so before sales order can i read the pricing conditions values ...
pls guide
if possiple pls provide example also
thanks
TaranHi
The problem is you can't use the KNUMV, because u make sure to get the princing active in the document at run time.
If you want to know the old data you can read the table KONV using field KNUMV, but here you can't know if some modification is done.
U can try to know the field-symbols:
DATA: XKOMV LIKE KOMV.
DATA: FIELDNAME(30) VALUE '(SAPMV45A)XKOMV[]'.
FIELD-SYMBOLS: <TKOMV> TYPE TABLE.
ASSIGN (FIELDNAME) TO <TKOMV>.
LOOP <TKOMV> INTO XKOMV.
ENDLOOP.
Max -
Pricing problem in sales order creation
Hi friends,
My requirement is to create sales order with ref to contract i am using 'BAPI_SALESORDER_CREATEFROMDAT2' , and I am extracting data from konv table to get price through condition record , but i am getting 4 messages
(S) SALES_HEADER_IN has been processed successfully
(E) Condition PR00 is not allowed as header condition
(W) The sales document is not yet complete: Edit data
(E) Sales document was not changed
and i am not getting pricing for created sales order document.
please help.
regards,
Sravani.hi
ZK01 Company Selling Price - 21.86 INR 1 BT - 2360.41 INR for 108 BT( your statement)
This is wrong 21.86 x 108 = 2360.88 and not 2360.41 as written by you
so the calculation of the system is correct
21.86 x 108 =2360.88
1.41 x 108 =153.28
So total 23.27 x 108 = 2513.16 (also 2360.88 +152.28 also is equal to 2513.16 )
you can check in calculator
If ZK01 is showing a wrong vaule 2360.41 instead of correct 2360.88 in your case then you need to check the configuration of that condition type
The subtoatal valuew hich you have written is also wrong because of ZK01
Problem lies in ZK01 check the other controls and rounding profile etc of ZK01 in V/06
Regards
Raja -
Hi All,
We are facing pricing issue for few sales orders.
The pricing is being carried for line items even though there is valid condition record exist at pricing date of line items .
For example we are creating order on 26.10.2010 and Requested delivery date is 01.01.2011.
The pricing date at line tem is 01.01.2011 and condition record is valid only till 31.12.2010.
Still pricing is carried for line item and it is not for all the sales orders .
So could please advice how to overcome this kind of errors?
Thanks in advanceHi All,
We are again facing pricing issue in sales order,the pricing date of line item is not in synchronization with the condition record validity date.
Due to that incorrect pricing is being carried out .
But when we do repricing the error is getting fixed.
So could you please let us what could be the root cause for this error ?
This is not happening for all the orders,for only few orders it happens.
If we create new order for same sold to ,sales doc type the error is not occuring.
Thanks,
Praveen
Maybe you are looking for
-
How to open and save pictures from 1 folder at the same time?
Is there a way to open and save pictures from 1 folder at the same time? I'm creating a vi that resizes the picture but I want to do it with 1 folder at a time... Is this possible? greetings!
-
IPod touch won't connect to iTunes after update
I updated my iPod touch but now it won't connect to iTunes, all I get is the connect to iTunes screen. I followed all the directions for the Apple support including shuting down my iPod, uninstalling all Apple programs from my computer, restarting my
-
Exporting text with a semi transparent background that can be changed in PS or PP?
I'm creating a logo with a semi transparent background that I want to place on top of photos in Photoshop and videos in Premiere. 1. I do not see a transparent option when exporting as a .tiff. Is transparent .png my only option from AI? 2. I will ne
-
I'm having a strange problem with the USB audio output of my PowerBook. The left and right channels are out of phase, both on my USB speakers and my USB headset. The analog output from the headphone jack is fine. The problem seems to have arisen some
-
Hi, From the specification, SMB2 Query Info is defined as -Query_Info { uint16_t structure_size; uint8_t info_type; uint8_t file_info_class; uint32_t output_buf_len; uint16_t input_buffer_off; uint16_t res; uint32_t input_