Fill a field dynamically when selecting or entering another field

Dear Experts,
We have a customer developed screen program, we have a requirement to populate a value of a screen field when another
field is selected using f4 or keyed in directly. how can this be achieved.
Thanks.

Pierre,
try with badi:
BADI_MIRO_SPLT_ADD                      Append additional fields of ACCVS to ACCIT 
method:
BADI_MIRO_SPLT_ADD
your code somthing like this if <yourfield> ne ' ' and <field2> ne ' ' .
field3 = <update value>.
endif.

Similar Messages

  • I can enter a webadress in the adress field but when I hit enter nothing happens, If I press with my mouse on the side for the site to load it loads perfectly but enter pressing is non-responsive

    I can enter a webadress in the adress field but when I hit enter nothing happens, If I press with my mouse on the side for the site to load it loads perfectly but enter pressing is non-responsive
    I use FF4

    Please re-post in the Office for Mac Product Forums hosted by Microsoft.

  • Field with a default value from another field

    I need to populate a field as the default value from another field that the user inputs. I've tried the scripting that I found from the below Topic in the Archived Forums, but I'm not able to make it work. I've tried numerous variations and still to no avail. I tried to make the scripting work in Acrobat 6 and then decided that maybe I needed to upgrade, so I'm now trying it in Acrobat 8 with no results. Can anyone help?
    Topic
    Acrobat 5 - field with default value of another field
    Ben PF - 03:31am Mar 23, 2007 Pacific
    How can I have a field date2 which has the default value of field date1, but which can be edited by the user if necessary without changing the value of date1.
    I've tried, but I just can't figure it out!
    Any help much appreciated.
    Ben
    | Back to Topic List | Bookmark | Subscribe
    To start a NEW discussion click on the Back to Topic List link and select Add Topic.
    If you are in an archive forum please go up to the main topic list (archives are read only).
    Messages
    2 messages. Displaying 1 through 2.
    First Previous Next Last Show All Messages
    Gene Dianoski - 5:22am Mar 23, 07 PST (#1 of 2)
    This, or some variation of this, should work:
    if(this.getField("date2").value == ""{
    this.getField("date2").value = this.getField("date1).value;
    | Bookmark back to top
    Ben PF - 6:49am Mar 23, 07 PST (#2 of 2)
    Thanks very much.
    I put it in at document level to start, but it didn't run the script automatically when date1 was first filled in, so I have put it in as a mouse exit action in date1 and it works a treat.
    Thanks for your help.
    Ben

    Okay forget what I posted above and lets start over. Go to your first field and under Properties -> Actions Tab -> Select Trigger -> On Blur Run A JavaScript.
    Put this:
    this.getField("myField2").value = event.target.value;
    Make sure that you replace ("myField2") with the actual name of your second field. I just tested this and it works for Acrobat version 6.
    I haven't been doing as much javascripting as I used to, so sometimes I too make some basic mistakes.

  • Search help for a field in table control based on another field value

    Hi,
    I want to attach the Search help for a field in table control based on another field value.
    Please help me asap.
    Will be highly rewarded

    HI,..
      Check these links
    search help in table control
    Re: How to create Search Help for a field in Table control !!
    How to create Search Help for a field in Table control !!
    F4 Help In Table Control
    Control table F4 help
    Problem in F4 help in screen field
    check this code
    DATA: BEGIN OF it_value4 OCCURS 0,
             TEXTCODE  LIKE  ZXX-TEXTCODE,
             TEXTDESC  LIKE  ZXX-TEXTDESC,
           END OF it_value4.
      progname = sy-repid.
      dynnum   = sy-dynnr.
             SELECT TEXTCODE TEXTDESC
               FROM  xxxx
               INTO CORRESPONDING FIELDS OF TABLE<b> it_value4</b>
              WHERE  LOSS_CODE =<b> IT_VALUE1 .</b>
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield    = 'TEXTCODE'
          dynpprog    = progname
          dynpnr      = dynnum
          dynprofield = 'ITVALUE-TEXTCODE'  "-->UR  4 th filed value in screen
          value_org   = 'S'
        TABLES
          value_tab   = it_value4.
    endmodule.
    Message was edited by:
            veereshbabu ponnada

  • Text in form field disappears when I move to next field

    I have a PDF form for doing estimates for my business. I e-mailed it to myself and open it up on iPad. Then I selected open in Adobe.
    I can enter data in any of the fields just fine but when I move to the next field the data I previously entered disappears unless I go back to that field to edit.
    I tried e-mailing a document to myself and when I opened it up on my laptop computer the data fields are empty regardless of whether I highlight that field.
    Can anybody help me out with this problem?
    Thank you, Bob Kroth
    [email protected]

    Hi Pat,
    Well I'm not sure what doc you were looking at but here is a similar pdf.
    I have both Adobe and Scan soft PDF software. If you mouse over the area
    where the address would be typed in and click on that area the text that is
    there will appear. When you click to new field text disapears. I typed in a
    price for mowing and when you click on that field you can see the price. I
    have also tried this on Adobe for iPhone and have the same problem.
    Sorry if I'm not explaining this clearly.
    Bob 612 889-5720

  • Field validation - make field required based on value of another field

    Hi,
    I tried to enter the field validation into both LeadSource and stSource_Detail field, however, when the LeadSource is not "Customer" or "Staff" and Source Detail is not empty, the validation message will prompt. Below is my field validation:
    IIf(([<LeadSource>]=LookupValue("OCCAM_LEAD_SOURCE", "Customer") OR [<LeadSource>]=LookupValue("OCCAM_LEAD_SOURCE", "Staff")) AND [<stSource_Detail_Staff_ID__Customer_ID_ITAG>] IS NULL,N,[<stSource_Detail_Staff_ID__Customer_ID_ITAG>])

    Field Validation statements must return only TRUE or FALSE. Rewrite your statement such that if your condition is valid, true is returned, and if not, false is returned.
    Thom

  • Activate input for a field depending on the input in another field

    Hy gurus,
    A have a report with select option.
    In the select option I'd like to have the following:
    I have a checkbox ,if it is flagged the input for another field should be made possible.
    The problem is,to activate it right after I flag the checkbox (without having to press ENTER)
    Do you have suggestions?
    Thanks,Christian

    Hi Christian
    It's the same, check my sample in the last my answer.
    If you want to protect a SELECT-OPTION or more than one parameter it should use the group.
    SELECT-OPTIONS: S1 FOR SY-DATUM MODIF ID AAA,
                    S2 FOR SY-UNAME MODIF ID BBB
    PARAMETERS: p1  MODIF ID AAA,
                p2  MODIF ID BBB.
    PARAMETERS: p_ck AS CHECKBOX USER-COMMAND aaa.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF p_ck = 'X'.
          IF screen-group1 = 'AAA'.
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ELSE.
          IF screen-group1 = 'BBB'.
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDIF.
      ENDLOOP.
    Max

  • Choose field from joined table based on another field?

    Good morning!
    Is it possible to select a field from a joined table row based on another field? Consider the following data in the CVALUES table:
    ID  C1   C2    C3    C4    C5    C6
    T1  9.6  10.3  12.4  19.6  19.6    0
    T7  9.6  10.4     0     0     0    0
    T3  8.2   9.9  11.4  19.6  19.6    0
    T8  8.3  10.7  13.5  20.7     0    0
    T5  9.4  10.3  12.7  22.9  19.6    0
    ...And the following data in the MDETAIL table:
    ID           MDATE        CNUM     ...
    T1  03/28/2012 18:00:00    4
    T1  03/28/2012 18:00:00    1
    T8  03/29/2012 06:00:00    6
    T8  03/29/2012 06:00:00    5
    ...I want to get the column from CVALUES corresponding to the CNUM field in the MDETAIL table. I'm currently doing this:
    SELECT m.t1, m.mdate,
           CASE WHEN m.cnum = 1 THEN c.c1
                WHEN m.cnum = 2 THEN c.c2
                WHEN m.cnum = 3 THEN c.c3
                WHEN m.cnum = 4 THEN c.c4
                WHEN m.cnum = 5 THEN c.c5
                WHEN m.cnum = 6 THEN c.c6 END AS cvalue
      FROM mdetail m
      JOIN cvalues c ON m.id = c.idThe records in the CVALUES table are unique; only one row per ID.
    This method works, and it's fast but it's messy code and I think there has to be a better way to do it. I use the cvalue value in several calculations so every calculation I use it in has this giant glob of CASE in it!

    Since you're comparing the same column against scalar values, the CASE statement could be simplified in a similar way :
    CASE m.cnum
      WHEN 1 THEN c.c1
      WHEN 2 THEN c.c2
      WHEN 3 THEN c.c3
      WHEN 4 THEN c.c4
      WHEN 5 THEN c.c5
      WHEN 6 THEN c.c6
    END AS cvalueSince performance is not the issue here, now it depends on what you consider "more readable".
    Using a one-liner piece of code certainly makes the query looks less bulky, but I won't be so sure about readability and immediate understanding.

  • Make a field required based on input in another field

    So I have researched the forum to answer the question of how to make certain fields in a form required if a value is entered in another designated field, and not required if no value is entered in the designated field.
    For example:
    There is a field titled QTY_paper, and if a value is entered into QTY_paper, then the field PROGRow1 should become required.
    If no value is entered into QTY_paper, then PROGRow1 is not required.
    I've tried both FormCalc and Javascript, but with no results. In FormCalc I added this script as a mouseExit event on QTY_paper:
    if ($.isNull == 0) then
         //Make the budget field Required
         PROGRow1.validate.nullTest = "error";
    endif
    and then I added this script in FormCalc to the mouseExit event on PROGRow1:
    if ($.isNull == 0) then
    $.validate.nullTest = "disabled"
    endif
    This came almost verbatim from another post on the forum, so I'm thinking I'm missing something obvious here... which isn't too odd as I'm still pretty new at adding the scripts. Please help if you can!

    You'd want to combine both scripts on the first field with an if/else statement. And I'd use the Exit event instead of Mouse Exit (not sure if Mouse Exit handles tabbing in and out of fields).
    The first script should have worked, but with the second script you were asking if PROGRow1 was null, not QTY_paper.
    FormCalc:
    if ($.isNull) then
         PROGRow1.validate.nullTest = "error"
    else
         PROGRow1.validate.nullTest = "disabled"
    endif

  • Get values in dropdown field based on f4 help in another field

    Hi Experts,
    How to Get values in dropdown field based on another field which is F4 Help. If I select one value in f4 help field(ex: 1) I need to get values in dropdown field (ex:a, b, c),If I select another value in f4 help (ex:2) I need to populate different values (ex: d). Can any one please provide sample code that can help more.
    Thanks,
    Ashok.
    Moderation: Kindly search and find the solution, before you post.

    Dear Ashok,
    You can take help from this program in SAP named BCALV_EDIT_08.
    Thanks.
    With regards.

  • Populate text in field 1 based on calculation in another field

    Hello,
    Currently, I have a calculated field that is the sum of 7 numeric fields. I then have a text field that I would like to populate based on the calculation.
    For example, if the value in the calculated field (Total) is "27", textfield should read "Great Job". If Total is >27, the textfield should read "Keep Trying".
    I have two questions... What script should I try? and Where should the script reside?
    I have tried to add script in the 'change' section of the Total field, but since the user is not changing this field (it is calculated), the script is not being triggered. I have tried the script in the 'change' section of each of the 7 numeric fields, but am having trouble referencing the Total field value.
    Any help would be appreciated.
    Thanks
    E

    Eric,
    I added 8 Numeric Fields named MonTotal, TueTotal, WedTotal, ThurTotal, FriTotal, SatTotal, SunTotal and WeekTotal.
    I added a FormCalc script to the calculate event of the WeekTotal Numeric Field shown below:
    form1.#subform[0].MonTotal + form1.#subform[0].TueTotal + form1.#subform[0].WedTotal + form1.#subform[0].ThuTotal
    + form1.#subform[0].FriTotal + form1.#subform[0].SatTotal + form1.#subform[0].SunTotal
    Once I saw the calculation was working I inserted a new text field named "Comment" and a standard button (Labeled "Click on Completion" and added a FormCalc script to the click event of the standard button shown below:
    if (form1.#subform[0].WeekTotal == 27) then
    form1.#subform[0].Comment = "Great Job!!!"
    elseif (form1.#subform[0].WeekTotal > 27) then
    form1.#subform[0].Comment = "Keep Trying!!!"
    endif
    Hopefully this is helpful.
    Have a great day!
    Pam

  • Table Control: make a field editable or not based on another field value

    HI All,
    How to make a column field input enabled or disabled based on another field value in a Table Control.
    Here's the scenario:
    I have a table control with two columns, KTOKK and LIFNR. Now for certain KTOKK, the LIFNR field should be editable and for certain KTOKK it should not be editable.
    Eg.,  KTOKK = 0001 =>  LIFNR field is not editable.
            KTOKK = ZKTO => LIFNR field is editable.
    But these fields are in a table control.
    Please advice.
    Thanks in advance,
    RK.

    Hi RK,
    Go through the below link..
    how to make special field editable or diseditable in table control?
    the code mentioned in the link.. just add ur conditions in the module....
    Best Regards,
    Brijesh

  • Table fields cleared when selecting a value in the inputListOfValues

    i have a page with a tabel,
    in this table i've made an inputListOfValues field which calls an LOV with countries,
    when i select in in the list and click on 'Ok' i return to the page.
    When i returned on the page, all fields are cleared from previous input, so how can i prevent this problem?
    thanx

    hi brenden,
    this is my column in which i have a
    <af:column sortProperty="Country" sortable="true"
    headerText="#{bindings.ForeignGrower.hints.Country.label}">
    <af:inputListOfValues id="Country"
    readOnly="#{!row.bindings.Id.updateable}"
    popupTitle="Zoek: #{bindings.ForeignGrower.hints.Country.label}"
    value="#{row.bindings.Country.inputValue}"
    model="#{row.bindings.Country.listOfValuesModel}"
    required="#{bindings.ForeignGrower.hints.Country.mandatory}"
    columns="#{bindings.ForeignGrower.hints.Country.displayWidth}"
    shortDesc="#{bindings.ForeignGrower.hints.Country.tooltip}">
    <f:validator binding="#{row.bindings.Country.validator}"/>
    </af:inputListOfValues>
    </af:column>
    to my opninion, it look's good, it has a binding with the modelcomponent ForeignGrower,
    so i have no clue whatsoever

  • Fill a combobox dynamically on selecting rom another combobox

    Hello,
    In my JSP, I hace 2 combo box, 1 with single selection (typeCmb) and 1 with multiple selction (itemsCmb).
    On selecting a item from typeCmb, I want to load contents of itemCmb. The contents of itemCmb will have to loaded dynamically. I can't get the concept to implement this. Can anyone help me how to achieve the goal. Both items belong to same form.
    Any help is appreciated.
    Thanks,

    Then what do I do. This is what I have coded :
       function selectionType() {
            document.sendform.listSelect.options.length = 0;
            var index = document.forms[0].emailtype.selectedIndex;  // Index of emailtype
            var data = document.forms[0].emailtype.options[index].value;    // Value of emailtype
            <%  String s="";
                int j = 0;    %>
            if (data == "TestMail") {
               size = <%=testUsers.size()%>;
               ai = 0;
               <%
                s = "";
                AdminUserBean ab = null;
                for (j=0; j < testUsers.size(); j++) {
                     ab = (AdminUserBean)testUsers.get(j);
                     s = ab.getUsername() + " : "  + ab.getEmail();
                %>
                    document.forms[0].listSelect.options[ai] = new Option("<%= s%>", "<%=ab.getEmail()%>");
                    ai = ai + 1;
                <%
                    ab = null;
                %>
            } else if(data == "CampaignMail") {
               size = <%=domains.size()%>;
               ai = 0;
               <%
                s="";
                for (j=0; j < domains.size(); j++) {
                    s = domains.get(j);
                %>
                    document.forms[0].listSelect.options[ai] = new Option("<%=s%>", "<%=s%>");
                    ai = ai + 1;
                <%
                %>
    <select onmouseout="window.status=''; return true;" onmouseover="window.status='Select Mail Type'; return true;" onchange="selectionType()" style="width: 270px; font-weight: bold;" name="emailtype">
         <option value="TestMail" selected="true">Test Mail</option>
         <option value="CampaignMail">Campaign Mail</option>
    </select>Edited by: TruptiD on Jul 29, 2010 1:43 AM

  • Clear selection screen fields on using value help on another field

    Hi Experts,
    I have 3 fields -  reason1, reason2, reason3.
    Now i want to clear fields reason2 and reason 3 when i use value help for reason1.
    How do i go about it.
    Thanks & Regards
    Gaurav Kumar Raghav

    Hi,
    You use the function module 'DYNP_VALUES_UPDATE', here is a code extract showing its use..
    *&      Form  f4_laufd
    form f4_laufd .
      data: ls_laufk type ilaufk,
            lt_laufk type table of ilaufk.
      ls_laufk-laufk = space.
      ls_laufk-sign  = 'I'.
      append ls_laufk to lt_laufk.
      call function 'F4_ZAHLLAUF'
        exporting
          f1typ = 'D'
          f2nme = 'F110V-LAUFI'
        importing
          laufd = p_laufd
          laufi = p_laufi
        tables
          laufk = lt_laufk.
      perform set_selection using 'P_LAUFI' p_laufi.
    endform.                                                    " f4_laufd
    *&      Form  set_selection
    form set_selection  using    value(i_field)
                                 i_value.
      data: ls_dynpfld type dynpread,
            lt_dynpfld type table of dynpread.
      ls_dynpfld-fieldname  = i_field.
      ls_dynpfld-fieldvalue = i_value.
      append ls_dynpfld to lt_dynpfld.
      call function 'DYNP_VALUES_UPDATE'
        exporting
          dyname     = sy-repid
          dynumb     = sy-dynnr
        tables
          dynpfields = lt_dynpfld.
    endform.                    " set_selection
    Darren

Maybe you are looking for

  • Yahoo email - Updated date/time stuck

    Odd one... for starters, Yahoo push does not work at all for me... no big deal though, I just check it periodically.. Here is the odd part. Since Monday, when I check my mail, it does receive mail, however, when I look at the time at the bottom for l

  • Grant execute on DBMS_CRYPTO package (11R1)

    I figured out I needed to grant my user access to this SYS package using: SQL> grant execute on DBMS_CRYPTO to lob_demo; Grant succeeded. yet after doing this, I still get this error: SQL> select DBMS_CRYPTO.HASH(bytes, DBMS_CRYPTO.HASH_SH1) from blo

  • How to save a string of 0's and 1's as bits

    can any one help me with this i have a string 000100011110101010 i have to save each 1 and 0 as bits

  • Photoshop Touch for phone ... LG 4X HD not import images

    Hello I bought Photoshop Touch for phone ... on your LG 4X HD does not work import images from the gallery. The program crashes - black screen.

  • Is it possible to add own JSP tags to the palette?

    Is it possible to add own JSP tags to the palette? Currently we are using other JSP tag library like Coldbeans, Display Tag Lib, and JSF tags like ourFaces, etc. And we have few own JSF tags and it would be good to keep them in JSC.