Form enhancement in "Add" mode

A form loads in "Add" mode and then the add-on adds some controls and sets their inital value. If the user then switches to find mode, or does a prev/next/last/first navigation an error message warns that the changes will be lost. Is there a way to prevent this message by putting the form back into the "clean" state it was in before the add-on modified it?
Thanks for any help.
Mel Dodd

As far as I know there are no way of getting rid of theis meesage on system forms... If it is your own for or your own items that cause the the changes then the AffectFormMode property might be your solution.
A little ugly but do-able workaround it to close the form with changes and open a new clean version (ActivateMenuItem)

Similar Messages

  • Cannot input data in matrix field when the form is in add mode.

    I have created an addon form using UDO.The UDO has four child tables.  I input data in the master data fields in form it works but when I come to matrixes for giving data in matrix fields I was unable to input data there .But after saving the data only with master data I reopend the the form with same data using find option.Now the form allows to input data in matrix fields.Please provide a solution so that I can input data in the matrix columns when the form is in add mode.

    Hi,
    After opening the Customized form you have to add a new blank row into your matrix also.
    oMatrix.AddRow(1,1);
    After then only you can input data.
    regards:
    Sandy

  • How to get currently logged in user on 'Bill of Material' Form in Add-Mode

    Dear All,
                    I am using a UDF on 'Bill of Material' Form in SAP. This UDF is named as Current_User. I want in this UDF the user name that is currently logged in to SAP. I am able to get user name at form load event. But when 'Bill of Material' Form comes in ADD Mode, the user name doesn't display. What can I do for this problem.? Here is my code:
    public override void Handle_SBO_ItemEvent(string FormUID, ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent)
                BubbleEvent = true;                 
                try
                    if ((mst_FormUIDModal != null))
                        if (FormUID != mst_FormUIDModal)
                            bool dbo_FormFound = false;
                            foreach (SAPbouiCOM.Form dsa_Form in this.SBO_Application.Forms)
                                if (dsa_Form.UniqueID == mst_FormUIDModal)
                                    if (FormUID != mst_FormUIDModal)
                                        if (this.SBO_Application.Forms.Item(mst_FormUIDModal).Selected == false)
                                            this.SBO_Application.Forms.Item(mst_FormUIDModal).Select();
                                        BubbleEvent = false;
                                        return;
                                    dbo_FormFound = true;
                            if (!dbo_FormFound)
                                this.mst_FormUIDModal = null;
                    if (pVal.BeforeAction == false)
                        switch (pVal.EventType)
                            case BoEventTypes.et_FORM_LOAD:
                                    if (pVal.FormType == -672)
                                        Program.Curr_User = SBO_Company.UserName;
                                        doc_form = this.SBO_Application.Forms.GetForm(pVal.FormType.ToString(), pVal.FormTypeCount);
                                        ((SAPbouiCOM.EditText)doc_form.Items.Item("U_User").Specific).Value = Program.Curr_User;
                                } break;

    Hi,
    You need not to write any sdk code for this task. You just create a user query as mentioned above and save it with some name.
    Then Open the Bill Of Material Screen, just click in the required field, then click alt + shift + f2 to assign a Formatted Serach.
    Then Select 3 rd Option       "Search in Existing User-Defined Values According to Saved Query"
    Then Click on the button "Open Saved Query"
    It will open the Query Manager. Select the Saved Query.
    Enable the Option "Auto Refresh When Field Changes"
    In the Drop Down list, select the Value "Parent Item"
    Then Select the Option Refresh Regularly or Display Saved Values.
    This will automatically put the user code if the parent item is selected.
    You an achieve this by without SDK Code.
    PS:
    There is a change in the Above Query:
    Select USER_CODE from ousr where userid = $[USER]
    Edited by: Manikandan K on Dec 22, 2011 2:00 PM

  • Using ChooseFromList when form is in Find mode

    Hello,
    I'm trying to use a ChooseFromList to select a Sales Person (there is also an Udo in the form). It works fine when the form is in add mode or in update mode, but when I change to find mode, the form to select doesn't appear.
    How could I show the form to select when the main form is in find mode??
    Thanks in advance.

    Hi Dulce,
    That is a standard behaviour of SBO. Try for example in the A/R invoice form to use the choosefromlist for BP. It won't work.
    The way to use the find mode is just to fill all the data where you can filter your info and press the button Find.
    e.g. in the A/R invoice put * in Customer and when you press find the choosefromlist pops up.
    Hope this helps,
    Ian

  • ItemPressed Event ActionSuccess is always false when in Add Mode

    Hi experts,
    i have a question regarding the ActionSuccess property in the ItemPressed Event.
    When working with a UserForm and an Ok Button (ID = 1) then the ActionSuccess never gets true when pressing the Button when the UserForm is in Add-Mode.
    Is this normal behaviour or a bug?
    Thank you for your help
    Matthias

    Hi Edy,
    yes, the form was in add mode.
    I'm in the ItemPressed Event, BeforeAction=true.
    There the addon does it's work and after that I set the FormMode to OK.
    This closes the form!
    Why I'm in BeforeAction=true? Because i have to know if the form is in add mode or in update mode, because I do different things regarding to the form mode.
    @Eric:
    That's halfway true. B1 sets the FormMode to OK when the form was in update mode, but not, when the form was in the add mode.
    Thank you
    Matthias

  • Catch appearance of form in add mode (after creating)

    Hi all,
    I can catch the add mode event by detecting click on the add menu.
    But when i have just created one object by clicking create,
    I can't detect the new blank form .
    <b>Event Form_Data_Add with beforeAction = true</b> doesn't work.
    Can you help me?
    Thanks a lot.

    Hi
    I'm not sure what you want to accomplish, but it seems that you want to catch the Form mode.  Or maybe when the form mode changes.
    If it is at load time you could test the form mode at the SAPbouiCOM.BoEventTypes.et_FORM_ACTIVATE event and testing the mode like this
    if oForm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE Then
       'do something
    End If

  • Problem with form add mode

    Hi
    I can't open my form in "ADD Mode".It's always opening in OK Mode. So, all operations(even add to database) are performed in OK Mode , not in ADD Mode.
    How will I solve it.
    Rgds
    Subra

    No,I didn't create any UDO.
    I've created the form normally.Then what will I do?
    I wrote the code during form creation----
    Dim fcp As SAPbouiCOM.FormCreationParams
    fcp = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
                fcp.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Fixed
                fcp.FormType = "CFL1"
                fcp.UniqueID = "CFL1"                 
                fcp.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Sizable
                oForm = SBO_Application.Forms.AddEx(fcp)
                oForm.AutoManaged = False
    Is it neccessary to create a UDO?
    Why do I need UDO?
    Is there any rule to create UDO?
    Rgds
    Subrata

  • Calling another form in query only mode

    Dear all,
    Please clarify me which parameters to use while calling another form in query only mode in
    fnd_function.execute.
    Regards,
    Kiran

    Hi,
    According to standard doc:
    When you define a form function in the Form Functions window or call an existing form function using FND_FUNCTION.EXECUTE or
    APP_NAVIGATE.EXECUTE, you can add the string:
    QUERY_ONLY=YES
    to the string in the Parameters field or in the arguments string (using the other_params argument). This argument causes the form to be
    called in query–only mode. The FND_FUNCTION.EXECUTE procedure (which is also used by the Oracle Application Object Library
    Navigator) sets the QUERY_ONLY flag that sets all database blocks to non–insertable, non–updatable, and non–deletable.
    Hope it helps.

  • ADD Mode  Problem

    I've binded all fields of a form to UDT and I can insert the data to the UDT also.Everything is alright.
    But, the form is not opended in the ADD Mode. When I open the form the ADD Icon is enabled and I can add data to database in this mode. When I change it to ADD Mode , I can't do anything.

    Hi Subrata,
    Even if your fields are DB Data Source bound, the ADD mode will work by itself, if you use UDO's.  Once that is done, you will be able to do the operations perfectly.  And if you want to open the form in ADD Mode itself, then, after calling the XML, immediately, write, oForm.mode = SapbouiCOM.boformmode.ADDMode.
    I hope this answers your question.
    Satish.

  • Current  date  in  add mode ?

    i want to show the current  date  in  add mode but it s not working
    is there any changes thats working properly.
    If oForm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE Then
                oEdittext = oForm.Items.Item("MrolVal").Specific
                oEdittext.String = Format(DateTime.Today, "ddMMyy")
            End If

    Hi John,
    Try this Code:
    string dtdate=DateTime.Now.Date.ToString("MM/dd/yy")
    string strdate= GetEditTextDateValue(dtdate);
    public   string  GetEditTextDateValue(string  dtdate)
                   try
                        string date;
                        string Year,Month,Day;
                                  Day =(dtdate.Substring(0,2));
                                  Month=(dtdate.Substring(3,2));
                                  Year  =(dtdate.Substring(6,4));
                                  date =(Month.ToString() + "-" + Day.ToString() + "-" + Year.ToString());
                                  return date;
                   catch(Exception ex)
                        throw ex;
    And Finally you can set the Value as
    oEditText.Value=strdate;
    By this way you can set any kind of Date Value to the EditText.
    HTH
    Prashant Bansal

  • Enhancement to add userdefined  fields for standard definition in  cj20n

    Hi all
    sub:enhancement to add userdefined  fields in a user defined screen tab for standard definition in t-code cj20n
    can anyone provide an idea how to write the logic for retriving the data from the standard table into the user defined screen added into the project definition using the t-code cj20n( project system module)
    thanks
    sirisha

    I think you may need to implement enhancement 'CNEX0007'
    CMOD==> Enhancement==> Componet==> Get the Screen area.
    Go to SE41 ==> Give the Screen program and number==> add your WBS tab there. The values will be available to screen
    Hope this is helpful for your answer.
    Cheers,
    TM.

  • Starting a Search Form in "Enter Query" mode

    JDev 11.1.1.3 Windows 7 x64
    I have a page flow with 4 fragments - the first is a search form to look up the person.
    I need to enter this form in the "Find Mode (enabled)".
    I have tried using the method of dragging the "Find" from the iterator as the default item and linking it to the first fragment but this has no effect (it still retrieves the first record from the DB).
    I created an invokeaction - (preparemodel) this works for the first time - but not any other (seems to block the execution of the find button).
    I am not sure if this is a bug in 11g - but in my mind (find.execute) seems to indicate that it is doing what it should.
    I am not inserting any data - just retrieving a record.
    Anyone solve this before?

    Hi,
    maybe this will help you
    http://dstas.blogspot.com/2010/05/master-view-search-form-display-only.html
    Regards,
    Dimitris.

  • Calling form in Enter-Query mode

    Hi
    how can i Have a form called from the menu (generated with
    headstart) start in Enter-Query mode ?
    Is there any method to do this easily ??
    TIA
    Olivier
    null

    Olivier,
    Look in the Headstart Template Package users guide. In the
    Runtime Behaviors chpt, under Inter-Form Navigation, Named Passed
    Values and Argument Passed Values, you will find an explanation
    of how to start a form in Enter-Query mode.
    Regards,
    Lauri
    Olivier GIBERT (guest) wrote:
    : Hi
    : how can i Have a form called from the menu (generated with
    : headstart) start in Enter-Query mode ?
    : Is there any method to do this easily ??
    : TIA
    : Olivier
    null

  • Enhancements to add fields to purchaseorder

    hi,
           how to Enhancements to add fields to purchaseorder in ME22 transaction using enhancements MM06E005. What is the MM06E005. plz explain.

    Hi radha krishna ,
    MM06E005 is the  enhancement number in which we have fuction module exits and sceen exits where you can add customer specific fields to the PO ie Me22 in the screen exits available in the  MM06E005(Customer fields in purchasing document) enhancement number.
    first go to CMOD(Transaction code)>create an enhancement project>click on enhancement assignment button on application tool bar and in enhancement colum give MM06E005 enhancement number and then click on components you will get all the fuction module exits and screen exits.
    fuction module exits:
    EXIT_SAPMM06E_006.
    EXIT_SAPMM06E_007.
    EXIT_SAPMM06E_008.
    EXIT_SAPMM06E_009.
    EXIT_SAPMM06E_012.
    EXIT_SAPMM06E_013.
    EXIT_SAPMM06E_014.
    EXIT_SAPMM06E_016.
    EXIT_SAPMM06E_017.
    EXIT_SAPMM06E_018.
    screen exits TO ADD CUSTOMER FIELDS TO THE PO CREATION SCREEN.
    SAPLXMO6  0101.
    SAPLXMO6  0111.
    SAPLXMO6  0201..
    SAPLXMO6  0211..
    SAPLXMO6  0301..
    SAPLXMO6  0311.
    select apppropriate exit to add the fields according to your requirement.
    Thanks and Regards,
    Pavan

  • In add mode, the document disappears. How to change that ?

    Hello
    When we are in "add" mode, the document disappears after adding. You have either to go to previous document (marketing document for example) or find it again (item, BP).
    Is there a setting to change this mode and to keep the object visible on screen like in update mode ?
    Thanks
    Fabrice

    Fabrice,
    The system functionality when you Add a document is It would Add the document and present a blank document with the next doc number remaining in Add mode.
    This is for continuous order processing / entry.
    This is core product functionality and it cannot be changed
    Suda

Maybe you are looking for