Match code in customised table

Hi,
  I created a ztable and my further requirments is for particular field  there will be a only three options that  user will enter only N ,S or D.if the user enter other than that it should show the error message "Pls enter correct word".so pls help me to do this.
  And in another field the  date field should show the system date by default.
  Pls help me to solve the issue and i will be very much thankful to all.
Thanks,
Regards,
Rajendra.

Hi,
1)
Do the following steps to create the include..
GOTO SE80
Enter the function group..
Click the display button..
Double click on the Function group name..
You will get a popup to with the function group, text etc...
In the popup press the button Main program (F5)..
Press "Display/change" button or CTRL F1.
Add the include in the last line of the code..
Example..
INCLUDE Z_INCLUDE.
In the include add the following code..
FORM ADD_SYSTEMDATE.
ENDFORM.
Save and activate the Function group.
2)
Go to SM30...
Give the view name V_TVIMF.
Press maintain button..
You will get a popup with the following message "The table is cross-client (see Help for further info"..
Press enter...
You will get a popup to enter the view/table...
Enter the ZTABLE.
Press enter..
Go to the change mode..
Press new entries button..
In the column T give 05
In the column FORM routine give ADD_SYSTEMDATE.
Save the entry..
The above should work fine..
Thanks,
Naren

Similar Messages

  • Match-Code with Internal Table

    Hi.
    Is there any way to show a search help depending on the values of an internal table, not a DB table???
    Thanks.

    we can do something like this..
    PARAMETERS : p_ccgrp LIKE rkpln-ksgru. "Cost Center Group
    *Input help for Cost Center Group
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_ccgrp.
      TYPES: BEGIN OF ty_ccenter_group,
              setname TYPE setnamenew,
              descript TYPE settext,
             END OF ty_ccenter_group.
      DATA : it_ccenter_group TYPE TABLE OF ty_ccenter_group.
      CLEAR it_ccenter_group.
      SELECT a~setname
             b~descript
             INTO TABLE it_ccenter_group
             FROM setheader AS a INNER JOIN
                  setheadert AS b ON
                  a~subclass EQ b~subclass AND
                  a~setname EQ b~setname
                  WHERE a~setclass EQ '0101' AND
                        b~langu EQ sy-langu.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield    = 'SETNAME'
                dynpprog    = v_repid
                dynpnr      = '1000'
                dynprofield = 'P_CCGRP'
                value_org   = 'S'
           TABLES
                value_tab   = it_ccenter_group.

  • F4 in WDA table : The Match Code Button appears 4 lines down

    Hi,
    I have a problem with the Match code Buttons.
    In the FAQ of the WebDynproABAP Wiki ( https://wiki.sdn.sap.com/wiki/display/WDABAP/GeneralTechnicalAspects#GeneralTechnicalAspects-2.110),
    I read something about displaced artefacts in Tables. So I tried with a simple table and I still have the problem.
    Can someone help me ?
    Thanks.
    MAline

    Hi!
    Which Support Package has your system? SP11? I think the problem will be fixed with SP11.
    kindly regards
    Fößleitner Johann

  • How to implement search help instead of match code objects table in program

    Hi,
    We are now in upgrade process of code remediation ( From 4.6c to EC6.0).
    We have created search helps instead of matchcode object table. This match code object table M_VMVLC has been deleted
    in EC6.0.  And search help VMVLC is available.
    In the program, they have used <M_VMVLC > -<fieldname> i.e. <tablename> - <fieldname> in declaring parameters,
    in the 'into' clause of select statement, in the 'from' clause of select statement, in the 'write' statement.
    I want to know how to replace this matchcode object table with the search help in the program.
    Thanks,
    Abirami.

    Hi,
    Check the link
    http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21ee2b446011d189700000e8322d00/content.htm
    Regards,
    Amit

  • FBL5N : problem with Match-code

    Hi,
    In Tcode FBL5N i click on match-code of Customer Account's field to choose a Customer, in the first table (Customers by company code) when Ii click on one customer the list of customers is closed but i get nothing in Customer Account's field (it is empty)
    Please how to resolve this problem ?
    Regards.
    Edited by: jehade el aoumari on Jan 20, 2010 9:28 AM

    Hi ,
    I had the same issue with FBL1N and I managed to solve it.
    1. Open SE11
    2. Select radio button search Help
    3. Enter DEBI
    4. Click on change
    5. Choose Maint. in logon lang.
    6. Go to tab Included search help
    7. Select line DEBID
    8. Click on Param. assignment
    9. On the 1st line enter      KUNNR     C      KUNNR
    10. On the 2nd line enter   BUKRS     C      BUKRS
    11. Save
    This should solve your issue.
    Regards,
    Ben

  • Can we change the fields of database unique index in a customised table?

    Hi all..
    I want to know that can we create or change or delete the database unique index of a customized table?
    In my case, there is a customised table with 4 primary keys with all the records to be maintained thru transaction code SM30.
    There is database unique index maintained for this table which has 2 fields. These 2 fields are out of the 4 primary fields of the table.I hope I have made myself clear!
    Now when I am trying to insert a record in the table it give me a short dump.( It says duplication of records is not allowed)
    The reason being that the new record that I am trying to insert in the database table has those 2 fields for which the unique index is maintained is the same as an already existing record.And the other two fields are different from the already existing record.So overall the combination of the 4 primary fields is different.
    Please tell me how shall I proceed now?
    I also tried to change the Unique index but it is asking me some kind of authrization(You are not authorized to make changes (authorization object S_DEVELOP)).Also I am not sure whether changing the unique index is feasible or not.?
    Thanks.

    hi
    I think you will not be able to do unique indexing withou the help of primary keys,so use all the primary keys into the table field selections  and and then create indexing otherwise dupilication of keys can occur. if you are not able to keep the primary keys then go for non unique key indexing,where you have to add the client field and the any keys of your wish.

  • How to delete duplicate entries in match code

    I want to delete duplicate entries in match code.

    If you go down the search exit route, using function module F4_IF_SHLP_EXAMPLE or function module F4_IF_SHLP_EXIT as a template you want it where callcontrol-step = 'DISP'.  You would sort the table: SORT RECORD_TAB BY STRING and then delete adjacent duplicates. If this does not wok because of the fields you have in your search help, you will need to select the data into another internal table and match the relevant entries from your internal table  with the relevant position in field STRING of RECORD_TAB.  The positions in STRING will be as per the order of the parameters  you have defined in the search help.
    Hope this helps.
    Regards
    Larissa

  • Creating Match Codes

    Dear All,
    Please suggest me the steps and necessary settings to Created a Match Code.
    I have to create a Match Code for the field Tax Number 1 in the Vendor Master.
    Thanks in Advance,
    Archana.

    Hi ARCHANA,
    IF YOU WANT  SEARCH HELP BASED ON MULTIPLE THING THEN YOU HAVE TO GO FOR COLLECTIVE SEARCH HELP WHERE YOU LIST ALL YOUR ELEMENTARY SEARCH HELPS
    LIKE IN HERE
    VENDOR BY COMANY,VENDOR BYCUSTOMER ETC ARE ELEMENTARY SEARCH HELPS
    Vendor if you see the Search Help, it gives you the option for Vendor by Customer, Vendors by COmpany Code etc etc.
    THEN YOU CREATE A COLLECTIVE SEARCH HELP WHERE YOU GIVE ALL YOUR ELEMTARY SEARCH HELP.
    SI IF YOU WANT TO ADD TO THIS LIKE
    Vendor by Customer, Vendors by COmpany Code ,VENDOR BY TAX NUMBER1
    GO TO SELL CREATA ASEARCH HELP ZTEST
    GIVE SOME SHORT DESC
    THEN IN SELECTION METHOD GIVE THE TABLE I.E LFA1
    THEN UNDER SEARCH HELP PARAMETER
    GIVE
    LIFNR   SELECT IMPORT EXPORT  LPOS 1 SPOS 1 AND PRESS ENTER
    BELOW THAT
    STCD1  LPOS2 SPOS 2 AND THEN PRESS ENTER
    SAVE IT.
    tHEN FIND THE COLLECTIVE  SEARCH FOR VENDOR FIELD AND JUST THIS TO IT.
    THANKS
    VENKI

  • Possibility of giving match code  for Manufacturer in Equipment Master

    Hi -
    We can have a field exit on fieler HERST of Equipment Master.
    Is there any possibility of giving a match code on this filed? so that we can maintain a table for manufacturer and user can select any one entry from this table.
    We do have activated filed exit for manufacturer check, but need to further restrict the entry so that there is uniformity of entry maintained in this field.
    Kindly advice.

    hi narendar,
    some information :
    In addition to the above mentioned exit we have also created a custom match code for this field in one of our project ... the exit gets triggerred whenver user hits enter and the value entered here is used in selection criteria that displays the custom popup window ... the data is picked from vendor master table the selection createria we used was vendor name and description and vendor acount group MNFR - for manufacturers would be defaulted and displayed.So you can go with creating a custom match code which is invoked whenever user selects F4...
    regards
    pushpa

  • Match Code for LFA1-KONZS

    Hi all,
    I need a match code for the field LFA1-KONZS... it should appears on XK03 transaction for example.
    The idea is to create a new Z table and after fill this table, the values of them should appears as a search help into the LFA1-KONZS.
    This Z table should have the fields:
    KONZS type KONZS (data element)
    DESCR type Char 50
    I tried to modify the domain (KONZS) and insert the Z table on the option VALUE TABLE on the tab VALUE RANGE.
    But it doesn't works.
    The other thing is  that these two fields should accept blank values... but I think for this will need one of these fields as a key, is that correct?
    Manys thanks for all!
    Ricardo

    Hi,
    Create a search help for the Z table, and then you need change the SI_LFA1 structure (ask the BASIS team for an access key) field KONZS.
    In the tab ENTRY HELP/CHECK, you specify the CHECK TABLE and the SEARCH HELP for the field KONZS.
    And then test it into the SE16 transaction.

  • Match code Object

    Hi,
    Please guide me, what is the effect of addition match code object.
    How the match code object works.
    Thanks.
    Regards,
    Anuja

    Hi,
      Matchcodes are defined in two stages in Abap/4 Dictionary:
    1) The revelant table and fields are stipulated in matchcode object. A matchcode object describes the set of all possible search paths for a search item.
    2) One or more matchcode ID can be defined for a matchcode object.  A matchcode ID describes a special search path for a search term.The fields or combination of fields via which the search is to take place is defined in the matchcode ID.
      REPORT z_sdn.
    PARAMETERS p_carrid TYPE s_carr_id
               MATCHCODE OBJECT demo_f4_de.
    WRITE:
      p_carrid.
      Check out these links
    http://help.sap.com/saphelp_nw70/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
    http://www.*******************/2007/11/match-code-objects-in-abap.html
    Regards
    Abhijeet

  • Match code objects

    Hi all
    can any one let me know about the match code objects??
    Thanks and Regards
    Arun Joseph

    Hi,
    For many entry fields, but not all, SAP provides a search function called a Matchcode. Matchcodes allow you to select a value from a list or search for a value by categories of data if there are many possibilities.
    Types of Matchcodes
    Matchcodes fall into three basic categories:
    1) Short list or hit list
    The values are listed on one screen. For longer lists, you may need to scroll down to see all the values.
    2) Restrict Value Range
    Many entries are available for the field. A number of tabbed screens with different categories display so that you can enter your search criteria.
    3) Calendar search
    A calendar-type dialog box is displayed so that you can select day, month, and year. This is used in date fields such as invoice posting date.
    Matchcodes were replaced with Search Helps starting with Release 4.0. Please use search helps to assign an input help to a field.
    Existing matchcodes were automatically converted to search helps. A matchcode object is hereby converted to a collective search help with the same name. Each matchcode ID of the matchcode object is converted into an elementary search help with the same name and assigned to the collective search help created from the matchcode object.
    A matchcode is a means of finding data records stored in the system. The matchcode is defined in the ABAP Dictionary in two steps:
    You first define the relevant tables and fields for the search in a matchcode object. A matchcode object describes the set of all possible search paths for a search string.
    You then create one or more matchcode IDs for a matchcode object. A matchcode ID describes a special search path for a search string. The matchcode ID defines the fields or field combinations to be used in the search.
    A search help can be created in ABAP Dictionary ( tcode se11 )
    Create a new search help (say myHelp) , choose Elementary search help (simple one), select Definitions tab, enter the table name(say myTable) in "Text Table" text box.
    Then enter the column to be used (say myField) for this help in search help parameter, choose Import/Export, give Lpos as 1, and activate. ( You can add more columns from the same table here).
    In report, code as
    parameter p1 like myTable-myField matchcode object myHelp.
    when you execute this report, p1 will have a f4 help enabled. The help list will have all values from myTable for field myField.
    You can do this in SE11 where you have an option for the same
    http://www.sapdevelopment.co.uk/dictionary/shelp/shelphome.htmhttp://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
    This is also a good link
    What are Search Helps, How to create and whats the Use ?
    Regards,
    Shiva.

  • Match code values for calmonth

    Hi experts!
    In Bw queries when I use match code for calmonth I can see only values up to 2012 and in fact there are no values in sid table higher than 12.2012 except some values in 2013.
    How I can make appear in match code values higher than 12.2012?
    It' for a planning application and users want to see match code up to 12.2015.
    Thanks a lot.

    Hi Angelo,
    Most probably your BW calender has been maintained till 2012 therefore you need to insert manually for the values bigger then 2012. Please review the following discussion,
    12.9999 in DTP Filter
    Thanks.

  • Match code for   in ME21N

    Hi,
    How can I do for activating a match code with data from "Z" table in field EKKN-WEMPF?
    Thanks in advance.

    Hi,
    It is possible. We can extend an existing standard collective search help using append search help option.
    Please goto se11 & input the standard search help name (in your case, it is MBAN_C) in the serach help option & display it. Press the menu GOTO->Append search help. You will get a pop-up and there you can create the new seach help as per your requirement.
    Hope, you know well how to create the search help. Please check with the below link if you don;t know:
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
    Regards,
    Selva K.

  • Match Code Objects and ID's

    Hi,
        Can you explain what is Match code objects and ID
    Regards,
    Bharath Mohan B

    Hi,
    For many entry fields, but not all, SAP provides a search function called a Matchcode. Matchcodes allow you to select a value from a list or search for a value by categories of data if there are many possibilities.
    Types of Matchcodes
    Matchcodes fall into three basic categories:
    1) Short list or hit list
    The values are listed on one screen. For longer lists, you may need to scroll down to see all the values.
    2) Restrict Value Range
    Many entries are available for the field. A number of tabbed screens with different categories display so that you can enter your search criteria.
    3) Calendar search
    A calendar-type dialog box is displayed so that you can select day, month, and year. This is used in date fields such as invoice posting date.
    Matchcodes were replaced with Search Helps starting with Release 4.0. Please use search helps to assign an input help to a field.
    Existing matchcodes were automatically converted to search helps. A matchcode object is hereby converted to a collective search help with the same name. Each matchcode ID of the matchcode object is converted into an elementary search help with the same name and assigned to the collective search help created from the matchcode object.
    A matchcode is a means of finding data records stored in the system. The matchcode is defined in the ABAP Dictionary in two steps:
    You first define the relevant tables and fields for the search in a matchcode object. A matchcode object describes the set of all possible search paths for a search string.
    You then create one or more matchcode IDs for a matchcode object. A matchcode ID describes a special search path for a search string. The matchcode ID defines the fields or field combinations to be used in the search.
    http://www.sapdevelopment.co.uk/dictionary/shelp/shelphome.htmhttp://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
    This is also a good link
    What are Search Helps, How to create and whats the Use ?
    A search help can be created in ABAP Dictionary ( tcode se11 )
    Create a new search help (say myHelp) , choose Elementary search help (simple one), select Definitions tab, enter the table name(say myTable) in "Text Table" text box.
    Then enter the column to be used (say myField) for this help in search help parameter, choose Import/Export, give Lpos as 1, and activate. ( You can add more columns from the same table here).
    In report, code as
    parameter p1 like myTable-myField matchcode object myHelp.
    when you execute this report, p1 will have a f4 help enabled. The help list will have all values from myTable for field myField.
    Don't forget to reward if useful......

Maybe you are looking for