How to Refresh System Form on Before Action using DI

Dear All,
Please give me idea for Refresh System Document in Run Time on Before Action using DI,basically I am using  system columns for update for some scenarios.
So please give solution that how should refresh system form.
Thanks a lot.
Ashish Singh.

Hi,
See i already descrived you my case what i am exactly doing.
Now,
Document Name -Purchase Order
All The item is non excisable and i want to put value in Assable Column for calculation Tax but when i non excisable then you can not put value in Assable column.so when user will add purchase order then i updating Excisable columns with value of 'Y' for Assable value.now this case is running correctly.
But if any change will come of particular purchase order then user need to put value in any field and now i am supposing change field is remarks.
And Then user click on update filed button then system giving error that "there is excisable item with non-excisable tax code" and after this not allow to update.but i wrote code in item press before action for update excisable filed with value of 'N' for time being. but the case is sap not refresh doc when i changed any any value ,
so main concern is i want to reflect value with front end immediate.
Thanks
Ashish

Similar Messages

  • How to Refresh System Form in Run Time

    Dear All,
    Please give me idea for Refresh System Document in Run Time using DI,basically I am using  system columns for update for some scenarios.
    So please give solution that how should refresh system form.
    Thanks a lot.
    Ashish Singh.

    Hi,
    Please post above discussion in SDK forum.
    Thanks & Regards,
    Nagarajan

  • How do load system form matrix -Inventory-Goods Issue through SDK UI &DI

    While I am accessing system form matrix -Inventory Goods Issue/ Goods Receipt, the matrix object is not accessible.
    Error is coming stating "Item 13 is invalid, where 13 is item uid for matrix.
    So,How do load system form matrix -Inventory-Goods Issue(FORM 720/-720) through SDK UI &DIAPI.
    Form Type: -720
    How to get reference of System form matrix object -Inventory-GoodsIssue.
    Some thing similar to CopyFrom functionality for -Inventory-Goods Issue.
    Currently my client requirement is as follows.
    I created a UDF ((U_ILC) Incoming Log Challan) for marketing documents. And, this field is added in the header level of Goods Reciept, Goods Issue documents.
    1. Through Inventory->Goods Receipt (ILCNo.10), items are received. Assume, M00001, M00002 are the items received with qty, price, whse, account values.
    2. Through Inventory->Goods Issue, item should be issued. In this Goods Issue Form, after entering U_ILC value as 10, pressing Tab, the GoodsIssue matrix should be loaded with the values of GoodsReceipt(IGN1 for U_ILC:10) document i.e. M00001,M00002 along with the same values as in GoodsReceipt of ILC:10.
    The code is as follows:
    If (( ( pVal.FormType = "-720" or pVal.FormType = 720) And pVal.EventType <> SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD) And (pVal.Before_Action = False)) Then
                '// get the event sending form
                oForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
                If pVal.ItemUID = "U_ILCNo" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_LOST_FOCUS And pVal.Before_Action = False Then
                    SBO_Application.MessageBox("ILC No. Lost Focus")
                    oMatrix = oForm.Items.Item("13").Specific
                    oColumn = oForm.Columns.Item("1")
                    oEditItmCode = oColumn.Cells.Item(1).Specific
                    oEditItmCode.Value = "07215090x606"
                    oItem = oForm.Items.Item("U_ILCNo")
                    oEdit = oItem.Specific
                    SBO_Application.MessageBox(oEdit.String)
                End If
            End If
    3. The code
    oMatrix = oForm.Items.Item("13").Specific
    is raising error. I have used Event Logger and breakpoints to see where the code is halting.
    Help me, how to access the matrix of Goods Receipt/ Goods Issue and load based on the existing data.
    Thanks in advance

    HI
    If your code is in the SBO_Application_ItemEvent then try using this line
    oForm = SBO_Application.Forms.Item(strFormUID)
    instead of
    oForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)

  • How to get the form name which is used in standard tcode like me23n in sap

    how to get the form name which is used in standard tcode like me23n in sap
    Moderator message: four out of four threads locked, please read and understand the following before posting further:
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|Asking Good Questions in the SCN Discussion Spaces will help you get Good Answers]
    Edited by: Thomas Zloch on Nov 18, 2011 1:32 PM

    how to get the form name which is used in standard tcode like me23n in sap
    Moderator message: four out of four threads locked, please read and understand the following before posting further:
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|Asking Good Questions in the SCN Discussion Spaces will help you get Good Answers]
    Edited by: Thomas Zloch on Nov 18, 2011 1:32 PM

  • Urgent, how to refresh a form with a returned parameter?

    Hi people,
    I am working in web application using EJB and ADF.
    In the main page I have a form and a "search" button.
    The "search" button opens a popup window that displays the same form's data in a table with selection and submit. I want to choose a record from the table then submit, close the popup, back to the main page and refresh the form so the current record shows by the form is the record that I have choosen in the popup window.
    I did the following:
    Created named query "MyEntitySearch"
    @NamedQuery(name = "MyEntity.Search",query="select o from myEntity o where o.id = :id"
    I made some things so that if id == null -> return all records of the table
    else return the selected record.
    I dragged and dropped the same method in the main page and in the popup.
    In the popup: the submit action listener takes the id of the selected row and close the popup.
    public String commandButton1_action() {
    System.out.println("retID");
    JUCtrlValueBindingRef selectedRowData=(JUCtrlValueBindingRef)
    this.getTable1().getSelectedRowData();//return the selected table from the interface
    RowImpl row =(RowImpl)selectedRowData.getRow();//get the selected row myEntity selectedValue=(myEntity)row.getDataProvider();//from the entity bean
    System.out.println("ID = "+selectedValue.getId());
    AdfFacesContext.getCurrentInstance().returnFromDialog(selectedValue,null); //close the dialog window and send the value
    return null;
    In the main page backing been:
    private Long ID=null;
    //in the return action listener of the "search" button :
    public void ret_action(ReturnEvent returnEvent) {
    MyEntity myentity = (myEntity)returnEvent.getReturnValue();
    //**return the selected row from the dialog window
    ID=(Long)myentity.getId();
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("queryMyEntitySearch");
    operationBinding.getParamsMap().put("ID","id");
    operationBinding.execute();
    System.out.println(ID+"the returned value");
    I made the form partial triggers with "search" button, immediate and autosubmitt.
    After all of that, unfortunately the form doesn't change its current record to the selected id record.
    The returned selected ID from the popup is returned correctly when I printed it. But no changes in the form.
    Please to those who know or faced the same problem; I am waiting.
    Regards.

    Hi,
    if you need to access the return value of a method you need to ceate an attribute binding for its result set. Go to the pagedef file, create a new attribute binding and choose the method's result item. Then reference the attribute binding.attributename.inputValue
    Frank

  • How to call System Form base on User Form

    I want to reuse System Form that "list of items" on service call,
    Show the "list of items" Form base on my own Form,
    How to do?
    thanks
    Tony

    Hi Tony,
    Have you looked at the ChooseFromList object? This is available in the UI API and allows you to easily create the 'lists' windows for all the main objects, including items. There is an example of using the ChooseFromList in the samples in the SDK.
    Kind Regards,
    Owen

  • How to refresh Portal form with dependent LOVs ?

    I have a portal form which has dependent LOVs, the first LOV is
    a Site LOV and the next LOV is a Teacher LOV. Once a Site is
    selected, the form refreshes to load the Teacher's LOV with
    teachers belonging to the selected Site.
    In some cases the Site is assigned internally (using Javascript)
    in such cases the form does not refresh automatically; which
    causes the problem, as all the Teachers of all the Sites are
    loaded in the LOV.
    Any suggestions are welcome.
    Thanks,
    Hilal

    Put this code into the javascript onChange event of the list box
    that you want to automatically refresh the screen with:
    do_event(this.form,this.name,1,'CUSTOM','');
    that should cause the screen to refresh when an item is chosen.
    at that point, the 2nd list box (if you used the :paremter in
    the LOV and bound it to the right field in the form) should come
    up with the proper set of values Thanks Michael,
    But my problem is not with that part of refreshing; that is
    refreshing, when a value is picked from the first LOV to re-load
    the second LOV works fine.
    My problem is only when the value of the first LOV is internally
    set, the form does not refresh to re-load the second LOV. The
    value of the first LOV is loaded(internally) using one of the
    fields in "wwsec_api.person_info", eventhough this value is set,
    it does not trigger a refresh to re-load the dependent second
    LOV.
    I guess a solution to this problem would be to explicitly
    refresh the form (I am not able to figure out how).
    Hope I have clarified myself.
    Thanks.

  • How to show system form with a new button

    Hi experts,
         I created a new button on the sales order system form, I need that the new button calls other system form, How can I show a system form with my new button?
    Thaks.
    César Lemus.

    Hi César,
    On the Item Pressed Event of the button, Write the code to show the other system form. The sample for this is as follows.
    Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED
                          If pVal.ItemUID = "URButtonID"
                                    SBO_Appln.ActivateMenuItem("Menu ID of ur system form.")
                          EndIF
    Hope this is helpful. If yes reward points.
    Regards,
    Vasu Natari.

  • How to obtain system form's type and count?

    Hi all
    i wish to open a system form by calling the GetForm method of the Forms collection.
    My question is how do i know the form's type and count in order to get it?
    appreciate the help
    Yoav

    To open Activity form, you need to have the menuUID.
    in order to get it , Click on View of the toolbar, and then System Information
    (or CtrlShiftD)
    Now I guess you know you have more information about items in forms and menu on the bottom left corner of Business One.
    Then in the toolbar, click on Modules, Business Partnet, and put the mouse on the menu Activty.
    You will see in the bottom left corner the value:Menu Uid = 2563
    HTH
    Sebastien

  • How to popup system form which does'nt have MenuItemID (Form.Type = 42)

    Hi,
    Suppose I am adding some data to Delivary form, and when I click on the Add Button I want the Batch No selection form  with form type = 42 ,form to be opened Autmatically when the material is not assigned any batch no and issue method is backfluch              (eg  :Byproduct)
    i know by using
    SBO_Application.ActivateMenuItem("MenuItemID")
    it can be opened.
                       but, this form does'nt have an MenuItem ID where can i get the MenuItemid of this form("42")        ( Where Form.type = 42)
    Regards
    Om

    Dear Manish
    Use MenuIteID
    &Serial Numbers                     12032       
    &Serial Numbers Management     12033       
    S&erial Number Details     12034     
    use the menuid to open the required systems form u can get all it id's in help file

  • How to refresh selectItems during a command action

    I am trying to figure out how to modify the selectItems during the processing of a command action. The command action modifies the database and the selectItems needs to be refreshed by this command. However, the selectItems is getting populated before the action method is called. Is there any way to explicitly set the selectItems during the command action?
    Here are the pertinant tags on my jsp page:
    <h:selectOneListbox value="#{generateDailyFile.selectedFilename}"
    binding="#{generateDailyFile.fileListSelect}">
    <f:selectItems value="#{generateDailyFile.items}"
    binding="#{generateDailyFile.filesSelectItems}"/>
    </h:selectOneListbox>
    <h:commandButton value="Generate"
    action="#{generateDailyFile.doAction}" />
    When the page first opens it loads the selectItems from the generateDailyFile.getItems() method. However, when the commandButton's action calls generateDailyFile.doAction() I need to refresh the selectItems.

    your selectitems are from the data base i think they have to be latest from the DB......Since they are not working as desired...
    ----what is the scope of the object you are building the selectitems.If it is session previous instant pravails so the items are the same as before.
    OR
    --- in the OnPageLoad() make a call to build the select items that gets you a recent copy.

  • How to refresh list item values before report is run?

    We have two SELECT LIST items (drop boxes) on our report. One SELECT LIST has values of "World Region" (e.g. NORTH AMERICA, SOUTH AMERICA, EUROPE, ASIA)
    the other SELECT LIST has values of "Subregion" (e.g. NORTHERN EUROPE, SOUTHERN EUROPE, SOUTHEAST ASIA etc...)
    The values in the Subregion list are dependent on the value that is chosen from the "World Region" List. Can someone tell up how to update the values in the Subregion list BEFORE we submit the page? We can get these values to update (via sql query) when the page is submitted but that is only happening after the report gets run- which is not what we want. We want the user to select a Region from one SELECT LIST and then see all the qualifying Subregions for that Region in the Subregion SELECT LIST. Only after both Region and Subregion have been selected do we want to run the report. Thank for any help on this.

    hey john--
    john) things like Scott's reference to "The name of the LOV Item". What does this really mean?
    raj) in htmldb there's a concept of items at the page and at the app level. page level items have ui component associated with them. in scott's explanation above, he's talking about using a page-level item with a "Display as" type of "select list w/submit" for your first select list. in that case, he's suggesting you have one select list item drive the values of another. when the self-submitting select list submits the page, it sets an htmldb built-in variable called :REQUEST to the name of the self-submitting select list item. in your follow-up post's example, that'd be "REGION_LIST". scott was explaining how you could control the functionality on your page by adding conditions to things like...
    :REQUEST = 'REGION_LIST'
    ...or using declarative Condition options like "Request = Expression 1" and then putting the string "REGION_LIST" in that Expression1 field. so in your case, you have a report region that you don't want displayed until the user's done selecting from your Subregion list. an easy way to handle that would be to add a hidden item (where "Display as" is set to "Hidden") to your page, for example :P1_LAST_REQUEST, to store the last value of :REQUEST. put a Computation on your page that populates :P1_LAST_REQUEST with :REQUEST each time the page is submitted. then put a Condition on your report region that makes it only render when :P1_LAST_REQUEST != 'REGION_LIST'. so this way your users can select a Region and have the page submit itself. the page will then redraw with the values of subregion list correctly populated (you'd presumably use :REGION_LIST in your subregion LOV query to achieve the filtered values) w/o your report region displayed. the user would then select a correct subregion and click some sort of "run my report" button. this time when the page redraws, :P1_LAST_REQUEST would be set so something other than "REGION_LIST" (it'd be set to whatever you named your "run my report button") and so your report region would display as desired.
    hope this helps,
    raj

  • How to refresh Portal form with LOV POPUP ?

    I have a portal form which has a LOV which is a POPUP.
    When the POPUP is filled, I need that another LOV (a combo box) be refreshing by its dependent bind variable.
    When the Popup is filled, nothing happens.
    I tried with this javascript:
    do_event(this.form, this.name, 1, 'CUSTOM', '');
    But it works only if the first LOV that is the Popup is use as a combo box.
    I still need to use the Popup.
    Thanks.
    Enrique.

    This is a known issue and this is soon going to be fixed .It might be available in the next patch.
    Actually you will see that if you have written code in onChange of POPUP then if you change the value in the text box of the POPUP lov it will work but when you will select it from the POPUP values the event will not be generated.
    rahul

  • How to refresh a table results before getting new results ?

    Hello,
    I receive in a table results from a BI query that is first fed from a selection screen with different dropdowns.
    My problem is the following:
    - when a new selection is made, the table is updated with new results : OK
    - BUT when the result of the query is empty, the table keeps the last results
    How can I fix this problem?
    Any idea,
    Thanks a lot,
    Thomas

    OK, the model is really simple:
    - Form with several selection dropdowns
    - BI query
    - table with results
    Everything is OK but, if there are already results in the table AND the user starts a new search that provides no result (no applicable data), the table is not updated and shows the last results, which is a problem ...
    Thanks,
    Thomas

  • How to create a form based on table using dynamic page?

    Hi,
    I need to create a form using dynamic page. How do you pass values from the html form to a oracle procedure that will get executed on submission of the form ? I could not find any documents which shows how to do that. Can anyone please help me out with an example ?
    thanks,
    Mainak

    Hi,
    Something seems to get added to the form action because of "http". Hence I am removing it.
    You need to write a procedure with the values in the as parameters. Say for example you want to insert a record into dept
    table then
    Dynamic page code
    <html>
    <body>
    <form action="portalschema.insert_dept">
    <input type="text" name="p_deptno">
    <input type="text" name="p_dname">
    <input type="submit" name="p_action" value="save">
    </form>
    </body>
    </html>
    Procedure code.
    create or replace procedure insert_dept
    (p_deptno in number,
    p_dname in varchar2,
    p_action in varchar2)
    is begin
    if p_action = 'save' then
    insert into scott.dept(deptno,dname) values(p_deptno,p_dname);
    commit;
    end if;
    end;
    grant execute on insert_dept to public;
    Hope this helps.
    Thanks,
    Sharmila

Maybe you are looking for

  • How to delete requests from OIM 11g R1?

    Hello, We have some requests that were created in production environment while the SOA environment were not configured correctly, so some are with failed state, some were tests that were completed successfully. So now the client will soon be audited,

  • SOA suite 11g and Windows 7

    Hi All, I have purchased a new HP Pavilion dv7 -4053cl It comes with Windows 7 Home edition. If I download Oracle SOA suite 11g and Weblogic 10.1.3., will it work on Windows 7 Home ? Thanks, p

  • Adobe forms - No scroll bar for Display only fields

    I am using adobe forms for SAP Enterprise Portal. i am using these in Worklfows. In the form there is a text field with no size limit and Allows Multiple Lines. Any amount of text is allowed to be entered. when the form is viewed by the next person,

  • Suggested or Latest IOS

    I would like to update my 2960s etc. again. Actually we are running 15.0(2)SE4. I have seen that cisco added the suggested ios version - so I could choose the 150 SE6 or the suggested 12.2(55)SE9. Cisco describes the supported image as "Cisco Suggest

  • IRR, looking for an equivalent to the XIRR in Excel.

    Hi, when working with irregular dates in cash-flows I used XIRR and XNPV in excel. Could not find an equivalent in Numbers 08-09 so have to create dailies what for 10 year projects is a bit cumbersome and prone to errors when converting daily interes