Data in one field requires data in another field

I am trying to build a form that forces data entry (text)
into a field if a previous ( or other ) field has data in it.
Example: If there is data in the "Full Name" block, you have
to put data in the "Crew Name" block.
If the "Crew Name" block contains data, all is fine,
otherwise an error message is created.
Also, how do I validate this ( is it even required ? )
Thanks ! ~The Noob~

Droto wrote:
> I am trying to build a form that forces data entry
(text) into a field if a
> previous ( or other ) field has data in it.
> Example: If there is data in the "Full Name" block, you
have to put data in
> the "Crew Name" block.
> If the "Crew Name" block contains data, all is fine,
otherwise an error
> message is created.
> Also, how do I validate this ( is it even required ? )
> Thanks ! ~The Noob~
>
Are you saying that "Full Name" is not required? But if there
is data in
the "Full Name" field, then "Crew Name" is required?
Mick

Similar Messages

  • F4 Help on one field should populate data on another field

    Dear All....
    I am using the FM - F4IF_INT_TABLE_VALUE_REQUEST for F4 help on one field of the selection screen. Based on the selected value, a values corresponding to it should appear on another field.
    My Code -
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_svn.
      SELECT qmnum serialnr
        INTO TABLE t_qmel
        FROM qmel
        WHERE qmart  = 'ZD'.
      SORT t_qmel BY qmnum.
    Display the f4 Help Values for SVN
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield     = 'QMNUM'
          dynpprog     = sy-repid
          dynpnr       = sy-dynnr
          dynprofield  = 'P_SVN'
          window_title = text-015
          value_org    = 'S'
        TABLES
          value_tab    = t_qmel
          return_tab   = t_retval.
      READ TABLE t_retval INTO w_retval_wa INDEX 1.
      IF sy-subrc = 0.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = w_retval_wa-fieldval
          IMPORTING
            output = w_qmel_wa-qmnum.
        w_retval_wa-fieldval = w_qmel_wa-qmnum.
        READ TABLE t_qmel INTO w_qmel_wa WITH KEY qmnum = w_retval_wa-fieldval
                                         BINARY SEARCH.
        IF sy-subrc = 0.
          p_esn = w_qmel_wa-serialnr.
        ENDIF.
      ENDIF.
    But this is however not working.
    Please let me know where I am going wrong.
    I have serached SDN thoroghly but could not get my solution.
    Please guide me....
    Regards,
    Pankaj Agarwal.

    *&  AT SELECTION SCREEN ON VALUE-REQUEST FOR FIELD
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_ebeln.
      PERFORM f4_hlp_ebeln.
    *&      Form  F4_HLP_EBELN
          text
    -->  p1        text
    <--  p2        text
    FORM f4_hlp_ebeln .
      TYPES: BEGIN OF ty_ebeln,
               ebeln TYPE ebeln ,
            END OF ty_ebeln.
      DATA: lt_ebeln TYPE TABLE OF ty_ebeln.
      CLEAR: lt_ebeln[].
      SELECT ebeln
           FROM zmt_po_mic_ded
             INTO TABLE lt_ebeln.
      IF sy-subrc = 0.
        SORT lt_ebeln[] BY ebeln.
        DELETE ADJACENT DUPLICATES FROM lt_ebeln COMPARING ALL FIELDS.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield         = 'EBELN'
            dynpprog         = sy-repid
            dynpnr           = sy-dynnr
            dynprofield      = 'P_EBELN'
            value_org        = 'S'
            callback_program = sy-repid
          TABLES
            value_tab        = lt_ebeln[]
          EXCEPTIONS
            parameter_error  = 1
            no_values_found  = 2
            OTHERS           = 3.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDIF.
    ENDFORM.                    " F4_HLP_EBELN
    DATA: t_dynfields TYPE TABLE OF dynpread,
          t_valhlp    TYPE TABLE OF ty_valhlp.
    DATA: w_dynfields TYPE dynpread.
    CLEAR: t_dynfields[], t_valhlp[].
      DATA: l_ebeln TYPE ebeln.
      w_dynfields-fieldname = 'P_EBELN'.
      w_dynfields-fieldvalue = p_ebeln.
      APPEND w_dynfields TO t_dynfields.
      CLEAR w_dynfields.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname               = sy-repid
          dynumb               = sy-dynnr
          translate_to_upper   = c_x
        TABLES
          dynpfields           = t_dynfields
        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 <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      READ TABLE t_dynfields INTO w_dynfields INDEX 1.
      IF sy-subrc = 0.
        l_ebeln = w_dynfields-fieldvalue.
        SELECT ebeln
               ebelp
               FROM ekpo
               INTO TABLE t_valhlp
               WHERE ebeln = l_ebeln.
        IF sy-subrc = 0.
          SORT t_valhlp[] BY ebeln ebelp.
    here we get the value of ebelp depending on the selection of EBELN ***
        endif.
      ENDIF.

  • Download to Excel with Header but one field data is repeating

    Hi All,
    I'm downloading to Excel with Header. But One field is repeating and another is not. This is happening only when I use   'CONCATENATE ' . With Out this key usage data download to excel is correct. But   CONCATENATE is required as constant need to add before the one field.
    My coding is as below.
    DATA: BEGIN OF IT_FINAL OCCURS 0,
          P1(10) TYPE C,
          SI(19) type c, 
            END OF IT_FINAL.
    DATA : BEGIN OF IT_HEADER OCCURS 0,
    TITLE(100) TYPE C,
    END OF IT_HEADER,WA_HEADER LIKE IT_HEADER.
    loop at it_final.
      CONCATENATE '894412' it_final-SI INTO IT_FINAL.
    modify it_final.
    endloop.
    CLEAR:WA_HEADER.
      WA_HEADER-TITLE = 'Mat No'.
      APPEND WA_HEADER TO IT_HEADER.
      CLEAR:WA_HEADER.
      WA_HEADER-TITLE = 'Serial'.
      APPEND WA_HEADER TO IT_HEADER.
    CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
        EXPORTING
          FILE_NAME  = P_FILE " path offile where u need to download
        TABLES
          DATA_TAB   = IT_FINAL
          FIELDNAMES = IT_HEADER.
    CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
        EXPORTING
          FILE_NAME  = P_FILE " path offile where u need to download
        TABLES
          DATA_TAB   = IT_FINAL
          FIELDNAMES = IT_HEADER.
    Excel OUT PUT:
    Mat No            Serial
    11Z52321     8944126000
    11Z52394     8944126000
    11Z52395     8944126000
    Thank You,
    Pranitha

    hi,
    it would have been better if u hve opt for creating workarea for ur internal table.
    Try to use "clear it_final" after
    CONCATENATE '894412' it_final-SI INTO IT_FINAL.
    n also change the modify statement :
    modify it_final transporting SI .
    hope this will surely help you
    Regards,
    Punit
    Edited by: punit raval on Aug 26, 2011 2:55 PM

  • How to get the data from one table and insert into another table

    Hi,
    We have requirement to build OA page with the data needs to be populated from one table and on save data into another table.
    For the above requirement what the best way to implement in OAF.
    I understand that if we attach VO object instance to region/page, we only can pull and put data in to only one table.
    Thanks

    You can achieve this in many different ways, one is
    1. Create another VO based on the EO which is based on the dest table.
    2. At save, copy the contents of the source VO into the dest VO (see copy routine in dev guide).
    3. commiting the transaction will push the data into the dest table on which the dest VO is based.
    I understand that if we attach VO object instance to region/page, we only can pull and put data in to only one table.
    if by table you mean a DB table, then no, you can have a VO based on multiple EOs which will do DMLs accordingly.Thanks
    Tapash

  • How do I move data on time machine from one external hard drive to another

    How do I move data on time machine from one external hard drive to another?

    Although the documentation says you can copy Time Machine backups in the Finder, it's very slow and sometimes doesn't work at all.
    Launch Disk Utility, open the built-in help, and search for the term "Duplicate." Follow the instructions. Turn Time Machine OFF in its preference pane while copying the volume.

  • Is there a way to move multiple Calendar items from one date to another?

    Hello. I have far too many Calendar items every day in my iCal. Until I finally pare them down to a reasonable level, I need to "reschedule" all of my unfinished ToDo items and reminders, to another day, later in the week.
    There doesn't seem to be any "Select All" feature available.
    Is there a way to move multiple Calendar items from one date to another?
    Thanks in advance!

    Still no ideas? Apple, please come up with a fix. Thanks.

  • How to read LONG RAW data from one  table and insert into another table

    Hello EVERYBODY
    I have a table called sound with the following attributes. in the music attribute i have stored some messages in the different language like hindi, english etc. i want to concatinate all hindi messages and store in the another table with only one attribute of type LONG RAW.and this attribute is attached with the sound item.
    when i click the play button of sound item the all the messages recorded in hindi will play one by one automatically. for that i'm doing the following.
    i have written the following when button pressed trigger which will concatinate all the messages of any selected language from the sound table, and store in another table called temp.
    and then sound will be played from the temp table.
    declare
         tmp sound.music%type;
         temp1 sound.music%type;
         item_id ITEM;
    cursor c1
    is select music
    from sound
    where lang=:LIST10;
    begin
         open c1;
         loop
              fetch c1 into tmp; //THIS LINE GENERATES THE ERROR
              temp1:=temp1||tmp;
              exit when c1%notfound;
         end loop;
    CLOSE C1;
    insert into temp values(temp1);
    item_id:=Find_Item('Music');
    go_item('music');
    play_sound(item_id);
    end;
    but when i'm clicking the button it generates the following error.
    WHEN-BUTTON-PRESSED TRIGGER RAISED UNHANDLED EXCEPTION ORA-06502.
    ORA-06502: PL/SQL: numeric or value error
    SQL> desc sound;
    Name Null? Type
    SL_NO NUMBER(2)
    MUSIC LONG RAW
    LANG CHAR(10)
    IF MY PROCESS TO SOLVE THE ABOVE PROBLEM IS OK THEN PLESE TELL ME THE SOLUTION FOR THE ERROR. OTHER WISE PLEASE SUGGEST ME,IF ANY OTHER WAY IS THERE TO SOLVE THE ABOVE PROBLEM.
    THANKS IN ADVANCE.
    D. Prasad

    You can achieve this in many different ways, one is
    1. Create another VO based on the EO which is based on the dest table.
    2. At save, copy the contents of the source VO into the dest VO (see copy routine in dev guide).
    3. commiting the transaction will push the data into the dest table on which the dest VO is based.
    I understand that if we attach VO object instance to region/page, we only can pull and put data in to only one table.
    if by table you mean a DB table, then no, you can have a VO based on multiple EOs which will do DMLs accordingly.Thanks
    Tapash

  • More than one field in generic data source

    Hi All,
    We wanted extract Allocation data for the sales order from R/3 to BW. I am not able to find proper data source for it... there are two datasources..we wanted afs specific datasource
    2LIS_11_V_ITM  :  Sales-Shipping Allocation Item Data
    2LIS_11_V_SCL :  Sales-Shipping Allocation Schedule Line
    But its not reflecting allocated quantity at all...
    So we decided to create generic data source.. but there is one problem for some allocation ARUN is initial.. so i cann't use ARUN as delta field... can i use comination of  Sales order no,Item and Schedule line number as delta field....
    Because in RSO2 i can define only one field as delta specific field....
    How to proceed ???
    Regards,
    Viren.

    Hi,
    If you decided to use generic data source, make sure that, U'll have to take only
    one filed as a delta, I suggest, you take any date field rather than the value fields
    it may be created date/change date and so on so forth..
    Regards,
    Pattan.

  • How do I create a one-field-at-a-time GUI to enter data using Numbers?

    'Doing inventory.  Recording numbers and text in 9 different fields for about 10,000 items.
    I want to have the iPad only display one large data entry screen for one field at a time rather than use a spreadsheet tabbing over to each data entry field.
    Kind'a like a survey.

    Generally, you are more likely to get an answer if you post in the iWork for iOS forum at
    https://discussions.apple.com/community/app_store/iwork_for_ios
     Cheers, Tom 

  • Want to break down a date into 4 lines in one field

    Hi all,
    In report 10g , when a date value mask is like 'DY. MON. DD,YYYY' in a field,
    it will be display whole date 'Mon. Apr.14,2008' in one line
    but in the report i want it shows like below in one field (break in every word, four lines) because the filed honrizontal width is limited
    Mon.
    Apr.
    14,
    2008
    how can i reach this in format trigger, i already use srw.set_value(0, to_char(sysdate))
    but doesn't work.
    Thanks for your help!
    appcat

    Try this
    select to_char(hiredate, 'Dy.') || chr(10) || to_char(hiredate, 'Mon.') || chr(10) || to_char(hiredate, 'dd,') || chr(10) || to_char(hiredate, 'yyyy') cdate
    from emp
    It was just an example. Use chr(10) for carriage return, whereever it is needed.

  • SQ01 query, one field not populating in first line, pushing data to next line

    Good day all
    I have worked with queries for some time and have never encountered this error
    I have a few table joins (FAGLFLEXA, BKPF, BSEG, EKKN, SKAT and EKPO), every thing works and displays correctly, except for the one field
    EKKN (ABLAD) - Unload Point.
    For some reason, when I test the query, it displays correctly with one entry, but as soon as you run the test for more entries, for some reason, the first Unloading point on the report is empty and the value reflects on the next line.  If you display the physical documents where the data pulls from, you can clearly see that the entire report pushes down the field to the next line.
    For example
    Physical SAP Document GL and or PO:
    Year     Per     Do     Document No     Profit     Account     Short Text     Merch     Amount in Grp     Segm     Posted on     Unload Point
    2014     001     XF     40000000000     ABCD     86100       Text              ACD       72799.60             11          20140106      24/59/68
    2014     001     XD     40000000001     ABCC     86100       Text              ACC       18755.50             11          20140108      26/00/48
    SQ01 report (with one line)
    Year     Per     Do     Document No     Profit     Account     Short Text     Merch     Amount in Grp     Segm     Posted on     Unload Point
    2014     001     XF     40000000000     ABCD     86100       Text              ACD       72799.60             11          20140106      24/59/68
    SQ01 report (with more lines)
    Year     Per     Do     Document No     Profit     Account     Short Text     Merch     Amount in Grp     Segm     Posted on     Unload Point
    2014     001     XF     40000000000     ABCD     86100       Text              ACD       72799.60             11          20140106      2014     001     XD     40000000001     ABCC     86100       Text              ACC       18755.50             11          20140108      24/59/68

    I found the error!  The query was written in a certain format.  For example it had many fields which was used to populate the data from different tables.  The error occured because of the sequence.  The query had to bring in a field but it had to derive it from a purchase order, but the purchase order check was after the said field therefor, when it looked at the Purchase Order, it found the field and populated it, but only on the second line.  In the first line it couldnt find the Purchase order yet (as EKKO was lower down), so it didnt populate it yet....
    SIGH

  • Sorting issue on - around 20 records based on one field Data Manager

    Hello Experts,
    We are facing issue sorting some records which belong to one contract.
    if we sort by one field ie item no, it is not sorting based on this field. This issue only one set of contract only.
    For other set of data, sorting is working fine.
    Any hint will be appreciated.
    Thanks in advance

    HI saptest,
    I have not heard of such a issue,please provide detailed description of the same to give a better idea.
    Thanks,
    Ravi

  • Passing data from one UIX XML page to another UIX XML page

    What are the various ways of passing data from one UIX XML page to another UIX XML page?
    (a) If no bc4j is used.
    (b) If bc4j is used.
    (c) If my event handler calls:-
    public static EventResult handleMyEventEvent( BajaContext context, Page page, PageEvent event) throws Throwable
    then how can I pass data to the next UIX XML page?
    Thanks,
    Paul.

    What are the various ways of passing data from one UIX XML page to another UIX XML page?
    (a) If no bc4j is used.For forwarded URLs; HttpServletRequest attributes [request], HttpSession attributes [session], ServletContext attributes [application].
    For redirected URLs; HttpServletRequest parameters url, HttpSession attributes [session], ServletContext attributes [application].
    (b) If bc4j is used.For forwarded URLs; BC4J Session properties.
    For redirected URLs; BC4J Session properties IF release mode is NOT stateless.
    (c) If my event handler calls:-
    public static EventResult handleMyEventEvent( BajaContext context, Page page, PageEvent event) throws Throwable
    then how can I pass data to the next UIX XML page?Return a UIEventResult (extends EventResult) from your event handler that has a data provider attached.
    This data provider will be accessible in the next page with the name "ctrl:eventResult", where "ctrl" is the short prefix for the namespace "http://xmlns.oracle.com/uix/controller".
    Regards,
    John Fallows
    Oracle Corporation.

  • Numeric format based on data in another field

    I am trying to set up a form where the numeric format of one field is based on units of measure in another field. The fields are: units1 and iq1. What I want to do is have the iq1 field format for percent with two decimal places when units1 is  LS or ls or L.S. or l.s. otherwise the field should be formatted for a number with the format nnn,nnn,nnn.nn. Any help for this newbie is appreciated.

    I think this is what you are looking for:
    Make sure that you select "Commit selected value immediately" in the options tab of the drop down menu.
    //Place this script in the custom validation script of the drop down menu
    //Create a text field caleld Text2
    var MySelection = event.value;
    switch (MySelection) {
    case "Accountability":
        this.getField("Text2").value = "Accepts personal responsibility for the quality and timeliness of work. Can be relied upon to achieve results with little need for supervision. ";   
    break;
      case "Compliance":
        this.getField("Text2").value = "Complies with policies, procedures, workflows and instructions.";
        break;
    I hope this helps.

  • Is it possible to set validation on a form field with data from another field in Adobe Acrobat?

    Thanks in advance for any help and advice. I am trying to set a validation for one field that would make sure that the amount entered is 25% of a different field. I tried setting up a validation, but have been unsuccessful. Can anyone offer any insight or solution? Thanks!

    You'll need to use a script to do it. Something like this should do:
    if (event.value) {
         event.rc = true;
         var v1 = +this.getField("NameOfOtherField").value;
         if (+event.value!=(v1*0.25)) {
              app.alert("The value you entered must be 25% of the value of NameOfOtherField.");
              event.rc = false;
    (This will check if the entered value is exactly 25% of the other value... If you meant something else, please clarify)

  • Move WIKI data from one Mountain Lion Server to another

    Hi.
    I followed the instruction here:
    http://support.apple.com/kb/HT5585
    Under Copying all wikis from one OS X server to another OS X server, I am not even able to execute:
    sudo pg_dump --format=c --compress=9 --blobs --username=collab --file=/tmp/collab.pgdump collab
    It gives this error:
    pg_dump: [archiver (db)] connection to database "collab" failed: FATAL:  role "collab" does not exist
    Any idea?
    I just tested it on the productive server as well as a brand new install. Same outcome.
    which then I moved the: /Library/Server/Wiki/FileData over but even stop/start, restart, wiki server is running but not able to load content, it's like it's been wiped clean.
    matthew

    try it and RATE correct answers
    Hello Matthew
    You're looking in the wrong spot
    First things first - make yourself default sudo with sudo -s then you can forget prefixing it all the time.
    If you just use pg_dump then it'll take the command from the /var-Directory - that's the wrong version
    You have to specify the path for the Socket where the PSQL-Database for the wiki really is located by using the -h-option - it's not the default
    that's why you get the error that role collab does not exist since you're connecting to a database in place where the role collab truy isn't part of it.
    So - if you'd like to export the wiki-DB us the following and adapt the filename to what you like it to be.
    bash-3.2# /Applications/Server.app/Contents/ServerRoot/usr/bin/pg_dump -h "/Library/Server/PostgreSQL For Server Services/Socket/" -p 5432 -f /Volumes/USBSTICK/wikidatabase.pgdump -U collab collab
    The first block specifies the "not default" pg_dump you'd like to use
    The second block (-h "/Library/.....) tells pg_dump where to find the DB
    The third block tells pg_dump to use port 5432
    The fourth block (-f /Volumes/......) tells pg_dump to place its output into this file
    The fifth block (-U collab) tells pg_dump to do this is role collab
    The sixth block tells pg_dump from with DB to dump from
    In your case extend my provided command with your options --format=c --compress=9 --blobs like this:
    bash-3.2# /Applications/Server.app/Contents/ServerRoot/usr/bin/pg_dump -h "/Library/Server/PostgreSQL For Server Services/Socket/" -p 5432 -F c --compress=9 -b -f /Volumes/USBSTICK/wikidatabase.pgdump -U collab collab
    BTW- you can connect to the database, of course:
    bash-3.2# psql -h "/Library/Server/PostgreSQL For Server Services/Socket/" -p 5432 collab collab
    try it and RATE correct answers
    Here is my thread https://discussions.apple.com/thread/5751873

Maybe you are looking for

  • Locked file on desk top

    Hi, I had a locked file in the trash and thought i'd drag it out to the desk top and delete the other stuff in there. Well it duplicated itself and I cant get rid of it (BBEdit html file) command i and unlock the little lock doesn't help. Used option

  • Macbook Pro 13" mid 2009 Kernel Panic

    Hello and Good day this is my first Post in the forums and i have this problem with the kernel panic screen i just got 1 kernel panic in all the time i have the macbook and recently when i use the personal Hotspot from my iphone 3GS (16GB iOS 4.3.1)

  • Can't get Gestures to work in safari under os7?

    Since downloading ios 7 I can't get gestures like back a page or the album view to work. Is there a certain setting I should use in Settings?

  • Powershell script to find Office version on multiple PC's not working- Please Help?

    Hello! I am about to go mad with this script. Can you help? I am trying to search the PC's on my domain for what office version they are running. (I am looking for any PC's that still have Office 2003 installed). Here is my script: foreach ($computer

  • Convert rdf to rex in batch

    Hello I have to convert many reports to .rex format for analysing. My Problem is (as described as solution in file format problem that a batch with the line FOR %%F in (*.rdf) DO rwcon60 userid=xy/yx@zz STYPE=RDFFILE BATCH=YES DTYPE=REXFILE SOURCE=%%