Additional field validation

Hi,
for example - I have a table element and one of its coloums is of type TIME. The automatic field validation (only valid times allowed) is working fine, but now i need to check that only full and half hours are entered. So if the user enteres "11:11" in a row I want this input-cell to be displayed with a red border and a message to be displayed.
I can check and show a message, but how to highlight that special cell?
Can I assign additional value checks to a context node and how to do this?
Whats the best approach?
Thanks for any help,
Stefan.

Hi Stefan,
As how pointed out by Karri you can make use of the report_attribute_error_message to throw an error message and highlight a particular cell of the table as well. Try going through this [link|editable ALV - how to throw an error message for a specific line & field; in which Andreas was trying to validate & highlight an ALV's cell with the same report_attribute_error_message.
Regards,
Uday
CALL METHOD lo_message_manager->report_attribute_error_message
          EXPORTING
            message_text   = 'Sample message text'
            element        = lr_element " Reference of type if_wd_context_element to the cell u want to highlight
            attribute_name = ls_modified_cells-attribute. " The context attribute name to which the column of this cell is bound to

Similar Messages

  • How to create code for an additional field in an info set

    Hello,
    I have an info set in tra SQ02 and the area is HCM with version ERP2004.
    I need to create an additional field to show "Work permit" in ad hoc queries. I know that the infotype 0016 has a standard field P0016-ARBER which contains a date if that person has a work permit. System should select the latest record or the one which is valid during reporting period.
    The requirement for this new field is that it should just has X if the field P0016-ARBER contains a date (i.e. that person has a work permit). If the field  P0016-ARBER is empty, then the new field "Work permit" is also empty. So, the date itself is not enough.
    I am not an abaper. I have tried to create a code for my field but there is always problems with the code. I have tried without the line<i>into</i> but checker says I need to. I have tried different places for statement ENDSELECT but without success. How should I do this?
    What I have so far is (TYOLUPA = Work permit) is shown below:
    select SINGLE ARBER
    into TYOLUPA
    from PA0016
    where pernr = P0016-pernr
    and ENDDA = '31129999'.
    clear TYOLUPA.
    if ARBER ne ''.
    then TYOLUPA = 'X'.
    endif.
    Thanks for your advice!
    Regards,
    Pipsa

    pia,
    In extras tab  create column "workpermit" in infoset and add that column to Field groups.
    Then under record processing event...
    DATA : TYOLUPA like PA0016-ARBER.
    Under Record processing event.
    select SINGLE ARBER
    into TYOLUPA
    from PA0016
    where pernr = P0016-pernr
    and ENDDA = '31129999'.
    if  TYOLUPA  ne ' '.
      WORKPERMIT = 'X'.
    endif.
    Don't forget to reward if useful...

  • Additional Fields in F-28 Screen

    Dear Friends
    Our client needs additional fields in F-28 screen to capture some business information like the cheque is from which bank and branch, town, challan number etc.....  For this we need to go for Field exits.  Can I know
    1.  Is it possible to add fields for F-28 screen for my requirement.
    2.  If Yes, how is it going to be done with minimal effort.
    Request your help.
    Brahma

    Hi Brahmam,
    Feild exit is put on a particular feild not to create additional feilds for a screen. For eg if you want a validation for assignment feild say you are capturing cheque #  and you want it to be ony 6 digits then you can go for feild exit.
    If you are using F-26 you can capture all the above feilds mentioned by you by way of IMG configuration. Let me know if you can use F-26 instead of F-28.
    Regards
    Santosh Hegde

  • Avoiding Manadatory Field Validation

    Hello,
    I require to populate a few fields based on a value selected from a dropdown. However, I am using a custom screen with all manadatory fields, hence getting stuck with mandatory field validation.
    I tried using AT EXIT-COMMAND in PAI, but then the selected value is not passed, and hence the population of screen fields is not happening.
    Any suggestion for me?
    Regards
    Prasenjit Mitra
    Pune, India

    HI Prasenjit
    The manadatory validation has the more priority so it will not allow any other statements to process.
    Instead fo going for Obligatory addition for that parameter you can validate it manually in the PAI event like
    If <parameter> is initial.
    message e001(zer). --->show error message
    else
    <code>
    endif
    HI
    the problem is you can use AT EXIT-COMMAND but you cant pass the value at the same time. so i suggest you to use the validation using coding by which you can pass the value
    regards
    kishore
    Message was edited by: Harikishore Sreenivasulu

  • [ADF 10.1.3.4] display additional fields according to CheckBox value

    Hi all!
    I have the following requirement to address via ADF:
    When the user select one checkbox within a form some further fields should be displayed on the page, without perform any "validation" action on the previous fields.
    In ADF partial submit is available only on commandlink and commandbutton.
    How can I refresh a portion of page (panelgroup) according to checkbox value?
    What are the possible solutions that we have for this?
    Have you got some code-snippet to show me a workaround?
    Thanks in advance
    Edited by: Federico Leopizzi on 23-feb-2010 16.36

    Hi Federico,
    set autoSubmit="true" on your af:selectBooleanCheckbox and the partialTriggers on a component surrounding your additional fields.
    See " Only Rendered ADF Faces Components Can React To PPR"
    http://blogs.oracle.com/Didier/2008/04/only_rendered_adf_faces_compon.html
    Regards,
    Didier.

  • Additional fields not getting copied from change req to change doc

    Hi,
    I created some addtional customer fields which I added both in change req and change doc.But the entries given to those fields are not getting copied from change req to the change doc as like standard SAP fields are getting copied.
    Please let me know if someone worked on the similar issue.
    Regards,
    M.R

    Hi,
    We have done a similar requirement of adding additional fields in Quotation doc type  at header and item level .
    Also we have got the Reference data of the order being created to flow in to Additional Data B .
    This is purely Abaper's Coding .when you add Additional Fields there is screen logic also to be coded for these screens .
    to get the Reference order data logic has to be written in PBO of the screen which u have added additional fields .
    the reference data will be validated with "VGBEL" field in VBAK table .If VGBEL is not initial then Query the VBAK table for this data in VGBEL into Internal table or work area and update the screen fields in additional data with these fields .
    I have done the same and it is Working Wonderful .
    Try this and Let me know Further. All the Best.
    Thanks,
    DevendraP.

  • Additional field in adhoc query

    Hi all, I need to be able to report on the IT105 subtype 0001 system ID for employees who are withdrawn from the company, however, when someone leaves their IT105 record is delimited so adhoc query will not output anything.  Has anyone coded an additional field that will look at the latest record regardless of the date?
    If you have, please can you share the code with me!?
    Many thanks!

    Hi Tanya ,
    Please find the code below. It is designed for additional structure z105_last which is bassed on P0105 type.
    data l_it_p0105 type standard table of p0105.
    clear: l_it_p0105, z105_last.
    call function 'HR_READ_SUBTYPE'
      exporting
        tclas                 = 'A'
        pernr                 = peras-pernr
        infty                 = '0105'
        subty                 = '0001'   
        begda                 = '18000101'
        endda                 = pn-endda
      tables
        infty_tab             = l_it_p0105
      exceptions
        others                = 1.
    if sy-subrc = 0.
      describe table l_it_p0105.
      read table l_it_p0105 into z105_last index sy-tfill.
    endif.
    Regards,
    Sergey

  • Trying to create a Field Validation Expression and need help

    I have a picklist field and another field that are in question. I want to set some sort of rule that forces the second field to be populated only If specific values are selected from the picklist field.
    I was going the route of a field validation Rule, but everything i've tried so far does not produce the results i am trying to achieve.
    The first type of expression i tried was:
    ([<plProduction_Print_Account_Category_ITAG>] <> LookupValue("OCC_CUST_LOV_ACCOUNT_1", "No Production Print") AND ([<stSIC_Code_ITAG>] IS NULL))
    This is generating the field validation error message when i select any of the correct values from the picklist. the problem is still the second field, which will generate the error if a value is entered into the second field, regardless of the picklist value selected. Switching the "IS NULL" to "IS NOT NULL" only reverses the problem on the second field, causing the error to generate when the second field is updated to a NULL or blank value.
    I also tried :
    = 'No Production Print' AND [<stSIC_Code_ITAG>] IS NOT NULL
    and got similar results.
    ([<plProduction_Print_Account_Category_ITAG>] = LookupValue("OCC_CUST_LOV_ACCOUNT_1", "No Production Print"))
    Similar results as well.
    Does this need to be an IIF statement? Do I need to make this a workflow expression instead? i could really use some help as I have tried everything i can think of and admit, i'm not the expression guru!!!. Any assistance would be appreciated.
    TeknoMan

    Yes we have the same request and we used the following expression. Example we have a field "Método de pago" ( [<plMtodo_de_pago_ITAG<]), it's values are "CHEQUE and DEPOSITO" if we select DEPOSITO three more fields were requiered Route, Sucursal de banco and Clabe so we have to put this validation in the four fields including Metodo de pago.
    [<plMtodo_de_pago_ITAG>] <> "DEPOSITO" OR ([<Route>] IS NOT NULL AND [<nSucursal_de_banco_ITAG>] IS NOT NULL AND [<stCLABE_ITAG>] IS NOT NULL)
    well in the field CLABE we put the following [<plMtodo_de_pago_ITAG>] <> "DEPOSITO" OR ([<Route>] IS NOT NULL AND [<nSucursal_de_banco_ITAG>] IS NOT NULL AND [<stCLABE_ITAG>] IS NOT NULL AND Len([<stCLABE_ITAG>])=18) this was because the len of the value must be 18 characters.
    I hope this works for you
    Regards Catalina Valadez
    Edited by: CatalinaV on 12/03/2009 10:54 AM
    Edited by: CatalinaV on 12/03/2009 10:55 AM

  • How to add additional fields to zreport which contains standard report code

    Hi Experts,
    In order to add additional fields to standard report i copied the code into zreport but i am unable to  add additonal field into report because the code is looking so complex.
    standard report:AQZZ/SAPQUERY/FKF1============
         or
    sapmenu->accounting->financial accounting->accounts payable->information system->reports for accounts payable accounting->master data->S_ALR_87012087-Addresslist.
    Additional feilds to add is :Region,company code,country
    Please let me know how toidentify ALV and guide me how to solve this.
    Regards,
    naresh.

    Hello Naresh,
    First check whether these three fields are available in the text elements area.
    Please write your code in the subroutine %comp_ldesc.
    Repeat the code for your three new fields
    perform ldesc(rsaqexce) using 'G00010000X010       00  A1'
        %txt1 %txt2 %txt3 'LFA1-LIFNR' LFA1-LIFNR 'LFA1-LIFNR'.
      read table %textpool_langu into %textpool_langu_line
                                 with key ID = 'I' key = 'A01'.
      if sy-subrc is initial. %txt1 = %textpool_langu_line-entry.
      else. %txt1 = %txt_unknown.
      endif.
    So this subroutine will give you the basic list. Now Program is creating ALV with this basic list. So I think you don't need to worry about that. Please have a thorugh look at the code over this perform, and write accordingly.
    I think this is enoogh.
    Please update if you got the solution, which will be informative for others.
    regards,
    Antony Thomas
    Edited by: Antony Thomas on Jul 27, 2010 7:57 AM

  • How To Add Additional Fields When Creating New Contact From w/in Mac Mail?

    Hi there. When in Mac Mail and clicking on contact information provided within an email, we are able to either (1) CREATE NEW CONTACT or (2) ADD TO EXISTING CONTACT (by clicking on the arrow next to a phone number, address, etc.). If I choose "Create New Contact," how can I add additional fields BEFORE clicking on "Add to Address Book" button in lower right corner? Let's say, for example, I know this new contacts URL or company. (Currently, I am creating the new contact from within Mac Mail and then going to Address Book and finding the contact, then editing, the adding the additional fields, then saving, and then going back to Mac Mail. This all takes time.)
    Note: When creating a new iCal event from within Mac Mail, we can click on Option/Alt key when selecting drop-down arrow...and this will allow us to add additional information. The same feature isn't available for address book???

    I have the exact same question and problem. If there was a way to automatically open the AB entry after "creating new contact" this would solve it.
    Thanks for any suggestion

  • Additional field for Infoset in BI 7.0

    Hi
    I have created an Infoset with a cube and a masterdata object. Now my requirement is to have an additional field which i can not extend to cube or masterdata.
    Is it possible by any chance to add an additionla field to Infoset and write an abap code ?

    Any suggestions ?

  • How to get additional field from the second list base on lookup information column ?

    Hi everyone,
    Currently I created a SharePoint hosted Apps project and I need to know how can I get additional field from the second list base on lookup information column. example List1 Have 2 columns column1 and column2(Lookup Information from list2 (category)),
    List2 have 3 columns title, and category, and color.  so how can get the title and color from list2 base on this lookup information column (SharePoint Hosted apps and Javascript code)? that is possible?
    Best regards,
    ------------------------------------------------------------ ---Tola---

    You can build one custom lookup control. Refer to the following post
    http://www.stuartroberts.net/index.php/2012/10/03/enhanced-lookup-field-part-1/
    Alternatively, try the following solution from codeplex
    http://sp2010filteredlookup.codeplex.com/
    http://filteredlookup.codeplex.com/
    --Cheers

  • How to add additional field to the existing report

    hi,
    report name is RHXPE_EXPIRED_QUALI
    if u execute report alv list is genereted with like this.
    object type, id of related object, object name, object type, id of related object,last name, first name like this
    where can i get these field descriptios in the prigram becoz many perform ststements r there. i want to add additional field text.
    program is:
    CORRECTIONS
    DATE       CORRECTION NOTE    AUTHOR DESCRIPTION
    09.03.2001            0388404 XSC    Wrong list output for multiple Os
    05.06.2001 AL0K023393 0410219 Lud    Wrong keydate for search with
                                         Pchbegda and pchendda.
    30.01.2002 S6BK000033 0491055 TS     Report: RHXPE_EXPIRED_QUALI
                                         doesn't provide a spool list.
    REPORT rhpk_find_pers_with_expired_qu MESSAGE-ID pq.
    TABLES : pchdy.
    INCLUDES
    INCLUDE rhxmacro.
    INCLUDE rhpeini0.
    TABLES
    DATA: objects  LIKE hrsobid    OCCURS 1 WITH HEADER LINE.
    VARIABLES
    DATA: subrc LIKE sy-subrc.
    DATA: orgeh_text LIKE t777o-otext.
    SELECTION SCREEN
    objid
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS:
       pchplvar LIKE p1000-plvar NO-DISPLAY,    "plan version
       pchotype LIKE pchdy-otype NO-DISPLAY. "objecttype
    Objid
    rhx-f4-objid-data.
    SELECT-OPTIONS:  pchobjid FOR pchdy-objid_str NO INTERVALS.
    Search
    PARAMETERS:
      pchseark LIKE pchdy-seark.           "matchcode object plom.
    SELECTION-SCREEN END OF BLOCK b1.
    Objecttime
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
    PARAMETERS: se_begd LIKE  p1000-begda DEFAULT sy-datum,  "'19000101',
                se_endd LIKE  p1000-endda DEFAULT high_date.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-005.
    PARAMETERS:
       h_events LIKE dynp_rhpp-gen_train,  "with training sugg
       h_qual LIKE dynp_rhpp-expired_qual. "with Qual
    SELECTION-SCREEN END OF BLOCK b3.
    AT SELECTION-SCREEN ON pchobjid.
      PERFORM check_objid_sign(rhxchk00) USING pchobjid-sign.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR pchobjid-low.
      rhx-f4-objid-low pchplvar pchotype pchobjid '' ''.
    AT SELECTION-SCREEN.
      PERFORM check_plvar(rhxchk00) USING pchplvar.
      PERFORM check_seark(rhxchk00) TABLES pchobjid
                                    USING  pchseark pchplvar pchotype.
    INITIALIZATION
    INITIALIZATION.
      PERFORM read_t77s0_parameters_for_pe.
    get user parameters/Planvariante und Beginndatum setzen:
      pchotype = $orgeh.
      CALL FUNCTION 'RHP0_USER_PARAMETERS_GET'
           EXPORTING
                fill_if_initial = 'X'
           IMPORTING
                plvar           = pchplvar
                begda           = se_begd
                endda           = se_endd
              with_key        =
              SUBSTITUTE      =
              ESSENTIAL       = only_essential
                org_unit        = pchobjid-low
          EXCEPTIONS
                OTHERS     = 0.
    SE_BEGD = LOW_DATE.   "Correction AL0K023393 0410219
      IF NOT pchobjid-low IS INITIAL.
        pchobjid-sign   = 'I'.
        pchobjid-option = 'EQ'.
        APPEND pchobjid.
      ENDIF.
    START-OF-SELECTION
    START-OF-SELECTION.
    correction 0491055
    correction was done for getting a spool list in background-processing.
      CASE sy-batch.
        WHEN space.
          SUBMIT rhpe_expired_quali
               WITH pchplvar = pchplvar
               WITH pchotype = pchotype
               WITH pchobjid IN pchobjid
               WITH pchbegda = se_begd
               WITH pchendda = se_endd
               WITH h_qual = h_qual
               WITH h_events = h_events
                      AND RETURN.
        WHEN 'X'.
          SUBMIT rhpe_expired_quali
               WITH pchplvar = pchplvar
               WITH pchotype = pchotype
               WITH pchobjid IN pchobjid
               WITH pchbegda = se_begd
               WITH pchendda = se_endd
               WITH h_qual = h_qual
               WITH h_events = h_events
                      TO SAP-SPOOL.
      ENDCASE.
    END-OF-SELECTION
    END-OF-SELECTION.

    Hi,
    I think you need to show more programs.
    you said, the report program is 'RHXPE_EXPIRED_QUALI', but you upload  'rhpk_find_pers_with_expired_qu' program.
    usually, ALV field is modifyed in 'PERFORM fieldcatalog_modify', if you use Functional ALV.
    Try to search 'fieldcatalog function', you will find easy.
    Regard,
    SY Kim

  • Adding Additional field "Supplier name" & "Supplier No" in MB5B Report?

    Can i add the above stated two additional fields in the standard report of MB5b, is there any implicit enhancement in the standard report which can help achieve my objective?

    Hi,
    The possibility to include additional fields in the report MB5B is       
    limited to MSEG, just as you can see in the text of the                  
    report RM07MLBD_CUST_FIELDS itself:                                                                               
    This include contains the structure for additional fields for report 
    RM07MLBD ( transaction MB5B )                                                                               
    the following fields are not shown in the list of report             
    RM07MLBD                                                             
    If you want to insert some of these fields in the list of the        
    hidden fields delete the '*' in the type definition.                 
    >>* There are only fields from database table MSEG possible <<<<<<<<<<<  
    Please use only the following fields, because these fields           
    are considered during the creation of the field catalog;             
    plaese consider, that each active field will cost performance                                                                               
    If you need to add aditional information from other tables, like the     
    Reference Document Number you will need to  build your own query.    
    Regards,
    Mauro

  • How can I do field validation on the last two characters of a text field?

    I have a text field. The user is required to enter the last two characters as numbers. I want to apply validation on this field. How can i achieve the same?
    EX: If the user enter ABCDE, an error messgae stating the last two digit should be numeric.
    I tried using the below in the field validation which did not work.
    (0+Right([<ExternalSystemId>],2)) > 0 AND (0+Right([<ExternalSystemId>],2)) < 99.
    Any ideas would help?

    Try this-
    FindOneOf(Right([<Field1>],"2"),"abcdefghijklmnopqrstuvwxyz")=0
    rgds,
    Amit

Maybe you are looking for