FMS - formatted search issues on 8.8
After upgrading to 8.8 we are receiving many errors on the red line when opening a new marketing document (quotation or SO for example) with different messages and tables being referenced. They were working fine on 2007 A. These are some of the errors we are getting:
Divide by zero error encountered
Error converting data type nvarchar
These errors reference tables such as Incoming Payments ORCT, Countries OCRY, and Payment Terms OCTG.
What could be different between 2007 A and 8.8 on the FMS?
Thanks for prompt reply.
These are some of the queries called by the FMS:
SELECT T1.[GroupName] FROM OCRD T0 INNER JOIN OCRG T1 ON T0.GroupCode = T1.GroupCode
WHERE T0.[CardCode] = $[$4.CardCode]
DECLARE @CARDCODE AS VARCHAR (15)
SET @CARDCODE = (SELECT $[OQUT.CARDCODE])
SELECT DISTINCT T2.[GroupName] FROM OQUT T0 INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode INNER JOIN OCRG T2 ON T1.GroupCode = T2.Groupcode
WHERE t0.CardCode=@CARDCODE
SELECT ($[$38.U_CloseSF.NUMBER]*T1.SalPackUn) FROM OITM T1
WHERE T1.ItemCode=$[$38.1.STRING]
As mentioned, there are 40 FMS associated with the Quote form, and the strange thing is that they were not giving messager on 2007 A.
Regards.
Similar Messages
-
I have a UDF attached to a Purchase Order, Goods Receipt PO and Batch Numbers for Items. B1 automatically carries the UDF data forward from the Purchase Order to the Goods Receipt PO. However, I am trying to create a Formatted Search that will also bring that data into the Batches Setup transaction when a Goods Receipt PO transaction is being added. Since the Goods Receipt PO record is not yet written when the Batches Setup screen is activated, I somehow need to access the UDF data from POR1 from the Batches Setup screen (OIBT). I don't seem to be able to find a way of writing my query for the formatted search that is able to return the data from POR1 to my UDF in OIBT. Any ideas of how I might be do this?
Timothy,
The values in the Purchase Order / Goods Receipt screen are not available in teh Batch Number screen.
You will need to use a temp table to store the values from the Purchase Order / Goods Receipt screen.
You will set a formatted search on one of the columns of the documents row. Through this formatted search you will insert the data into the temp table and from the Batch screen you will read the values from this temp table
Suda -
How to Define and Use Formatted Search in Sap Business One 2007
Hi
Any Document on How to Define and Use
Formatted Search in Sap Business One 2007.
ThanksHi Manish,
It is Very simple Procedure of defining FMS(Formatted Search)
in SAP 2007B Same as SAP 2005B & SAP8.8 Version
Do this,
->> Open the require Document.
for ex. IF you add the UDF in Marketing Document(Sales/Purchase)
1. Goto the UDF (or) any Default(Original) Field and Click ShiftAltF2.
2. Select the SEARCH BY SAVED QUERY.
3. Assign the FMS Query.
4. Select the AUTO REFRESH WHEN FIELD CHENGES.
5. Select the require Auto refresh field
6. Check the Refresh Regularly (or) Display Saved Values.
Regards,
Madhan. -
Formatted Search Rounding Issue
Hi everyone,
I have a slight issue. I have defined a formatted search on the A/R Invoice that calculates the item price based on a user defined field. The problem is whenever the formatted search runs, it rounds the figure to two decimal places. For instance; the query is supposed to divide a value you put in the user defined field by 50 if you put in 2.25 the value you get is 0.04 instead of 0.045. The query i've used is as below.
Please assist.
SELECT (CAST($[$38.U_pprf.0] AS DECIMAL)/50)Hi Duncan,
Try this FMS in UDF2. you will be get the exact value in UDF2.
for Example:
*Create 2 UDF's
UDF Type -> Unit and Total.
UDF Structure -> Price (or) Amount.
UDF1 -> U_pprf
UDF2 -> U_Item_Price
UDF1 = 2.25
UDF2 = 2.25/50 => 0.045
SORRY Last Query is not correct because that Query will not get Exact Result.
If you want exact value. Try the below Query.
First Assign the below Setup.
->> Administration.
->> System Initialization.
->> General Setting. -> Display Tab.
Assign the Decimal Places (0..6) value.
Price (or) Amount -> 3
IF you assign the setup of Price (or) Amount = 3 in Decimal Places.
Result: 0.045
IF you assign the setup of Price (or) Amount = 2 in Decimal Places.
Result: 0.05
Query: 2
declare @UDF as numeric(19,6)
set @UDF = $[PDN1.U_pprf]
select (@UDF/50)
Result: 0.045
Assign this FMS in UDF2 and Auto Refresh of U_pprf
Regards,
Madhan. -
I need one formatted search for Goods Issue
Hi Experts
I need one formatted search for Goods Issue
ex. I have Issued One item on 20/07/2011
In Goods Issue Line Level one column LstIssDt
when i issue for the first Item My document Date Will be my Ige1.LstIssDt(LastIssueDate)(linelevel)
Now
the Same Item Iam issuing on 23/07/2011
Now In Goods Issue Line Level LstIssDt column shud come as 20/07/2011 when i click formatted search
Similarly For all the Other Items
can anyone help me in these
Thanks & regards
Jenny
Edited by: Jennifer Anderson on Jul 23, 2011 7:57 AMHi Jenifer.....
I think it should work as it is working on my DB
Select Top 1 T0.U_LstIssDt From IGE1 T0 Where T0.ItemCode=$[IGE1.ItemCode.0]
Order By T0.U_LstIssDt DESC
Do execute this just save and Apply this on Goods Issue for. So when you select the Item this will bring the Last Issue Date of this Particular Item on which field you applied this FMS.......
Is that an UDF of Last Issue Date or standard field?
I modified above FMS and please now try.....
Regards,
Rahul -
Issue with Formatted Search and Sales BOM
Good afternoon,
One of our customers uses a Formatted Search on the Sales Order row to lookup the Project Code stored against the Item.
This works very well, except for when a Sales BOM is selected. I assume the FS lookup is working correctly, but the screen is quickly refreshed to list all the component items related to the BOM. This process appears to overwrite the contents of the Project field.
We wish to keep this functionality, but retain the FS lookup results in the Project column. Could the order of the process be changed so that the BOM refresh occurs prior to the FS lookup.
Thanks
Greig
Edited by: Greig Burrows on Jul 21, 2010 5:57 PMHi,
For metadata, which metadata are you not seeing? Are they custom properties within the PDF, and have you checked if you have crawled properties matching these?
I know there's issue with last modified on PDF's (http://sharepointfieldnotes.blogspot.no/2013/05/understanding-and-getting-sharepoint.html)
Thanks,
Mikael Svenson
Search Enthusiast - SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
http://techmikael.blogspot.com/
Author of Working with FAST Search Server 2010 for SharePoint -
Formatted Search (FMS) Hotkey
I have a formatted search that I am forever using. Is there a way to link it to a key to execute when pressed?
I've played around in the user menu and can have the query manager open on a hotkey, but not a specific Query.
Any thoughts are appreciated!!
-Scott
Edited by: Paul Finneran on Sep 18, 2008 12:44 PMHi Scott,
I don't think it's possible to assign a hotkey to trigger any specific formatted search, the only other way to trigger a formatted search is to press shift+F2 whilst in the field, this has the same function as executing the formatted search.
Kind Regards,
Matt -
Formatted search on UDF, DIAPI issue
Hi,
I have a formatted search on a UDF in the DETAIL of a SALES ORDER
When I try to set a value on this UDF, the DI API doesn't give any error but the UDF doesn't get the new value.
but all other UDF works except this one which have a formatted search on it in SAP
Is there something I don't know ?Hi,
My goal is not to make the formatted search working in DI API, as I said, I'm just trying to set a value in the UDF and because there's a FORMATTED SEARCH on this udf, it keeps the default value instead of the value I'm setting by the DI API
And yet, I have other UDF that have formatted search, and I'm able to set a value on the UDF anyway.
What I see different is that this UDF is numeric and the others aren't
I just don't understand why the DI API reports no error and yet the value I put in it isn't taken but only the formatted search default value for a numeric UDF Is this a known bug in SAP ? -
Formatted Search for Sales Order
Hi,
I setup a formatted search in Sales Order unit price field.
Condition required:
If Sales Order is copied from Sales Quotation, unit price remains as per Sales Quotation unit price, else formula to calculate mininum selling price appllies.
Here's the query:
DECLARE @BASE_ENTRY INT
DECLARE @PRICE NUMERIC(19,6)
SET @BASE_ENTRY = ISNULL($[$38.45.0],0)
SET @PRICE = $[$38.14.0]
IF @BASE_ENTRY = 0
BEGIN
SELECT T0.[AvgPrice]*(1+T0.[U_SPFactor])
FROM OITM T0
WHERE T0.[ItemCode]=$[$38.1.0]
END
ELSE
BEGIN
SELECT @PRICE
END
l have no issue if the Sales Order copied from Sales Quotation, however when enter the Sales Order manually the formatted search having error message:
1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Error converting data type nvarchar to numeric.
FMS execution failed on field '' with query name 'Get Minimum Selling Price (SO)'
Looks like my query has error...Hi ,
Try this below query and let me know your feedback,
DECLARE @BASE_ENTRY INT
DECLARE @PRICE NUMERIC(19,6)
SET @BASE_ENTRY = ISNULL($[$38.45.0],0)
SET @PRICE = $[$38.14.Number]
IF @BASE_ENTRY = 0
BEGIN
SELECT T0.[AvgPrice]*(1+T0.[U_SPFactor])
FROM OITM T0
WHERE T0.[ItemCode]=$[$38.1.0]
END
ELSE
BEGIN
SELECT @PRICE
END -
Formatted search to get the cost center name
Dear experts, I need to display the cost centre name/description on goods issue via formatted search. i have set the cost centre as " Display distribution rule in a unified column".
Dimension 1
01 Abc
02 xyz
Dimension 2
001 aaa
002 bbb
Dimension 3
0001 jkl
0002 mno
System shows only the code on goods issuance screen like "01,001,0001 " while i need to display "Abc,aaa,jkl" . Is it possible via formatted search
or any other way?
Regards,
AwaisHi,
Create on UDF at Row Level in Good Issue form beside distribution rule column
& apply below FMS to it
SELECT T0.[PrcName] FROM OPRC T0 WHERE T0.[PrcCode] =(select $[$13.10001018.0])
auto-refresh it on selection of distribution rule
regards,
Raviraj -
Formatted Search Querry for UDF
Dear All,
My client is using SAP B1 2007 B PL10. Now I am facing a issue like, I have made a UDF in the A/P Invoice Form and hence made it mandatory. But when i make a UDF field as mandatory I have to write a particular default value. Hence i have written default Value as 0.
Now whenever i open the A/P Invoice Form, the mandatory UDF Field is showing default value as 0. But I want to write a Formatted Search Based Querry in a way that the UDF Field should become Nil whenever I Open the A/P Invoice Form.
Please guide me in writing the Formatted Search Querry by which the UDF Field which is having a Default Value as '0' should become Nil.
Regards
Hitesh ParsawalaHi Hitesh ,
You have two option :
1.Either donot make ur UDF mandatory at the time of creation
Use sp_transaction notification to validate
2. Define UDF manadatory at the neginning
if user donot change the value , triggger approval procedure through FMS
I think it is
Select Distinct 'True' from tablename where <userdefined field =''i
If user donot change, it is going to triger approval procedure
<You can look for code in forum if that is not working >
Hope this helps
Bishal -
Can Formatted search be used in this situation?
Dear Experts,
I have defined a row level UDF called DIA. I input dia values in goods issue. Hence it is stored in ige1 table. When I receive those items in Goods Receipt, the Dia Column found blank. I need to have the dia value entered in IGE1 in Goods Receipt form.
Its some what like this.
Itemcode Qty DIA
a001 10 12
b001 20 20
c001 10 22
When I receive these items after the specified process, I make entry in Goods Receipt based on PO No,. That time, the form
shows blank value in DIA field. I need the DIA values entered for the Items to appear automatically from IGE1. Can I do this using formatted search. Please advise.
Thanks in adv.
AnandAs I understand, you want to make a goods issue transaction entering these values into the document rows and in an independent transaction (I could not catch it is a goods receipt or a goods receipt PO) to get these values.
First you should make a reference in the second transaction to the original one. The best is to define a header level UDF where you can write the DocNum of the original goods issue transaction (assuming you are using unique document numbers). We can call it e.g. U_SourceDocNum.)
Then you make an FMS like this:
Select R.U_DIA from IGE1 R inner join OIGE I on R.DocEntry=I.DocEntry
Where I.DocNum=$[OIGN. U_SourceDocNum] and R.ItemCode=$[IGN1.ItemCode]
And set it autorefresh when SourceDocNum is changes.
(The user should fill the SourceDocNum after filling the document lines!)
In the code I used OIGN and IGN1. If you use goods receipt PO in the second steg, you should replace them with OPDN and PDN1. -
Help needed for Formatted Search
Hai Experts,
would like to ask you some clarification on Formatted Search. In the
query I found $http://$44.2.1 given in the criteria part.
In some articles it was mentioned that, the 44 meant for the table
connected with the form and 2 is field index and so on.
Can you please explain how to find out those numbers and field index.
I need to work out planty of FMS to fetch data into
UDF automatically based on user input.
Regards
AnandHi Anand,
You may check these threads first:
Re: Vendor default GL FMS help
Re: Runtime data calculation
Thanks,
Gordon -
Formatted Search - Restrict to Only One Customer on Activity Window
Hello Experts:
Am trying to create a formatted search to provide a suggested RMA Number on the Business Partners > Activity window in a UDF.
While in Activity, the user should get a list of ONLY the one customer they are currently working with. So if C0001 is being used in the Activity window, the list should show all suggested RMA numbers just for that customer of C0001, not any other customer.
When I use the following it shows all customers.
--FMS 6BP Automated RMA Number
SELECT
T1.[CardCode] + ' - ' + ltrim(str(T0.[ClgCode]))
FROM OCLG T0
INNER JOIN OCRD T1
ON T0.CardCode = T1.CardCode
ORDER BY
T1.CardCode Desc,
T1.[CardCode] + ' - ' + ltrim(str(T0.[ClgCode])) Desc
When I put in WHERE T1.CardCode = $[$ 9.0.0 ] in the right place it shows nothing...
Any ideas on how to make only the one current customer in Activity window appear in the list???
Thanks in Advance - ZalThanks Istvan and Gordon...
Istvan - that is the same as my SQL - just do not know how to show the $[$... correctly in this forum - it always goes to that http thing.
Gordon - tried to use your SQL but it gave me an error of "Internal Error (-1003) Occured [Message 131-183] every time I tried to click on the magnifying glass. However, due to your last line in the SQL it gave me an idea that eventually they were OK with - namely, the highest number to the top of T0.ClgCode...
Thanks again guys - Zal -
Is there a way to NOT have the data from a formatted search highlighted
Hi all,
I have a formatted search that returns a big chunk of data, some comments that are then added to. When the fs is fired, it returns the data, but all of the data is highlighted so when the user starts typing they overwrite the data that was just returned. I know they could just hit the right arrow key or click their mouse at the end, but they don't do that half of the time. I also know they could use ctrl-z or undo when they do this, but they don't do that either. It would just be nice if they could fire the fs and when the data is returned, the cursor would be at the end of the data.
Any thoughts?I don't think there are any options for you to change default system behavior like this. What you may do is to change your FMS logic to get only one record if possible. Post your query here if you can.
Thanks,
Gordon
Maybe you are looking for
-
How to transfer printer settings from one Mac to another (both OSX)?
Hello, I have not found a detailed description on how to transfer printer settings from one Mac to another. My issue is that I have a Mac G5 with 3 different settings saved as "presets" for the same printer. This works great, since the posters I prin
-
How do I turn off the password every time I turn on my ipad. I have the new os7 installed.
-
Add returnable packing in the invoice
Hi, We have added returnable pallets in the outbound delivery. We want to reflect this in the Invoice printout as well. When we copy the material to the invoice, it has no price/no value. But the Invoice gets an error that the pallets needs sellin
-
My HP photosmart C6100 printer constantly looses wireless connection and I have to uninstall and reinstall the printer on my laptop. I have been told that this may be because of its age but when it prints it works fine. What can I do to resolve the p
-
Why iPad change the name of my photos (file name) ?
I use the iPad to save my photos directly from the camera when I walk on the road. If I copy the files into Aperture they appear with the name given to it by the camera. If sending the files to the Dropbox they come up with completely different names