SE11 Table Field Validation

Hi Frnds,
    I have validated the table field through an  event ' 05 ' -value created from se54. If validation fails Error message will display.
The thing is only key fields are in input enabled and the rest gets input disabled while error occurs. How can i overcome this problem by making all the fields in input enabled mode with error mesage to be displayed to make the entries does not saves in to the database.
Thanks in Advance

Hi,
Try making th efields input enable
by clicking on the over view screen
go into screen painter
then click on field list
under the input/output fields make them input required.
Also check the proper event underwhich you are validating.
Regards,
Raj.

Similar Messages

  • Hi gurus how to provide the table field validations

    hi gurus how to provide the table field validations , plz help me

    Hi,
          Say you need to provide valdiation for WERKS(Plant) field.
    Goto SE11. Find the domain of the field. (Say WERKS in our case.) now goto the domain, click on value range. Now at the bottom you will find the value table. Note this table (T001W).
    In your report, at selection screen, you need to validate the field against this table. like this
    At selection-screen,
    select single werks from T001W where werks = p_werks.
    if sy-subrc NE 0
    message e000 with 'Plant not found'.
    endif.
    Reward points if useful.

  • Regarding Internal Table Field Validation [Modification]

    Hi All,
    I have a small issue with formatting of a field.
    The Field is POTX1 - it would get the value as 'New MT-EPPE0097-COMP02',
    Means i have one internal table field as i_error-POTX1 in that some times we get value as 'New MT-EPPE0097-COMP02'.
    Whenever i get 'New' literal in that internal table field i have to remove that literal from that internal table field. And Left Justify the remaining part of the field.
    Ex:  'New MT-EPPE0097-COMP02'
         should become 'MT-EPPE0097-COMP02'.
    For this first i have to find wether 'New' Literal exists in the Internal table field or not then i have to remove it.
    Can anybody tell me how can i solve this issue.
    Thanks in advance.
    Thanks & Regards,
    Rayeezuddin.

    Hi,
    Take a look :
    loop at i_error.
      if i_error-potx1(3) = 'New'
        w_potx1 = i_error-potx1.
        i_error-potx1 = w_potx1+3(37).
        MODIFY i_error.
      endif.
    ENDLOOP.
    Regards,
    Erwan.
    Message was edited by: Erwan LE BRUN

  • Table field validation in table maintenance

    Hi all,
    I have the following requirement.
    I created a Z table with 3 fields Zfield1, Zfield2, Zfield3 and key as Zfield1 and Zfield3.
    If Zfield1 is filled, then I need to make the rest of the fields as mandatory.
    How to do this?  Can we use the table maintenance event 05-Creating a new entry for this?
    A sample code would be appreciated.
    Thanks Alka

    hi alka,
    go to the table in SE11 -> click on tab utilities -> table maintenance generator -> click on environment -> modification -> events .
    mention here the event 01 - before saving the data in database.
    write there the code
    FORM
    put a check on ur field
    error  MESSAGE
      LEAVE TO SCREEN screen number.
    ENDFORM.

  • Table fields Validation in online adobe form WDABAP

    Hi,
    I have a table in Online Adobe form, and one of the field in the table is Check Box, if the check box is selected the next field(with in the same table) should be left blank else it should issue some error like leave blank.
    Can some one tell me how to to do this using javascript?
    Ravi

    Ravi,
    For eg:- Lets assume you have a table name Table1 with 2 rows (Row1 and Row2) & 3 columns.
    Row 1 has three cells --> Cell1 (which contains check box), Cell2(InputField which needs to be kep blank), Cell3( Assume its a numeric field)
    Similarly Row 2 has three cells --> Cell1 (which contains check box), Cell2(InputField which needs to be kep blank), Cell3( Assume its a numeric field)
    So the hierarchy will be
    Table1
    |--- Row1
        |-----CheckBox1
        |-----Cell2
        |-----Cell3
    |--- Row2
        |-----CheckBox2
        |-----Cell2
        |-----Cell3
    Now write following code in JavaScript in the change event of CheckBox1.
    var currVal = Table1.Row1.CheckBox1.rawValue;
    //xfa.host.messageBox("Current Val is : "+currVal);
    if(currVal == 1) // Means checkbox is selected
         xfa.host.messageBox("Please Leave Next Field blank");
           Table1.Row1.Cell2.access = "readOnly";
    else
         Table1.Row1.Cell2.access = "open";
    Similarly, you need to write code for CheckBox2 of Row2.
    Chintan

  • Name of the table where can get the two fields Valid-From and Valid-to for

    Hi gurus
    I want name of the table where I can get the two fields Valid-From and Valid-To and their relation ship with the header table in BOM
    Regards
    Kaisar

    You can only get the Valid from date from the table STKO.
    To get the valid to date, you have to take one day less than the valid-from date of the next record for the same BOM.
    Alternatively use the Function module:
    CSAP_MAT_BOM_READ
    It will give both valid from and valid to dates in the tables parameter: T_STKO
    Regards,
    Ravi
    Edited by: Ravi Kanth Talagana on Jul 2, 2008 4:37 PM

  • Field validation in table maintenance generator and input value grey out.

    i have created ztable with 3 fields as em_no,em_no and addrnumber.
    first two fields are custom fields but the third custom field need to validate the standard table adrc contains the value of the field addrnumber.
    i need the query of field validation query which we write in create entry events in table maintenance generator and also if we give wrong value for addrnumber in sm30 maintain table, the input field need not to be grey out for next entry...
    please help.

    Hi,
    create method -
    >before saving data.....write the logic between the method
    go to utilities->table maintanance ,,,after creating generator ---go to envirnment->modification->events.
    create event -.>.as zsave select event  type 1(before saving data to table) write code in include....
    consider data for field3 is 10 .
    lv_new = ztbr(table name)-field3.
    select field3  from ADRC(ZTABLE) into wa_new (TYPE ZTABLE) where field3 = lv_new.
    if sy-subrc = 0.
         working fine
         else.
        message  i888(sabapdocu) with 'data invalid'.
    endform.
    This will help u...
    Thank u.........

  • Range based Flex field validation based on a Lookup table

    Hi all,
    I am trying to create a validation in one of the flex field under HRMS Application. Table: PAY_ELEMENT_ENTRIES_F
    Validation is pretty simple - but i am struggling to implement.
    Assume there exists two flex fields;
    Field1 contains State Information
    Field2 contains Percentage Information
    The above two values would be entered by the user.
    the validation should be like this.
    Field1 - State code entered by User
    Field2 - We have a seperate Lookup where we have setup lots of State specific information. Assume ATTRIBUTE3 and ATTRIBUTE4 defines the Min and Max range which would be configured during the Setup. User should be entering any percentage value between the ATTRIBUTE3 and ATTRIBUTE4.
    I have created a Table Validaiton with select 1 from dual with the following where clause.
    exists ( select null from fnd_common_lookups l, fnd_sessions sess
    where
    l.lookup_type like 'CUSTOM_US_STATE_RULES'
    and sess.session_id= userenv('sessionid')
    and sess.effective_date between l.start_date_active
    and NVL(l.end_date_active, sess.effective_date)
    *and l.attribute1 ='01' -- consider 01 state alone for the time being*
    and :$FLEX$.ENTRY_INFORMATION4 between to_number(l.attribute4) and to_number(l.attribute5)
    When i compile the flexfileld, it errors out stating invalid reference to ENTRY_INFORMATION4.
    ENTRY_INFORMATION4 is the field where i am going to attach this validation
    How do i validate a value of the flexfield against the range of values available in another table(in this case a lookup table) ?
    Any ideas on how to implement this.
    Edited by: vaibhav468 on Sep 29, 2008 3:05 PM

    Thanks so much for the reply. apparently the solution which you have suggested may not work 100% as the data entry also happens via API. Its mentioned in the doc that the special validations happen only via Forms.
    But I implemented it in a crude way. But it works though !!!!
    Based on the value which i enter in the first Field1, the value set which i am using it in second Field2(its a table based value set)
    I generated all possible percentages and displaying it.
    My table is: (select trim(to_char(rownum/100,'990D99')) pct from fnd_columns a where rownum<=10000) a, fnd_common_lookups l
    My Where clause:
    where l.lookup_type='CUSTOM_US_STATE_RULES'
    and l.attribute1=substr(:ENTRY.USER_ENTRY4,1,2)
    and a.pct between l.attribute4 and l.attribute5
    I generated the set of sequence numbers with the help of rownum from a table which definitely contains more than 10000 rows.
    I was so glad that FND allowed me to use a INLINE view in the Validation Table not restricting the tables available for that application alone.
    thanks again.

  • Creating a new Search Help on a standard SAP table field?

    Good day, everyone!
    As part of a report I am writing, the customer would like to have Search Help added to the AUFEX field in table AUFK.  They would like this functionality so that when they are changing an order via t-code ko02, they can get a list of valid values to put in field AUFEX.  I would like to tie it to a zTable I've created; in my zTable, I have just 2 fields:  a key value (that will go into AUFEX) and a text description of the key value.  This zTable is used in my report.
    While I've created a Search Help on this table already for table maintenance, I've never added a custom Search Help to an existing standard SAP table field before.  I've done some Googling and other searching to see what I need to know, but I've only been able to find information on Collective Search Helps.  AUFEX doesn't yet have a Search Help field, so I don't think Collective Search Helps is my answer.
    Is this possible?  Can I add a custom Search Help to a standard SAP table field that doesn't have any Search Help linked to it yet?  Is there an existing thread or guide somewhere that can tell me how to do this?
    Thank you!

    Hi
    Yes u can: u can assign the search help to (A) data element livel or (B) field table livel.
    After creating your search help:
    A) Run SE11, insert your data element (AUFEX), press edit and insert the search help in "Search Help" area on DEFINATION tab;
    B) Run SE11, insert your table (AUFK), press edit, place the cursor on your field (AUFEX) and go to GoTo->Search help->for field
    But u should consider it'll mean to change a standard object for both cases: so u need to get the access key from your OSS.
    Max

  • How to design a smartform with below tables and table-fields??

    How to design a smartform  and driver program using this tables and table fields
    FIELD DESCRIPTION     TABLE-FIELD                                   
    Tax Invoice No:     vbrk-vbeln                    
    Code     vbpa-kunnr where parvw = RG                                   
    Ship To     vbpa-kunnr where parvw = WE                                   
    PAN No     J_1IMOCUST-J_1IPANNO for WE                              
    ECC     ,,                                   
    Range     ,,                                   
    Div     ,,                                   
    Excise Reg No     ,,                                   
    LST No     ,,                                   
    CST No     ,,                                   
    Invoice No:      vbrk-vbeln                                   
    Do No:     vbfa-vbelv where vbeln = inv no and vbtyp_v = C get the vbeln where vbak-auart = 'ZDO'           
    Sales Doc Num:     vbfa-vbelv where vbeln = inv no and vbtyp_v = C get the vbeln where vbak-auart = 'ZSO'                             
    PO:     vbkd-bstkd where vbeln = sales doc no                                   
    Delivery No:     select vbelv from vbfa where vbeln = inv no and vbtyp_v = J                             
    Goods Removal Dt&Time:     select vbeln from vbfa where vbelv = dlv no and vbtyp_v = R Put this vbeln in mkpf and get BUDAT and CPUTM     
    Selection screen parameter should be : vbrk-vbeln.

    Hi,
    First design your form interface, this is the set of fields that you need to display in your form and create this as a structure in SE11.  In your print program code the logic to extract the data into this structure, this is just regular ABAP, nothing special here.
    When you have your data call function module SSF_FUNCTION_MODULE_NAME to determine the name of the generated smartform function module.  Then call this function module, passing the data collected into your structure.  If necessary you will need to find the print parameters required and pass these too.
    In your smartform you will need to use the data structure you created in SE11 as the smartform interface and design the layout required to display these fields.
    Regards,
    Nick

  • Table field problem.

    Hi all,
        when i am using t5ub1 table it doesn't contain LTEXT field in that table fields list.when I see the list output of that table it is coming.actually i want to use that LTEXT field.How can i use that.

    Hi murugesh.
         thanks for reply.but the thing is in se11 when i use t5uba table i am giving BAREA =10 and
    PLTYP = medi.After execution the data is desplaying all the fields.In that output list there is field BPLAN.
    if we double click on that field output it is displaying some data.at the last of that screen after double clicking we can find LTEXT field.I want to take that field.How can i.can u give me suggession.

  • Creating checktable for custom table field

    Hello Guys,
    Can anybody explain me steps involved in createing a check table for the field in
    ztable.if possible can u send me link with screen shots.
    your help will be greatly appreciated.
    Regards
    Janapathi

    Check table
    check table and value table
    For example you have Employee master table & Employee Transaction table.
    When ever an employee Transacts we need to check whether that employee exists , so we can refer to the employee master table.
    This is nothing but a Parent & Child relationship . Here data can be maintained at client level , no development involved.
    As per DBMS what we call foregin key table, is called as check table in SAP.
    1. The contents of the check will be used as an input help(F4 Help) for a particular field on which a check table is assigned.
    But the contents of Value Table are never used in Input Help.
    The Heirarchy which decides from where to used the Input Help is:
    1. Input help defined explicitly in ABAP Program or Dialog Module.
    2. Input Help Attached to the referenced Database Table field.
    3. Using the contents of Check Table as an input help if neither (1) or (2) help are there.
    4. Input help from Fixed value or Value range given in Domain.
    Check Table: The ABAP Dictionary allows you to define relationships between tables using foreign keys . A dependent table is called a foreign key table, and the referenced table is called the check table. Each key field of the check table corresponds to a field in the foreign key table. These fields are called foreign key fields. One of the foreign key fields is designated as the check field for checking the validity of values. The key fields of the check table can serve as input help for the check field.
    Value Table: Prior to Release 4.0, it was possible to use the value table of a domain to provide input help. This is no longer possible, primarily because unexpected results could occur if the value table had more than one key field. It was not possible to restrict the other key fields, which meant that the environment of the field was not considered, as is normal with check tables.
    In cases where this kind of value help was appropriate, you can reconstruct it by creating a search help for the data elements that use the domain in question, and using the value table as the selection method.
    Check table will be at field level checking.
    Value table will be at domain level checking ex: scarr table is check table for carrid.
    also refer
    http://help.sap.com/saphelp_nw2004s/helpdata/en/e2/667092730811d2959500a0c929b3c3/content.htm
    http://www.abapmaster.com/cgi-bin/SAP-ABAP-interview-questions.cgi
    Re: check table and Value table

  • F4 help for a table field

    hai can any one tell me in detail how to create a search help and attach to the field in the custom table
    bye
    afzal

    hi Afzal ,
       Here you go with the details of creating a search help and attaching it to the custom table :
    Creation of Elementary Search Help:
    The creation of an elementary search help is described below with example.
    1.     Open TCode – SE11 for DDIC objects -> select the radio button for Search helps -> give the name of the search help you want to create, ex – ZSH004.Click on Create .
    2.     In the next screen select the option “ Elementary search help “ .
    3.     Now you need to provide the short text for your search help.
    4.     In the selection method provide the table or view name you want to use for data retrieval. Ex. ZMARA_01.
    5.     Select the dialog type according to your scope, ex. “ display values immediately’.
    6.     Then provide the search help parameters i.e. the interface parameters for the search help .
    7.     The ZMARA_01 table fields MATNR, ERSDA,MHDHB,MHDHT,MHDRZ are provided by selecting the table fields , by doing this the data elements for these fields are automatically copied to the interface from the selection method.
    8.     Now define the type of parameter ( import or export ) here for the selection and return of values in runtime.
    9.     Provide the positions to these parameters to specify how they will be arranged in the hit list display.
    10.      Now save the object in the respective development class and check the same for errors and then activate .Finally the creation of a ESH ( ex: ZSH004 ) is complete and can be used for providing the input help.
    You can test the operation of your search help by clicking F8.
    The appearance of your search help will be like the fig. provided below
    Creation of Collective Search Helps:
    The creation of an elementary search help is described below with example.
    1.     Open TCode – SE11 for DDIC objects -> select the radio button for Search helps -> give the name of the search help you want to create, ex – ZSH005.Click on Create .
    2.     In the next screen select the option “ Collective search help “ .
    3.     Now you need to provide the short text for your search help.
    4.     Select the dialog type according to your scope, ex. “ display values immediately’.
    5.     Then provide the search help parameters i.e. the interface parameters for the search help .
    6.     The ZMARA_01 table fields MATNR, ERSDA,MHDHB are provided by selecting the table fields . Define the types for the parameters of a collective search help by assigning a data element. Enter the name of the data element that describes the contents of the search help parameter in the Data element field.
    7.     In the Definition tab page enter the parameters of the collective search help.
    Select the Imp flag if it is an import parameter. Select the Exp flag if it is an export parameter. Optional-You can assign the parameter a default value in the Default value field.
    8.     
    Next, Select the tab “ Included Search help “ and provide the elementary search helps you want to include here . In the current example 2 elementary search helps ZSH004 and ZSH003 are being included.
    9.     Create a parameter assignment between all the included search helps and the collective search help here ( Note that at-least one of the parameter assignment must be done for linking the includes ) .This can be done by clicking on the tab
    10.     “Parameter assignment “ .ex. we have done the parameter assignment here by using the MATNR field for both the includes i.e. the selection paths should be based on the provided material number.
    11.     After performing the steps save the search help and activate for use in the later stage.
    Regards,
    Ranjita

  • How to copy the SE11 table view as Web Page Format?

    SAP Experts,
                        Good Morning..! I have to take a Copy SE11 Table View as a HTML format.
                        Please tell me the way to take a copy as Web page?

    Hi,
         once you display all fields.
    Then goto EDIT menu there you press Download you will get save list as which format like: Un covered
                     spread sheet
                     rich text format
                     HTML format.
    then you choose which ever you want and then save it in ur computer.
    Regards
    Raghavendra.D.S

  • How can I add table fields with existing structure ?

    I like to add PSTLZ field to stucture KOMGG.Is it possible to add table field with the existind structure.If yes how can I do this?kindly help me on this.

    hi
    go to se11
    in change mode select the button append
    create new append which starts from Zpstlz in this komgg structure and add data element and domain to this field and activate with request number
    then in field catalogue this field should be visible ,here ends your append
    now it is ready to use in condition tables.
    reward if helps !!!!!

