Sales order # on Invoice
I need to extract the sales order number from the comments field on A/R invoice. We create the Invoice directly from the Sales Order without using the Delivery document. It appears to always be the last text in this field. I used this query but it returns the sales order # for all the invoices. How do I get it just for the invoice that is currently in view.
SELECT RIGHT(Comments,5) FROM OINV
Thanks.
In a formatted search you can refer to the current Remarks field by the
$[OINV.Comments]
expression.
Similar Messages
-
Importing Sales orders and Invoices thru DTW
Hi every one,
I am facing a unique problem when using DTW to import sales orders and invoices through DTW.
I am using the two templates- Documents and Document Lines. But the imported Invoice or the sales order(In both cases) the dicount field in the row is taking a negetive discount value. Let me elaborate....
1. I am taking a BP which has been alloted a Particular pricelistcode in the BP Master.( say it be Purchase price).
2. Now In the Doc_lines Template I have put the value in the price column- (eg. Rs. 500).
3. Now the itemcode used in the template is already having a masters and the prices are also defined in SAP B1. Say the Purchase price defined for the item is Rs.400
4.When I am importing the order/nvoice then the discount field in the row automatically takes a value of -25%, the unit price has the value Rs.400 and the Total Field shows Rs.500.
( this Implies that the price I have suggested to Import i.e. Rs500 is some how not taken by the system. The system takes the price defined for the BP and then adjusts it with the price suggested by the user during import) So a negetive discount is taken.
On the other hand if the same procedure is followed for an item where the prices are not updated in the master data then there is no such problem. the unit price field reflects the price which is given in yhe template.
please suggest a way to get out of this problem.Hi Debraj,
Try the following..
In Admin > System init > Document Settings > General Tab ..Calculate the Row total using Unit price ....... leave this unchecked
Also, at the Document_lines template fill the discount column with 0
Suda -
Report to list manual changes to conditions in sales orders and invoices
Hi experts,
Is there a Standard Report to list the manual changes of pricing conditions in sales orders and invoices?
Should be a selection on the field KONV-KMPRS.
Please advice.
Rgds,
PriHi priya,
In the Sales Order,Select Environment and then Changes to See all Changes made.
Follow the Same procdure for Invoice also.
There is no Standard report as such to see the changes.
Thanks,
Neelima. -
Reg:User-Exit In Sales Order to Invoice
Hi All,
I have An requirement that to create automatic sales order and invoice in one go, i have used BAPI_SALESORDER_CREATEFROMDAT2 to create sales order and bdc invoice to create invoice its worked fine.
My problem is now i got an requirement as after creating sales order it should not create invoice as such because they will manually check whether the sales order is correct then only i should proceed to invoice also they need the option to create,change,delete sales order and same too invoice how can i acheive this scenario through user exits?
Since am new to user exit can any one tell me how to use user exits and what user exits need like this scenario?Hi Suresh,
For sales order following user exits can be used. These are available in include MV45AFZZ.
USEREXIT_DELETE_DOCUMENT : At the time of deletion of sales order
USEREXIT_SAVE_DOCUMENT : At the time of updations or creation of sales order.
Following are the user exits available in smod.
SDVFX007 User exit: Billing plan during transfer to Accounting
SDVFX008 User exit: Processing of transfer structures SD-FI
SDVFX009 Billing doc. processing KIDONO (payment reference numbe
SDVFX010 User exit item table for the customer lines
SDVFX011 Userexit for the komkcv- and kompcv-structures
V05I0001 User exits for billing index
V05N0001 User Exits for Printing Billing Docs. using POR Procedu
V60A0001 Customer functions in the billing document
V60P0001 Data provision for additional fields for display in lis
V61A0001 Customer enhancement: Pricing
Please check this exits which will help you for your requirement.
Thanks,
Naveen Kumar. -
How to create Sales order and Invoice in Foreign Currency
Dear All,
What are the procedures I have to do to create the sale order and Invoice in Foreign currency.
Is it enough if I maintain the currency in the Customer Master and Excahge rate OBBS.
or
We have to do someting in the Sales order (Change the currency document header level)?
Kindly explain.
Regards,
MullairajaDear Mullairaja
Under customer master you can maintain currency eg. usd, eur etc. that will do.. (hope you have maintain diift. Dist. Channel for Export sales and maintain Recon A/c for export revenue.) This will copy to Sales order.
Under t.code OB08 we maintain the Currency Exchange Rates which will help for copying control.
Under Displaying Billing document - Accounting - you can click on Display Currency Tab, here you will understand the rate conversion i.e from USD to INR.
Thanks & Regards
Hrishikesh K -
Creation of u201CHeader Textu201D in sales Order and Invoice
Dear friends,
Can any one guide me the complete configuration settings that are required for creation of u201CHeader Textu201D in sales Order and Invoice. Please help me to overcome this issue.
Regards,
Bhanu.Hello Bhanu...
Hope you are aware of the configurations you need to maintain for the Text determination.Anyway, herewith are the steps that may help you to accomplish your requirement.
Text Determination procedure for sales document header:
Text can be determined at sales document header level or it can be imported from customer master. The process is...
Define Text types:Path: Imgsales and distributionbasic functionstext controldefine text types
Select sales document header. Click on text types go to new entries and define text types. For Eg:Z1
Define Access sequence:
Select sales document header
Click on change icon
Click on access sequence control button under dialog structure
Go to new entries and define access sequence number with description.Ex: 55
Save it and exit
Define text determination procedure:
Go to new entries
Define text determination procedure.Ex: ZX save it and exit
Assign text id's to text determination procedure:
Select your text determination procedure(ZX)
click on text id's in text procedure control button under dialog structure
go to new entries and maintain entries. Text id:assign text id (Z1) that we defined in the previous step
Specify sequence No-10
Check Reference: this indicator specify that the text is reference or copies from preceding object
Text in obligatory: text will be displayed during copying. the value of this field specifies whether text is obligatory or not and if it is obligatory the how it is to be displayed
Apart from this... you also have to maintain the text in the Customer master as mentioned in the previous mail..
For this you have to maintain the customer text.Do the following steps.
1. Go to Customer master, Choose from the Menu Extras --> Text and mention the text
2. Then in a sales order automatically wehn you are entering that sold to party..the header message will be appearing..
In a nutshell i would request you to check weather you have maintained the Sales-Customer text KNVV and also that you have maintained all the required customizing settings for the text procedure, access sequence etc were completed....?
Also make sure that the text type is also inclueded in the text determination procedure of the sales document header...
Note: If all the settings of text determination exists and still if the text is not appearing then In sales document Header Text procedure, select sales header procedure, then select Texts in procedure. Check for the Header note, No. box is checked. This check mark ensures text is to be displayed when it is copied..
Its should be working if all the requried setting are made....
Reward if this helps..
Thanks,
Safeer Rahman -
Text copy from customer master to Sales order and invoice
Dear friends,
when i maintain the text in the customer master ther needs to copy to sales order and from sales order to invoice.
Can you please guide me how to do this config
Thanks
Raju.Dear Raju,
First you need to do the Text determination for all areas(i.e Customer Sales and distribution,Sales order header,delivery header and billing header) through VOTXN transaction.
-->Create the Customer text ID under Object KNVV
Maintain the text for Text ID in the customer master >sales area data>Extras-> Text
To copy the customer text to the sales order you need to keep KNVV table as Text object in the sales order text access sequence for the text ID.
If you want to copy the sales order header text to the invoice header first you need to copy the sales order header text to the delivery header from delivery you can copy to invoice.
When you want to copy the Text from Sales order to delivery the Access sequence will place a role
If you want to copy the sales order text to the delivery document The Text Object should be VBBK in the delivery Header Text determination access sequence for that Text ID
Again you can copy the text from delivery to Billing document through checking the Delivery Text field in the billing document detail screen (Top most bottom of the screen).
Go to VOFA transaction select your billing document type then go in to the details here you can find the Delivery Text field you just check that check box.
Now system will copy the sales order header text to the delivery header then it will copy to the invoice header.
I hope this will help you,
Regards,
Murali. -
Hide the cost and margin fields on Sales Orders and Invoices
Hi all,
I need to hide the cost and margin fields in Sales Orders and Invoices. We sell our products to our employees sometimes, hence we don't want them to know cost and margin information.
Can this be done?
CheersGo to VOV7 & as per the Item category ,de - select the Check Box Determine Cost.
Else remove the Condition Type VPRS & Margin Condition type from the Pricing Procedure
Best Regards,
Ankur -
Is there any settings in CO to stop the Sale Order or Invoice Document
The Invoice would not post to accounting when created as the material did not have a standard cost.
I created a cost, re-dated the invoiced and released it from VFX3.
When I looked at the PA entries I saw that the group cost entries to PA were okay but only the cost component (raw materials) of the legal cost had posted. The legal cost of goods sold was blank. Looking at the billing document I see that the VPRS condition is showing as an error with zero value. This explains why no PA entry for it was made.
Can anyone tell me why the condition wasn't corrected when the cost was created and why the invoice was released from VFX3 with an Condition error uncorrected.
Is there any settings in CO to stop the Sale Order ot Invoice when there is an error in sale order or invoice.
Thanks in advanceHi
To stop the sale order in the absence of Std Cost - use exit MV45AFZB
To Stop the invoice - CReate a Costing key in KE40 and check "Issue error msg if no cost estimate found"...
Also, you can redetrmine your pricing during billing to update VPRS
Ajay M -
Change of Ship to Party on sales order after invoice
Hi all,
I have created a sales order, created a despatch advice and then created an invoice. After that i opened sales order and changed ship to party there. System is allowing me to change ship to party on sales order after invoice. I want that system should not let me change ship to party on sales order after invoice.
How can i do that as this is an audit issue as we have different prices for different ship to parties.
Please respond.
Best Regards,
AI.Hi
You have two options
1. create a transaction variant in T.code SHD0 for VA02 and make the field as display in the variant. But remember that you will not be able to use standard T.code VA02 after this, you need to make and use a "Z" t.code like ZA02
2. Take the help of your ABAPER and ask him to find a screen exit in the sales order PBO module, where he will be able to grey out the ship to party field.
Hope this helps
Chandra Kiran -
Sales Office copying from Sales order to Invoice ( order related billing)
Hi
In sales invoice (vf01) is there any field for Sales Office.
In order related billing . how we can copy sales office from sales order to Invoice.
Regards\AdnanHi Adnan,
In Invoice you can find Salees office filed In the Item data >in the Item Detail tab>under Sales Order Data here you can get the sales office which you enter in the sales order.
I hope it will help you,
Regards,
Murali. -
Cannot delete sales order when invoice is canceled
Hi guys,
I have this problem. Proces is defined with two document: sales order and invoice. I have canceled invoice
with VF11 and set u201CReason for rejectu201D in sales order but status overview is not set as u201CCompletedu201D.
I cannot delete sales order, what is the problem any idea??
Thanks,
NihadThis is overview of the status:
Standard Order 27057
Sold-to 400000 proba
Status overview
5 Current hdr status Everything rejected
Total processing Open
Rejection status Everything rejected
5 Ord-related bill.st. Not invoiced
Invoice 90012921 14.10.2008
Cancel. Invoice (S1) 90012986 14.10.2008
Completeness Complete header data
Billg doc. complete Complete header data
Current item status
ItemNo Material
5 000010 Otkup tendera 1,000 PC Fully rejected
Total processing Open
Reason for rejection 10 Unreasonable request
Rejection status Fully rejected
5 Ord-related bill.st. Not invoiced 0,000 PC Billed 1,000 PC open
Invoice 90012921 10 14.10.2008 1,000 PC
Cancel. Invoice (S1) 90012986 10 14.10.2008 1,000 PC
Completeness Complete item data
Billg doc. complete Complete item data -
Sales order to invoice AR flow, SD involved
hi,
I have to give demo to my client on AR.
Its a full flow from Sales order to till the money deposited in our bank account.
For this process a sales order, delivery, invoice , customer, gl account, and bank shold be involved.
I hope i explained the issue clearly ,, if still any info needed ,, get back to me.
Thanks in advance
ThurlaHI,
I want full flow from selling of goods to till we get the money deposited in the bank.
In that process a sales order, delivery, invoice documents should be involved.I guess all r that in SD module.
Thats the core requirement and anyways there will be a gl a/c, customer and a bank will be involved in this process.
I hope the query is much clearer
Thanks
Thurla -
Sales order to invoice ... using web service
I am trying to take the released sales order all the way to invoice.
Sales Order > Release > Delivery Propsal > Release > Invoice Request
Once I am at Invoice Request the status of my sales order (invoice) is "Processed" when it should be "To Be invoiced"
I am not clear on this:
When I am at Work Center : OutBound Logistics > Delivery Control: Delivery Proposal
How and which web service do I use to "Post Goods Issue"(in the GUI when "Post Goods Issue" button is clicked it requires you to fill out "Actual Quantity").
In this screen shot:
the first item was create through the GUI use the Devlivery Propsal "Post Goods Issue" button.
the second item was created through ManageSalesOrder web service.
Any feedback will be greatly appreciated!HI,
I want full flow from selling of goods to till we get the money deposited in the bank.
In that process a sales order, delivery, invoice documents should be involved.I guess all r that in SD module.
Thats the core requirement and anyways there will be a gl a/c, customer and a bank will be involved in this process.
I hope the query is much clearer
Thanks
Thurla -
Tracking Sales Order/Delivery/Invoice Status
Hi Experts,
I have a requirement where i need to track the status of the Sales Order/ Delivery/ Invoice without any customized program for achieving this.
Is there any way we can track the status of the above said Sales Documents without writing a program for it?
Kindly share your expertise on the same.
Thanks in advance.
Regards,
KeerthiHi,
Use FM 'SD_DOCUMENT_FLOW_GET'.
pass sales order no. & item no(optional)
and you will get all flow documants for that sales order i.e. delivery, GI,invoice details along with all details including status.
hope this will be useful for you.
Regards
Edited by: Vishal Chavan on Jul 9, 2009 8:23 AM -
Apply different exchange rate types in sales order and invoice
Dear Experts,
How to configure different exchagnes in sales order and invoice?
For example, use average exchange rate in sales order but current exchange rate in invoice.
Thanks!
Regards,
Wang HuiHi all,
I also need to apply different exchange rate between sales order and Invoice.
E.g:
condition type currency (komv-waers) sales document currency (komk-waerk) company currency (t001-waers)
In my example, each of above currencies can be different:
komv-waers = EUR
komk-waerk = USD
t001-waers = GBP
I tried through VTFL transaction but it is not working in all situations cause VTFL allows me to manage situations where
komk-waerk NE T001-waers
But I need to convert condition types where
komk-waerk EQ T001-waers but
komv-waers NE komk-waerk
Can I manage this situation through SAP standard and/or VTFL transaction?
Is there any other solution?
I really hope you can help me
Thanks a lot
Regards
Andrea
Maybe you are looking for
-
Question on Grouping()
I am using Grouping function in one of my select statement. Now In the statement there is a substr on a particular column within the grouping. If the number of characters to be returned by substr is used as a bind variable then the query returns "not
-
How to return to previous page
I have a form A. Once filled out, they should subnmit to insert the data into a table. However, they can fill out the form and not submt. There is a icon in the upper left that will take them to another form B (comments) to fill out. If they submit f
-
Can we change basic infocube to Transactional cube ?
Hi, Can we change basic infocube to Transactional cube ? If so, how to do it? thanks murali.
-
Mac user - cannot find 'empty cache' in version 5.0.1
there is no "options" link in the tools menu - cannot find the cache anywhere! ???
-
Return Consignment Goods (on customer floor) to My inventory
Gurus' PLEASE HELP! I have four damaged items sitting on my consignment customers floor. I want to bring those items back into my inventory so that I can destroy them. What is the transaction I use for this? Thank you - points will be rewarded for