FMS Auto Refresh when Field Changes

I have a client who wants to see the Sales Order # (ORDR.DocNum) in their UDF so it is easily visible from every related document.  I am currently auto fillling the sales order number when there is a change in their Customer PO# (ORDR.NumAtCard).  This works well except for the following instance: 
They will draft multiple sales orders at one time and then add them (multiple users).  Each time a new window for sales order is opened it contains the same sales order number as the already opened screen.  They then fill in their information which auto fills the UDF with the sales order number for the current window.  Once the sales orders are actually added, only the first one contains the correct sales order.  The other sales orders are changed automatically by SAP as you cannot have duplicate numbers.  The related UDFs, however, are not updated.
I's there a field that can be selected to Refresh the UDF when the "Add" or "Update" button is selected?

Phil,
A Sales Order ones added to the system will get a DocNum which is permanent.  Do the UDF update need to happen only when the document is actually added to the database.  You can completely ignore Update as this does not change the DocNum.
To get the correct DocNum instead of duplicates in case of draft's or other scenario's the DocNum should be filled in the UDF through the SBO_SP_TransactionNotification stored procedure.
This stored procedure lets you add your own SQL code inside it and will execute each time a database action takes place.
You can access this SP from SQL Server inside your company's DB > Programmability
If you search the term SBO_SP_TransactionNotificatio in this Forum you will find many examples to get started.
The key values @transaction_type and @object_type
@object_type = '17' ...................stands for Sales Order
You can check this sample below
IF @transaction_type = 'A' AND @object_type = '17'
BEGIN
           UPDATE ORDR SET U_YourUDF = DocNum WHERE DocEntry = @list_of_cols_val_tab_del
END
NOTE: U_YourUDF should be replaced with the name of your UDF
Suda