Maybe you are looking for

  • In FF4 the opensearch detection does not seem to work. how can I add a search engine , that has an opensearch xml but no plugin?

    if you go to a webpage with an opensearch link tag like "<link rel="search" type="application/opensearchdescription+xml...." FF3.x highlighted the small arrow left of the search box and you could add the search engine. this does not seem to work in F

  • To delete the Billing Block in Sales order

    Hello Experties, When i'm going to create a SO there is default Billing block for to Check Credit/Debit moemo. I want to delete this block with SAPCE (In background process). is there any USEREXIT or FM to solve this problem. Thanks in Advance!! TR,

  • WLC 7.0.220 - USER_ADD_FAILED

    Here is what I'm getting: *Dot1x_NW_MsgTask_0: Apr 16 10:08:53.443: %APF-1-USER_ADD_FAILED: apf_ms.c:5665 Unable to create username mag12 for mobile00:21:5f:b2:f6:87. I have WPA2 with 802.1X ties back to ACS 5.3. Works great, but I got a client havin

  • Envelope icon

    I have the envelope icon constantly flashing in the top right hand corner of my nokia 5800. There are no incoming messages - how do I and can I get rid of this?? Thank you

  • Build server is unreachable, DTR server is unreachable

    Hi experts, I have configured NWDI succesfully and created tracks also. When I tried to login in NWDS in Development Configurations perspective it is giving the following error. Build server http://<hostname>:50000 unreachable DTR server http://<host