Changing value of input field in interactive report

Hi all,
I have created interactive report. On 3rd list, i had calculated total for netwr filed and it is displayed at bottom.
netwr field on list is editable. If value in netwr changed by user , value for total should be changed on same list.
Can anybody help me out?
Thanks and Regards,
Rakesh.

Hi Rakesh
Within the third alv's usercommand, Try this code.
FORM user_command1 USING r_ucomm LIKE sy-ucomm
       rs_selfield TYPE slis_selfield.
    CASE r_ucomm.
         WHEN 'EDIT'.
             <code>
             CALL METHOD <alv_instance>->refresh_table_display
                 EXPORTING
                 is_stable = <third_alv_internal_table>
                 EXCEPTIONS
                 finished = 1
                 OTHERS = 2.
  ENDCASE.
ENDFORM.
This will refresh the internal table each item a edit operation is done, after this write the code to find the sum.
Thanks and Regards,
Rinzy Deena Mathews

Similar Messages

  • Is it possible to have editable text field in interactive report?

    Is it possible to have editable text field in interactive report?
    Thanks,
    Dip

    Hi,
    I followed your suggestion and defined an IR with apex_item.text columns and it works fine. Now however I face a new problem when I run the page and use the standard Search Bar:
    - Click on Actions/Filter
    - Select a column, for example the employee name.
    - Open the Expression field LOV: I correctly see the different names.
    - When I select one of the names, in the Expression field, instead of the name, I see:
    "<input type="text" name="f03" size="20" maxlength="2000" value="Eugene" />"
    Horrible!!!!!!
    Is there a way to see the name and not that expression? The same thing get downloaded, so it´s really annoying.
    Thank you very much in advance for your help!!!
    Regards
    Francesco

  • Change standard rows (15) in an interactive report

    Hello,
    I want to change the default value for rows in an interactive report (15).
    It should be displayed in principle always 50 rows. I have unfortunately found no setting which I can change that.
    A search on the net and forum brought no help.
    Can someone help me maybe?

    Ah. Try this -- it was a surprise to me.
    Edit the report but this time click the "Saved Reports" tab at the top. Select your report. Click the report checked box -- I don't know if this is necessary. Then in the "Actions" > "Rows Per Page", what number is highlighted? Highlight 50. If the selector doesn't go up the 50, increase the Maximum Rows Per Page back on the "Report Attributes" tab. The saved report should now be set to 50 lines per. Login in again and restart your report.
    Finally - maybe,
    Howard

  • How to set a new value for formula field in crystal reports xi?

    <p>How to set a new value for formula field in crystal reports xi?</p><p>//formula</p><p>{@description}</p><p> </p><p>exemplo in VB6</p><p>crxSubreport.FormulaFields.Item(1).Text =  "&#39;Subreport Formula&#39;"  or</p><p>crxSubreport.FormulaFields.Item("description").Text =  "&#39;Subreport Formula&#39;"</p><p>How to in JRC?</p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p>

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • Changed column order not applied to interactive report

    Hi,
    I've changed column order for interactive report.
    But it is not applied.
    How can I solve this issue?
    Thanks,
    Guy

    Hi Guy
    It depends on where you have changed the column order. If you change the column order using the 'Select Columns' function when you click on the 'Wheel of Magic', then it should work.
    If you are changing the column order from the Interactive Reports Attributes page then this will only affect the column order for non displayed items and the single row view.
    I hope that helps
    Shunt

  • Not allows to assign default value to input field using values in datastore

    Hi Masters,
    Consider that I have one input field in a form. I should assign default value to it. I should assign to it, the value which i have stored in a datastore. When i run the application, if i give default value as 123 ,then it is working fine i.e., it is showing 123 in the textfield in form , but if i give the default value as STORE@ProductId, then it is not displaying that value in the form.
    Please help me out.
    Thanks & Regards,
    Kaushik Sreeram

    Hi,
    i faced this problem and here's what i concluded:
    There's no way you can set default value for input field dynamicly, since the default value of input control is caculated only once (i think on initializing of the iView). The input control and the data store are initialized at the same time, STORE@productID is empty that time...
    If you don't need to recieve value through the input field you're trying to initialize, but just to display the value from the store - I suggest you try using another control - Expression Box. It's value is calculated continiously, just like the Label's, and you can refere to it later.
    Regards,
    Yulia

  • Changing value of a field in mapping as per condition

    Hi Experts,
    I have one requirement in IDoc mapping to EDI structure.
    I want to change the value of a field depending on the condition. But the problem is the field is mapped at higher level than the condition.
    For example:
    Say i have a source structure in IDoc with name Source1 and target structure Target1. Source1 is mapped to Target1. Both of these structures have multiple occurances. So in general out structure will look something like below:
    Source1-> Target1
    Source2->Target2
    Source3->Target3
    Now i want to change value of one field from Target1 structure depending on Value of one field from Source3. At the runtime when Target1 structure is getting filled Source3 value is not visible so I am not able to set a proper condition.
    When at lower level we get value of Source3 can we change value of already filled structure Target1?
    Thanks,
    Atul

    Hi Aamir,
    Thanks for your reply.
    If possible can you give any sample code for this kind of UDF?
    Thanks,
    Atul Patil

  • Event for value change of an input field

    Hello,
    I'm a newbie in WD4A.
    I've got a input field. Is there a event that's fired, if the value of an input field is changed?
    Regards Christian

    No.  There is only an event when the user presses enter.  You can check the online help for all events of all UI elements.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/d7/ef8841e3af1609e10000000a155106/frameset.htm
    In 7.02 there is an AJAX based change event on the inputField, but it is not available as a normal WD Event. It instead triggers the attached SearchHelp without the WD Phase Model.  This is the new SuggestValues feature in 7.02.

  • How to capture the user change in an input field on a selection screen?

    I am coding a selection screen in which there are two input fields. The first field takes a Unix directory from the user input. Based on the input value, the second field will be populated with a the name of a file under the corresponding directory.
    My question is how I can make the program capture the user input without having to make the user press ENTER after they enter the value in the first field?
    Any help will be greatly appreciated.

    Venkat,
    Actually you led me to the real solution! It's the function module DYNP_VALUES_READ that does the trick for me. This function enables the program to capture dynamic user changes without recourse to PAI. Please refer to the code below:
    REPORT   zreiabsintf MESSAGE-ID zreiabsintfmc.
    *<HGDC------------------------------------------------------------------
    *  Selection screen for the conversion program
    *HGDC>------------------------------------------------------------------
    SELECTION-SCREEN BEGIN OF BLOCK input WITH FRAME TITLE text-001.
    PARAMETERS: p_indir   LIKE epsf-epsdirnam OBLIGATORY,                   " Inbound file directory
                p_infile  LIKE epsf-epsfilnam DEFAULT gc_infile OBLIGATORY, " Inbound file name
    SELECTION-SCREEN END OF BLOCK input.
    *<HGDC------------------------------------------------------------------
    *   Displays a file-open dialog when the user clicks the search
    *   help button next to the inbound file text field. The user
    *   can select the inbound file visually.
    *HGDC>------------------------------------------------------------------
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_infile.
    * Capture any user change to the directory.
      PERFORM check_dir_change.
    * Display the file open dialog
      PERFORM file_open_dialog CHANGING p_infile.
    *<HGDC------------------------------------------------------------------
    * Global constants
    *HGDC>------------------------------------------------------------------
    CONSTANTS:
        gc_indir  LIKE epsf-epsdirnam
                  VALUE '/interfaces/<SID>/inbound/',      " Default inbound directory template
        gc_infile LIKE epsf-epsfilnam VALUE 'input'.       " Default inbound file name
    *<HGDC------------------------------------------------------------------
    * Global data
    *HGDC>------------------------------------------------------------------
    DATA:
        gs_dynpfields   TYPE dynpread,                        " Fields of the current screen
         gt_dynpfields   LIKE STANDARD TABLE OF gs_dynpfields. " Table of the screen fields
    *&      Form  file_open_dialog
    *       Opens a dialog window for the user to choose a file in
    *       the specified Unix directory.
    *      <--P_FILE is the file to be selected.
    FORM file_open_dialog  CHANGING p_file.
    * Validate the directory.
      OPEN DATASET p_indir FOR INPUT IN BINARY MODE.
      IF sy-subrc NE 0.
        MESSAGE i001(zreiabsintfmc) WITH p_indir.    " Unable to open the given directory
        EXIT.
      ENDIF.
      CLOSE DATASET p_indir.
    * Call the dialog window to open a file in the directory.
      CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
        EXPORTING
          directory        = p_indir
        IMPORTING
          serverfile       = p_file
        EXCEPTIONS
          canceled_by_user = 1
          OTHERS           = 2.
      IF sy-subrc NE 0.
        MESSAGE i002(zreiabsintfmc).                 " Failed to open the file.
        EXIT.
      ENDIF.
    ENDFORM.                    " file_open_dialog
    *&      Form  check_dir_change
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM check_dir_change .
      CLEAR gs_dynpfields.
      CLEAR gt_dynpfields.
      gs_dynpfields-fieldname = 'P_INDIR'.
      gs_dynpfields-fieldvalue = p_indir.
      APPEND gs_dynpfields TO gt_dynpfields.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname               = sy-repid
          dynumb               = sy-dynnr
        TABLES
          dynpfields           = gt_dynpfields
        EXCEPTIONS
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          invalid_parameter    = 7
          undefind_error       = 8
          double_conversion    = 9
          stepl_not_found      = 10
          OTHERS               = 11.
      IF sy-subrc  NE 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE gt_dynpfields INTO gs_dynpfields INDEX 1.
      p_indir = gs_dynpfields-fieldvalue.
    ENDFORM.                    " check_dir_change
    Thanks for all your answers! The problem is now solved.
    Edited by: Ning Hu on Apr 9, 2008 11:32 AM
    Edited by: Ning Hu on Apr 9, 2008 11:34 AM

  • How to Fill value in Input fields before displaying ADOBE FORM

    Hi to all,
    Please can anyone tell me how to fill the entry in ADOBE FORM before displaying?
    I have written a program to generate ADOBE FORM, but I need while displaying ADOBE FROM some input field should already be filled by value and can not be changed.
    Please can anyone tell me how to do that in program?
    Below is the program.
    DATA: fm_name           TYPE rs38l_fnam,
            fp_docparams      TYPE sfpdocparams,
            fp_outputparams   TYPE sfpoutputparams.
    Parameters: p_pdf_form_name type fname.
      fp_docparams-langu   = 'E'.
      fp_docparams-country = 'IN'.
      fp_outputparams-preview = 'X'.
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = fp_outputparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4.
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name     = p_pdf_form_name
        IMPORTING
          e_funcname = fm_name.
      E_INTERFACE_TYPE           = E_INTERFACE_TYPE
      CALL FUNCTION fm_name
        EXPORTING
          /1bcdwb/docparams        = fp_docparams
      IMPORTING
        /1BCDWB/FORMOUTPUT       = fp_outputparams
        EXCEPTIONS
          usage_error           = 1
          system_error          = 2
          internal_error           = 3.
      CALL FUNCTION 'FP_JOB_CLOSE'
       IMPORTING
        E_RESULT             =
        EXCEPTIONS
          usage_error           = 1
          system_error          = 2
          internal_error        = 3
          OTHERS               = 4.
    I shall be thankful to you for this.
    Regards
    Pavneet Rana
    Edited by: pavneet rana on Jul 25, 2011 2:57 PM

    Hello,
    you need to provide the information via the interface, which you create for the Adobe form.
    And then pass this values via the following function module inside your generation report.
    CALL FUNCTION fm_name
    check standard report : FP_EXAMPLE_01 as an example!

  • Filter on field in Interactive report to small/narrow

    In a interactive report I have the problem that the first (about) 30 positions of the values of one of the fields is not unique. So if you want to use the filter function it is impossible to know which value is selected. Is there a way to make these drop down select list wider for some fields?
    Any one?

    Found the ANSWER!!
    If I click on the little 'wheel' and click filter, I can choose other expressions. whooa!
    Marco

  • Custom date fields in Interactive Report

    Hi,
    I am using newly patched version of Apex - 4.0.2.00.06
    What I am trying to do is to have two datepicker fields P84_DATE_FROM and P84_DATE_TO in separate HTML region, on the page that has IR / Interactive Report, that will be filter in report source.
    In debug mode I noticed that values that are picked with datepicker are not binding in report sql.
    select * from calendar_x
    where
    date between to_date(:P84_DATE_FROM,'DD.MM.YYYY') and to_date(:P84_DATE_TO,'DD.MM.YYYY')
    Do I have to force submit on Go button before it executes gReport.search('SEARCH')? Is it the right way to go about this?
    Thnx,

    Hi Vish,
    I was informed by SAP few months back that Interactive Reports can not be enhanced with custom fields. I don't see any documentation regarding this.
    You may want to check with SAP also.
    Regards,
    Paparao Undavali

  • Setting Value of apex_item.checkbox in interactive report

    Forum
    We need a "select all" and "unselect all" functionality in an interactive report ...
    The IR Query currently goes something like this :
    select
    OBJ_LABEL",
    "DATA_START_DATE",
    "S_ROWSTATE",
    "S_ROWVERSION",
    APEX_ITEM.CHECKBOX(1,item_id, 'Checked') "Select"
    from some_table;
    We have the checkbox selected by default .... the question now is how to have an "unselect all" and "select all" function or heading in the Interactive Report that would unset or set the checkboxes for all rows in the report.
    Any advice will be helpful ....
    Thanks
    Pierre

    Answering our own question :-)
    1) Add an unselect and select button and a hidden field
    2) modify the query to use the value of the hidden field to determine whether the checkbox is set or not.
    3) set the value of the hidden field as appropriate with for the select or unselect event when the button is selected.
    P.

  • Higlighting currency fields in interactive report

    I have an interactive report where two cells need to be highlighted if the values in these two cells are not equal. Both cells have the currency mask (FML999G999G999G999G990D00) in the column attributes. I have modified the sql for the first column based on info in this forum. However when I use the span tag to conditionally highlight the cell, the format mask is apparently overriden by the span tag in the SQL statement. Is there a way to have both highlighting and a currency mask on the same cell?
    SQL for report
    SELECT  CASE
                     WHEN TO_NUMBER (v.committed) < pwd.obligatedamt
                     THEN '<span style="background-color:yellow;">' || TO_NUMBER (v.committed) || '</span>'
                     ELSE
                        TO_CHAR (v.committed)
          END committed, ...Thanks,
    Kim

    Figured it out. Here is the revised code. Instead of using the Number / Date Format field in the column definition (in APEX) and the span tag in the select statement, put all the formatting in the select statement and leave the Number / Date Format field blank in APEX.
    SELECT  CASE
                     WHEN v.committed < pwd.obligatedamt
                     THEN
                           '<span style="background-color:yellow;">'
                        || TO_CHAR (v.committed, 'L999G999G999G999G990D00')
                        || '</span>'
                     ELSE
                        TO_CHAR (v.committed, 'L999G999G999G999G990D00')
                     END committed,  ....

  • Dynamically  Visibilty of Input Field in Interactive PDF Form

    Hi All,
    I want to bind the visibilty of Input Field dynamically in an Interactive PDF Form. How can I do ?
    Please give me some solution
    Regards
    Manish

    Manish,
    Well select the inputfield & check the Scripting Window in your Designer.
    On its top, you will see an option something as Show: Events with Scripts.
    Select the initialize event and insert the code she mentioned. Then click on + sign. This will enter your changes.
    There will be language option on top as well. Select JavaScript from it.
    So in the end your code should read something like this.
    ----- data.<YourFormName>.txtInput::initialize: - (JavaScript, client) ----------------------------------
    txtInput.presence = "invisible";
    Chintan

