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

Similar Messages

  • Formatted Search query on Sales Order Lines

    Hi Experts,
    I have a client that needs a Formatted Search that will bring back values according to the following Scenario:
    The Formatted search will be placed on the Sales Order Lines RDR1.U_UPC field.
    On a Sales Order I have created UDFs: RDR1.U_Label and RDR1.U_UPC
    On the BP Master Data I have created the UDFs: OCRD.U_UPCChoice
    On the Item Master Data I have created the UDFs: OITM.UPCRetail and OITM.UPCLoc and OITM.UPCItem and
    OITM,UPCOther
    When the RDR1.U_Label field is '1', I need the RDR1.U_UPC to be the text 'not Applicable'
    When the RDR1.U_Label field is '2', I need it to look at the OCRD.U_UPCChoice.
         If that value is '1' then it must bring back the OITM.UPCRetail Value back in the RDR1_UPC field,
         If that value is '2' then it must bring back the OITM.UPCLoc Value back in the RDR1_UPC field,
         If that value is '3' then it must bring back the OITM.UPCItem Value back in the RDR1_UPC field,
         If that value is '4' then it must bring back the text 'Look at Attachment'
    Any help would be greatly appreciated.
    Thanks,
    Marli
    Edited by: Marli Schutte on Aug 31, 2009 6:29 PM

    Hi Marli,
    Try this:
    IF $[RDR1.U_Label] = '2'
    SELECT Case T0.U_UPCChoice
    When 1 THEN T1.U_UPCRetail
    WHEN 2 THEN T1.U_UPCLoc
    WHEN 3 THEN T1.U_UPCItem
    WHEN 4 THEN 'Look at Attachment'
    END
    FROM dbo.OCRD T0, dbo.OITM T1
    WHERE T0.CardCode = $[$4.0.0] AND T1.ItemCode = $[$38.1.0]
    Thanks,
    Gordon

  • How to pull sales orders based on a Campaign??( I have created one Campaign and i need to know,for how many orders it was applicable)

    How to pull sales orders based on a Campaign ID??( I have created one Campaign and i need to know,for how many orders it was applicable)

    Hello,
    as far I understand you are talking about campaign determination. Once a sales order is generated having a campaign determined the campaign creates a reference to the sales order. The best way to track the assigned sales orders is using the related transactions function:
    The same feature is available for trade promotions as well.
    The data is available in table CRMD_BRELVONAE - you can also write a report selecting on OBJGUID_A_SEL with the campaign or TP guid and OBJTYPE_A_SEL with BUS2010020 for campaigns and BUS2010030 for trade promotions.
    Is this answering your questions?
    best regards,
    Johannes

  • Batch Search While Creating Sales Order

    Hello Experts,
    I tryed to assign the batch in sales order with std item cat TAN ( Redio button ticked for Item cat TAN in Automatic Batch determination for SD in SPRO) but system shows the following msg
    The system did not find any selection criteria for material HOWKINS_COOKER, batch TESTVD
    Message no. V2097
    Procedure
    Check the selection criteria and, if necessary, change the batch search strategy.
    Please help me in this regard.
    SAP PP

    create a batch search strategy in VCH1 for the material ( selection condition SD01)
    if you want to sort with FIFO LIFO, then create a sort rule in CU70 and assign in batch search strategy

  • Variant characterstics search help in sales order using object dependency

    Hi Sapients,
    we are trying to configure variant configuration in sales order.
    TDC related details like grade,profile,tdc no, tdc date, tdc customer, hardness, composition will be entered through a ZPROGRAM and the details will be stored in ZTABLE (ZTDC).Now when we create sales order, after entering the material and clicking on variant configuration, the configuration screen comes up where the grade and profile will come from the material master. User will punch the appropriate TDC number, but a search help needs to be generated for TDC no based on the values of grade and profile, which will show the tdc numbers punched for that particular grade and profile from the Ztable.
    Please guide me how to resolve this issue. shall i create dependency based on TDC no. In dependecy what is the code i have to write . Please elaborate in detail as i dont have idea on dependency.
    Is it possible through user exit.
    Thanks

    Hi,
    My thoughts are as follows.
    If for a particular combination of grade and profile, there is unique TDC number, then it is possible to use variant table. However if the number is not unique for a combination of grade and profile, then V.Table will not help. Dependency using V.Table will not give the possible list of values, but will automatically update the value based on grade and profile.
    If the combination is not unique, you can think of using a FUNCTION (CU67). SAP documentation is very good on using functions and function modules related to this. It is not as difficult as we think it is and we are using functions for some of our functionalities.
    So based on this, you can decide on your further actions.

  • Search mech in Sales order

    my client getss 100 materials in one sales order he wants to go to a particular mat directly without having to scroll is it possi plss assist
    regards
    maddy

    Dear Maddy
    Yes there is a way.  In sale order, select "Item Overview" tab and click on "Position" tab which is 4th from left bottom icons.  Now system will ask to enter material code.  Enter the material code and execute so that it will take you to the respective line item.
    But in case the same material exists in multiple line items, then you will have to check it manually as system will not caution about this.
    thanks
    G. Lakshmipathi

  • Inbox search for ERP sales order

    CRM 5.0 SP11
    Objective is to pull up an order from ECC in the ICWC inbox with the ability to change the order.
    in IMG t-code CRMC_IC_AUI_MAINCAT I changed the TA from ONEORDER to ERPORDER.
    In t-code CRMC_IC_AUI_MAP_PRI I copied the ONEORDER entries to ERPORDER.
    The TA is in my inbox profile.
    I can create an ERP order that is created in ECC (good), but when I do the inbox search the system times out.  
    The inbox search works with ONEORDER settings, but then I'm changing the order in CRM not ECC.

    Config settings were correct, needed oss note 1005642, the inbox search is very slow but working the performance issue with oss.
    But I was able to change an order in ICWC that updated ECC directly.

  • Formatted  Search to Salesman in Order Row

    Hi, everybody!
    I create the FMS bellow to find the salesman in BP based in trademark of this BP buy. But now I need a message error when the salesman code is '-1'  or when the BP dont have a salesman associated in the trademark. Is it possible with a FMS?
    declare @marca int
    set @marca=(SELECT T0.[U_CD_MARCA] FROM OITM T0 WHERE T0.ITEMCODE = $[$38.1.STRING])
    SELECT CASE
    WHEN T0.U_SMT_MARCA1 = @marca THEN T0.U_SMT_VEND1
    WHEN T0.U_SMT_MARCA2 = @marca THEN T0.U_SMT_VEND2
    WHEN T0.U_SMT_MARCA3 = @marca THEN T0.U_SMT_VEND3
    WHEN T0.U_SMT_MARCA4 = @marca THEN T0.U_SMT_VEND4
    WHEN T0.U_SMT_MARCA8 = @marca THEN T0.U_SMT_VEND8
    ELSE $[$38.11.STRING] END
    FROM OCRD T0 Where T0.CardCode=$[ORDR.CardCode]
    Thanks

    Carlos,
    FMS cannot generate an error message.  They can only be used to fill a field with some value like "INVALID", etc.....
    If you want to display an error message or warning on the task bar then you need to use the SBO_SP_TransactionNotification stored procedure and write SQL code within that.
    This Stored Procedure can be accessed from SQL Server Management Studio.
    Suda

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

    Hi,
    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

  • Getting Delivery Date of an item on Purchase to appear in Sales Order form

    Hi Experts
    Can you tell me if and how it might be possible to get the future delivery date of an item on a purchase order to appear at the row level in Sales Orders for an item which is out of stock?  I assume it will need some type of formatted search to pull the information out of the Purchase Order system or is there some standard SAP B1 functionality which I am not aware of?
    Thanks
    Jon

    Hi
    It is very difficult to get that date in sales order coz too many conditions involve in the querry.
    Ashish Gupte

  • 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,
    Jane

    Thanks 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 in the User defined table

    Hi All..
    I created two user defined table one is for document row and other is for document master.So in the master table created one column named as Sales order no and through formatted search call the sales order no in that column.Now i want that in my child table i want to show the those items which belongs to the selected sales order no in the master table.So how can i do that through Formatted search.Is there any query of it then please forward it..
    Thanks

    Ya Sure..
    I need some quality check on the items after delivery so i am trying to manage it through the user defined tables.I created two tables first is document type ,Second is Document type rows.Now i created 5 user defined field in both the table.Now i want to call my sales order and its items in the UDT.so i created one fms and call the sales order in the Document table now when i double click on the first row after that i am able to see the new table which is the document row table .Now i need the item code and description of the selected sales order in the document rows table.So how the items and description can come in the row type table through FMS..
    I hope now u r able to get my scenario..

  • Special Price + Formatted Search for Special Price.

    Hi all,
    Appreciate some help here.  Our client is using SAP B1 2007 Patch 38.  AU/NZ localization, Local Currency = AUD.
    Scenario:
    Item A, Price List 1 = $2795, Price List display = 4 decimals, Price List Currency = USD
    Special price for Item A has been set up as follows:
    Step 1 - Go to Item> Price List> Price and Volumne Discount
    Step 2 - The price and volumn discount screen opened. From the drop down, select price list and then select Item A by double clicking the line.
    Step 3 - Period Discount screen opened.  Valid from = 9th July 2008. Price = $2795.
    Step 4 - Double click the line, Volume Discount Price List open, with the following details maintained.
    Quantity=1, Discount=0, Special Price = $2795.
    Quantity = 10, Discount=7.1556, Special Price = $ 2595.0010
    Quantity = 100, Discount=10.0179, Special Price=$ 2514.9997
    Question:  we intend to put in Special price = $2595 and $2515, but SAP just does its own round up.  Is there a way to work around?
    Scenario 2:
    To deal with the problem from Question 1, we have created a formatted search in the sales order and formatted search to round up the value in Line Total.
    Column = Line Total
    Trigger by = Quantity
    Query = SELECT (case when $[$63.0.0]='USD' then Round($[$38.23.number],0) else $[$38.23.number] end)
    Column = Quantity
    Trigger by = Discount%
    Query = SELECT $[$38.11.1]
    The above set up works fine, if the user enter the quantity correctly the first time. 
    Eg:
    User enter Qty = 10, SAP will display Discount = 7.1556 % and Line Total = $25,950.00 (Round up from $25950.01).
    If user notice the quantity is wrong and then enter new quantity = 100, the discount remains at 7.1556%, it should be 10.0179%.
    Question: Is there a way to work around this?

    Hi Shawn ,
    1.First check the decimal setting
    a.Administration --> system intilisation --Document setting -- currency or by document --
    b.System initiliaisation ---> general settng --->Display
    c.Administration set up->Financial currency ---rounding --???
    Currency setting overides the rounding method of procedure B
    Scenario2
    Since your trigger is dicount percentage , You will not get the desired output from the formatted search . Try to get the trigger at quantity .
    Hope that helps
    Bishal

  • Field with predefined values (F4 field) in sales order

    My customer needs to enter data in sales order and then filter/sort on it in VA04/VA05 and currently uses field "Name" in the header but this is is text field and errors occur. Is there another field, where list of values can be predefined (field with F4 possible values) that can be used in the sales order?

    Hi
    Please, see these notes
    SAP Note 549438 - FAQ: Search help for the sales order
    SAP Note 389876 - Search help for sales order items
    When you define your own elementary search helps you have a field to populate the 'default value' (see it in tcode SE11)
    Regards
    Eduardo

  • Adding a new search criteria in Web UI for Sales Order

    Hi,
    We have a requirement for Web UI as follows :
    We want to add the ID number (identification number in BP ) as search criteria for Sales Order simialr to search criteria available in Accounts with ID number .
    Can any one please give some inputs on this ?
    Regards
    Vinayak

    Hi Vinayak,
    I will try to give you some technical advise.
    What you would need to do is:
    In transaction SM30 open up view: CRMV_OBJ_BTIL
    There is an entry for External Object Name "BTQAct"
    The currently used DDIC structure is CRMST_QUERY_ACT_BTIL
    You will need to adjust this structure to bring completely new parameters to the UI. This means put in your own.
    As you can see in detail for this entry there are three fields with name "Structure" the last one is for the GenIL handler class. Currently it should be empty (there is some fancy SAP logic to determine it automatically). You can override it with your own handler class implementing the logic. As a hint: The implementation class currently used is: CL_CRM_QACT_RUN_BTIL
    Anyhow most 1Order searches are handled by the class CL_CRM_Q1O_SEARCH perhaps you can use it as well. Additionally it would be a good idea to provide your users with a value help.
    Oh and there is a customizing that lets you define which options (IS, BETWEEN, IS NOT, ...) should be available for the user. Please do not try to do this hardcoded
    cheers Carsten

