Formatted search logistic tab

hello,
I have a problem: I want to copy using formatted search, in  return document , in logistic tab, the supplier's address and not the warehouse address, this is my query but i'm  not able to find the trigger to Taking automatic query, how can i do it?
SELECT T0.[Address], T0.[Street], T0.[ZipCode], T0.[City] FROM CRD1 T0 WHERE T0.[CardCode] = $[$4.0.0]

You have to either use the CardCode or DocTotal for the refresh.
In System Init > Document Settings > General Tab......Use Warehouse Address is what drives the warehouse address to be used in all AP documents.
If you want to simply copy the Bill To address shown on the AP Return then you can use the FMS
SELECT $[$6.0.0]
If you want the address from the BP Addresses table then you should use the following Syntax in your SQL to let the Address in the structure on multiple lines
SELECT T0.Address + Char(13) + T0.Street + Char(13) + T0.Block + Char(13) + T0.City + ',  '+ T0.ZipCode
FROM [dbo].[CRD1] T0
WHERE T0.CardCode = $[$4.0.0] AND T0.AdresType = 'B'
The AdresType determines which Address you want to pick  'B' for Billto and 'S' for Shipto

Similar Messages

  • Using Second Column of Formatted Search

    Hi All,
    i have a query for formatted Search, which goes like This
    "Select ItemName, ItemCode from oitm"
    When i press Tab on the field 'Product No.' in 'Production order',
    i get the CFL of ItemName and ItemCode.
    when i select one row from this, i need to capture the ItemCode
    in the field 'Product No.' (By Default it captures the first Column i.e ItemName)
    Any suggestion are most welcome
    Regards,
    Mahendra

    Mahendra,
    By default it will fetch the first column only. one workaround what you may not like to use is, to define a user defined field in production order form and give an FMS there. ther you show the itemname first as you have written, and give an Auto refresh FMS on production order field where you change it to itemcode when item name is selected.
    HTH,
    Regards,
    Binita

  • I need to execute a formatted search when the field loses focus

    Is this even possible?  I do NOT want to force the users to press shift-f2 every time to validate/search on every field on the form.  This is absurd.  How can I trigger a formatted search on a field when it loses focus?
    I tried activating menu item #7425, but it's not executing the one on the field that loses focus, but a different one.  I guess it only works on the active field??
    I tried catching an earlier event, but after it executes the formatted search on the right field, it places the value on whatever field just gained focus instead of the one it was assigned to.
    Any ideas here?  We cannot force our users to press shift-f2 on all these fields!
    The only other idea I have is to not use a formatted search but instead try to create some sort of popup form with a grid and my own query.  There has to be an easier way, right?

    Bryan:
    I use the following on a KeyDown event for when the User tabs out of a field after entering data if the data they entered is not valid.  Perhaps you could try this in the LostFocus event:
    g_B1Connection.Application.SendKeys("+")
    Also, I have used this in the KeyDown event:
    DisplayLookup("txtWO0")
    Private Sub DisplayLookup(ByVal objText As String)
            Try
                WOItem = WOForm.Items.Item(objText)
                WOItem.Click(SAPbouiCOM.BoCellClickType.ct_Regular)
                g_B1Connection.Application.SendKeys("+")
            Catch ex As Exception
                g_B1Connection.Application.MessageBox(ex.Message, "Ok", 1)
            End Try
        End Sub
    Thanks,
    EJD

  • Formatted search to update item description in Purchase order document

    Hello Everyone,
       Has anyone developed a formated search to update the item description field on the PO or SO document?  I need to change the  standard Item Description  based on the BP catalog number but cannot seem to get it to work.  I know to change it using the screens you need to enter CTRL+TAB to move from the field without triggering a lookup process but do not know how to do this in a formatted search.  Has anyone tried this?

    Hi,
    You may check this :
    BP Catalog Number in 8.8
    Thanks,
    Joseph

  • Formatted search values

    Hello experts
    How can I get access to formated search form?
    How to return its marix values (it returns 3 values)? I can choose forms uniqal ID, but how can I get a specific row from it?
    Or how can I display the list of indexes after puttin "*" in the column? what conditions must column have?

    Thanks for your reply.
    1. Well I think I could just make an Matrix object (its an item of formatted search form) and return its rows, am I right?
    2. Could you explain me how to display list of indexes after putting * and tab in a matrix cell (I have no CFL)?  I know it is possible but how should I bind column or maybe do sth else to gain this functionality?

  • Decimal and formatted search

    hello,
    I've defined an UDF as Price.
    Number of decimal for prices is set to 3 in the general settings.
    the actual result of my formatted search is rounded to 2 decimals although 3 decimal are displayed.
    here is a simple formatted search that illustrate the issue :
    SELECT 100 / (100+19.6)
    the displayed result is 0.840 instead of the correct value : 0.836
    How can It be solved ?
    Best regards,
    Francis

    Hi
    Please check the decimal settings of
    amount as well(general setting -display tab)
    there is one case:
    When under Adminstration -> System Initialization -> General Settings ->
    Display, the decimal for the amount is defined as 0 and the UDF is
    defined as eg.  alphanumeric or units and total amount, The UDF does not
    return the decimals and round the amount.
    base on my testing:
    if I define 2 decimal places for amount
    then the UDF result  will be 0.84
    But if I define 3 decimal places for amount
    then the UDF result will be  0.83
    Best Regards
    Helen Sun

  • Formatted Search formula result in 4 digit

    Hi Experts,
    Can we round the the result of formatted search formula into 4 digits ?
    See sample below
    SELECT (325.000000 * 0.750000 ) / 100 from inv1
                    Current result       2.44*             
                     * Result should be           2.4375*
    Regards,
    Amy

    Hi,
    I think Shen Jiang refers to
    Administration -> System Initialization -> General Settings, Tab 'Display'. Here you can define the default decimal places.
    Kind regards
    Mario
    Edit: But refer also to [CHANGING DECIMAL PLACES|CHANGING DECIMAL PLACES]
    Edited by: Mario Schoenberg on Mar 31, 2009 8:20 AM

  • Formatted Search is not auto-refreshed when Item Description changes

    Hi all,
    I have a UDF "Packing Details" at Goods Receipt screen row level.
    My formatted search setting is the field should be auto-refreshed when Item No is changed.
    1) I press TAB at Item No and choose an Item, Packing Details UDF will auto-refresh. (No problem)
    2) However, if i press TAB at Item Description and choose an Item, Packing Details UDF will not auto-refresh. I need to press SHIFT+F2 to make packing details appear.
    I try the same setting at Goods Receipt PO, the Packing Details UDF will refresh automatically regardless i choose the item from Item No or Item Description.
    Is anyone face this problem before?
    Thanks.
    Regards,
    Lay Chin

    Thanks Gordon.
    I have told this to customer before, but they prefer to have 'Refresh' on both Item Code and Item Description.
    I think we have no choice but let the customer to choose either one, right?
    Thanks.
    Regards,
    Lay Chin

  • Formatted Search returns no values

    Good Afternoon
    Experts:
    I have a situation where I am using a Formatted Search on the BINS column of the Inventory Tab matrix for the ItemMaster Data screen.  It works great...displays the information I am looking for.  Here it is:
    Select T0.U_BinLoc AS 'Bin Location', T0.U_WhseCode AS 'Warehouse', T0.U_ItemCode AS 'Item Code', T0.U_Quantity AS 'Qty in Bin' FROM [@ITEMBIN] T0 where T0.U_ItemCode = $[OITM.ItemCode]
    <b>Issue:</b>
    If there are no entries in the @ITEMBIN table for the item in the ItemNumber field, the FormattedSearch box does not pop-up.  Good so far.  However, the screen changes to Update mode. 
    <b>Questions:</b>
    1)Is there some kind of "no result invisible" character that is getting returned back to the column behind the scenes? 
    2)How can I alleviate this behavior and just have the screen stay in OK mode if there are no results from the Formatted Search?
    Thanks,
    Ed

    John:
    I was not aware I could utilize that type of functionality in the query for a formatted search. Thanks for the suggestion...I will try it.
    Ed

  • Formatted search - Service call

    Dear All,
    Im trying to write a formatted search on the Service call screen to retrieve the email address of a queue. The queue is in the general tab of the Service call. You can add user defined fields for the service call-title, service call -solutions, service call- activities etc.
    I have added the userdefined field on the service call-title.
    My formatted searches can access all the other header details on the service call but I cannot get the queue data in the general tab.
    Kindly assist,
    Thanks,
    Indraj.

    Hi Indraj
    If I understand correctly you cannot add a formatted search on the queue field? If this is not so, let me know. If it is the Queue field, you must select the radial button to the left for the queue field to be active. I tested by doing the following:
    1. Added a UDF on Title level called email (U_email).
    2. Added a query - SELECT T0.[email] FROM [dbo].[OQUE]  T0 WHERE T0.[queueID] = $[OSCL.Queue]
    3. Added a formatted search to the email UDF and linked it to the query. Set auto refresh on field "queue"
    This works 100% whenever I select a queue number.
    Kind regards
    Peter Juby

  • Formatted search - Copy Business Partner address of active screen

    Hello,
    I am using a credit card addon that creates a tab in Business Partner Master Data labeled "Credit Card". On this tab, credit card information is stored for the business partner. This includes CC Name, CC Type, CC Cardholders Name, CC Number etc.
    Credit cards are added on this tab, similar to an address being entered on the address tab. You have to click "Add New"
    The business process is the following:
    - CSR receives call from random customer (no BP data exists)
    - CSR creates new BP
       - Enters address for Bill to and Ship to.
       - We are required by this addon to enter address on credit card for a third time. This is where we would like to streamline the process by creating a formatted search to copy the Bill to information from the Address tab, to the address information on the credit card tab.
    This is where my dilema is. I am not sure how to capture the active record's information and bring it over to the credit card tab.
    Does anyone have an recomendations?
    John Sefton

    From what I have noticed.  You can create individual FMS and place them in the respective fields in the CC Tab.  I could only test this on the BP Remarks and they seem to work.
    For Address Name
    SELECT $[$178.1.0]
    For Street
    SELECT $[$178.2.0]
    For Block
    SELECT $[$178.3.0]
    Please enable system information from the VIEW menu for the other field co-ordinates

  • 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 on Service Call

    Dear All,
    Im trying to write a formatted search on the Service call screen to retrieve the email address of a queue. The queue is in the general tab of the Service call. You can add user defined fields for the service call-title, service call -solutions, service call- activities etc.
    I have added the userdefined field on the service call-title.
    My formatted searches can access all the other header details on the service call but I cannot get the queue data in the general tab.
    Kindly assist,
    Thanks,
    Indraj.

    HI Indraj,
    On the user defined fields area if you want to use the formatted search, use must have to use the table and field names inside. (also if you have any field which not represented by variables eq: hidden fields):
    $[TABLE_NAME.FIELD_NAME]
    if you use normal fields area, and you have the variable on the form:
    $[$ITEMUID.COLUID.TYPE]
    where Type is:
    0 for gerenal
    NUMBER for numbers,
    etc.
    So Your solution is:
    SELECT T1.[email] FROM OSCL T0  INNER JOIN OQUE T1 ON T0.Queue = T1.queueID WHERE
    T0.[callID] =$[OSCL.callID]
    Regards,
    J.

  • Formatted Search Help required

    Dear All,
    I have a specific requirement by which I need to track out the Estimated Cost which is put in the Sales Order Row with a Udf vs the PO Cost been involved for a particular project in terms of Purchase Orders been raised in the system for that particular Sales Order No. Basically we want to know that if the Sales Order Estimated Cost is 100 then the PO should not be allowed to make for more than 100.
    In the Sales Order row I have an Udf called Estimated Cost U_ ESTCOST and users fill in every line item the Estimated Cost for that particular Sales Order.
    Now I have made the following Udf in Purchase Order Header as under :
    Sales Order Estimated Cost  as U_ORDESTCOST
    PO Cost U_ POESTCOST
    Now in the Sales Order Estimated Cost udf which is there in the PO header I want the sum up of the row which is been put in Sales Order Estimated Cost U_ ESTCOST for that particular BP project. Can formatted search be used wherein if while making the Purchase Order Sales Order Estimated Cost udf U_ORDESTCOST is updated when in the Purchase Order Accounting Tab BP Project Is put. The requirement is that if in the BP Project e.g 10001 is put then the formatted search should search the ORDR table which also has the same BP Project 10001 in the Accounting Tab selected and then from RDR1 its should sum up the Estimated Cost U_ ESTCOST.
    Now in PO Cost U_ POESTCOST field I want to have the total sum means Document Total of all the PO been made in the system till date for that Particular BP Project e.g 10001
    Kindly advise what best can be done so that we are properly able to control the system
    Regards,
    Venky

    Dear Gordon,
    Thanks for bearing with me.
    Let me just break the requirements.
    Now a New Sales Order is booked which is as under
    Sales Order Document Number - 10001
    Row Details as under :
    Items     Qty   Row Total  Estimated Cost (U_ ESTCOST)
    Item 1     1          100               20
    Item 2     1          200               30
    In Accounting Tab in BP Project its given 2000
    Hence the the sum of U_ ESTCOST is 50 for order number 10001 whose BP Project is 2000
    Now for the above Sales Order a Manual purchase Order is made in the system
    Purchase Order No 90000
    Row Detail as under :
    Items     Qty   Row Total 
    Item 1     1          100             
    Header has a udf named U_ORDESTCOST which means Sales Order Estimated Cost
    In Accounting Tab in BP Project its given 2000
    Now if you notice the common data which is there both in Sales Order and Purchase Order is the BP Project Number
    I want that whenever a Purchase Order is made in the U_ORDESTCOST field the Sum of Estimated Cost U_ ESTCOST should get filled automatically based on the BP Project which is been put in the Accounting Tab of Purchase Order.
    Means everytime 50 should be updated in U_ORDESTCOST because in the Sales Order where project code is 2000 theEstimated Cost (U_ ESTCOST) = 50.
    See if I want I can make a query but I am not able to use the same in the formatted Search. The query is as under :
    SELECT sum(T1.[U_ESTCOST]) FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.[Project] = [%0]
    The above query if attached is working fine in the Formated Search but due to [%0] its asking me to put the BP project which I want should automatically pick or refresh based on what is put in BP Project in Account Tab in Purchase Order. I think I need the BP Project $ some number....
    Regards,
    Venkat

  • Formatted Search to pull Sales Order Remarks field onto Purchase Order

    Hi Guys,
    I need a formatted search for a Purchase Order remarks field, which will pull the remarks field from the linked Sales Order
    (When a PO is done through the logistics tab of the Sales Order)
    I have made this query but it is not working:
    SELECT distinct T0.[Comments] FROM ORDR T0 , POR1 T1 WHERE T0.[DocNum] = T1.[BaseRef]
    It is just pulling the remarks for the first sales order - purchase order link.
    Any help will be appreciated.
    Thanks
    Best Regards
    Dario Moutinho

    Hi Dario Moutinho,
    Try:
    SELECT distinct T0.Comments FROM ORDR T0
    WHERE T0.DocEnthy = $[POR1.BaseEntry\]
    Thanks,
    Gordon

