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

Similar Messages

  • Formatted Search Help

    Hi,
    Kinda new to this formatted search. Can anyone help me with this question.
    I want to make a formatted search to make a column in sales order 'U_ItemType' so that if it is not null/if it is gift or sample, it will enter the value 'Y' in U_FOC. How do i do this?
    Also can anyone point me to any resource to learn up on formatted search.
    Thanks

    You will need to create a query something like:-
    [code]SELECT CASE $[$38.U_ItemType.0] WHEN 'Gift' THEN 'Y' ELSE 'N' END[/code]
    This will need to compare the value of the U_ItemType in the current row to any conditions you want (eg. = 'Gift'), and return appropriate Y/N value.
    Next you need to define the FS on the U_FOC field.  When defining it you probably want to set:-
    -Search By Saved Query (select query created above)
    -Auto Refresh = "Y"
    -When existing column altered
    -Column = "U_ItemType"
    -Display Saved Values
    You can find out more about formatted searches in some of the online training courses available on the service marketplace (http://service.sap.com/smb).  The training courses are available in the Education section under the heading "Learning Maps / Development Consultants".
    Regards,
    John.

  • Authorization Group (BEGRU) search help  required in Easy DMS

    Hi all,
    I had defined some value in authorization group (BEGRU) in SAP. When i opened the Document using CV01N/ CV02N transaction, then F4 help is available to me.
    but when i opened the same document via SAP Easy DMS 7.0, Search help functionality is not there.
    How could i activate this.
    Pls.. Suggest.
    Regards,
    S Anand

    Hello Sheo,
      EasyDMS does not provide search help for Authorization object as of  the latest release. The search help achieved by customization of the domain BEGRU does not reflect in EasyDMS.
    To achieve this, you can enhance easydms interface by using either easydms plugins or EasyDMS custom tab.
    refer:
    http://wiki.sdn.sap.com/wiki/display/PLM/EasyDMSPlugin%28Addin%29-Advanced+Development
    note: 1355293
    Regards
    Surjit

  • UDF - formatted search help using query

    I've created a UDF for 'activities' called U_BP_Link - it has a formatted search query which simply displays all data in the OCRD business partner database.  I wanted to also fill in a UDF which would display the 'description' of the BP that was selected in the U_BP_Link field.  I'm having trouble coming up with the correct syntax for the query associated with the UDF name field.  This is giving me a syntax error near $[$U_BP_Link]................
    SELECT T0.CardName FROM OCRD T0 INNER JOIN OCLG T1 ON T0.CardCode = T1.U_BP_Link Where T0.CardCode = $[$U_BP_LINK.1.0]

    Good Day,
    I don't fully understand your situation.
    I'm thinking you have 2 UDFs. One is OCLG.U_BP_Link and the second is the 'also fill in a UDF' and that is to be populated with OCRD.CardName based on data entry in OCLG.U_BP_Link
    That being the case, I would create a FMS on OCLG.U_BP_Name field to:
    1) Search in Saved Query - create query similiar to SELECT OCRD.CardName FROM OCRD, OCLG Where OCRD.CardCode = $[OCLG.U_BP_LINK] FOR BROWSE
    Create and test the query and after results are generated as expected, substitue the $[OCLG.U_BP_LINK]. The query will error in SAP but is OK for use in FMS.
    2) Auto refresh when Field Changes
    3) Based on field OCLG.U_BP_Link - actually the description for this field.
    4) Display saved values
    It could work.
    M

  • PCUI 4.0, Search Help Required for New field

    Hi everyone
    I am working in CRM 4.0 Sales Order application
    We created a new field in CRM sales Order in Header level in SAP GUI through EEWB.
    The search help for the new field is working fine in SAP GUI. We want to add the same field with F4 help functionaliity in PCUI as well.
    The field has been added in structure CRMT_BSP_SLS_OD1_General. It also shows domain value for the field however Origin of input field ie empty
    The field has been added in PCUI and is successfully showing data inputted in SAPGUI
    However we need search help functionality for the field
    i tried these two steps
    1) i checked on domain value checkbox and changed the field from input to dropdown. However the dropdown is empty in PCUI. Whenever i check box domain values for some field then all the possible values in SPA GUI are displayed in PCUI, however this is not working here.
    2) I put Value_table in F4 of the field
    This is also throwing up empty values
    Am i missing something in this case
    Please let me know how to go about it
    TIA
    Asad

    Hi Frederic
    Thanks for your response
    I am not sure what is meant by regenerating the field group in this case
    I added the entries for my view in the field group and generated the layout of the field group (If this is what you mean)
    The field is working fine. I am able to save values to the field and able to see values saved in GUI.
    I haven't linked search help of the field in PCUI
    I am not sure how to go about it.
    I used the data element in the structure for the field.
    The data element has Domain entry in <b>Entry Help/Check</b> of the structure
    If i check the Domain Value checkbox in my field group then the domain values should be available in dropdown if the field is dropdown
    However i am not able to see the possible values of the field (It is present in SAP GUI)
    Does something else needs to be done in this case
    TIA
    Asad

  • Search Help with in a serach help required in SRM 4.0

    Hi,                                                     
    Requirement: Search help required for Product Category field in the Search help for Product(BBPH_PRODUCT) in SRM portal.
    This search help is used in Create shopping Cart transaction. The hyper link on Internal Goods/Services leads to the search help BBPH_PRODUCT. 
    My analysis:           
    The field Product Category (CATEGORY_ID) has search help(COM_CAT_HIER) attached to its data element. When I single test the search help BBPH_PRODUCT in SAP GUI,I can see the search help for field product category in the selection dialogue box. However the same does not appear on the corresponding screen in HTML.
    Please let me know whether I need to do some thing to make the search help appear on the HTML screen?
    With Regards,         
    Prakash Kamath

    Hi Prakash,
    I have the same problem but with another field. Unloading point. Could you please tell me how did you solve this problem with displaying F4 help on html/ SRM portal?
    Thank you very much.
    Best regards,
    Danijela ZIvanovic

  • Search help for Acct Assignment not working

    Hi,
       When I create a PO and go into the account assignment tab at the item level and try to bring up the search help by clicking on the Binoculars , nothing happens. The backend has been upgraded to ERP2005. We are on SRM 5.0
    Any thoughts on why this could happen?
    Can you shed some light on how I could investigate this issue.
    Your help is appreciated.
    Joe

    Hi
    This is a bug in the System.  Are you talking of customer fields / standard fields - search help ?
    You need to raise an OSS message with SAP on this.
    Meanwhile, try these SAP OSS notes.
    <u>Note 739509 BBPPO01: SEARCH FOR ACCOUNT ASSIGNMENT CATEGORY DOESN'T WORK
    Note 746788 - Back-end system search help for cost center
    Note 656633 - Search help requires dialog users
    Note 907016 - Error when you select search help</u>
    Also ensure, proper authorization objects are provided by BASIS team.
    Let me know incase you need any assistance.
    Regards
    - Atul

  • Help needed for Formatted Search

    Hai Experts,
    would like to ask you some clarification on Formatted Search. In the
    query I found $http://$44.2.1 given in the criteria part.
    In some articles it was mentioned that, the 44 meant for the table
    connected with the form and 2 is field index and so on.
    Can you please explain how to find out those numbers and field index.
    I need to work out planty of FMS to fetch data into
    UDF automatically based on user input.
    Regards
    Anand

    Hi Anand,
    You may check these threads first:
    Re: Vendor default GL FMS help
    Re: Runtime data calculation
    Thanks,
    Gordon

  • Help required in Search help

    Hi Friends,
       My requirement is that when user Clicks on pushbutton in module pool screen,popup window with 4 radio buttons to be displayed.Once user selects the push button and said ok...Then Search help has to be displayed with Selection Criteria for 4 fields..the selected radiobutton in the popup has to be passed on to the one of the search help input fields as a default value and the remaining input values will be entered by user manually as per the requirement. Finally result has to come for the user input.
    Could any one suggest me how can i do this?
    Thanks & Regards
    Ravindra

    Hi,
    Try this.
    In the user command of the first screen( in which the push button is placed and its func code is PB) in the function code 'PB', do the following
    1. Call a new screen with x and y coordinates so that it appears as a pop up window
       ex:  call screen 9000 starting at <x> <y> ending at <x> <y>
    2. In the 2nd screen 9000, place 4 radiobuttons and create a gui status with ok and cancel buttons.
    3. In the usercommand of the 2nd screen 9000, check for the ok code of 'OK' button and pass the value to the input fields in the 1st screen.
    4. Then use the passed value and filter the search help value based on it and call the function module F4IF_INT_TABLE_VALUE_REQUEST for the search help of the required fields.
    Hope this may be helpful.
    Regards,
    Sharin

  • Step by step procedure of creation of Search help is required...

    Hiii,
    Can any one send me the detail step by step procedure for creation of Serach Help... like simple search help , collective search help and complex search help...
    If possible send some exampless for creation of search help.
    vamsii..

    Search help is an object of the ABAP Dictionary with which input helps (F4 helps) can be defined.
    You can create it in the Transaction Code SE11, choosing "Search Help" Radio-Button.
    There are the following types of search helps:
    Elementary search helps implement a search path for determining the possible entries.
    Collective search helps contain several elementary search helps. A collective search help therefore provides several alternative search paths for possible entries.
    Append search helps can be used to enhance collective search helps delivered by SAP with customer-specific search paths without requiring a modification.
    Check step-by-step process for creating elementary search help.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ee5f446011d189700000e8322d00/content.htm
    Also check this thread.
    what is the use of search helps? where can we creat it?
    Regards,
    Maha

  • Web dynpro ALV requirement with search help

    Hello Experts,
    I developed a custom transaction in Web dynpro. It has an ALV display in editable mode where the user can enter Material number, plant, quantity and Batch as input fields for Production confirmation.
    There is a requirement to add a search-help to BATCH field similar to the one that appears in std. MFBF transaction. Basically what it means is that I will have to capture the material, plant of that line in ALV table and get the stock and batch details from MCHB table and provide them in search help.
    I created a dictionary search help with a search-help exit FM that will extract the details from MCHB table. I am having trouble in extracting the line index to get the material number and plant values from the view to export.
    Please help me as to how to extract the line index of an ALV table for which the F4 help was clicked.
    Also it would be great if I could find a much simpler and better approach to handle the requirement.
    Regards
    Pratyusha

    Hi,
    If you have set the help mode as dictionary search help in your context, and if you have defined your search help to have these importing and exporting parameters, then it will work without you doing anything else. Provided you have mentioned the name of the search help in the structure definition itself. You do not have to write explicit event handlers for dictionary search helps.
    Or else, you can use an OVS search help. In that case, in the OVS event handler, you will have a parameter ovs_callback_object. Ovs_callback_object->context_element will give you the element on which the F4 was clicked. If you do a get_static_attributes on that, you will get the values of each attribute. Then you can call your function module to get the Batch field. I think OVS will suit your requirement. You can see examples of OVS in the component demo_value_help in the package swdp_demo.
    Hope this helps.
    Regards,
    Nithya

  • Date format error in Search help

    Hi,
    I am using standard search help in my ABAP webdynpro application.It is related to payscale group (field P0008-TRFGR). It works fine if I do not specify any date but gives a error message "Enter date in the format __.__.____ "   irrespective of the date format I use to enter.
    Any pointers ?
    Regards
    Deepak

    Hi Deepak,
    Try following things:
    1) check separator / instead of .
    2) date in format mm.dd.yyyy or dd.mm.yyyy
    3) enter date through search help
    4) enter 0 before one digit month or day i.e. 02/02/2009 instead of 2/2/2009
    Regards,
    Saket.

  • Formatted Search with DI  leads to a very slow performance - HELP....

    Hello There
    I have defined some formatted search in OPCH - everything is working fine.
    I have added some logic to this form via the DI.(handlling 1 item press_event), and I get a very very slow performance - the ADDON-EXE jumps TO 230MEGA of memory, and entering values to each row in the tables/item in the form takes about 15 seconds.
    Any suggestions?
    RGDS
    HAGAI

    Hi Hagai,
    Normally an addon written using the DI would take up 60-80MBs.
    Are you filtering out all events except for the item press event for the form? If you are not filtering events then this can have quite a drastic affect on performance.
    What logic have you got behind the press event? If the addon exe is ballooning out to 230MB then it suggests that there is either a problem with a memory leak or that an error is occuring in the code. I would recommend putting try/catch clauses at suitable places in the code and maybe specifically setting objects to null and calling the .NET garbage collector to try and minimise the potential for memory leaks.
    Are you sure that it is the combination of the formatted search and the addon that is causing the problem, i.e. if you take away the formatted search but leave the addon do you still get poor performance or does everything speed up?
    Hope this helps,
    Owen

  • Search Help error : Invalid field format Screen error

    Hi All,
    I have attached a search help to contract field for contract no and item number. (in my own screen developed in a  report)
    The search help picks up data and assigns it to the fields,
    But after this when I click on any other button, I get error saying :
    <b>Invalid Field Format (Screen Error) !!!</b>
    Any pointers guys !!!
    Warm Regards,
    Girish

    screen checks in abapautomatically checks for format of field when u enter data....i.e date, integer etc...the problem in this case is that when u seelct a value using the help it is filling a value which is not the correct format...so check for the data types and test it again...this is definitely the problem.

  • Help on Formatted Search

    Hi Experts
    I would like to get some help on a formatted search I wish to created which will show the payment terms of a BP in a UDF on the Sales Order form.
    I have created a UDF and applied a formatted search to it which only brings in the record key of the payment terms:
    SELECT T0.[GroupNum] FROM OCRD T0 WHERE T0.[CardCode] = $[$4.1.0]
    Ideally I wish it to actually show me the Payment Group name from the OCTG table.
    Thanks in advance for your help.
    Thanks
    Jon

    Hi Jonny......
            You should use this query.......
    SELECT T1.[PymntGroup] FROM OCRD T0  INNER JOIN OCTG T1 ON T0.GroupNum = T1.GroupNum
    WHERE T0.[CardCode] =$[$4.0.0]
    apppply this to payment terms UDF in sales order.
    Regards,
    Best Rahul

