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
Fabrice

HI 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

Similar Messages

  • Reference sales order cogs line level field in formatted search

    I want to reference the COGS field on the sales order in a formatted search.
    when I turn on system information and hover my mouse over the field I see the following:
    column: 210000338
    when I deference the column in a formatted search
    select $[$38.210000338.1]
    an error results.
    any ideas?

    Post your complete query here.  It should work.
    Thanks,
    Gordon

  • Setting only the TO field on the Created on Field in Selection screen to Current date

    Hello,
    We have a requirement to Set only the To date in the Created on Field in Selection screen to the Current date, I have tried through Dynamic variable option to set the Date calculation but I am able to see Options to set the Current date to From or From and To Created on Date fields instead of setting the Current date only to To created on Field.
    We are in 4.7 and are not supported with user defined variables, Appreciate your inputs on this.
    Thanks and Regards
    Mohammed Roshan

    >
    sunitha j wrote:
    > Hi ,
    >
    > It would br gr8..if u could give some more info about the usage of this class..i mean if i hav to implement it in my program....wat is the necessary data that needs to b copied...
    >
    > Thanx,
    > Sunitha
    what Text field you want to change.
    Since you are working with Dynpros , you have to split the screen in two parts, and one for the Showing differenet fonts and other your normal Dynpro information.
    you need to use the Method ADD_TEXT Did you check the program DD_STYLE_TABLE.

  • 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 PM

    Hi 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

  • 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

  • User defined fields window / formatted search

    HI
    I 've created a user defined field in the marketing documents
    I want tO put the result of a query into this field :
    I use a formatted search in order to have the result :
    SELECT T0.Balance FROM OCRD T0 WHERE T0.CardCode = $[$4.0]
    My query is based on CardCode(item 4), but when the user defined field window is open, the item 4 is the cross of this form and i have the result next :
    SELECT T0.Balance FROM OCRD T0 WHERE T0.CardCode = N'RSRCButtonCloseBox'
    Thanks
    Sylvain

    Hi,
    It happened the same today for me, but using both, $[$4.0.0] and $[$4.1.0]... both of them return that RSRCButtonCloseBox....
    So, what is wrong here?
    Regards,
    Leo

  • Identifying Fields with Formatted Search

    Hi,
    Is there a way (maybe running a query) to know what fields (of all documents) have formatted search? 
    In doing this, is it possible to know the query name in the formatted search?
    Thank you.
    April

    You can identify the document by using 'FormId' field in the query.
    Form Id    Document
    129     BP
    133     A/R Invoice
    134     Business Partner Master Data
    136     Company Details
    137     Correction Invoice
    138     General Settings
    139     Order
    140     Delivery
    141     A/P Invoice
    142     Purchase Order
    143     Goods Receipt PO
    146     Payment Means
    148     Define Currencies
    149     Quotation
    150     Item Master Data

  • Get matrix row data and put it into header field with formatted search ???

    Hi All,
    I ask your help concerning the following:
    On an invoice matrix I want to check all Itemgroup Codes of all items in the rows, if there are some rows' items with ItemGroupcode 101 and some others with anything else, then header field should be Y, otherwise N.
    My main problem is: how do I put a matrix row data to a header data with checking all rows in the matrix?
    A minor problem is that I can't get the formatted search to work on all rows when the formatted search is assigned to the user field in header.
    If I put the formatted search to a row field then the row field is filled with the proper value, but the same query assigned to the user field in header works only on the first row.
    What am I doing wrong?
    SELECT USEDPROD= CASE T0.ItmsGrpCod  WHEN 101 THEN Y ELSE N END FROM .[OITM] T0 WHERE T0.ItemCode = $[$38.1.0]
    (SBO 7.6)
    Any suggestions are welcome.
    Thanks.
    Bálint

    Dear Adele,
    Thanks for the answer. The major one cannot be solved. OK, I'll try to get a workaround.
    However I still do not understand why my query does not work in all selected rows, just in the first row, i.e. if I assign the query to a header field and I'm positioned in the first row it's OK, but when I add a new item to the second row or any of the next rows, the header field is not updated at all.
    Why is that so? Do you have any idea?
    Bálint

  • How do I reorder the list of fields on my search page?

    I have about 10 fields in my query criteria for my search page. They don't appear to come up in an order that would be meaningful to my users, so I'd like to change it. But I can't figure out how. They do always show up in the SAME order, but that order does not appear to be based on anything specific. It's not in column order from the database, it's not in alphabetical order, length order, anything, as far as I can tell. The criteria don't show up in the Design view or the Source file. In the view's XML file, they're in a different order than how they appear on the page. There doesn't appear to be any sequencing information anywhere, as far as I can tell.
    Does anyone know how to do this? I'm using build 4814. Thanks!

    Hi,
    note that you are working with a non-public build, which means that you should really use the internal forum if you are from Oracle. Since the question appears to be generic, lets continue despite of this.
    How did you build the search page, is it that you used the af:query element ? Note that there are several options to build search pages, which makes it important to be specific of which implementation you have chosen. If you are Oracle internal, please send me a testcase based on the HR schema
    Frank

  • LInking a User Defind Field with formatted search

    Hi!, I created a user defined field called subcategory in the items master data. The field is link to a subcategory table.
    But the subcategory is dependant on the item's category or group. So is there a way to filter this, so the user can only select subcategories of the current item category (group)
    Thank you!

    Thank you for your reply, it has 3 fields.
    The Category Code
    The SubCategory Code
    The Description for the SubCategory
    The Category Code its actually the ItmsGrpCod for the Item, the subcategory code its arbitrary defined and unique for each category.

  • Difference between the "Created" and the Created External fields

    Guys,
    There are two different fields I have seen in the Contacts Fields for CRMOD - Created and Created External - do we have any difference between them - can anyone tell me what exactly is the difference between them ?

    No difference right now. In the future you will be able to import into "Created External".

  • Formatted Search screen - populate multiple fields

    I have an Employee Id field in my screen.
    On clicking Choose button,I use a Formatted Search screen to populate value to that field.
    I also have other fields like employee Name,department which should be populated, once an employee Id is chosen from Formatted Search screen.
    The functionality is like that of "Purchase Order screen".
    Once a vendor Id is chosen Name,Contact Person etc get populated in "Purchase Order screen".
    How do I do that?
    Should I trap the Choose button event of Formatted Search screen?
    Please help.

    I think all you are missing is a check to make sure you don't try and re-run the lookup when you are validating the return value from a previous lookup.
    I made a minor change to my code and achieved the behaviour you described.  I have extracted the relevant  code from the application .  Unfortunately it looses its indentation when I post it, so it might be quite hard to read.  It uses recordsets for the validation as in practice most of the real validation is more complex than this cut-down sample.
    This particular example is from a screen with a Customer Code prompt, and displays the customers name below it.
    Regards,
    John.
    <b>Constant holding menu uid of Formatted Search</b>
    Public Const AZU_MNU_SEARCH             As Long = 7425
    <b>Declare a variable at module level</b>
    Dim mblnCardLookup as Boolean
    <b>Create validation routine (cut down sample included)</b>
    Sub ValidateCustomer(sboApp As SAPbouiCOM.Application, sboCompany As SAbobsCOM.Company, BubbleEvent As Boolean)
        On Error GoTo ErrorHandler
        Const AZU_PROCEDURENAME     As String = "ValidateCustomer"
        Dim sboRecordset            As SAPbobsCOM.Recordset
        Dim sboForm                 As SAPbouiCOM.Form
        Dim sboDSCard               As SAPbouiCOM.UserDataSource
        Dim sboDSName               As SAPbouiCOM.UserDataSource
        Set sboForm = sboApp.Forms(strUID)
        Set sboDSCard = sboForm.DataSources.UserDataSources("UCARD")
        Set sboDSName = sboForm.DataSources.UserDataSources("UNAME")
        If sboDSCard.value <> "" Then
            Set sboRecordset = sboCompany.GetBusinessObject(BoRecordset)
            sboRecordset.DoQuery "Select CardCode, CardName, Currency From OCRD where CardCode Like '" & sboDSCard.value & "%'"
            If sboRecordset.RecordCount < 1 Then
                If sboDSName.value <> "" Then
                    sboDSName.value = ""
                    sboForm.Items("edtName").Update
                End If
                If Not mblnCardLookup Then
                    LookupCustomer sboApp
                End If
                BubbleEvent = False
                Exit Sub
            End If
            sboRecordset.MoveFirst
            sboDSCard.value = sboRecordset.Fields(0).value
            sboDSName.value = sboRecordset.Fields(1).value
            mstrCurrency = sboRecordset.Fields(2).value
            sboForm.Items("edtName").Update
        Else
            sboDSName.value = ""
            sboForm.Items("edtName").Update
            BubbleEvent = False
        End If
        Set sboDSName = Nothing
        Set sboDSCard = Nothing
        Set sboForm = Nothing
        Set sboRecordset = Nothing
        Exit Sub
    ErrorHandler:
        Call AZU_STD_ERROR_MSGBOX(AZU_MODULENAME, AZU_PROCEDURENAME)
    End Sub
    <b>Create lookup routine (cut down sample included)</b>
    Private Sub LookupCustomer(sboApp As SAPbouiCOM.Application)
        On Error GoTo ErrorHandler
        Const AZU_PROCEDURENAME     As String = "LookupCustomer"
        Dim sboForm                 As SAPbouiCOM.Form
        Set sboForm = sboApp.Forms(strUID)
        mblnCardLookup = True
        sboApp.ActivateMenuItem AZU_MNU_SEARCH
        Set sboForm = Nothing
        Exit Sub
    ErrorHandler:
        Call AZU_STD_ERROR_MSGBOX(AZU_MODULENAME, AZU_PROCEDURENAME)
    End Sub
    <b>Add the following code to the ITEMEVENT handler</b>
        'Validate Customer Code
        If pVal.EventType = et_VALIDATE And pVal.ItemUID = "edtCard" And pVal.Before_Action = False Then
            Call ValidateCustomer(sboApp, sboCompany, BubbleEvent)
        End If
        'Customer Code Lookup on TAB Key
        If pVal.EventType = et_KEY_DOWN And pVal.ItemUID = "edtCard" And pVal.Before_Action = True And pVal.CharPressed = 9 Then
            Set sboDSCard = sboApp.Forms(strUID).DataSources.UserDataSources("UCARD")
            If sboDSCard.value = "" Then
                LookupCustomer sboApp
                BubbleEvent = False
            End If
        End If
        'Force Validation on Return from Lookup
        If pVal.EventType = et_FORM_ACTIVATE And mblnCardLookup = True Then
            sboApp.Forms(strUID).Items("edtRef").Click
            mblnCardLookup = False
        End If

  • Formatted Search that will change the Tax code in SO.

    Hi All,
    I have a requirements that will allow me to change the Tax Code column via formatted search. Like for exmaple, i have 50 line items in SO and the tax code is ZO. If i want to change the tax code, i will select it for individual items. Anyone can help me to have an alternative solution that will prevent me to change it per item.?
    thanks and regards,
    vin

    Hi Melvin........
    You can have a work around for this....
    Just create a UDF say U_Tax at Header level...
    Just Create a FMS for Tax Code say..
    SELECT *  FROM OSTC T0
    Save this tax code FMS to thus UDF.
    When yo select a particular Tax Code in this Field through this saved FMS
    this Tax Code gets copied to each and every line say for 100 lines also.
    For this you have run other FMS which is below...
    SELECT $[ORDR.U_Tax.0]
    Save above FMS in tax Code field say in Sales Ordr form.
    Now when you do this you can see if you have 100 line items and you want to copy same tax code in a single click you have to just select single tax code via FMS in U_Tax as i suggested.
    The moment you select this Tax Other FMS will be fired and the same will be copied to other 100 lines....
    Hope this will help you.....
    Regards,
    Rahul

  • Formatted search query with variable

    Hi
    I am trying to create a formatted search on a purchase order document.The scenario is as follows:
    The issue is that the client will on certain stock records incur a tooling cost when raising a PO. This is a once off cost when they order a particular item. For example the tooling cost on a stock item is u20AC5.50. The cost price on the item is u20AC100. If they order for example 5 of these the total cost is u20AC505.50 i.e. u20AC100*5+tooling cost of u20AC5.50.
    What we are attempting to do is pull through the tooling cost and add this on to the line total using a formatted search.
    -UDF created on item record table. This is set type 'Unit and totals' and structure is 'Price'. This is called ToolingCost
    -UDF created on marketing doc rows for ToolingCost. Again this is set to the same type and structure as the UDF on the item record.
    -We have created a UDF on marketing row for total cost and set a formatted search against this with query attached that is attempting to calculate the total cost. We cannot get this to work and the problem would appear to be that the price field is a variable and this is causing an issue on the query. Can we include a variable field in our query and if so what should the syntax be?
    Our query at the moment is 'SELECT 100*($[POR1.QTY.NUMBER])+($[POR1.U_TOOLINGCOSTS.NUMBER])
    Note 100 in query syntax above to be replaced by price on POR1 table.
    Can anyone provide assistence please.
    Derek Smith

    Hi Derek........
    Try this.....
    declare @var1_Qty as varchar(255)
    declare @var2_Pr as varchar(255)
    declare @var3 as float
    declare @var4 as float
    set @var1_Qty=$[$38.11.0]
    set @var2_Pr=$[$38.14.0]
    Set @var3=$[POR1.U_TOOLINGCOSTS.0]
    set @var4=cast(substring(replace(@var2_Pr,',',''),0,len(replace(@var2_Pr,',',''))-3) as float)
    select (@var1 * @var4)+@var3
    Hope this will help you.......
    Regards,
    Rahul

  • Formatted Search in Matrix

    How to create a query for formatted search if my variable is in the matrix(some column and some row).
    I would like the SAP user get a list of all Workorders for a Job, and Job is a cell in matrix.
    Workorder value should be shown in another cell in the same row.
    Thanks a lot,

    Hi Pavel,
    The document 'How to Define and Use Formatted Search' on the Service Market Place goes through defining and using formatted searches with queries. It also explains how to use fields in an active form in a formatted search, look at the section called 'Search by Saved Query' in the document.
    To find this document go to
    www.service.sap.com -> Channel Partner Portal -> Solutions - SAP Business One -> Support -> Additional Information - Documentation Resource Centre -> SAP Business One 2005 A SP 01 -> How to guides -> 'How to Define and Use Formatted Search'
    This document also gives some examples of the types of queries which are used in formatted searches.
    Hope this helps
    Noreen

Maybe you are looking for

  • HT1688 Sending emails!!  Why can't I?????

    Hello, My name is Tish61.  I have an iphone 4s.  I cannot send email from my phone but I am able to receive them but not reply to them. Can someone help. Thank you so much.

  • Jsp works in my tomcat but not in school server

    Using netbeans 5.5.1 and it has tomcat 5.5.17. My jsp page works fine when I use it on my computer but when I copy it to my school server(tomcat 5.5) it bugs when trying to contact oracle jdbc database. Whats wrong? Gives this error: HTTP Status 500

  • Servlets

    how servlets communicate with each other? and how applet to servlet communication is achieved?

  • How to extend C:\ Drive from D:\ using Command line.

    Hi Friend, Need your help for extend 30 GB from D:\ to C:\ Drive using Diskpart cmd. My HDD size : 500, C:\ Drive : 70 GB (Want round this drive as 100 GB) D:\ Drive : 394 GB (Want to increase form here) After rounding C:\ as 100 GB want to create D:

  • Ise Sponsor group policies

    Hi I would like to limit a single "sponsorallaccount" user to be allowed to connect from a specific location (or computer) to print guest details however the authentication is not radius and the parameneters for the authentication are missing and can