Formatted Search in Banking SBO 2007A
Hi,
Are there Formatted Searches available in SBO 2007A for the Registration of Bank Statements concerning the invoices of BP and if I select an invoice manually and the amount paid is not equal at the open amount the payment is not connected to this invoice. How can I solve this?
Hi Andre
There are no formatted searches available as these are always user defined. With other words you spec & build your formatted searches based on your requirements. SAP just provide the means to achieve it.
I am not sure what the link is between Bank Statements and Invoice payments? Are you referring to how the system handles the matching or reconciliation of partial payments?
Kind regards
Peter Juby
Similar Messages
-
How to Fetch the Row value in SBO Formatted search
Hi Experts,
I have created a Sales order, in which i have 4 UDF Fields(A,B,C,D) in the following:
Example values:
A B C D
2 2 4 4
3 2 6 10
C=A*B
D=1st value of D + 2nd col value of C
i have written query for C, but how to write the Formatted search Query for generation of D values. plz reply as soon as possible.Magesh,
I quite understand what you are trying to do. If you look at the example below I added a third row to show how you want the D to be a running total of column C. RIGHT !!
A B C D
2 2 4 4
3 2 6 10
<b>4 2 8 18</b>
Honestly, it is not going to be simple as you do not have a way in SBO to access a particular column from a row. When you say $[$38.U_C] it refers to the context row OR the row which has the highlight OR the row which has the curson on it.
It is not possible to say $[$38.U_C from row 2] JUST NOT POSSIBLE ...
You have to write a tricky code by using a temp table referencing the value of column C. Also you have to keep track if Rows gets deleted and a new row added.
I will test a sample code and will come back.
Suda -
Formatted Search is driving me crazy - Customer Reference Number to UDF
Hi all, what should of been a simple Formatted search has turning into a monstrosity.
All I am trying to do is to copy my Customer Reference Number on a Sales Order Header, to a Header UDF, via Formatted Search. Here is my formatted search:
SELECT $[$14.0.0] FROM ORDR T0
That formatted search is connected to my UDF also at the sales order header level.
Any ideas as to why this formatted search does not duplicate the customer reference number into my UDF?
I am running 2007A SBO.
Thanks guys.
Mike
Formatted search is: SELECT Dollar[Dollar14.0.0]
For some reason, this forum changes my SQL sentence into a URL.
Let me try this again. SQL statement is SELECT DollarBracketDollar14.0.0BraketHi Mike,
Try this,
->> Create 1 UDF in Title(Header) Level on Sales Order(Marketing Documents).
->> UDF :
Type - Alphanumeric.
Length - 100. (because in SO Customer Reference Number Field Character is 100 in Table)
Structure - Regular.
->> Assign the below FMS Query in UDF.
->> Autofresh of Customer/Vendor Ref. No..
Ex.
1. Goto the UDF and Clcik (ShiftAltF2).
2. Select the SEARCH BY SAVED QUERY.
3. Assign the FMS Query.
4. Select the AUTO REFRESH WHEN FIELD CHENGES.
5. Select Customer/Vendor Ref. No..
6. Put the Tick Mark in Display Saved Values.
SELECT $[ORDR.NumAtCard]
or
SELECT $[$14.0.0]
Regards,
Madhan. -
How to display an error message after validation in Formatted Search?
Hi SBO experts,
if an error is detected on validation in a Formatted Search, how to display an error message to the user entering the data?
Thanks & Regards,
Raghu Iyeri created a formatted search query & attached it to the field 'Quantity' at Line Item level in Sales Order screen. just for testing purpose, i eneterd the following code lines in the query validating 'Quantity'
if $[$38.11.0] > 50
begin
select @error = 1
select @error_message = 'Vendor code cannot begin to X sign.'
end
the system throws the error : Internal error (8180) occurred [Message 131-183]
actually, i need to display an error message to the user if Quantity is not in multiples of the OITM.SalFactor2
if $[$38.11.0] % (SELECT T0.[SalFactor2] FROM OITM T0 WHERE T0.[ItemCode] = $[$38.1.0]) > 0
begin
select @error = 1
select @error_message = 'Error in Quantity.'
end
but, this expression to get the remainder itself seems to have some error
$[$38.11.0] % (SELECT T0.[SalFactor2] FROM OITM T0 WHERE T0.[ItemCode] = $[$38.1.0])
i guess, % operator is used for modulo (to find the remainder of one number divided by another.) ? am i right ?
Regards,
Raghu Iyer -
SQL Query -How2bring multiple results into one field using Formatted Search
Hi Everyone
i am trying to bring in the results of the field dbo.Lot_ITEM.LOT using a formatted search into a row level using the following query:
SELECT dbo.LOT_ITEM.LOT
FROM dbo.DLN1 INNER JOIN dbo.LOT_ITEM ON dbo.DLN1.ItemCode = dbo.LOT_ITEM.ITEM
WHERE dbo.LOT_ITEM.ITEM=$[DLN1.ItemCode]
however the result of the dbo.Lot_ITEM.LOT field could be more then one value depending on how many lots are assigned for that item
(for example this query would be similar to assigning batch/serial numbers to an item being despatched - as you can choose multiple batches/serials depending on the quantities available and required and then move from the left to the right side of the selection window) if that makes sense!
is it possible to bring in the multiple results into one field? and how can i amend the above query to include this?
Thankyou in advance :o)
Edited by: Asma Bi on Apr 23, 2008 7:22 PM
Edited by: Asma Bi on Apr 23, 2008 7:24 PMHi Suda
Thanks for replying :o) but im not sure about the query?
just to simplify it (as the query im working with is to do with 3rd party addons) i have used the serial/batchs field instead and used standard demo database fields from SBO 2005 sp01:
SELECT dbo.ixvSerialNoFact.SRI1_IntrSerial
FROM dbo.DLN1 INNER JOIN
dbo.ixvSerialNoFact ON dbo.DLN1.DocEntry = dbo.ixvSerialNoFact.SRI1_BaseEntry
WHERE dbo.ixvSerialNoFact.ItemCode='g1000' and dbo.ixvSerialNoFact.SRI1_BaseEntry = '193'
The above brings me the relevant results but when i change it to be used in a formatted search:
SELECT dbo.ixvSerialNoFact.SRI1_IntrSerial
FROM dbo.DLN1 INNER JOIN
dbo.ixvSerialNoFact ON dbo.DLN1.DocEntry = dbo.ixvSerialNoFact.SRI1_BaseEntry
WHERE dbo.ixvSerialNoFact.ItemCode=$[dln1.itemcode] and dbo.ixvSerialNoFact.SRI1_BaseEntry = $[dln1.DocEntry]
i cant seem to get it to work - now this may be because the serial number is not allocated until teh record is added to the system, however when this happens i am unable to go back in and manually trigger the query as the delivery note rows cannot be selected!
i think as what im originally wanting an answer for is same as this example, im wanting to know if this is even possible?
Thanks
Edited by: Asma Bi on Apr 24, 2008 3:53 PM
Edited by: Asma Bi on Apr 24, 2008 3:55 PM -
I canu00B4t do a formatted search in a user table
Hye, I'm trying to do a formatted search over a user table using and I get the error -2006, why?
I use "report generator" and my selecc is :
SELECT T0.U_grupo, T0.U_CODE
FROM T0
WHERE T0.U_grupo ='[%0]' FOR BROWSE
If I do the same with standar table ( e.j OITM), all is right:
SELECT T0.ItemCode, T0.ItemName
FROM OITM T0
WHERE T0.PrchseItem ='[%0]' FOR BROWSE
unless, with user tables no, whyyyy?
thank´I have seen this, though I don't have an official answer, I have my own theories. SBO matches up the variable with the previous field name and looks up the description for that field. The description for user fields is not stored in the same place as standard fields.
In a previous thread, named "SQL Syntax in SBO" (number 7144) another user showed a way to do dummy selects with the variables to get the names of standard fields. Then the variables can be used for the real work.
That is awkward, and it limits you to the descriptions of standard fields.
Bruce -
Formatted searches and SQL functions
Hi,
I have made test to call a SQL function in a formatted search. It seems to be impossible?
Is it right or not ?
Thanks for your help.You don't need to put a semicolumn, and don't have to put quote's around sbo variables (from a form)...
<b>Example</b>[code]SELECT ItemCode, ItemName FROM OITM WHERE WhsCode = $[$38.1.0] AND SellItem = 'Y' AND OnHand > 0[/code]
Hope it helps... -
Hi All,
We have configured a formatted search with warehouse in a field of Inventory Transfor form. If we run the form thru' Citrix, When we press Shift+F2, the formatted search is not working and the list of warehouses is not displaying. Instead of formatted search, some other functionality is working in citrix.
Please give a solution to overcome this situation.
Regards,
Venkatesan G.
ReplyHi Venkatesan,
Shift-F2 in Citrix will hide the Windows title bar of the ICA client. As you have found, the ICA client will have priority over SBO when the keys are pressed.
Possible solutions are:
1) You can still trigger the formatted search by choosing the option from the main menu. This is not ideal but requires no configuration changes.
2) You should be able to disable the ICA client's keyboard shortcuts (depending on the version of Citrix you are using). Please have a look at the following article:
http://support.citrix.com/article/CTX140219
Kind Regards,
Owen -
Extra Discount in Marketing Documents - Formatted Search
Hello All,
I am trying to add a UDF for "Extra Discount" in the marketing documents. I have tried to attach a formatted search on the document total to calculate the final value after this extra discount has been specified. However, the formatted search doesnt work and I get an "Internal Error".
The scenario mentioned underneath will explain the requirement:
<b>Default Option in SAP:</b>
Customer C0001
Item | Price | Discount | Tax | Total
I0001 | 100 | 10% | VAT@4 | 90
Total 90
Discount 5% 4.5
Tax Amount 3.42
Doc Total 88.92
<b>Requirement:</b>
Customer C0001
Item | Price | Discount | Tax | Total
I0001 | 100 | 10% | VAT@4 | 90
Total 90
Discount 5% 4.5
<u>Extra Discount 2% 1.8</u>
<b>Tax Amount 3.348
Doc Total 87.048</b>
Is it possible to have this scenario mapped in SAP Business One using formatted search without using SDK/Customization?
Regards,
Gyanesh RupaniHello Jimmy,
The client wants the extra cash discount to be visible on the invoice itself. I have tried creating the UDFs and assigned appropriate FS to them to change the document total. However, the issue is that the moment the document total is affected, the discount (available by default in marketing documents footer) automatically gets changed proportionally!
So, for eg. if an invoice is for 1000 USD and I give a discount (system field) of <b>10%</b> to a customer and 5% as cash discount (UDF), with the help of FS, the invoice amt automatically gets changed to 850 USD but the discount field also automatically gets changed to <b>15%</b>!
This is the inbuilt functionality of SBO - so if someone can help me overcome this, I will be very grateful.
Regards,
Gyanesh -
Formatted Search - Using field index to refer to UDF in many documents
I have some UDFs in my marketing documents - say U_VALUE
I want to write a fairly complicated formatted search and use it for the same thing across all my marketing documents.
I don't want to use
$[ORDR.U_VALUE]
in my formatted search as this will only work in the sales order document.
I want to use something like
$[$4.0.0]
which brings back the cardcode independant of the form we are looking at. However
$[$U_VALUE.0.0]
will not work!
Hoping someone can help!
Edited by: Daniel Abbatt on Apr 10, 2008 6:16 PMYes you would have to have a UDF called VALUE on the marketing document for this example to run and even then it will error!
That's the point, the code above will not work, SBO only seems to be able to know about ORDR in a sales order and OINV in an invoice. So if I am in a sales order, it errors on the reference to OINV, even though the code that uses the
$[OINV.U_VALUE]
is never actually accessed by the SQL. I guess this is because SBO does the substitutions before it executes the code.
All I am basically trying to do is create a generic formatted search that will perform an action using the value of a UDF, say some formatting, the problem is I want it to work with any marketing document.
The only way I can find to access a UDF though is by having to use the
$[TABLE.U_FIELDNAME]
way, which seems to mean by definition I can only create a formatted search to access a header UDF for a single type of document. I cannot create a generic formatted search, that reverses the string for example, and use that formatted search across all marketing documents.
I know you can access normal fields also by their item reference, i.e.
$[$4.0.0]
, but this syntax does not seem to work with UDF, even though the system information shows the item reference as U_VALUE, I cannot use the
$[$U_VALUE.0.0]
which would be ideal...
Edited by: Daniel Abbatt on Apr 14, 2008 12:05 PM -
Formatted Search in User Define Field (UDF)
Hello everyone...this is really puzzling and hope someone can help...2007A/000/PL42...
1. We created a UDF on the OITB Table (Groups) called U_GrpDescrip
2. We created a UDF on the OITM Table (Item Master) called U_IGrpDescrip
3. We want the system to auto populate the U_IGrpDescrip (Item) with the value U_GrpDescrip (Group) everytime the Item Group is changed on the Item Master Data Window.
So,
1. We wrote this query...SELECT T0.U_GrpDescrip FROM OITB T0 WHERE T0.ItmsGrpCod = $[$39.0.0]
2. Opened up a Blank Item Master Data Window.
3. Placed cursor in the new U_IGrpDescrip
4. Hit ShiftAltF2
5. Selected "Search in Existing User...Saved Query"
6. Double clicked on the appropriate FMS Query
7. Checked the Auto Refresh
8. Selected Item Group from the displayed list of fields
9. Selected "Display Saved..."
10. Update and then closed out the Item Master Data Window
Now here is where it gets interesting...
1. We go to the Item Master Window and change the Item Group and hit Update. Button on IMD Window changes to OK.
2. The U_GrpDescrip from the OITB table does NOT change
3. However, if we click the "Magnifying Glass" TWICE in the new field on the Item Master Data Window the description DOES change to the appropriate description on the OITB table...
Can anyone help out here - this is really puzzling because we effectively use Formatted Search on other windows and they work fine, but this one seems to be a horse of another kind..
Thanks for reading and thanks ahead of time for helping
ZalHello everyone - thanks for responding...
I finallly figured out what is happening - and this is interesting
1. The field it is supposed to populate is on the main window of the Item Master Data (not on the side window of UDFs).
2. The field was placed there with Boyum.
3. When I do the formatted search in a test field that IS on the side window, the FS works perfectly.
So - it seems if you use a FS in a moved field created by Boyum, it might not work - and now I turn my attention to what Boyum is doing. Might not even need a FS with Boyum!!!
Thanks to all who read and gave their suggestions - now you get your points!!!
Take care - Zal -
Formatted Search - Date Time Stamps
Hi,
We are trying to use a Date & Time Stamp for two udf's of which I will then calculate the difference in a report. I have a couple of issues. Ideally the user would enter the Start field (udf1), click Shift-F2 and that udf would be populated with a Date/Time Stamp like: 07/12/09 14:30:00 or 07/12/09 02:30PM. The user would also do the same thing for the End field (udf), so I end up with two udf's that both hold a Date/Time Stamp described above.
1 - It looks like I will either need two udf's each for both stamps, one for the Date (date field type) and one for the Time (hour field type)...or I will need to use an alphanumeric field type to hold the whole timestamp. When using the hour field type I still have some issues.
and
2 - I can't seem to get the right sql (sbo query) function to return the date/time stamp and / or I can't cast it or format it the way I would like.
-If the udf is date field, I can use the GetDate function, but it doesn't seem to get the time with it or the field isn't big enough or formatted properly.
-If the udf is an alphanumeric field, I cast the GetDate function as nvarchar and it returns the date/time stamp, but it is an alpha field and the date is Jul 21 2009 4:41PM. I don't like the Jul 21 2009 formatting
-If I use two fields, one for date (date type) and one for time (hours type), the date is formatted the way I like, but the hours field doesn't display the AM or PM and my formatted search doesn't return military time (14:00 instead of 2:00PM), so I can't tell if 2:00 is morning or afternoon.
So I guess my questions are pretty general...Am I using the correct field types? Any suggestions on what to use? Are there any other ways to format this data? Not all date functions or casts (time, smalldatetime) work in the sbo query so I am looking for options. Any suggestions on what functions or cast to use?
ThanksHi,
As you already aware, within B1 you may not treat datetime field easily. For one of your request: I don't like the Jul 21 2009 formatting. You could use function such as
Select CONVERT(nvarchar(30), GETDATE(),106)
to change it to 21 Jul 2009.
Thanks,
Gordon -
Formatted search query adding spaces
Hello,
I have created a table U_Items in SBO database.
I was trying to run this query using formatted search.
SELECT ItemDesc
FROM U_Items T0
WHERE T0.ItemCode = RTRIM(LTRIM('$[$38.1.0]'))
When the query gets executed '$[$38.1.0]' is repalced
by 'N'A00001 '' value.
I want the value to be 'A00001' so that it can match the record in the U_Items. How can I get rid of the trailing spaces?
Thanks,
SheetalHello Sheetal,
Your query,
SELECT ItemDesc
FROM U_Items T0
WHERE T0.ItemCode = RTRIM(LTRIM('$[$38.1.0]'))
I think must be
SELECT ItemDesc
FROM [@U_Items] T0
WHERE T0.ItemCode = RTRIM(LTRIM($[$38.1.0]))
if this is a user defined table.
I think your query seems ok. It doesn't work? -
Currency Formatted Search problem
Hi
I am trying to creat a formatted search for the marketing docs price / unit price field that populates the field with the currency and money value. I have a lookup table defined in sap where i store the currency and price i want to populate the udf with, based on certain conditions from udf's on the marketing doc's lines.
when i try to type in a price manually on the form e.g. USD 1 SAP accepts the value with no problems, however business one only lets me insert the actual money value in the field and then inserts the default currency ie if my local currency is ZAR and my formatted search returns a price of 1 then SBO automatically formats the field as ZAR 1.
If i want to insert a value of USD 1 into the field with the formatted search then SBO returns an error message. I have tried variations such as returning 'USD 1', '1 USD', '1USD', 'USD1' with the formatted search, all of which return an error message. However if i manually type any of the examples in SBO accepts them and formats the column correctly.
This is quite an important functionality requirement as the customer needs the ability to have different currencies on different lines of a marketing document.
I have also tried using pricelist lookups with the formatted search but experience exactly the same problem in that i cannot specify the currency in the formatted search.
If anyone has experienced this problem please let me know if you were able to come up with a solution as manually capturing the prices per line is not an option (documents are often in excess of 500 lines)Hi Philip,
Your question is obviously about functionality of the B1 application - rather than the B1 SDK - and thus might fit better into the "SAP Business One" Forum: SAP Business One Application
However, I tried to use the non-LC in a Formatted Search in B1 2007 - and I didn't have a problem with that.
Maybe it's just a bug (that has been fixed)?
Maybe you should consider using an Add-On / SDK?
Maybe there's just sth wrong in your query? ...are you sure that your "USD 1" variations are exactly as you wrote?
Regards,
Frank -
Formatted Search on Serial Number (goods receipt PO)
Dear Expert,
I have the problem on generate Serial Number. I want to used formatted search to created serial number,
the structure of serial number is : x-99-9999-9999-99999
1st x = type of product (Regular, Consignment, Tenant)
2nd 999 = Brand type
3rd 9999 = Category
4th 9999 = Year received
5th 99999 = counter number
for example : Item A with quantity 100 units,
so.. what the formatted search that I want
On window serial number (detail level), I pressed Shift F2, so.. "the formatted search " will fill in each row on detail level until quantity (header level) --> will fill in until row 100
I do not want used Generate Serial number which SBO facility, because it is many step to used it so that our user (warehouse staff) will confuse to used it.
Does anyone have solution to solve my problem?
Thanks before.
regards,
HendraDear Hendra Sulivan
Formatted search is basically used for getting data from your data base. It will not allow you to enter any data in your data base.
So your query can be solved only by using SDK.
I can suggest you that through SDK you can provide standard Serial no entering screen where he will just enter the kind of serial no.
This facility can be provided by using tab on Serial no screen.
thanks,
yatindra gokhale
Maybe you are looking for
-
Hi, Is assignment of SAP logical system to client mandatory... I understand that we can give dummy names like SAP_A as logical systems but is it mandatory to assign them to clients.. I think Idoc can be sent to the respective SAP system through ports
-
Printing a timeline or Exporting a timeline and bin
Is there a simple way to create a printable text version of a timeline and footage available within bins?
-
OBIEE 10q problem with user authentication - only administrator is working
Dear colleagues, i am facing to problem in our OBI solution, From some time I am able to connect only wih Administrator account. User accounts defined in rpd are not working. I am not using LDAP. The error logs are enclosed: Any idea what to check pl
-
Buy a Toshiba Vista Home Premium recovery disk, or buy Windows 7?
I just bought a used Satellite L355D-S7810, but without any of the original disks. The laptop originally had Vista Home Premium 32 bit (and it has the COA sticker for it). I won't go into a long story. Suffice it to say I had to wipe the hard driv
-
Error 109 downloading trial photoshop elements trial but will not let me download again?
I was downloading photoshop elements trial and it timed out error 109 I tried to re download and it says its already downloaded even though I cannot get it to install and it only shows half downloaded in assistant