Maybe you are looking for

  • Issue Regarding Bank Key

    Experts When i am trying to create IT0009 with Bank details, While chooing bank key i am getting another screen with bank counry Inida but i am not getting the bank list and getting the message Search was unsucesfull. I already moved the  Configurati

  • What version least buggy 5.0 through 6.0.1?

    I need info on old versions of itunes 5.0 through 6.0.1. Are versions 5.0, 6.0 for Mac stable and non-buggy? Is the low volume prolem I ran into in 6.0.2 and 6.0.3 present in 6.0.1? I found 5.0 online but can't find any other version 5 for Mac. I'm s

  • Maximum hard drive capatcity on Xserve G5?

    Hi: I want to upgrade the hard disk capacity on my Xserve G5. The apple specs page indicates up to 500gb. Has anyone attempted to install at 750gb drive into these drive modules? I am looking at the Seagate Barracuda ES ST3750640NS 750GB 16MB Cache S

  • Firefox Sync Bookmarks not working!

    On one of my computers, I cannot sync the bookmark data on firefox (4b10), it works fine with bookmarks unchecked and everything works on another computer with 4b10, but it only gets an Unknown Error on the first computer.

  • Help! i cannot install windows7 on my macbook pro!!

    hi everyone i am the first time posting in here, i just wants a solution to the problem that when i install windows7 ultimate 64bit, it freeze ramdamly during the installations do any body knows why and how to solve it, thx guys