Maybe you are looking for

  • Portal Jserv : fetcher dying...The portlet could not be contacted.

    I have a TAR open, but with no luck till now. So here it goes: Configuration: IAS 1.0.2.2 on HPUX11 32bit, oracle 8.1.7.2.5 on NT4 sp6 When trying to login to main portal myhost.mydomain:7777/pls/portal30 I get Error: The portlet could not be contact

  • MB_DOCUMENT_BADI (MB_DOCUMENT_BEFORE_UPDATE)

    Hi, I implemented the BADI MB_DOCUMENT_BADI - Method MB_DOCUMENT_BEFORE_UPDATE. Inside the method I called a custom Function Module which calls a BAPI (BAPI_BATCH_CHANGE). However, it was reported that users sometimes encounter an update termination

  • Inline plsql_optimize_level=3 and recompiling the sys schema??

    Has anyone messed around with 11g's new inline pragma? I turned it on in a few packages which contains a lot of looping and it reduced the number subprocedure calls in the order of a few thousand. Because the db mainly servers web pages via mod_plsql

  • WCS Alarms - Disassociated AP's

    I've just installed WCS for the first time and have been configuring the email alerts/alarms. I left the default settings of Critical alerts only but find I am getting spammed. Now, I want to be alerted when an AP goes offline, but I've found that qu

  • InDesgin CS6 - Bucherstellung - wwas muss ich tun?

    Hallo! Gestern habe ich InDesign CS6 heruntergeladen, um zukünftig unsere Verlags-Produkte so zu erstellen (bisher Pagemaker). Aber ich habe keine ahnung, was ich tun muss, um ein neues Buchprojekt in InDesign zu erstellen. Wer kann helfen?