Similar Messages

  • 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

  • Web-I Report taking lots of time to refresh when filters changed

    In BO XI 3.1 Web-I report is taking lot of time to refresh when any changes are made in edit query mode on the filters.
    When the query is runned for the first time it runs well, but if we make any changes in the filters pane, it is taking lots of time to refresh, and when we cancel the query web-i server is not releasing the server resources (CPU, Memory)
    Did anyone face this kind of a problem, and resolved it.
    Please let me know your thoughts
    Thank you

    Hi,
    why do you need 100K rows in your reports? Is there a way to consolidate/aggregate your data on the database?
    Comparing sqlplus and BOBJ is a little bit unfair. Let me explain you why:
    sqlplus starts displaying data after the query returns the first results. I am sure that if you measure the time that sqlplus needs to display ALL rows, this should be way more than just 10 secs.
    On the other hand BOBJ will display something as soon as the first page can be created. Depending on the way your report is structured, it may be the case that the WebI server should first get ALL rows in order to be able to display the first page of your report. This is for example the case if you let the total number of pages being displayed or if you display total sums already at the header of your report or if you have added a chart based on your data also in the header of your report. Of course, after the first call the report will be cached (and thus fast to be displayed) until you change again the parameters values for your query.
    Since you do not display (or do you use this function in a variable or a formula, maybe?) the total number of pages in your report, I can only assume that you either trying to display total sums (or other kinds of aggregated values) or a chart in the first page of your report. Can you confirm this?
    Regards,
    Stratos

  • Is there anyway to stop the auto-refresh when using HsGetValue?

    Hi there
    I am just wondering if there is a way to stop the automatic refresh when opening a workbook that has HsGetValue functions? The issue I am having is that when you create a report in Smart View using the HsGetValue function, save it down, disconnect from Smart View then open it up again, it automatically tries to refresh the data. If you do not type your login, it just changes to #NEED REFRESH and you cant see the data anymore. This only happens when you have Smart View installed, if you are on a vanilla computer you can see the numbers no problems.
    The reason we dont want it to refresh is that we want to be able to view data at a point in time, instead of always refreshing to the latest data.
    I know that I can stop the refresh by changing Excel to Manual Calculation, instead of auto-calculation on formulas, but this isnt a viable solution as users arent used to manually pressing the Calculate button in Excel for their non Hyperion work.
    We are using 11.1.1.3 Planning and Essbase.
    Thanks!

    See this post Smart view first refresh
    Aside from turning auto-calculation off, you would need to copy the cells and paste them as values to get a static worksheet. This will eliminate any future refreshes.

  • Using firefox 37 it auto refreshes when I enter @ why

    os is win xp
    Have two issues
    a Everytime i enter @ or the _ symbol while logging into any website the page auto refreshes and I am not able to login this problem is also encountered in ie 8
    b Also a default yahoo search tab opens up everytime I start firefox I have tried going to about config and change settings it works when i restart ff but next day it back to yahoo why

    I do not know why, but it does sound like there is a hot key that may be affecting this, its a guess. Are you holding any other key when this happens?
    *[[Keyboard shortcuts - Perform common Firefox tasks quickly]]
    IF this is not the case, try Firefox Safe Mode to eliminate if this is the issue with an add on: [[Troubleshoot Firefox issues using Safe Mode]]

  • Auto refresh when opening a workbook

    Hi
    When I open a workbook, I would like the query to auto refresh. In that way the planning user will see the latest planning values and not the ones saved in the workbook.
    Is there any functionality for running the planning function refresh automatically when the workbook is opened?
    Kind regards
    Erik

    Hi Erik,
    Once you open the workbook, just right click on result area and select properties.
    In that select the Interaction tab and then check Refresh query when opening workbook.
    Then dont forget to save the work book.
    Regards,
    anil

  • Auto refreshing when going from tab to tab

    Recently my Macbook has started to refresh every page when I switch from tab to tab.  Previously this didn't happen and it is very annoying.  Does anyone have a solution please?

    Thanks...I did that?..auto change was on...and Denver was the time zone designation.  I turned it off and then went in and changed the city to Ptown, then reset auto change and instantly the correct time was available...I appreciate your knowledge and help!!!  Thank you

  • ALV OO data is not refreshing when selection changes on previous screen

    Hi All,
    I have a module pool with 2 screens. First screen has plant and 1 button. When button is pressed in screen 1 the 2nd screen shows some data as per the plant selection in screen 1. The output of screen 2 is coded in OO ALV.
    Now the problem is first time when plant is input and button is pressed the data is fine in screen 2. However 2nd time onwards the data is not getting updated on ALV when plant selection is changed! It gets stuck to the data it produced the very first time.
    I've debugged the program and table which passes to method "set_table_for_first_display" is fine i.e. it selects new data everytime as per plant and fills this table. I've also tried GUI FLUSH, calling method "refresh_table_display", FREE, clear, unassign etc. etc. at diff. points but nothing seems to work
    <b>I'll be generously giving away points with any help.</b>
    Thanks.

    Hi,
    1. Please refresh the output table before the select query which you are passing to set_table_for_first_display.
    2. The ALV container needs to be freed & again generated everytime you call the screen.
    so on the BACK button of Screen 2 in PAI, release & clear the container
    In the PBO of Screen 2, Assign grid to container.
    Here is the sample program:
    PROGRAM TEST.
    DATA: OK_CODE LIKE SY-UCOMM,
          GT_SFLIGHT TYPE TABLE OF SFLIGHT,
          G_CONTAINER TYPE SCRFNAME VALUE 'BCALV_GRID_DEMO_0100_CONT1',
          GRID1  TYPE REF TO CL_GUI_ALV_GRID,
          G_CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
    *       MAIN                                                          *
    SELECT * FROM SFLIGHT INTO TABLE GT_SFLIGHT.
    CALL SCREEN 100.
    *       MODULE PBO OUTPUT                                             *
    MODULE PBO OUTPUT.
      SET PF-STATUS 'MAIN100'.
      IF G_CUSTOM_CONTAINER IS INITIAL.  " Check this
        CREATE OBJECT G_CUSTOM_CONTAINER  " DO this
               EXPORTING CONTAINER_NAME = G_CONTAINER.
        CREATE OBJECT GRID1  "DO this
               EXPORTING I_PARENT = G_CUSTOM_CONTAINER.
        CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY
             EXPORTING I_STRUCTURE_NAME = 'SFLIGHT'
             CHANGING  IT_OUTTAB        = GT_SFLIGHT.
      ENDIF.
    ENDMODULE.
    *       MODULE PAI INPUT                                              *
    MODULE PAI INPUT.
    *   to react on oi_custom_events:
        call method cl_gui_cfw=>dispatch.
      CASE OK_CODE.
        WHEN 'EXIT'.
          PERFORM EXIT_PROGRAM.
        WHEN OTHERS.
    *     do nothing
      ENDCASE.
      CLEAR OK_CODE.
    ENDMODULE.
    *       FORM EXIT_PROGRAM                                             *
    FORM EXIT_PROGRAM.
    CALL METHOD G_CUSTOM_CONTAINER->FREE. " Do under BACK button
    CALL METHOD CL_GUI_CFW=>FLUSH. "Do under back button
      LEAVE PROGRAM.
    ENDFORM.

  • Conditional validation - When field changed

    APEX 4.2.1
    Simple wizard-generated DML form on a table. Hidden numeric primary key (PK), displayed multi-column unique key (UK1,UK2); standard table design.
    Combination of conditional readonly and editable page items. NOT EXISTS validation to replace ORA-0001 with a friendlier error message. Validation should fire only when key fields (UK1 or UK2) are changed. Changes to other fields on the record should be allowed.
    But APEX server side conditions don't track item level changes. For instance, we can't say "Fire this validation only when P1_X or P1_Y are changed"
    How would this sort of thing be done? By adding OnChange dynamic actions on all the page items of interest to set a hidden page item, save that to session state and refer to it in the validation's Condition?
    Is this the right way to approach this?
    Thanks

    VANJ wrote:
    APEX 4.2.1
    Simple wizard-generated DML form on a table. Hidden numeric primary key (PK), displayed multi-column unique key (UK1,UK2); standard table design.
    Combination of conditional readonly and editable page items. NOT EXISTS validation to replace ORA-0001 with a friendlier error message. Validation should fire only when key fields (UK1 or UK2) are changed. Changes to other fields on the record should be allowed.
    But APEX server side conditions don't track item level changes. For instance, we can't say "Fire this validation only when P1_X or P1_Y are changed"
    How would this sort of thing be done? By adding OnChange dynamic actions on all the page items of interest to set a hidden page item, save that to session state and refer to it in the validation's Condition?
    Is this the right way to approach this?Not in 4.2 in my opinion. Drop the validation, let the DML process raise the ORA-00001 exception, and use the new error handling features to provide a user-friendly message.

  • ADFf 11g, view does not refresh when model changes

    Hi,
    I am really missing something about adf faces (jdev 11.1.1.3.0).
    I have a web app, with jspx, tabpanels and pojo data controls.
    Since there is a complex logic to open new pages/tabs, sometimes I have to open new pages/tabs programmatically, and also sometimes I have
    to refresh the model behind pages/tabs programmatically.
    When I say "programmatically" I mean that the model refresh is not started by an user action on the webpage, but is started by logic in the model layer
    (say, for example, you receive a JMS message and you want to reload the content of an entire page).
    I can succesfully update the model, using debug println I can see the model is updated, but there is no way I can update the view.
    I tryed with the "addPartialTarget" code and so on, but it does not work.
    I've also bought and read "Oracle JDeveloper 11g Handbook" and "Oracle Fusion Developer Guide", but I can't find anything that can help me.
    Can someone explain me: what am I missing? I am sure there is some concept in ADF Faces I missed: this framework is too
    big not to offer what I need, so I miss something for sure.
    I hope to get an answer, I hope Shay reads this too.
    Thanks all.

    Hi,
    Active Data Services (chapter 20 in the book) is what would allow you to synchronize the screen with the model changes. The problem you face is because the data you see is what is stored in the iterators of the binding layer. An alternative solution to using ADS is to use an af:poll component that refreshes the display component when the model has changed. For this your model exposes a method that returns a time stamp that changes whenever the data has changed. Upon af:poll expiring, it calls a managed bean method, which - through the ADF binding layer - checks for the time stamp and compares it with a local saved copy (whenever the time stamp has changed, the client side will e.g. write it to the viewScope or pageFlowScope). If the time stamp has changed, the managed bean re-executes the method populating the iterator for the UI components and then issues a partial refresh of the component(s). Instead of PPR'ing each component in turn, you can try setting the ChangeEventPolicy property of the iterators to ppr"
    This should solve the problem. The latter example is also explained in chapter 20, but for ADF BC
    Frank

  • FMS auto disconnects when using a class

    I am trying to implement a very simple class that will create
    an instance of the NetConnection object and connect to the FMS
    server. However, the client will connect then immediately
    disconnect when the swf is published. My code is as follows...
    FLA Code:
    import _includes.*;
    var obj_conn:Conn = new Conn();
    obj_conn.connect();
    Conn.as Code:
    class _includes.Conn
    public function Conn()
    public function connect()
    var nc:NetConnection = new NetConnection();
    nc.connect("rtmp://localhost/classtest");
    Please note that the connection works fine if I just create a
    NetConnection variable on the FLA itself in the timeline. Any
    suggestions/help would be appriciated!

    it think this is happen because you use local variable : your
    variable is delete at the end of connect() so your NetConnection
    will be closed in the same time.
    try this:
    Conn.as Code:
    class _includes.Conn
    private var objNetCon:NetConnection;
    public function Conn()
    public function connect()
    this.objNetCon = new NetConnection();
    this.objNetCon.connect("rtmp://localhost/classtest");
    }

  • Formated Search: Auto refresh with two conditions.

    Hi,
    I've created a Formated Search in one of my column.
    I defined my formated search as :
    - Auto refresh "When Exiting Altered Column" Item No.
    - Display Saved Values.
    Now how can I make it Auto refresh with two conditions?
    - Auto refresh "When Exiting Altered Column" Item No.
    And
    - Auto refresh "When Field Changes" Customers/Vendor Code.
    - Display Saved Values.
    Is there any way to make it work?
    Thanks In Advance.
    Bruce.

    Hi Bruce,
    You could try this trick.
    You need to execute SELECT1 in Col1 when Item No. column is altered or the Customer code is changed.
    Then, in the Item No. column asign a new Formatted Search which selects the Item No. column value (Its value) when the Customer code is changed.
    And in the Col1 asign a formatted search that acts when the Item No. column is altered.
    I think this should do the trick.
    Let us know if works.
    Regards,
    Ibai Peñ

  • Production Order - Trigger won't Auto Refresh

    2007A PL49 - Just upgraded from 2005A
    I have the following query set in a UDF on the Production Order.
    SELECT T1.PriceAfVAT
    FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
    WHERE T1.ItemCode = $[$-6.0.0] and T0.DocNum = $[$-32.0.0]
    The query wasn't working after the upgrade from 2005.  I had to change the query to include the negatives "-" in the WHERE clause.  Once I did this the query was working fine.  However, now that the query is working it doesn't refresh automatically.
    My settings are as follows:
    Auto Refresh When Field Changes is selected
    The field is Production Order Origin Number
    Display Saved User-Defined Values is selected
    If I place my cursor in the UDF and hit Shift+F2 the query is executed and pulls in the correct data.
    How do I get the Auto Refresh functionality to work properly?
    Note: other triggers are working correctly after the upgrade.

    The problem is probably you selected Auto Refresh Field Changes as the same field in the Where clause.  If you could find any other fields to select, it should work.
    Thanks,
    Gordon

  • Display auto refresh at UDF

    Hi all!
    I've created user form at Screen Painter (B1 2007 A, sp1, pl10 hf2). Add FS for one field. Go to Tools - User-Dafined Values (Shift+F2) and choose Search in Existing User-Defined Values according to Saved Query. After that check box Auto Refresh When Field Changes is not displayed.
    Any ideas, why?
    Regards,
    Konstantin

    Hi Gordon,
    This field for view OCRD.CardCode. I try DB and User DataSource. But in both variants the result was the same.
    Regards,
    Konstantin

  • FMS not working when only item chaning is drop down.

    I'm having an issue on 2005A where I have a FMS in place the sets a date if another field changes. 
    Sent: Y/N (Drop Down Box)
    Dt: FMS to set to date if sent = Y
    The issue is this, if you open the sales order and do nothing else but drop down sent and set to Y the FMS does not fire.
    After it is set to Y, you change it to N then change to Y it works.
    If you alter any field anywhere else first, then change the sent to Y it works.
    Has anyone else experienced this ?  Is there a work around?
    Eli

    UDFs (Marketing Documents)
    U_Extract:  Values Y - Yes, N - No.  Default = (N)
    U_ExtDate: Datefield.
    FMS Query:
    IF $[ORDR.U_Extract] = 'Y'
    select getdate()
    FMS is set to Auto Refresh when U_Extract changes.
    Open the sales order and do nothing but click the drop down for U_Extract, change to Y, update... NOTHING.
    Change any other field, then choose the drop down and select Y and it works.
    Thanks,
    Eli
    Edited by: Eli Lawson on May 12, 2009 4:18 PM

Maybe you are looking for