Creating a Formatted Search in Item Master based on Unit Price
Hi Experts,
I have to create a Formatted Search for assigning the Standard Cost of Items as Selling Price-Selling Price*.05 i.e the Standard cost of the item should be set upon automatically equal to 5% less of Selling Price .
I have created the following Formatted Search Query :
SELECT ((SELECT $[$34.68.NUMBER])-(SELECT $[$34.68.NUMBER] *.05))
and have assigned this FS to Standard Cost Field . I am not able to base it upon Unit Price field . This FS is correct but it is not automatically refreshing upon change of Unit Price and I have to manually update it(ALT+F2) . I guess the filed upon which it should be based upon is not correct .
please guide me how to resolve this issue . How to base this FS upon Unit Price.
Thanks and Regards,
Pooja Singh.
Hi,
Actually I dont want to set upon the last No for the Series. What about the Sequence ? Administration->setup->financials->Tax->Sequence. Here also the same thing can be done but Location Specific. When I created 2 Series for the two different locations , I found that two different fields appeared on the screen Sequence Name Where I found the two sequences I defined for the two locations. If you have any idea about what this sequence is for and how far is it different from Document Series , please let me know.
Thanks and Regards,
Pooja Singh
Similar Messages
-
Formatted Search on Item Master
Experts,
I have a client who sells commodities. They need their Pricelists to be updated with each Purchase, because of fluctuating Prices.
If I can get the following Formatted Search to work, I believe that Iu2019ll have a solution:
I created a UDF on the Item Master Inventory tab rows, which I called OITW.U_Test
I need to populate this UDF with the following calculation: (OITW.OnHand * OITW.AvgPrice) + (T1.OnOrder * (Sum of all the quantities on open POu2019s)) / (OITW.OnHand + T1.OnOrder)
Here is the logic behind it: This UDF must show a modified Moving Average. Because POu2019s does not update the AvgPrice (only the Goods Receipt PO) this is cause for concern for this client who might have Sales Orders for Items that is not in stock yet, and posted as a lower AvgPrice.
Here is what I have done so far:
Select T0.ItemCode, T1.OnHand, T1.AvgPrice, T1.OnOrder,
T1.OnHand*T1.AvgPrice as 'InStock Value',
T1.OnOrder* ?????? as 'PO Value'
From OITM T0 INNER JOIN OITW T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN POR1 T2 ON T0.ItemCode = T2.ItemCode
Any help will be appreciated.
MarliGordon,
I tested this and you are right, to use a FS will not work because of the refresh issue.
I'm now working on a Stored Procedure that will update this UDF when a PO is Added or Updated. My experience with Stored Procedures is limited to True or False statements. (If this is true, do not add the Document, if it is false add the document)
My question is: Can I populate the UDF, with a Value according to my query, with a Stored Procedure?
Thanks for your help.
Marli -
Create a Formatted Search with SDK?
Hi,
Is it possible to create an Formatted Search with the SDK? With which API???
Thanks for Help
ThorstenHi Thorsten,
Nowadays, there is not any standar way to do this. An approach could be to search for the tables where Formatted Searches are stored which are some.
If you are interested, we have developed a tool that is used to carry personalizations such us Literals, Formatted Searchs, Querys, Document Editings, User Reports, UDF and UDT. It has been very helpfull for us, and we are planning to sell it to other partners. If you are interested send me an email to [email protected]
Regards,
Ibai Peñ -
Total calculation based on unit price and UDF field values
Hi All,
This is for a construction related company. Please find attached screen shot for details.
My scenario is when we are creating sales order my client wants to calculate the total amount based on unit price towards the UDF fields defined. For example user will give the unit price per sqft in Unit price ie 2800 as per screen shot column and constructed area in Sqft in he will enter the area like cons area in sqft =1500. So this 1500 need to calculate with unit price and will display in total. So in Total field it should show like 2800*1500= result. Like wise other amount values in udf needs to be calculated and displayed in total field .
Is this possible in SAP B1. Please help me with your valuable suggestions.Hi,
Try this:
SELECT ($[$38.U_Price.number]* $[ORDR.U_CArea.number)+ $[ORDR.U_EBexp.number]+ $[ORDR.U_RO.number]+ $[ORDR.U_Maintenance.number]+ $[ORDR.U_CorpFund.number]
Thanks & Regards,
Nagarajan -
Formatted Search and Item Events
Hi,
I am having a huge problem with using Formatted Search and Add-Ons.
On the Sales Order Form I have a Formatted search Setup on the Customer Reference Number, it is set to Auto-Refresh when the CardCode changes. This is the only Formatted search on this form and it works fine.
However, when I run my Add-On, and enter an Item Code it takes about 30 seconds to display the Item Description. In tracing my Add-On it appears to call the Item Event et_GOT_FOCUS on the Item Code Column I just entered over 50 times. I don't use other events, but for testing I did turn on all events and the only other event it occured with was et_LOST_FOCUS.
If I turn off my Add-On or turn off Auto Refresh on the Formatted search everything runs as it should.
I figure the Auto Refresh of the Formatted search has something to do with this, but I need to have this turned on. Another thing is that it only seems to call this event when Before Action = false, It does not seem to be called on Before Action = True.
Can I disable the Formatted search temporarily from within my add-on or is there something else I need to do to keep this from happening.
Thanks for Any Help
PaulHi Alfredo,
Thanks for the suggestion, that sounds like it might be what I am looking for. But I am confused on trying to visualize how this would work. Do I need to duplicate the entire logic that Business One already does or are there some functions in the DI/UI that I can call that does the functions. Since I am doing this from a System(Sales Order) not User Defined Form, does that change anything. I did see the FormattedSearches Object to add a Formatted Search through the DI, but that seems like it will just create the Object and not help me execute it from my Add On.
Is there some code snipits you could provide or get me going in the right direction on how to implement the formatted searches from within my Add-On.
Thanks Again,
Paul -
To create a formatted search with customer ref no.
Hi there, I am new to formatted searches and I am trying to do the following:
on the delivery docket when the customer ref no is filled in I want this to populate a UDF called ordr_U_CAllREF
I have the udf created and it is called Cust Ref.
can someone please give me some tips on how to create this please?
thank you.
EHi Edel,
Try this.
Select $[ORDR.NumAtCard.0]
Save above query in query manager and go to Sales Order Form and put cursor on U_CAllREF UDF and press Alt+Shift+F2 and it will ask you to link the query by using 3rd option and simply link this FMS to U_CAllREF.
Hope this will help you.
Regards,
Rahul -
GR based iv or not GR based iv unit price on map & standard
Hi,
I got the help from forum of the below during MIGO.
MAP
PO price Dr to Inventory A/c
PO price Cr-GR/IR
Standard
PO price Dr to Inventory A/c
PO price Cr-Gr/IR
I would like to know for both GR based iv or not GR based iv, are the above 2 cases (MAP and Standard) still the same where unit price is getting from PO.
ThanksHi Cal,
Technically the accounting entries would be the same (from PO Price) whether you select GR based IV indicator or not. GR based indicator is used to confirm the agreement of terms when goods ordered and while delivered.
If goods-receipt-based Invoice Verification has been defined for an order item, an invoice for the order item can be entered with reference to a goods receipt document or a delivery note number entered at the time of goods receipt. In the process, a separate invoice item is created for each goods receipt. Checking of price and formal accuracy of the invoice is performed at this item level.
Follow this link
http://help.sap.com/saphelp_45b/helpdata/en/75/ee0d4055c811d189900000e8322d00/content.htm
So unltimately it is the GR which decided the value & qty acc entries. GR based indicator simply to enalbe invoice creation based on the GRs happened on that PO, if this indicator is set before you do LIV GR is mandatory, and accounting entries will not change.
Hope its clear -
Creating order form and need Java Script to calculate unit price and quantity in Acrobat Pro.
Hi,
I am creating order form in Acrobat Pro , and I have
code
Order Quantity
Unit price $
201
500
$ 0.52
201
1000
$ 0.36
202
300
$ 0.26
202
500
$ 0.2
How make Subtotal and Total price with Java script.
I do not know how to write java script.
Anyone can help me?
Thanks,Thanks for your response. I have 2 quantities and 2 Unit price for each code, I know a simple sum in calculation it works for 1 unit price and quantity. Can you please let me know how to do it? One of the expert sent m this:
//change field names as needed
var qt1 = this.getField("qt1").value;
var up1 = this.getField("up1").value;
var qt2 = this.getField("qt2").value;
var up2 = this.getField("up2").value;
event.value = (qt1 * up1) + (qt2 * up2);
I put this in total text field (calculation tab , Custom script) , but it did not worked.
I appreciate it if anyone can help or give me suggestion. -
Formatted search with UDF and syntax question
Can you explain the syntax with when to use the dollar sign and negative in writing a query for a formatted search based on user entry?
I now want to create a formatted search to pull values based on the user's entry into a UDF on the item master screen.
User entry into UDF U_Customer Code
to create Formatted search for UDF U_Rep01
I tried the following, but it does not work.
SELECT T0.U_REP01 FROM dbo.OCRD T0
WHERE T0.CARDCODE = $http://$OITM.U_CUSTOMERCODE
Thanks.
Please advise.The right syntax would be like this:
SELECT T0.U_REP01 FROM dbo.OCRD T0
WHERE T0.CARDCODE = $[OITM.U_CUSTOMERCODE\]
However, the logic of query may not be correct. Select something must be already in the system and Where should also be locatable.
Thanks,
Gordon -
Problem in implementing formatted search
Dear All,
I am using the below code to implement formatted search for item master itemcode textbox. But i am unable to get the formatted search icon for the itemcode text box/ screen. Please correct me where I am going wrong.
Dim oRs As SAPbobsCOM.Recordset
oRs = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
Dim oQuery As SAPbobsCOM.UserQueries = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserQueries)
oQuery.Query = "SELECT T0.[ItemCode], T0.[ItemName] FROM OITM T0" 'Query
oQuery.QueryCategory = -1
oQuery.QueryDescription = "GetDfltBin"
oQuery.Add()
Dim oFormatted As SAPbobsCOM.FormattedSearches = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oFormattedSearches)
oFormatted.FormID = "150"
oFormatted.ItemID = "5"
oFormatted.Action = SAPbobsCOM.BoFormattedSearchActionEnum.bofsaQuery
oFormatted.FieldID = "ItemCode"
oFormatted.ColumnID = "-1"
oRs.DoQuery("select IntrnalKey from OUQR(nolock) Where QName = 'GetDfltBin'")
oFormatted.QueryID = oRs.Fields.Item("IntrnalKey").Value ''""
oFormatted.Refresh = SAPbobsCOM.BoYesNoEnum.tYES
oFormatted.ForceRefresh = SAPbobsCOM.BoYesNoEnum.tYES
oFormatted.ByField = SAPbobsCOM.BoYesNoEnum.tYES
Regards,
Noor hussain
Edited by: noor_023 on Mar 30, 2010 12:51 PMDear J,
Thanx for your post. I am gettig this error now. "The entry already exists in the following tales odbc-2035". I am writing the above code in the page load event of item master form as below.
If ((pVal.FormType = 150 And pVal.EventType <> SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD) And (pVal.Before_Action = True)) Then
'// get the event sending form
oForm = oSboApplication.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
If ((pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD) And (pVal.Before_Action = True)) Then
Dim oRs As SAPbobsCOM.Recordset
oRs = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
Dim oQuery As SAPbobsCOM.UserQueries = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserQueries)
oQuery.Query = "SELECT T0.[ItemCode], T0.[ItemName] FROM OITM T0" 'Query
oQuery.QueryCategory = -1
oQuery.QueryDescription = "GetDfltBin1"
oQuery.Add()
Dim oFormatted As SAPbobsCOM.FormattedSearches = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oFormattedSearches)
oFormatted.FormID = "150"
oFormatted.ItemID = "5"
oFormatted.Action = SAPbobsCOM.BoFormattedSearchActionEnum.bofsaQuery 'bofsaQuery 'bofsaQuery
oFormatted.FieldID = "5" 'ItemCode
oFormatted.ColumnID = "-1"
oRs.DoQuery("select IntrnalKey from OUQR(nolock) Where QName = 'GetDfltBin1'")
oFormatted.QueryID = oRs.Fields.Item("IntrnalKey").Value ''"" ' oRs.GetField
oFormatted.Refresh = SAPbobsCOM.BoYesNoEnum.tYES
oFormatted.ForceRefresh = SAPbobsCOM.BoYesNoEnum.tYES
oFormatted.ByField = SAPbobsCOM.BoYesNoEnum.tYES
oFormatted.Add()
If oFormatted.Add() Then ' 0 Then
MsgBox(oCompany.GetLastErrorDescription)
End If
End If
End If -
Formatted search based on screen entry
Hi,
I need help to create a formatted search based on a field that the user entered on the screen. For example, I want a formatted search on the Purchase Order screen where the item search will only show the items where the vendor entered in the Default Vendor field of the master record is the same as the vendor specified in the Vendor field of the purchase order. Please advise on the correct sql statement.
Thanks,
JaneThanks Sudah! That worked!
However, I do not understand the syntax. What does [dbo] mean?
I am trying to duplicate the query for the following scenario.
I have a user defined field U_Freight in the Business Partner Master Data (OCRD) and also in the sales order screen. I want to create a formatted search for the freight field in the sales order to automatically find the freight from the business partner master data screen based on the customer entered in the sales order.
I have tried the following as a formatted search on the sales order screen, but it does NOT work.
SELECT T0.U_FREIGHT FROM [dbo].[OCRD] T0
WHERE T0.CardCode = $[$4.0.0]
Please advise.
Thanks! -
Formatted Search on user-defined items
Hi everyone,
I have to edittext item, editA and edit B. I created a formatted search on edit B but with a condition depending on the value of my editA. My query results to an internal error. Below is my code. Thanks
SELECT T0.[Field1] AS [Field1]
FROM [dbo].[@TABLE]
T0 WHERE T0.[Field2] = [EditB]
What is the right format for getting the value of [EditB] during run time?
Regards,
OmannHi,
Create the User Query and Save it with some name...
Declare @Item varchar(20)
Set @Item = Replace(RTRIM($[$editA.0.0]),'*','') + '%'
SELECT T0.ItemCode AS 'Item Code', T0.ItemName AS 'Item Description' from OITM T0 WHERE T0.ItemCode
like @Item
Assign the Query to the User Defined Item i.e for editB Item in the FORM
With Regards,
MadhuSudhana Rao.G -
Include the "created by" field in formatted searches
Hello
Very stupid question : how do you include the "created by" (usersign) field in a formatted search for marketing document ? Where do you find the variable numbers since this field is not visible on screen ?
Thanks for your help
FabriceHI Milton Rafael Mazzali ,
$[USER] will display user number only.
First decided where u want to display user name. Create a formatted search for that field with this Query "SELECT T0.U_NAME FROM OUSR T0 WHERE T0.INTERNAL_K = $[USER]" and select auto refresh when customer code/name changes.
This will work.
Regards
Ramesh Kumar -
Create Formatted Search by code in a user form
Hi, I want to create a formated search in a user form but it doesnt work using my form id (STEC_EXTRAS) as the search.FormID.
I created the formatted search by SAP (Shift+F2) and in the table of formatted searches the formid appears as 2000001000
¿Where is the relation between my id and the id SAP uses?¿Any SAP table or conversion rule?
Thanks for the possible help.Hello,
When You create a form, the id (Type) can be set up by Add function, ..... it is staring form 2000000000 ...
Maybe Your "ID" STEC_EXTRAS is the Unique ID of the Form...... not the Type
Public Const WM_USERFORM As Integer = 2000000000 ' User defined forms minimum ID
Public Const YOURFORM As Integer= WM_USERFORM + 1 ' My form id will be 2000000001
oForm = m_SBO_Application.Forms.Add("MYFORM", SAPbouiCOM.BoFormTypes.ft_Sizable, YOURFORM - WM_USERFORM)
'this is the same as
oForm = m_SBO_Application.Forms.Add("MYFORM", SAPbouiCOM.BoFormTypes.ft_Sizable, 1)
' or the same as
Dim creationPackage as SAPbouiCOM.FormCreationParams
creationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
creationPackage.UniqueID = "MYFORM"
creationPackage.FormType = YOURFORM
creationPackage.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Fixed
oForm = SBO_Application.Forms.AddEx(creationPackage)
If you use STEC_EXTRAS as FormType, You will see in the CSHS table STEC_EXTRAS as the FormId
Dim creationPackage as SAPbouiCOM.FormCreationParams
creationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
creationPackage.UniqueID = "MYFORM"
creationPackage.FormType = "STEC_EXTRAS"
creationPackage.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Fixed
oForm = SBO_Application.Forms.AddEx(creationPackage)
Regards
J. -
Auto-refresh formatted search is not working properly...
I have created a User Defined Field in Item Master named: FLD1 (Alphanumeric 30)
Then I have created a User Defined Field in Marketing Documents Row: FLD1 (Alphanumeric 30)
Now I want as follows u2013
In Marketing Documents if I select any Item, the value saved in FLD1 in the Item Master will come automatically in the Field FLD1 of the Marketing Document.
I did as follows u2013
I have created a formatted search for the above marketing document (in Sales Quotation) for the field FLD1 as follows u2013
Option: Search in Existing User-Defined Values according to Saved Query
Query: GetItemFLD1 (SELECT $[OITM.U_FLD1] )
Option: Auto Refresh -
When Exiting Altered Column
Field: Item Description
Option: Display Saved User-Defined Values
But the above is not working automatically --- after saving the document if I click on the Formatted Search Marker then the value comes otherwise not.
Can any one please explain the reason behind?
for SAP B1 2007 B SP0 PL7
Edited by: Narottam Das on May 5, 2009 1:53 PMCheck this thread for explanation of Syntax of FMS:
[Refer to Sales Order From Payment Means;
Refer Suda Sampath reply that explains clearly
Maybe you are looking for
-
hi experts I got request to change one data validation query. In the existing query,I see three parts...in top(first part) part,we have one query view from One cube.....when we come to middle part(second)..it has one query view from second cube.....f
-
Air 1.5 vs 2.0 performance
I have been developing an app for a few weeks for a jukebox front end and have been using air 1.5 (1.5.3.9120 to be exact) and though I might aswell start using air 2 so downloaded the air 2 RC sdk. When I tested the app in air 2, I was not happy wit
-
Business Process thru Solution Manager
Hi All Can anybody help me how to use Solution manager step by Step to map Business scenario. It will be rewarded for early response. Thanks & Regards Vikram
-
Whats the meaning of this value (What does it represent)
Please can anybody explain whats the meaning of the values after by ORA-01652: unable to extend temp segment by 12137 in tablespace SYSTEM ORA-01652: unable to extend temp segment by 12140 in tablespace SYSTEM ORA-01652: unable to extend temp segment
-
Replicate between different platforms
Hello: I need to know if it's possible, and in such a case what should I be aware of, to replicate data from a Oracle 9.2.0.8 Database (Solaris 9 SPARC 64 Datada) to another Oracle 9 (Linux 32 bit) Database. Thanks in advance. Lisandro