Dynamically changing the value in table control

Hello Every one,
In MD61 transaction table control am trying to change value dynamicaly i.e am trying to change value in table control automaticaly tht value to be captured and i need to show in status bar...
Ex table control field is number: am giving 10,20,30 tht should show in status bar by adding if u enter 10 at status bar it show 10 then when u enter 20 it should add with 10 and give 30 ..
in this way when ever u enter value in filed it should add with the status bar value.

Hi!
For conversion you can use the function module
data :   w_amt         TYPE cms_dte_original_amt,
                                                                                " Amount
            w_conv_amt    TYPE cms_dte_conv_amt,
                                                                                " Converted amount
            w_kmein       TYPE cms_dte_original_curr,
   CALL FUNCTION 'CMS_API_CURR_CONV'
        EXPORTING
          i_original_curr = w_kmein
          i_original_amt  = w_amt
          i_result_curr   = 'INR'
          i_rate_type     = 'M'
          i_conv_date     = sy-datum
        IMPORTING
          e_conv_amt      = w_conv_amt.
now accordingly you can move the currency and amount that is changed....
here as you were saying that on f4 after selecting you want the other field to get the value on that currency.....
this work can be done as here....
in this the next field gets populated as the first field gets the value......
refer to it.....
https://wiki.sdn.sap.com/wiki/display/ABAP/GettingainputfieldpopulatedonenteringthevalueinoneInputfield
Regards.

