How to calculate and update value of the field2 based on what user enters i

I have a field1 (date type) in page1, while saving this value to the table, I also need to update other field (field2) based on field1 on the same table. (for ex. field2 is 60 days greater than field1).
Also on next page I want to display field2 as read only (grayed out)...
I tried to display value of field2 on next page using "ITEM" of page1, but that is not what I need..
While proccesing page1 I need to calculate and save value of field2, and then on next page display it from the table (not from previous page's item)
Could you please either help or point me to the document that has a similar example?
Thank you very much.

how are you updating the row..
if its using the commit button then have an actionlistener and then derive and assign the value to the particular column of the row..
      DCIteratorBinding dciter;
      BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
      dciter = (DCIteratorBinding) bindings.get("lineItemIterator");
        dciter.getCurrentRow().setAttribute("column4", value);

Similar Messages

  • Need to display a value before the header based on a user parameter.

    I have a select on the user parameter list of values.
    SELECT DISTINCT GROUP_ROWID, STR_GROUP_NAME
    FROM TBL_COMPANY_GROUP;
    I select the option hide the first column in order to show only a list of values and not the row_ids.
    I need to display the str_group_name within the header as a title. I insert a field in the header and in source select the name of the parameter p_groupid but the only thing that I get is the row_id value not the name. I use the row_id to pass it on my queries but I need the name value in the header. Any ideas? Please help.
    Thanks.

    create a parameter called p_header.
    in the after parameter form trigger
    select str_group_name into :p_header
    from tbl_company_group
    where group_id = :p_groupid;Have the header field source be p_header.

  • HT4623 iPhone 3G is up to 4.2.1 which unable to download and update most of the social media apps, what can I do?

    Using iPhone 3G, unable to update and download latest apps due to the version is 4.2.1, most of apps require latest version.
    Please comment. Thanks

    Upgrade to a iphone 3GS or higher.
    Or use safari for facebook.

  • SRM MDM - store multiple pricing for one entry and have it select the price based on a users site

    I've had an interesting request. We have a region where they have one supplier who will support some products for multiple sites. The sites are in different cities and so the pricing varies based on the location of the user. I know how to do price scaling in SRM MDM but wasn't sure if there was a way to have one part that could someone pick the right price based on the user. I don't think this can be done since we don't pass any "user" information in the OCI connection.
    Has anyone run into this scenario and was there some other way to not duplicate the entries or create a separate view just because the pricing was different for the same product but different site? I'm open for suggestions. I'm looking to make long term maintenance of the data as easy as possible.
    We are still running SRM MDM 5.5 SP6
    Thanks,
    Cathy

    Tom,
    Check if the below given link can give you some lead.
    http://help.sap.com/saphelp_NW04/helpdata/en/dc/dc7614099b11d295320000e8353423/content.htm
    Thanks,
    K.Kiran.

  • How to read and update the value of property file

    Hi,
    I am not able read the values from property file.
    Please tell me how to read and update the values from property file using Properties class
    This is my property file : - Config.properties its located in D:\newfolder
    Values
    SMTP = localhost
    Now i need to change the value of the SMTP
    New value :
    SMTP =10.60.1.9
    Pls Help me
    Thanks
    Merlin Rosina,

    Post a small (<1 page) example program that forum members can copy and run that demonstrates your problem.

  • How to get updated values from the loops while they are running

    Hello,
            I am having difficulty solving a very basic problem, how to access the updated values from the 'FOR loop' while its running?  Basically, the VI  I am currently working on calls two sub VIs. Each sub VI has a for loop, and both VIs may or may not run for same number of iterations. My goal is to read the values at each terminal inside the loop of both sub VIs, in the Main VI. I tried to achieve it using Global Variables, but in main VI it displays only the last iteration value from both sub VIs. Could anyone please tell me whrere am I going wrong? Is there any other/better way to achieve this.
    I appreciate any input on this issue.  
    Kudos are (always) welcome for the good post. :-)
    Solved!
    Go to Solution.

    Dennis,
                In attached VI, I can see the values changing in the sub VI from the main VI with the numeric indicator whose reference is passed on to the sub VI. Now if I wanted to store or use those values how do I do that? I tried to chnge the indicator to control and read from it (in the attached VI) , but the the indicator updates only once. Tried to create a property node and read the Value from it and it didn't work either.
    Thanks in Advance!
    -Nilesh
    Kudos are (always) welcome for the good post. :-)
    Attachments:
    main-1.vi ‏8 KB
    sub-1.vi ‏9 KB

  • How to put the column name and variable value in the alert message.

    Dear,
    how can i put the column name and variable value in the alert message text. i want to display an alert which tell the user about the empty textboxes. that these textboxes must be filled.
    Regards:
    Muhammad Nadeem
    CHIMERA PVT. LTD.
    LAHORE
    [email protected]

    Hello,
    The name of the item that fires the current trigger is stored in the :SYSTEM.TRIGGER_ITEM system variable.
    The value contained in this item can be retrived with the Name_In() built-in
    value := Name_In( 'SYSTEM.TRIGGER_ITEM') ;
    LC$Msg := 'The item ' || :SYSTEM.TRIGGER_ITEM || ' must be entered' ;
    Set_Alert_Property('my_alert_box', ALERT_MESSAGE_TEXT, LC$Msg ) ;
    Ok := Show_Alert( 'my_alert_box' ) ;
    ...Francois

  • How can i do to see the master and text values of the Key figure 0UNIT

    Hi gurus,
    How can i do to see the master and text values of the Key figure 0UNIT, please step by step, i m in the key figure 0UNIT but i want to see if the UNIT  for example BX = BOX, something like this is that i want to check,  thanks!

    If you look at the unit tables, you will see the values and texts.  It's in SPRO, not in RSA1.  My access is limited on my system here, but the documentation says to go to t-code CUNI.  I believe in that tcode you can look at all of the unit equivalencies and what each unit's text is ..... like an ea means each; KG = Kilogram; etc...
    I am on an 3.x system, so in SPRO I go to BW CIG=>General Settings=>Check units of measurement.
    Brian

  • How to update values in the table control at  Cat2 transaction,

    Hi,
    i am working on cat2 transaction, here
    i am using the exit_saplcats_006 and updating values at catsdb table, but i want to display this values at the table control in the cat2 transaction.
       can any one provide me solution for this same.
    Regards

    Hi Suresh
      this is actual requirement
    in the CAT2.
    1. Add a new column for WBS description and derive the value as per the FS
    2. Retrieve project number and description and update in the column specified
    3. When a service order is selected it should do the same for 2.
    4. Finally repeat for the worklist view (which is the section above)
       here i am able to display values at data entry area
    for service order and network but not worklist area ?
        updation is not coming, can u plz go throw it..
    Thanks
    Chinna

  • How can i add two values under the same property?

    Hi all,
    How can i add two values under the same property name in a
    prop list? For example:
    [question1: "item1","item2", question2: "item3","item4"]
    To be more precise, i am creating a property list and I want
    whenever a two values have the same property name to be added int
    he list under the same property. For example:
    gMyList.AddProp (#""&question&"" & x,
    member("input").text)
    question is a variable that is updated fromt he user's input.
    Now, whenever somethign like this happens:
    question = "question1"
    member("input").text = "five"
    question = "question1"
    member("input").text = "six"
    I want to output list to be:
    [question1: "five","six"] and so on
    Any ideas?

    Maybe you could make each property a list (so you have a
    property list full
    of lists), and add multiple values to the list held in a
    particular
    property?
    Cheers
    Richard Smith

  • How to suppress 'spurious' update events where the entry is identical

    We often have clusters with event listeners on reference data caches. These caches are refreshed by calling putAll() to update values efficiently. Although this is efficient, and keeps refresh code simple, many unwanted 'spurious' update events are generated. Spurious in the sense that in most of update events the old and new values are the same.
    We considered using a MapTrigger to suppress these uninteresting update events. The problem is how to implement a 'veto' in the MapTrigger.process method. What we'd like to do from a trigger is:
    if (old value == new value)
      ignore new entry
    else
      process, enrich, or validate new entry as desired...
    end ifWe'd like a clean way to signal from a MapTrigger that an entry should be ignored (rather than rejected). The Javadoc shows two possibilities:
    *(1)* undo the pending change by resetting the entry value to the original value obtained from MapTrigger.Entry.getOriginalValue();
    *(2)* reject the pending change by throwing a RuntimeException, which will prevent any changes from being committed, and will result in the exception being thrown from the operation that attempted to modify the map
    Of these *(2)* Causes a put() failure in the client. That is appropriate for something like a validation failure, but not for simply ignoring an unwanted update. Option *(1)* unfortunately generates an update event!
    Our current workaround is a MapEventTransformer to suppress the spurious updates:
    public class UpdateSupressionTransformer implements MapEventTransformer {     
      /** Avoid sending an update event if the value is unchanged */
      public MapEvent transform(MapEvent e) {
        if (e.getId() == MapEvent.ENTRY_UPDATED) {
          if (e.getNewValue().equals(e.getOldValue())) {
            return null;
        return e;
    }This works well but requires client code to register event listeners correctly. It also means that the unecessary change is still generated in the cache. For example a cache stores will be called needlessly.
    Can a feature be considered to allow a clean way for identical updates to be ignored, or to not generate events?
    Ideally this would be before the update is made - like a trigger. It seems a pity the MapTrigger design does not allow this.
    Such a feature would allow simple cache refresh logic using putAll() - without having to check for deltas - avoiding large numbers of unwanted update events. We think this is likely to be a common requirement.
    Cheers,
    phil

    Hi,
    I dont think that this is the problem associated with portal.You are working on BI queries in portal but BI screen that you are working on is of SAP R/3 correct me is i am wrong??And the message you are getting is of R/3 screen,BI screens are shown in an iview and an iview cant show any message..
    Regards,
    Ameya

  • In Sales enquiary stage how system calculate EK02 condition value as cacula

    Hi
    In Sales enquiary stage how system calculate EK02 condition value as caculated cost
    Is there any cofig to get the value of EK02 condition for calculated cost at Enquairy stage only for forcasting
    Regards
    Santosh

    Hi,
    In our company we get the calculated cost into our sales document with the following configuration:
    IMG: Plant maintenance and customer service / Maintenance and service processing / Basic settings / Quotation creation and billing / ODP4 - Assign conditions to sales document types
    With this configuration, we assign the calculated cost condition (EK02) to the corresponding sales document. The system sends the calculated costs from the order to the corresponding sales order created.
    Regards,
    Óscar
    http://blogdesap.blogspot.com

  • Change and Update values in a form via RFC

    Dear Friends,
    Here I am facing a scenerio in an application form. We have a Patient ID. On the base of this ID I have to display the details of patient in a form. But again if patient wants to change some details, he can do that in same form and after submitting the form values should be update in R/3.
    I am able to display the values on the base of patient id by Display Rfc, but i dont know how to edit and update those fields.
    kindly help me out.
    thanks & regards
    Nivedita

    Dear Sarb,
    Thanks for your inputs. I did as u suggested. But while deploying my program, Deployement Aborted is showing.
    public void onActionsubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionsubmit(ServerEvent)
    if (wdContext.currentPatientIdElement().getPatientId() != null)
    {wdContext.currentZpat_Couns_InputElement().setPa_Id(wdContext.currentPatientIdElement().getPatientId());
    wdContext.currentPatientIdElement().setPatientId("");
    } else {
    wdComponentAPI.getMessageManager().reportSuccess("No Records Found");     }
      wdThis.wdGetEditdisplayController().executeZpat_Couns();
        //@@end
      //@@begin javadoc:onActionEdit(ServerEvent)
      /** Declared validating event handler. */
      //@@end
      public void onActionEdit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionEdit(ServerEvent)
         Zpa_Counsel1 obj = new Zpa_Counsel1();
         Zedit_Coun_Input xyz = wdContext.currentZedit_Coun_InputElement().modelObject();
         IZedit_Coun_InputNode crnode = wdContext.nodeZedit_Coun_Input();
         IZedit_Coun_InputElement crele;
         obj.setZberuf(wdContext.currentContextElement().getZberuf());
         obj.setZbhist(wdContext.currentContextElement().getZbhist());
         obj.setZbland(wdContext.currentContextElement().getZbland());
         obj.setZbpl(wdContext.currentContextElement().getZbpl());
         obj.setZdall(wdContext.currentContextElement().getZdall());
         obj.setZdiet(wdContext.currentContextElement().getZdiet());
         obj.setZdrink(wdContext.currentContextElement().getZdrink());
         xyz.addZpat_Detail(obj);
         wdThis.wdGetEditdisplayController().executeZedit_couns();
        //@@end
    and my Context of view is like this now
    +Context
    ....+Zedit
    ....+Zdisplay
    ....+PatientId
    .......++patientid
    ..........++zberuf (All editable parameters under root Context)
    Kindly Suggest
    Thanks & Regards
    Nivedita

  • How to set a variable value on the BPC Data Manager

    Hello BPC Experts,
    I'm creating a BPC10 NW version demo environment for our prospect customer.
    I made a data manager to import  BW data into BPC model from BW cube.
    I need to import just one month data into BPC from the BW cube that has more than one month data.
    When I run the data package manually, I can select a member of the time dimension prompt and I can import specific month data I want.
    But, in a case where the program (data manager) runs by JOB monthly,
    I can't select a member of the time dimension prompt manually.
    So I want to know how to set a  variable value to the time dimension prompt from a system date etc. automatically.
    Are there any way to set a variable value to the time dimension prompt on the data manager automatically from a system date?
    Or, do you have any other solution to import just one month data into BPC from the BW cube that has more than one month data  by the data manager running on JOB ?
    (without selecting a member of the time dimension prompt of the data package manually)
    Thanks in advance,
    Keisuke

    Hi Gersh
    Sorry for my late reply and thanks for your helpful information.
    I tried the second way of your information and I could configure it.  
    And I 'll try first way of your information.
    Regards,
    Keisuke

  • How can I pass a value to the command prompt?

    I was wondering how can I pass a value to the command prompt with Windows and Linux? I'm more interested in Linux's system than Windows though. Is there a way to return info from the command prompt?

    Here is a snippet from http://mindprod.com/jglossexec.html that explains how in detail.
    Runtime.getRuntime().exec("myprog.exe") will spawn an external process that runs in parallel with the Java execution. In Windows 95/98/ME/NT/2000/XP, you must use an explicit *.exe or *.com extension on the parameter. It is also best to fully qualify those names so that the system executable search path is irrelevant, and so you don't pick up some stray program off the path with the same name.
    To run a *.BAT, *.CMD, *.html *.BTM or URL you must invoke the command processor with these as a parameter. These extensions are not first class executables in Windows. They are input data for the command processor. You must also invoke the command processor when you want to use the < > | piping options, Here's how, presuming you are not interested in looking at the output:
    Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat" );
    Runtime.getRuntime( ).exec ("cmd.exe /E:1900 /C MyCmd.cmd" );
    Runtime.getRuntime( ).exec ("C:\\4DOS601\\4DOS.COM /E:1900 /C MyBtm.btm" );
    Runtime.getRuntime( ).exec ("D:\\4NT301\\4NT.EXE /E:1900 /C MyBtm.btm" );
    There are also overloaded forms of exec(),
    Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat", null);
    Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat", null, "C:\\SomeDirectory");
    The second argument can be a String [], and can be used to set environment variables. In the second case, "C:\\SomeDirectory" specifies a directory for the process to start in. If, for instance, your process saves files to disk, then this form allows you to specify which directory they will be saved in.
    Windows and NT will let you feed a URL string to the command processor and it will find a browser, launch the browser, and render the page, e.g.
    Runtime.getRuntime( ).exec ("command.com http://mindprod.com/projects.html" );
    Another lower level approach that does not require extension associations to be quite as well set up is:
    Runtime.getRuntime( ).exec ("rundll32 url.dll,FileProtocolHandler http://mindprod.com/projects.html" );
    Note that a URL is not the same thing as a file name. You can point your browser at a local file with something like this: file://localhost/E:/mindprod/jgloss.html or file:///E|/mindprod/jgloss.html.
    Composing just the right platform-specific command to launch browser and feed it a URL to display can be frustrating. You can use the BrowserLauncher package to do that for you.
    Note that
    rundll32.exe url.dll,FileProtocolHandler file:///E|/mindprod/jgloss.html
    won't work on the command line because | is reserved as the piping operator, though it will work as an exec parameter passed directly to the rundll32.exe executable.
    With explicit extensions and appropriately set up associations in Windows 95/98/ME/NT/2000/XP you can often bypass the command processor and invoke the file directly, even *.bat.
    Similarly, for Unix/Linux you must spawn the program that can process the script, e.g. bash. However, you can run scripts directly with exec if you do two things:
    Start the script with #!bash or whatever the interpreter's name is.
    Mark the script file itself with the executable attribute.
    Alternatively start the script interpreter, e.g.
    Runtime.getRuntime( ).exec (new String[]{"/bin/sh", "-c", "echo $SHELL"}";

Maybe you are looking for

  • Photoshop CS4 Crashing Problem

    I recently  lost my main desktop and my backup. Neither are repairable, so I've had to switch to backup number 2. This is an '05 Dell Optiplex GX280 small desktop, with 1GB memory (soon to be 4), a 160GB hard drive, a Pentium 4 3.0 GHz CPU with Intel

  • How do I print a photo from mail

    How do I print a photo from mail

  • Problem with CN41 Info Profile

    Hi experts, i have added two customer specific fields in STRUCR structure. In CJ20n its displaying properly.( Added those fields in AFVU. Designed in the screen also) i have created  PS Info profile with the same two fields. its showing zero after ex

  • How can I make new photos visible in the Calendar option?

    I'm halfway through a calendar, and needed to add some more photos. I imported some additional photos into iPhoto, but these are not available in the unplaced photo area. It seems (unless I'm wrong), that your calendar project will only recognise pho

  • Slow and spinning beach balls after 10.8.2 update

    After the initial install of ML 10.8 for the most part the sytem seemed to run fine.  Very few snags.  But after the 10.8.1 and now the 10.8.2 updates I am finding slower and slower times for programs to boot and waiting to be able to type anything a