Maybe you are looking for

  • Standard transaction CG02 is not saving the data through F4 help.

    Hi Guru's, I have a standard transaction CG02 for this i need to maintain the data for few of the fileds like Heat sensitive, Thermal energy hazard etc for updating Derived C-Alpha code. So for i can able to maintain data in two ways either directly

  • Wrt54g router and ps3

    okay i have a wrt54g version 6 router, with 1.02.2 firmware, and no matter what i do, i cant get the NAT type on the ps3 to get to 2, its always 3, so i cant play some games online, ive tried forwarding the ports with dmz off and UPnP off, and ive tr

  • New agent not show in grid control

    I had 10.2.0.1 agent register in grid control 10.2.0.4. I delete agent from grid control OEM target GUI interface. delete agent home directory from target machine, then I install a 10.2.0.4 agent on target machine, but this agent did not show up in t

  • UpdateNativeDir Utility

    When we have a user move from one OU to another, we are told that this UpdateNativeDir utility fixes the problem. 1. Does this utility only update the Shared Services relational database? 2. Are there other steps required to update security for users

  • MDM adpter picking up file twice.

    Hi, my scenario is MDM->PI->R3. When the XML files are generated into MDM ready folder,PI is picking these files twice. For Ex: Material no A20 is getting picked up twice. (Its result two messages in SXMB_MONI.Two IDOCS getting created at R3.) 1st me