ZTable new entries need to be validated

hi,
Ztable new entries need to be validated.Only the F4 help value should be populated in fields.Few fields are not bringing the F4 help.And when I am trying to save any random data into the field,its saving in the ztable.
i want ONLY F4 HELP values to be saved into the ZTABLE.
Please advice.

Hi,
1. For Possible entries :
   Create the foreign key relationship for the fields in the custom table.
2. For Other validations againt the data entered for the field.
You have to Generate the table maintenance for this custom table in SE11.
After generating the table maintenace for this table there will be a program name
and screen number for this table.
The program name can be identified after running the maintenance generator.
System->Status->Program(screen)
System->Status->Screen number
The program will be generated with SAPLZXXXXXXX
For eg :
Function group : ZEURMM000
Program name   : SAPLZEURMM000
Screen number  : from the table maintenance generator
You can find the PAI of for this table.
Write new module between chain and endchain statement.
CHAIN.
    FIELD ZMM001-ZPLANT .
    FIELD ZMM001-ZDES .
    MODULE get_Zdes.            "Added new code
    MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST.
ENDCHAIN.
MODULE get_zdes iNPUT.
data : lv_zdes type ZMM001-ZDES.
  CLEAR ZMM001-ZDES.
  SELECT SINGLE zdes
     INTO lv_ZDES
     FROM CHECK_TABLE  "The values needs to be validated
     WHERE  PLANT = ZMM001-ZPLANT
        AND ZDES = CHECK_TABLE-ZDES.
if sy-subr <> 0.
message.
endif.
ENDMODULE.                 " GET_CARNO_DES  INPUT
All the User PAI statements can be performed in the subrouine LZEURMMXXXO01 of the generated program SAPLZEURMM000.
Best Regards,
Senthilraj Selvaraj

