Update button on sales order
hi everyone
maybe this is a simple problem...not sure.
after updating sap 2007 to patch 41, the system seems to prompt me to click on the 'update' button everytime i open any sales order, even if i dont make a change on it. any reason why this is happening? any setting that i need to put off?
thanks
Prem,
It is probably being caused by a Formatted Search on one of the Fields on the Sales Order. This happens when the Formatted Search is set to Auto Refresh > Refresh Regularly.
Please go to View > click Search Field...This will place a magnifying glass icon on the top right cornor of all the Fields which have a Formatted Search...This is for easy identification.
Once you find the Formatted Search....Uncheck Refresh regularly and see how it works
Suda
Similar Messages
-
How to add a button in Sales Order screen?
Hi,
Basically I want to add a new button "Show My lookup" in sales order screen and when clicking the button I want to show a form.
Please anyone tell me how to do this?.
thanks in advance
MinaHere is a sample ItemEvent that adds a custom button to Sales Order Entry, and loads a form from XML when it is clicked. Make sure you give the forms unique identifiers when you create them - the sample just uses a hardcoded value.
Hope it helps,
John
Private Sub sboApp_ItemEvent(ByVal FormUID As String, pVal As SAPbouiCOM.IItemEvent, BubbleEvent As Boolean)
On Error GoTo ErrorHandler
Dim sboForm As SAPbouiCOM.Form
Dim sboItem As SAPbouiCOM.Item
Dim sboBtn As SAPbouiCOM.Button
Dim objXMLDoc As MSXML2.DOMDocument
Dim objXMLErr As IXMLDOMParseError
Dim objXMLElem As MSXML2.IXMLDOMElement
Dim strIdentifier As String
If pVal.EventType = et_FORM_LOAD And pVal.Before_Action = False And pVal.FormType = 139 Then
'Add Custom Button
Set sboForm = sboApp.Forms(FormUID)
Set sboItem = sboForm.Items.Add("AZU_BTN", it_BUTTON)
sboItem.Top = sboForm.Items("1").Top
sboItem.Width = "80"
sboItem.Left = sboForm.Width - 105
Set sboBtn = sboItem.Specific
sboBtn.Caption = "Custom Button"
End If
If pVal.EventType = et_ITEM_PRESSED And pVal.Before_Action = False And pVal.ItemUID = "AZU_BTN" And pVal.FormType = 139 Then
strIdentifier = "AZU_XXX" 'You should set this to a unique value each time
Set objXMLDoc = New MSXML2.DOMDocument
objXMLDoc.async = False
objXMLDoc.validateOnParse = True
objXMLDoc.Load (App.Path & "\Config\AZU_CUSTOM.srf")
Set objXMLErr = objXMLDoc.parseError
If (objXMLErr <> 0) Then
MsgBox "Failed to load XML screen definition."
Exit Sub
Else
For Each objXMLElem In objXMLDoc.getElementsByTagName("form")
objXMLElem.setAttribute "uid", strIdentifier
Next
sboApp.LoadBatchActions objXMLDoc.xml
End If
End If
Exit Sub
ErrorHandler:
MsgBox Err.Number & " " & Err.Description
End Sub -
Hi,
I came to know Bapi_Saleorder_Simulate can be used for availability check and update an existing sale order.but there is no sample program explaining the process.I have tried this by passing parameters ORDER_HEADER_IN , ORDER_ITEMS_IN ,ORDER_PARTNERS and ORDER_SCHEDULE_EX(for getting details),also i have assigned the sale document number ,custom document type(ZSO) in ORDER_HEADER_IN . while executing the BAPI I am getting the error external number range is not assigned for the document type ZSO . I am confused on seeing this error. It is possible to do availability check for existing sale order using this BAPI. Please explain how to achieve this.It will be really helpful if it is expalained with an example.
Regards,
ShanmugaHello, I think you may have been misinformed about this BAPI updating a sales order at item level. As far as I understand it this BAPI can be used to simulate the creation of a sales order which obviously would include and ATP check. This is why it is giving the error because it is simulating creation but you are entering a value in a field that should be automatically generated (i.e. the sales order number). For change the sales order at item level have you looked at BAPI_SALESORDER_CHANGE? I pretty sure this BAPI both updates sales order (header or item level) and can do an ATP first.
Points are always welcome if you feel an answer has been helpful. -
Services for Object button in Sales Order
Hello Experts,
We are not getting Services for Object Button in Sales Orders. Actually we need to attach some documents to Sales Orders.
Thanks in advance.
Mamta.Dear Friend,
If you are not getting Services for Object Icon in Sales Document, then follow this:
T-code - SU01 u2013 Here Enter User ID & click in change icon.
Then click on Parameters Tab & Add Parameter u2013 SD_SWU_ACTIVE. .
This will definitely solve your problem...
Thanks,
Jignesh mehta -
Add buttons in Sales Order's Addtional Data B Tab
Hi All,
I want to add buttons in Sales Order's Additional Data B tab. I had try to draw a creen in painter and push a button in the screen, also assign a fcode to it.
I had try to test the button, and I find that, it could work, but after it's action, a error msg give out and said there are no this request function.
I think it may cause by the fcode passing between screen. However, I don't know how to fix it. Any sample coding could for me reference?
Thanks!Hi,
yes u can add the button with Fcode on Additional data B screen.But u have write the code in the PAI of the screen,inorder to do something,for that u need to have accesskey also...i hope while adding fields to Additional data B screen u ahve used teh accessskey for adding..zfields
Regards,
Nagaraj -
No condition update from the sales orders exist - VK322 Message
Hello All,
I have activated " Condition Index" & " Condition Update" flag for one of my discount condition type and then created it's condition record along with scales on three levels. The condition type which I mentioned above is set as " Value Scale" in Scale Basis for checking the document value and apply the applicable discount percentage.
I have created three sales orders wherein the discount percentage is getting applied as per my condition record ( so, the document value is getting accumulated and compared with the condition record correctly ) but when I try to check the cumulative values ( ctrl +shift + F4 ) from the condition record, I get information message " VK322" mentioned in the subject.
VK322 -
No condition update from the sales orders exist
Message no. VK322
Diagnosis
The following causes are possible:
1. There are no sales orders for the condition record that you selected.
2. Updating condition records in the sales order entry is not active.
Procedure
Concerning 1:
Check the sales orders created for the condition record that you selected.
Concerning 2:
Activate the updating for condition records in the sales order entry.
I have checked everything in SPRO for this but could not find anything which can give me a clue to resolve this problem, especially " Concerning 2" part of this message.
My requirement > To be able to see the cumulative values from condition record.
Also, in which table the accumulated values get stored?
Appreciate your expert advise on this issue.
Regards,
Hrishi
Edited by: Hrishikesh Bhalwankar on Sep 13, 2011 1:59 AMHello Everyone,
I would like to thank each one of you for giving valuable inputs in regard to my requirement and I would like to let you know that I am able to achieve the results as per the expectation.
I would also like to share some key things which I did ( with the help of all your expert inputs ) due to which the requirement is met:-
1. Activation of ' Condition Index, Condition Update' in V/06 for the discount condition type.
2. Maintained ' B - Value Scale' in Scale Basis for the said condition type in V/06 - my requirement was to check against a value to apply the necessary scale base percentage.
3. Activation of ' S071' info structure via OM01
4. Condition record maintenance as per the required scales.
4. Written a new routine to check the accumulated condition base value from S071 along with the current document condition base value.
5. Put this routine in ' Scale Formula' in V/06.
This is giving me the perfect results for the correct application of the discount.
Just last question - How to re-organize the S071 info structure as I tried to re-organize it with Standard Program ' RV15F001' but it is not re-organizing this info structure... Any idea on this?
Thanks a lot friends for all your advice...
Regards,
Hrishi
Edited by: Hrishikesh Bhalwankar on Oct 11, 2011 2:11 AM -
Update LineNum in Sales Order line Details
Dear All,
I have imported a sales order into a database from another database on SAP B1 2005A using DTW. The sales order has only one line item.
However, after importing, the linenum of the target table RDR1 is 0 while the source has it as 1. All the other fields have been updated with the correct data.
I am trying to update the same sales order's LineNum to 1 using DTW with the 'update' option ticked and the process runs successfully. However upon checking the database I find out that it has added another line item with the same details. Can a linenum field be changed/updated? The reason behind my need to change the linenum is because after trying to import a sales delivery linking it to that sales order it gives me an error :[DLN1.BaseEntry][Line: 1] 'No matching records found [ODBC:2028]'.
Kind Regards,
AsifAsif,
The number of lines in the Sales Order does not neccesarily co-relate to the line number.
Just a simple example:
Create a Sales Order....Add a line item..add Sales Order
Open the same sales order..delete the line item (delete row) and add the same item / another item. Though the Sales Order seems to have only one item..now if you check RDR1 the linenum would be 1.
The architecture of SAP B1 is to generate a new linenum each time you add a row.
Thats probably why you are seeing the difference.
If you want to match the target linenum. simply delete the row and add the same line item and Update SO.
DTW will not update the linenum as it is system managed.
My recommendation for your situation is - if you do not have the same item more than once on a Sales Order - then it is better to get the BaseLine from the Database you imported the Sales Orders to.
Let me know if you need any further direction with this.
Suda -
Hi All,
we have this requirement as below:
Update price master data every half year, once the price is updated, all price on the sales order should be refreshed. Does SAP have standard function to update price on sales order? We don't want to refresh sales order one by one, after the price master is updated.
Thank you!Hi,
You can try with t-code MASS but you'll not have an option of Pricing Update over there, but I can suggest you one wayout in this situation as below:
- Go to MASS
- Select object type BUS2032
- Select Sales Order Header data
- Click on fields
- You will see Pricing Date field
- Select and execute
Logic behind this option is as below
- your old sales orders would have old pricing date on which old pricing records were existing.
- once you prices are updated half yearly and if you change the pricing date system will again look for the condition records and then it will update the prices as per new pricing date
I have not done this actually, but this may work because logic seems to be right.
Hrishi -
After creating deliveries, the Bill-to and payer can be updated in the sales order.
After creating deliveries, the Bill-to and payer can be updated in the sales order.
Is there any standard customizing avaiable which will not allow the change of bill to party and payer in Sales order after delivery creation?Either via sdh0 you can set the field as non-editable or in configuration, if you set the field for BP as not modifiable in Partner Determination for Sales Order Header, then users wont be able to change the partner function in sale order.
G. Lakshmipathi -
Disable / Deactivate Update Price button in Sales order creation
Hi Gurus,
My requirement is to disable the 'Price Update' button in the item --> conditions screen while creating or changing the sale sorder. A set of users should not be able to update the prices using 'Update Pricing' button. Is there any way to disable/deactivate this button in VA01 / VA02?
Regards,
SamHi Sam,
I think you can control through Authorization for the set of users to update the price in the sales Order. I think it will solve your requirement.
Regards,
SK -
Product Hierarchy Update on Existing Sales Order
Hi,
My company business process allows sales order to be created up up to 3 months before shipping. Prior to shipping, material can have the Product Hierarchy changed and pricing can also be updated for the new product hierarchy value (Pricing record with Product Hierarchy in the search key). Our company also want to make sure we bill customers with new (correct) price.
In order to support pulling in the new price for our existing backlog (orders), so that we don't mis-bill our customers, we need a way to update the product hierarchy value on the existing sales orders that have not been shipped. Our current solution is to implement some custom logic in the Sales Order Update user exit, so that when the user clicks on the "Update" button on the Condition Screen on VA02 to manually update price, the custom logic will be invoked to re-pull the Product Hierarchy from the MARA table to overwrite the old Product Hierarchy on the sales order. Next, pricing will perform the search for new price using the updated Product Hierarchy value.
This solution has worked okay for us, but we are trying to evaluate if there is any other better way to accomplish this same request. We would prefer to implement something that is offered by SAP via configurations. We try to stay away from customization as much as possible.
Have you ever experienced something similar or do you have any idea how to support this kind of business process?
Thanks very much.Hi Hans,
We don't want to wait for until billing to update price since we have the CI created at the time of delivery not billing. CI document also needs to display correct pricing for custom purposes.
Also, we would like to keep pricing on the Sales Doc. and Billing Invoice the same. This is why we would like to trigger re-pricing on sales order. And when pricing is re-invoked, we need to re-read the PRODH data to ensure new price is retrieved.
Thanks for your response.
Hannah -
How to update Purchase Request automatically when update qty in sales order
When we create a sales order, the PR will be automatically generated.
Now we have a requirement to change the order qty for the sales order. also the PR should be automatically changed.
With VA02, the process is perfect.
But by using BAPI_SALESORDER_CHANGE the SO is partly changed ( order qty is changed but the confirmed qty is not changed) and the PR is not changed.
So can you advise me how to update the PR by using the BAPI_SALESORDER_CHANGE, which indicator should be defined?
I've read the BAPI document but no such information.
Regards,Hi Yang,
Workflow is the best approach for any issue related to business objects.
Since you want call FM BAPI_SALESORDER_CHANGE, it will change SO. It means everytime any SO is changed there will an event being triggered.
object type: BUS2032
event: Changed
simple solution:
1. Please create object type (SWO1) and its super type should be BUS2032.
2. Add your own method and attach your custom FM which actually updates the qty & PR)
3. Create Task (PFTC_INS)
in basic data:
- provide object type which you have created
- provide method which you have added
goto triggering events tab
- Choose Object Category as BOR object type
- provide object type (better give BUS2032)
- provide event as CHANGED
Please have look into very nice video blog which helps you to create your workflow.
blog: [Creating your first SAP Business Workflow]
Regards,
Sukhbold Altanbat. -
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?
-
MC-q report is not updating the missing Sales Orders, Deliveries andInvoice
Hi Friends,
Before setting the configuration of MC-q report I have created some Sales orders, deliveries and Invoices
But I want to update the missing above documents in MC-q report sales report.
Could you please suggest me how can I update all the missing details in MC-q report report (Sales Orders, Deliveries and Invoices)
Thank you for your support
Best Regards
AmjathpashaHello Amjathpasha,
You will need to perform a rebuild of statistics with transactions OLI7, OLI8, OLI9.
I hope this helps.
Best regards,
Ian Kehoe -
Batch updation error from Sales Order
Hi All,
I am facing a problem in my addon while Adding/Updating Sales Order.
In my addon, after adding or updating Sales Order, checking the Pval.ActionSuccess property , I am updating the batch allocation for the quantity in the order into IBT1 using DI API. It was working nice. But in one company database it is causing issue. Sales Order is getting added/updated. But after that when the batch is updated using DI API, it is showing the error below.
Another user has altered the quantity of batch 000001
in Whse 01 in row 1 [(----) 29-9]
Please help me in this issue.
JishaHi Jisha,
I would change the trigger on which you decide to change the batch. You may correct me if I am wrong, if you wait for a pVal.ActionSuccess, I'd say this is a user interface action. Maybe there is a timing difference. When you are waiting for DI-API to complete I try something like this:
RetVal = Order.Add()
If RetVal = 0 Then
'You Batch actions here
End if
Hope this helps.
Kind regards,
Winfried Tiemessen
Maybe you are looking for
-
How do I connect a 2013 Macbook Pro Retina to an Epson Power Lite 61p LCD Projector?
I am trying to attach an Epson PowerLite 61p LCD Projector to my 2013 Macbook Pro Retina, but I cannot find which type of adapter I need. I would assume whichever adapter is required it must connect via thunderbolt. However, I do not know if the requ
-
I previously asked about the problem with my graphics skipping frames, and you have made me think that the PSU is my problem. So i restated the info below. What do you recommend? Is it imperative that I find a PSU greater than 350W for my new PC? Is
-
Problem with movie purchased from iTunes
I purchased 2 movies over the computer from iTunes and tried to sync them on my iPad 2. The first synced fine. The second says it is syncing but will not display on the list of movies on my iPad. I have tried to repurchase it directly from my iPad
-
NCo 3 RfcServer: TransactionID in called function always NULL
Hello, using NCo 3 (v3.0.1, x64) I wrote a RfcServer which receives IDocs via the function "IDOC_INBOUND_ASYNCHRONOUS". When the function is called by SAP the TransactionIDHandler seems to work fine as these functions are called together with a Tran
-
How to add path to "java.library.path" property?
I use this command to set the "java.library.path" property: java -Djava.library.path=./libs HelloWorldBut it will overwrite the default value. How can I add the path "./libs" to the default value of "java.library.path"?