Maybe you are looking for

  • Can't send text to some people

    I have a problem with texting that is driving me buggy.  I can't send a text message to my wife or my son.  They are both part of my friends and family plan.  There may be others, but I don't send a lot of text messages (there are at least six or sev

  • Execute Enterprise Manager Console

    I am running my Oracle 9.2 on Linux Red Hat 8.0. I would like to know how can I execute the Enterprise Manager Console without having to launch a terminal and type in "oemapp console"?? Is that anyway to launch the Enterprise Manager Console GUI?? Th

  • Removing Print from a Photo with Photoshop CS5's Content-Aware Fill

    If I have a whole line of type on top of a photo a clients sends me and I want to remove it, can I mark the whole line off with the Healing Brush Tool and proceed? Or do I need to select each letter individually? Thank you.

  • SIGSEGV because of SEGV_MAPERR?

    Hello, I'd like to ask if it's possible to find out the reason of a SIGSEGV (i.e. if it's a SEGV_MAPERR or not) by the core dump of an application. More specifically: - I have the core dump of the application. - I have the binary file of the applicat

  • Losing data when importing excel into an array

    Hi, I have been writing some code that imports data from an excel .xlsx worksheet file containing 890 columns and 150 rows. When I set the VI to import 702 columns everything works fine.  When I try to import 703 columns I get no data in my array.  T