Similar Messages

  • How to Create new entry, while keeping CoS and nsRoles in tact...

    Hi,
    Here's the short version:
    How can one create a new entry/context in DS, copy the attributes from an existing entry (using JNDI) and save them in the new entry/context WITHOUT duplicating CoS or nsRole/DN info.
    Long version of the question:
    We are using DS 5.2 and Portal 6 (and messenger/calendar etc). We have our employees saved in DS. What I want to do is change a user's name/uid by copying the user's attributes (in JNDI) and create a New entry with the New uid, with all the other attributes the same. Then deleting the original entry.
    This is what I have done...
    1. Get all the employee's attributes... (abriviated)(ctx is the DirContext)
    NamingEnumeration answer = ctx.search(searchBase, filter, ctls);
    SearchResult sr = (SearchResult)answer.next();
    Attributes attrs = sr.getAttributes();
    2. Create a new employee with the same attributes (assume I use a different uid in the dn)
    ctx.createSubcontext(dn, attrs);
    This works...it copies all the attributes to the new entry -BUT- when you look at the LDIF file, it ADDS several more attributes to the new entry.
    Example: it adds the following...
    sunPortalNetletRules
    sunPortalGatewayEnableSSO
    sunPortalDesktopDpDocument
    sunPortalDesktopDpLastModifiedUser
    iplanet-am-user-auth-modules
    And about 20 others...
    Now if I am not mistaken, these are the CoS and roles that the DS uses and propagates down to the entry. But when I copy the attributes over, (using JNDI) I get these attributes too but I want to copy only the attributes that are unique and have DS handle the roles and CoS like it does for the original entry.
    Is there a way to tell the DS to just use the CoS or roles instead of duplicating all these attributes in this individual entry??? (and do it using JNDI)
    (sorry this question is sooooo long.)
    Thanks!
    Eric

    Hello Viji,
    I am extremely thank ful for the document.
    Kindly help me with below points of possible
    1)     if it is standard table (LFBK) , even then shall we will need to do the generate program 
    step in SCDO ?
    2)     does it generate Z-function module ?
    3)     do we need to call this function module at appropriate places to update the CDPOS and CDHDR 
    for changes in the standard table ?
    4)     I have already created custom business object for LFBK so that Iu2019ll be able to create entry 
    in SWEC (fyi)
    5)     how and when are the method used in the table maintenance generator called ?
    6)     Page 14 point 3 says that "Add a new entry to link the Change Document Object ZPRPS_CD and 
    table ZPRPS so that changes are recorded when table entries change."
    Does this mean that once we create SCDO and generate program, these two steps are  enough 
    for the SWED entry to create change log in CDPOS and CDHDR ?
    7)     It is understood that it is necessary that the change object in SWEC should be logged in 
    CDPOS and CDHDR only then the event would be created for the SWEC entry. is this correct ?
    in order to create change log for the change object in CDHDR and CDPOS, is the SCDO entry 
    and generate program steps enough or the methods of table  maintenance generator are also 
    required ?
    thank you very much for your time
    B

  • How can I add a new entry for determining a requirement type

    Dear Friends,
    How can I add a new entry for determining a requirement type
    via Item Category + MRP type,  I see no new entries selection.
    This is in  Avb Check & TOR-> TOR-> Determination of req type using transaction.
    Please help.
    Regards
    Ravi.

    Availability Check and Transfer of Requirements > Transfer of Requirements > Define Requirements Types ?
    Just one node above?
    Never mind, you need to add entry on item category:S

  • New entries in Business Partner

    Hi all,
           We have new requirements(few standar BP and extended fields) for customer (BP) master data. I assume to create new customer we use BP transaction code.
           Can I manually added fields(which are extended new requirement to customer master) to tables like BUT000 etc.
          If suppose a new field is added to master table coresponding to this how can I added a field at BP transaction code that links the new entry in BP master table.
    I assume there is some simple way to link master table updation in entries to BP screen elements(stripping off standard fields which are not necessary and addition of extended new fields).
    Your support is appreciated.
    Thank you and regards,
    Eddie

    Hi Tiest,
         I have been working on it but I have encountered a problem like
    " Own system has not been entered correctly"
    I think this is related with simmilar problem as  the post with title "EEW customizing for system-wide object extension" (also I could not change the SYSTEM RELEVANCE aswell).
    As in the above posting it said we can not change BUPA object but it I want to enter field to BUT000 table how can I append?
    I have used EEWC and entered the parameters.
    System Type: <b>Local System</b>
    System Role :<b>Customizing System</b>
    Description : <b>CRMLS</b>  
    Logical system: <b>CRM40</b>                   
    Destination: <CRM Application Server>                   
    SAP R/3 Release : <i>For this i left blank</i>
    Namespace : <i>blank</i>
    Short Namespace : <i>Again blank</i> 
    Do I need to enter any other information at EEWC. your inputs are highly appreciated.
    Thank you in advance

  • Unable to create new entry in table that has no primary key

    Hi
       I have a table which is required to have no primary key (except mandt). After i generate table maintanance, when I go to create new entries, the table control to enter the new values does not appear. When I click on edit->new entries, it goes back to the fields tab of the table. Same when i check through SM30.
    If i maintain atleast one primary key, I am able to get the table control in new entries screen. However the requirement permits no primary keys except mandt. How can this be resolved?
    Thanks
    NM

    Hi,
    THE PROBLEM WITH UR TABLE IS
    YOU HAD DECLARED MANDT AS THE PRIMARY KEY AND THERE IS NO OTHER KEY IN UR TABLE
    iT'S NOT ALLOWING YOU TO ADD NEW ENTRIES BECAUSE MANDT IS THE ONLY PRIMARY KEY IN YOUR TABLE AND IT WILL HAVE A DEFAULT VALUE BASED ON THE CLIENT. SO  IT'S NOT SHOWING YOU THE CREATE NEW ENTRIES OPTION.
    SO TRY TO PUT ONE MORE FIELD AS THE PRIMARY KEY SO THAT YOUR PROBLEM WILL SOLVE VERY EASILY  ALSO MAKE SURE THAT TABLE IS ACTIVATED.
    REVERT IF U NEED SOME MORE HELP
    Thanks &Regards.
    Pavan.

  • New entries in table TSTC not capturing in scu3 change logs

    Hi ,
    We have TSTC table log enabled.
    New Entries which comes through transport in the table TSTC are not capturing in change logs.
    We have created a new Z T-code and transported it to Quality and then to Production.
    But in the change logs of the tbale TSTC it is not captured both in quality and Production.
    In the table TSTC t-code is present.
    But the change log for the table doesnot show any new entry created.
    In development change log of TSTC, the change is present but in Quality and Production it is not present.
    Development client : 400
    Quality Client         : 600
    Production Client    : 600
    Can any one spill some beans on it...
    Thanks & Regards
    Kiran

    You need to add "recclient = ALL" (or same client value as "rec/client" profile parameter in RZ10) to the transport profile as well in the STMS.
    Search SAP notes and the forum here for "recclient" (without "/")
    Cheers,
    Julius

  • How to make the fields of the table mandatory while creating new entries..?

    Hi,
    I have created a new Z table which has 6 fields. All the 6 fields are KEY fields and all are of CHAR type. I have generated the table maintenance generator for the same. My requirement is all the fields should be MANDATORY while creating the entries. No field should be BLANK.
    When creating the new entries in the table, even if I don't give any values to some of the fields, it is saving the entry. But, it shouldn't happen like that. If any of the field is kept blank, it should not allow the user to save the entry. Can someone tell me how to approach this. Will there be any settings while creating the table which takes care of this.
    I read somewhere that this can be done using the Table EVENTS. Can someone tell me what is the code that we should write there in the Events which prevents the user from saving the blank fields. While writing the logic in the events, how to check whether the particular field is BLANK or not. Will the values be stored in any internal table kind of thing..?
    My table name is ZCRF_TAB and the fields are FLD!, FLD2, FLD3, FLD4, FLD5 & FLD6. Can someone provide me sample code for my requirement. Thanks in advance.
    Best regards,
    Paddu.

    Hi,I think u have generated Table Maintainance Generator, goto Environment->Modifications->Events
    Select appropriate option by using F4,I think value 05 is appropriate for u r requirement.Enter From routine name.Dbl click on the routine.
    Write the appropriate code like:
    If ZTABLE-FIELD1 is initial.
    Message (E000) with "Fill all the manadatory fields".
    Thats it.Just look at the following docu with screenshots,by this understand how u can use Table Events:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20implement%20events%20in%20table%20maintenance.doc
    Regards,
    Rock.

  • How to append a new entry in a list of 100,000 names without iterating the list each time?

    I have a list of 100,000 + names and I need to append to that list another 100,000 names. Each name must be unique. Currently I iterate through the entire list to be sure the name does not exist. As you can imagine this is very slow. I am new to Java and I am maintaining a 15+ year old product. Is there a better way to check for an existing name?

    We are using a Java list because that is how the original developers coded it. I don't think they planned for that many entry's. I know I need to re factor this which is why I am asking for opinions on how to  make this more efficient. Currently we don't use a database for anything in the product so I would like to stay away from that if possible.
    Ok - but it still raises the question in my mind as to how that data is being used.
    I gave you a couple of options that will take care of the UNIQUE requirement (HashTable, HashMap) but the BEST solution depends on:
    1. How often new entries are made
    2. How often entries are deleted
    3. How often entries are changed
    4. How often entries are accessed
    5. How the data is actually used
    If you just have a one time requirement to merge the two lists then just do it and get it over with - it won't really matter how you do it.
    But Hash classes will present their own performance issues if the typical access is for many, most or all of that 200k+ entries.
    Without knowing the full set of requirements we can't really know just what part of the process needs to be optimized.

  • How to add new entry, in table on button click.

    i have 2 input ,witch i am taking from numeric controls. this 2 input are use to calculat my output.
    on button click i want these 4 things should go in the table.
    now my problem is when i click the button previous entry in the table get lost...
    plz help me to slove this problem.

    When you want to preserve the existing values in a table or array, you need to use "Array -> Build Array". Wire the local variable of the table or array to top entry, and wire your new entry to the bottom. Depends on the dimension of the array and the postion you want to add. You might need to some array manupilations. Try out some of the array VIs to see how they work.
    Joe

  • Send a Notification When ever a new entry is created in Z-Table

    Dear All,
    I have got a requirement to send a notification  when ever a new entry is created in the Z-Table which contains some important information.
    I have searched in SCN and found few links in which it say to create an Event '05' and in that call FM SWE_EVENT_CREATE, but my query is  Do I need to create a new BO? 
    In the example which I found in other sites where its mentioned like
        W_OBJTYPE = 'YH355_BO'.
        W_OBJKEY  = ZCUST_INFO-CUSTNO.
        W_EVENT   = 'SENDEMAIL'.
    here OBJECTTYPE is a new BO or what.
    Kindly help me in solving my requirement as am new to Workflow concepts.

    If you want to send the mail call the function module "SO_NEW_DOCUMENT_ATT_SEND_API1"  in table maintenance event '05'.
    Regards
    Vinod

  • How to pre-populate fields for new entry in table maintenance

    Hey everyone,
    I have a table maintenance set up that I would like to pre-populate two date fields when the user creates a new entry or copies an existing entry.
    I can do this by adding a PBO module for the maintenance screen but then if the screens are regenerated my changes are lost so this is not ideal.
    I've also found that I can use the events (05 and 21 I believe) to set the dates but using these events I can not fill in the values in the screen so this is also not ideal.
    Is there an event that can be used to pre-populate fields in a table maintenance screen? If not, what is your suggested method for accomplishing this?
    Thanks in advance! I appreciate any help!

    Hi,
    Please use the below links...
    [Table maintenance Field Validations;
    [http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=93454609]
    Thanks,
    Manish

  • Autocomplete is not saving new entries in forms (gmail subject exaclty)

    It used to work ok - Gmail subject used to be saved, and I could reuse it with drop down list shown when writing first letters. But it stopped to save new entries. Saved before are still avialalble, but not new.
    In other forms (on other sites), autocomplete is still fully operational, with saving new entries with no problem.

    Since I need to send many e-mail with same subject daily, I managed this problem in some way.
    I created simple html file, with only this inside:
    <form method="get">
    <input type="text" name="subject" size=100><input type="submit" value="save">
    </form>
    When I need to save new subject, I open this file (no need to be uploaded, works from hard drive), write my subject, and click save.
    Then it is avialable in gmail.
    Strange, stupid, but works :)

  • Event for preventing a new entry in DBTable

    hi all,
    please suggest me a event in table maintenance to have a check for preventing the entry into the table. i tried event 18 but wen the error msg is displayed it comes out of record entry window which is to be avoided.
    regards
    Madhu

    My friend  it is  not
    18 . it is 05 -> Creating New Entry. 
    so that  you can validate with the User   and  do the validation  and update the table .
    "Below is the code for  it
    Select 05 for an event for “Creating a new entry”.
    This event will be triggered while creating a new entry in SM30 or using the TCODE.
    Form Name: AT_NEWENTRY (Enter key)
    Double Click on the editor.
    form at_newentry.
    Ztab-ZCOUNTRY = ‘India’.
    Ztab-ZCREATEDATE = sy-datum.
    Ztab-ZCREATETIME = sy-uzeit.
    endform.
    Create another event: 02 for “After Save”
    FORM after_save.
    Ztab-mandt = extract+0(3).
    Ztab-ZCOUNTRY = extract+3(3)..
    Ztab-ZCREATEDATE = sy-datum.
    Ztab-ZCREATETIME = sy-uzeit.
    MODIFY ztab.
    ENDFORM. "after_save
    Step 4: Create Transaction Code.
    Go to SE93.
    Transcation code: ZTAB
    Transaction text Test Table Maintenance Events
    Transaction: SM30, Skip first Screen
    Default Values:
    VIEWNAME ZTAB
    UPDATE X
    Reward  points if it is usefull....
    Girish

  • Add New Entry to a blog

    If I start a blog and "fix" the blog entry layout. Is there some way to save that so I dont have to re-design it every time i wanna make a new entry?

    Perhaps I'm not using the right terms. Let me try and restate my problem.
    I am now using the "Notebook" theme. I have already created some entries where I've changed the default "My Blog" and associated Latin on the yellow header on top of the page to what I want them to say (i.e., "Bill's Blog" and associated text). You can see an example of such an entry here:
    http://www.billmarksteiner.com/BillMarksteiner/Bills_Blog/Entries/2007/8/27_Dell_repair..._MUCH_better_thanexpected.html
    When I click on the "Add Entry" button, I get a page with a yellow border on top with the words "My Blog" instead of what I'd like, which is "Bill's Blog". The Title field and its associated blog entry text (again, Latin) is lower on the page, and I understand that this is necessarily pulled from the standard template because that is the main body of the entry, which one would need to edit to make a relevant entry. But I'd like to at least automate the header material on the yellow strip at top to say "Bill's Blog" instead of "My Blog", and have standard text up there that I create, not Apple.
    I guess what I'm asking is if there is a way to edit the template itself so that hitting the "Add Entry" button creates a templated entry of my design. Or at least a templated entry containing my text vs. Apple's.

  • Create New Entry Points

    Hi All,
    I have a requirement to display a folder as an Entry Points in KM.
    Same as displayed in the blog [https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1027]
    I have done the configuartion as mentioned the blog still I am not able to view the folder.
    Request your support to achive the same.
    regards,
    SJ

    Hi
    Thanks for the link; still I am not able to view the new entry point for my folder.
    My requirement is to have other folder displayed in SAP standard favorites.
    Presently, below mentioned folders are displayed:
    --> My Room Folders
    --> Favorites
    --> Personal Documents
    --> Recently Used
    --> Common folders
    --> Public Documents
    --> More...
    I need to add a new folder
    --> XYZ
    I have followed the instruction mentioned in the wiki, but I am still not able to view a folder appearing in KM favorites.
    Regards,
    SJ

Maybe you are looking for

  • An issue with multiple checkboxes displaying correctly.

    My company is converting our website to seam. We obviously have a number of existing pages we must convert and at least try to mimic the previous code. The page I'm currently working on is a catalog request form(see: http://www.perma-bound.com/Catalo

  • Trouble with Satellite A205-SP5814

    I'm having some trouble with my laptop, it's a Satellite SP-5814, and it freezes sometimes. I installed the factory software from the CD's, and the problem didn't solved at all. Sometimes even can't load de OS, or crashes trying. I'll appreciate any

  • XML Custom Parser

    I am tryint to write a custom XML parser but I am having trouble accessing the Value fields. I need to use one of the Value Fields to determine which parser I need to use for my custom Class Objects. Below is my sample code and a sample XML Document

  • VPN Settings Reset

    We are setting up a VPN between a Cisco 1841 and a Linksys BEFVP41 V2. We are getting the VPN to connect, and we can see it up in the Cisco. But sometime later that day, the VPN disconnects and the settings on the Cisco 1841 are all gone. The Cisco r

  • When I burn a backup, will playlists be preserved?

    Or does the backup feature simply make a copy of all the songs in my library? Thanks!