Similar Messages

  • Deleting the values from table control

    HI,
    I need to remove the selected line from the Table control on my screen.
    The point is that the Internal table does not have any records,.
    for example in the Customer Create screen,
    while entering the bank details we will enter it in a tbale contraol.
    but the records doesnt exist in the database. but the record gets deleted from the table control only if we press delete button.
    please guide me.
    please note : I want to delete the record from Table Control on the screen and I dont have any corresponding database records..
    regards

    Hi..
    The solution to your problem - deleting values from table control.
    Here: it_wizard is the internal table which is holding the value of table control.
             wa_wizard is the work are of the internal table it_wizard.
             it_delete is the internal table which holds the deleted record of table control.
             wa_delete is the work area of the internal table it_delete
    Also here the field ZSEL is the character field which is used to select the entire record in the table control.
    LOOP AT it_wizard into wa_wizard WHERE zsel = 'X'.
           MOVE-CORRESPONDING wa_wizard TO wa_delete.
           APPEND wa_delete TO it_delete.
           delete table it_wizard from wa_wizard.
    DELETE  FROM zfin_goods WHERE ZFG = WA_delete-ZFG.
    ENDLOOP
    if sy-subrc eq 0.
    Message 'Delete Successful' type 'S'.
    endif.
    The above code will delete the record from both the table control.internal table and the database table.
    I think this will help you to great extent.
    Ward regards,
    Bhuvaneswari
    Edited by: BHUVANESWARI THIRUNAVUKKARASU on Jan 7, 2009 10:39 AM

  • There was an attempt to change the value of a control that is not visible.

    I am getting the below error on submitting on a screen.
    "There was an attempt to change the value of a control that is not visible. The submitted value for this control has been discarded."
    I am setting the values of the controls in "OnGetScreenEventHandler, OnInvestigationEndedEventHandler" implementation. Is there any way to check if the control is visible?
    Thanks,
    Rajan

    Hi,
    How Do I Check for the control Visiblity in the above said event handler?
    Here is my code
    private void formattAllDate(SessionContext currentContext) {
         log.debug("R2_XSR: Formatting all date");      
    setGlobalInstanceValue(currentContext,"Date1",formatDate(getGlobalInstanceAttribValue(currentContext, "Date1")));
    setGlobalInstanceValue(currentContext,"Date2",formatDate(getGlobalInstanceAttribValue(currentContext, "Date2")));
    setGlobalInstanceValue(currentContext,"Date3",formatDate(getGlobalInstanceAttribValue(currentContext, "Date3")));
    setGlobalInstanceValue(currentContext,"Date4",formatDate(getGlobalInstanceAttribValue(currentContext, "Date4")));
    setGlobalInstanceValue(currentContext,"Date5",formatDate(getGlobalInstanceAttribValue(currentContext, "Date5")));
    setGlobalInstanceValue(currentContext,"Date6",formatDate(getGlobalInstanceAttribValue(currentContext, "Date6")));
    setGlobalInstanceValue(currentContext,"Date7",formatDate(getGlobalInstanceAttribValue(currentContext, "Date7")));
    private void setGlobalInstanceValue(SessionContext currentContext, String attribute,Boolean value){
         try{
              currentContext.getInterviewSession().getRuleSession().getGlobalEntityInstance().getEntity().getAttribute(attribute).setValue(currentContext.getInterviewSession().getRuleSession().getGlobalEntityInstance(), value);
         }catch(Exception e){
              e.printStackTrace();
    private String formatDate(String dt){
    String newdt[]=dt.split("/");
    if (newdt.length==3){
    return newdt[1]+"/"+newdt[0]+"/"+newdt[2];
    return "";
    }

  • Changing the value of a control in a subvi

    I think the answer is out there somewhere but I've read through many threads found with searches similar to this topic so sorry to repost...
    I would like to change the value of a top-level VI control from a sub-vi.  The data is being used as a parameter, I was thinking about using a local/global but I've seen this discouraged.  Is there a way I can do it with references, property, or invoke nodes (or some other suggested method) ?
    I am guessing that if I am not using globals I will need to wire into the sub-vi?
    Dave

    I'd like to clarify what I am trying to do a bit more...
    The sub-vi has a control of the same type as the top-level vi.  The inital control value is being passed into the sub-vi from the top-level vi.  The sub-vi uses the control value in several places through local variables (reading and writing to it)
    I would like to modify the vi so the top-level vi control value changes whenever the sub-vi changes the control value that is passed to it.
    My last attempt was to make a refnum control in the sub-vi (by dragging from top-level block diagram to sub front panel) and then creating a property node from that refnum control.  Using the property node "value" did not give me the value of the control from the top-level vi as I had hoped.  Wiring it to a terminal that was expecting the same type of control (a cluster of two numerics) caused a wiring conflict.
    I noticed elsewhere in the code that the programmer used a text file to save options (unfortunately the control I am working on was not originially included in the options).  There is a vi that, when called, either reads or writes to the text file.  From a C/C++ programming perspective it seems quite odd to me not to just keep all this data in memory and pass it around.  Is using a file to store variables a typical practice in LV programming (even when they are retrieved multiple times during program execution) ?

  • How can I change the size of table control in table maintenance re-gen?

    Hello Experts,
    I hv created a maintenance view and after generated table maintenance view for it.
    now it adjusts the size of table control in table maintenance generation.
    I want to change the size (width) of table control and again re-generate the table maintenance.
    But when re-generation occurs, table control size is set to initial.
    why it is happening? and wt to do to solve this issue? any user exit?
    I need the changed size of table control even if its re-generated.
    Regards,
    R.Hanks

    Hello Ronny,
    Goto SM30, Enter your table name for which you have maintained your table maintainence generator .
    When the maintainence screen appears for your table name , Goto System->Status->Screen Program name.
    Copy that program name from there.
    Open that module program through SE80,this is the program name of your SM30 screen which appears when we enter our table name in SM30 transaction.
    In SE80,click the layout of the module program name you have entered there.
    Its layout will display you the table control(of SM30) present to enter your your enteries.
    In the change mode you can change its size , savee it and activate that program.
    Now goto to SM30 again and enter your table name, it will show you the changed size of the table control used to take the enteries.
    Note:This changed size is only for your table name and it will remain of its previous size for other table enteries.
    Hope it helps you.
    Thanks Mansi

  • Can we change the attributes of table control wizard once it is created?

    hi,
    i hav created table control using wizard......now i hav to change attributes of that table control.......how to do it ?
    can anyone help me in this...............

    HI,
    Double click on the screen Number in whcih Table control is placed.
    Then Select the ELEMENT List Tab->place the cursor on the Table control and select the Atributes button in the Application toolbar.

  • How can i change the color of table control'  lines?

    Such as the subject. Thanks in advance!

    Hi,
    Please check,
    TABLE CONTROL LINES COLOR CHANGE
    color rows in table control
    Regards,
    Hema.
    Reward points if it is useful.

  • Dynamically change the value in standard text

    Hi all,
      I have created standard text using SO10  transaction. I have included the text id in SAP FORM. My requirement is some text need to change dynamically in the text  when printing the form.Is there any way to do it.
    Thanks
    Suadrsana

    Hi .. Here is the solution ...
    Hi &V_NAME&
    Thanks
    XXXXXXXX
    U need to get the value of
    V_NAME
    from the SF.
    If u have the value of the variable in an internal table, then
    LOOP AT ITAB INTO WA.
      V_NAME = WA-NAME.
    ENDLOOP.
    I think this will be useful.
    Suhas
    Message was edited by:
            Suhas Saha

  • Change The title of table control

    I have Table Control on Screen 102 called TABCTRL_102.
    General attributes of TABCTRL_102 has
    <b>With title</b> checked and
    <b>Title element name</b>  TXT003
    Now I want to Change The title of my table control through program. Is there a way out.

    Hi Flora,
    Declare a global variable in your TOP Include like,
    DATA: gv_text_tc_102(30).
    Then replace TXT003 in screen painter with GV_TEXT_TC_102
    and mark it as 'Output Only'.
    Then you can fill this variable in one of the PBO Modules of the screen 102 like,
    MODULE <your PBO Module Name>.
    ***Other Code
    gv_text_tc_102 = 'My Text'. "Better use a text symbol
    ENDMODULE.
    Hope this helps..
    Sri
    Message was edited by: Srikanth Pinnamaneni

  • Dynamically change the value in order by clause (urgent)

    Could any one help atall with this.
    I have a cursor within a procedure and i want to be able to pass parameter into the procedure so that the record fetched by the cursor can be ordered by the parameter passed in.
    For instance
    create or replace procedure select_all(p_order_by in varchar2) is
    cursor r_cur (c_order_by in varchar2) is
    select empno,empname,job,manager,salary
    from emp
    ordry by c_order_by;
    r_rec r_cur%rowtype;
    lv_order_by varchar2(30);
    begin
    lv_order_by := p_order_by;
    for r_rec in r_cur(lv_order_by) loop
    dbms_output.put_line(empno||empname||job||manager||salary);
    end loop;
    end;
    I have obviously done it as written above but the output is not ordered by the value i passed into the procedure when ran. Is the a better way to achieve the desired result?

    I handle dynamic order by using dynamic sql
    create or replace procedure select_all
                   (p_order_by  in varchar2) is
    TYPE               RefCurTyp is REF CURSOR;
    CV                    REFCURTYP;
    v_sql_stmt  VARCHAR2(4000) ;
    r_rec r_cur%rowtype;
    BEGIN
      v_sql_stmt := 'select empno,empname,job,manager,salary '||
                                ' from emp ' ||
                                ' ORDER BY '||p_order_by ;
      open CV for v_sql_stmt;
      loop
            fetch CV into r_rec ;
                    exit when CV%NotFound;
            dbms_output.put_line(r_rec.empno||' '||r_rec.empname||' '||r_rec.job||' '||r_rec.manager||' '||r_rec.salary);
      end loop;
    close CV;
    end;

  • Dynamically change the value of a select list in form based on a table

    Hi Friends,
    I am using a form based on a table. I want to display two fields as select lists instead of text boxes and when a value
    in a select list is selected, the corresponding values will be listed in the next select list. For example if department
    value is selected in a select list the employees in that department will be listed in the employee select list. I saw a
    metthod using ajax for achieving this in tabular form in Denes's sample application[Click Here| http://apex.oracle.com/pls/otn/f?p=31517:176:462842537250908::NO] .
    Is there any way to achieve the same for a form based on a table,
    Thanks,
    Tj

    Hi Andy,
    Could you tell me how I could use your example with multiple Application Items?
    My page has 3 cascading select lists. The second is dependent on the first and the third is dependent on both the first and second. I thought I would just need to add the second application item as a get, but not sure what the syntax would be. I have troubleshooted to the point where my select list refreshes when I have one in the javascript...just not sure how to add the additional one?
    Here's what I have (I have been referencing your 'Get Employees' page)
    My Page Items:
    P0_VENDOR_ID
    P0_VENDOR_SITE_ID
    P0_INVENTORY_ITEM_ID
    My Application Items:
    F_VDR_ID
    F_VDR_SITE_ID
    My query in the application process has both F_VDR_SITE_ID and F_VDR_ID in it.
    My javascript function...this worked OK until I added the additional get.add('F_VDR_SITE_ID')
    function getItems(filter, listName)
    var xml = null;
    var list = document.getElementById(listName);
    var listvalue = list.value;
    var get = new htmldb_Get(null,$v('pFlowId'), 'APPLICATION_PROCESS=Set_Items',4);
    get.add('F_VDR_ID', filter.value);
    get.add('F_VDR_SITE_ID', filter.value);
    ret = get.get('XML');
    if(ret)
    var s = ret.getElementsByTagName("select");
    if(s){
    var o = ret.getElementsByTagName("option");
    var oCount = o.length;
    list.options.length = 0;
    for(var i = 0; i < oCount; i++){
    var l_Opt_Xml = o;
    appendToSelect(list, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue);
    list.value = listvalue;
    if (list.selectedIndex == -1)
    list.selectedIndex = 0;
    get = null;
    Thanks,
    Janel

  • BAdi HRPAD00INFTY - Dynamically change the value of Wage amount in Infotype

    Hello all,
    I am implementing BAdi HRPAD00INFTY for infotype 0008.
    The requirement is, whenever user checks/saves Infotype 8, System should look out FTE wage type exists or not. If it exists then amount should be calculated and get updates for that wage type. If wage type not found insert wagetype FTE and amount in the infotype for the employee.
    I have calculated amount in method AFTER_INPUT of the BAdi. I am trying to reflect the updated amount on the screen using  method CL_HR_PNNNN_TYPE_CAST=>PNNNN_TO_PRELP. but it is not working.
    I also tried to use the same method CL_HR_PNNNN_TYPE_CAST=>PNNNN_TO_PRELP in BEFORE_OUTPUT method.
    Can somebody help me on this?
    Any pointer would be helpful and appreciated.
    Thanks in advance.
    Best Regards,
    Dharitree

    Added by Jeyhun Hajiyev - Azerbaijan Baku DemirBank 05.04.2010
    Function EXIT_SAPFP50M_001 INCLUDE  ZXPADU01
    DATA : lv_message_handler TYPE REF TO if_hrpa_message_handler
               , wa_0008  LIKE p0008
    FIELD-SYMBOLS: <fs_p0008> TYPE ANY.
    IF innnn-infty = '0008'.
      CLEAR : lv_plans
            , ls_hrp1005
            , lv_result
    Transfer the structure p0008 from INNNN
      ASSIGN ('INNNN') TO <fs_p0008> CASTING TYPE p0008.
      CHECK sy-subrc = 0.
      MOVE <fs_p0008> TO wa_0008.
    u201COR
    CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
    EXPORTING
    PRELP = INNNN
    IMPORTING
    PNNNN = WA_0008.
    u201CChanging in Infotype 0008
          wa_0008-trfst = '01'.
          wa_0008-lga01 = '1000'.    "FOR SEE RESULT YOU MUST ADD THAT LINE
          wa_0008-bet01 = 100. " $ Amount for Q0008-BETRG
      CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
        EXPORTING
          pnnnn = wa_0008
        IMPORTING
          prelp = innnn.
    ENDIF.

  • OBIEE 10g AGO Function Dynamically Change the Heading

    I created columns in my rpd named Sales Previous Month, Sales 2 months ago and Sales 3 months ago using the AGO Function. This is working fine.
    My problem is when displaying these headings the users would like to see the Month Name instead of the Headings I created. For example if looking at a report for January the users would like to see:
    Sales Previous Month = December
    Sales 2 Months ago = November
    Sales 3 Months ago = October
    Is there any way to dynamically change the value of the column header to show the name of the month?

    Hi SriniVEERAVALLI,
    Thanks for the reply. I have found that I might haven't created the relationship between dimension and fact tables correctly.
    I initially created the foreign key relationship (instead of creating complex join) in physical diagram between the dimension and fact table. And the relationship type is hence greyed out.
    I have deleted the foreign key relationship in physical diagram. Then
    1. In physical diagram, create complex join between dimension and fact . The relationship is 'inner' and can't be changed.
    2. In Logical table diagram, create foreign key between dimension and fact . The relationship can be changed (inner, outer, etc).
    Is this the correct way?
    I tried these on two newly created dummy tables and it worked.

  • How to find  dynamic value(screen value) in table control for current row .

    hi to all,
    i used table control in my screen. for column no 2 field i was used serrch help. and for column number 3 i used a dynamic help.
    in change mode you can change any row for table control.
    when i was using search help for a row which was already entered in column no 3 i cannot get any value.
    how i can get value of row no 3 and column no 2 value.
    thanks

    Try using like index for the serarch the TC-current_line

  • Dynamically change the Priority Group of Logical Table Sources in OBIEE 11g

    Hi All,
    I have 2 Logical Table Sources(LTS 1 and LTS 2 for a Logical Table in BMM Layer).
    Example: Logical Table : Sample
    LTS Source 1 : Sample 1(Priority Group Set to 1)
    LTS Source 2 : Sample 2(Priority Group Set to 0)
    I have set the Priority Group of Sample 1 LTS Source to 1 and Priority Group of Sample 2 LTS Source to 0.
    I need to dynamically change the Priority Group of Sample 1 LTS Source to 0 if my role is DEVELOPER where role is a column in database.
    If my role is not equal to DEVELOPER then the Priority Group of Sample 1 LTS Source will remain same(1).
    Please suggest how can i achieve this.
    Thanks,
    Soukath Ali

    hello Soukath Ali,
    didi you find a way to dinamically changing Priority Group?
    thanks,
    Maria Teresa Marchetti

Maybe you are looking for