Hiii help to put default values on custom table

Hiii
Please advise how to put assign a default values on a custom table.
Can you please indicate me the path to navigate to do that

Please give more details
where do you want default value while updating table entry or while using table maintenance ?

Similar Messages

  • How to maintain default values for custom table fields --  Urgent

    Hi all,
    I've a requirement wherein i need to create a Z table (with maintainence view) in which i'll have date and time as two of its field which should have current date and current time as default value. Can somebody suggest as how am i to maintain the date and time fields defaulting to current date and current time.
    Incase if someone is unable to intrepret what i'm trying to say, please query me, i'll elaborate it further.
    Please give in your quick inputs which is highly valuable to me and also will be highly appreciated.
    Thanks in advance,
    Vaishnavi Varadarajan

    We have a following custom table which contains the fields “Date on which record was created” and “Name of the person who created the object”. We would like to have these to be filled up with SY-DATUM and SY-UNAME respectively.
    Using the events, we can achieve this.
    Please refer the following link:
    http://abapliveinfo.blogspot.com/2007/12/events-in-table-maintenance-in-sap.html
    Also,
    Write a form routine in table maintanance generator.
    1. SE11 > utilities > table maintenance generator
    2. environment > modification > event
    define the event and form routine to make use of the tigger. in the form routine define an object for the class and call the relevant method.
    Or u can do it as:
    Table maintenance generator is basically used to do table operations like (insert, delete, modify...).
    if you create table maintenance for your table it will build a module pool program, by using you do the above operations.
    below is the procedure to create table maintenance generator.
    1) Create one function group.
    2) after activating your Ztable, choose 'Utilities'----> 'Table maintenance genrator'.
    3) then give the authorization group and function group created abobe in the next screen.
    4) Then choose the "create" button in your application tool bar, which will creates the module pool program.
    5) then create one Tcode by chosing "Transaction with parameters( parameter transaction)".
    6) in transaction field give "SM30", select the check box "Skip initial screen".
    7) in the below of that screen you can find the "Default values" frame.
    8) there under the "name of screen field" select the "View name' and 'update".
    9) in value column against to "view name" give you table name, and against to "Update" put 'X' in capital letters.
    save it then you can straight away use this newly created Tcode to maintain your table.
    Note:- 1) make the modification while saving the data into your table using this newly generated program to carry out your validation (even though it looks like standard program; no need to enter the access key).
    2) if you do any changes to your table and press the activate button automatically the table maintenace generator will be goes off, you need to create this again.
    cheers,

  • Pnp  selection screen 000 how to put default values

    Hello everybody,
    my question today is about PNP selection screen 000: How can i put default values in the fields w/o  using variant.
    or can i restrict the numbers of values returned by " get pernr" with conditions not on selection screens.
    thank you in advance!
    Eric.

    use this code to default fields on the event INITIALIZATION. you can modify as per you needs..
    *----------------------------- INITIALISATION -------------------------------------------
    INITIALIZATION.
      pnpstat1-low = '0'.APPEND pnpstat1.
      pnpstat2-low = '3'. APPEND pnpstat2.
      pnptimed = 'I'.
    * Default Dates
      CONCATENATE sy-datum+0(4)  '0101' INTO pnpbegda.
      CONCATENATE sy-datum+0(4)  '1231' INTO pnpendda.

  • How to change default value in a table using ALTER TABLE

    Hi,
    How to change default value in a table
    I have a table TEST which has 2 fields CODE of Datatype VARCHAR2(10) and Indicator as VARCHAR2(1).
    I want to change the default value using ALTER TABLE TEST of field Indicator to 'I'.
    Any help will be needful for me
    Thanks and Regards

    user598986 wrote:
    Hi,
    How to change default value in a table
    I have a table TEST which has 2 fields CODE of Datatype VARCHAR2(10) and Indicator as VARCHAR2(1).
    I want to change the default value using ALTER TABLE TEST of field Indicator to 'I'.
    ALTER TABLE  test
    MODIFY (indicator DEFAULT 'I'); 
    Incidentally, INDICATOR is a keyword in Oracle, so you may have problems using it as a column name. If so, you'll have to enclose the column name in double-quotes, and be careful to use capital letters inside the quotes.
    Edited by: Frank Kulash on Aug 26, 2009 11:42 AM

  • How to set default value of a table using sequence number

    Dear all,
    Does any body know that how to set default value of a table
    using sequence number.
    But I don't want to use trigger to do that.
    Please help!!!!
    Eldon

    Andrew is essentially correct. You can get around the trigger,
    but not the sequence, if (and this may be a very big if) you can
    guarantee that every time an insert is done into the table, from
    whatever source, the statement looks something like
    INSERT INTO tbl VALUES (sequence.nextval,other_columns_values)

  • HOW CAN I PASS A DEFAULT VALUE IN INTERNAL TABLE

    HOW CAN I PASS A DEFAULT VALUE IN INTERNAL TABLE.
    DATA : BEGIN OF ITAB OCCURS 0,
               FIELD1(2) TYPC C DEFAULT   '12',
               FIELD2     TYPE C ,
               END OF ITAB1.
    IT'S GIVING ERROR MESSAGE.
    PLZ LOOK INTO THIS AND GIVE ME CORRECT SOLUTION.
    THANKS
    SURI

    DATA : BEGIN OF ITAB OCCURS 0,
    FIELD1(2) TYPC C,
    FIELD2 TYPE C ,
    END OF ITAB1.
    itab-field1 = '12'.
    itab-field2 = 'A'.
    append itab.
    clear itab-field2.
    itab-field1 = '12'.
    itab-field2 = 'B'.
    append itab.
    clear itab-field2.
    Now everytime u'll have the value for field1 = '12'.
    Regards
    Vasu

  • Default values in SE16 table selection screen

    Hi,
    when we open SE16 along with table name , In the selection screen of that table i want some default values apper for one particular field.
    How can i do that???

    HI.
    STEPS:
    1. Go to SE16.
    2. Enter a table name.
    3. In the selection screen of the table enter values   
    for the fields that you want to set as default values also called variants.
    4. Then click on Goto --> Variant --> Save as Variant
    5. Enter the variant name and short text for the same.
    6. Then click on save on top of the page.
    Steps To retrieve the variant.
    1. go to se16.
    2. Enter table name.
    3. Click on "Get Varian" icon or press "Shift + F5".
    4. Choose the desired variant.
    Thus you will be able to set default values in SE16
    table selection screen.
    Hope this is useful
    Cheers!!!
    Rajesh.

  • Unable to set up the default value in custom object 10,related item section

    Hi,
    Please help me out for the below issue
    Custom Object 10 we renamed to Quarterly Broker Review .In Quarterly Broker Review there is a related item section 'Activity'.
    In Quarterly Broker Review ,Activity related Section ,After clicking on The 'New Task' button 'Account Name' field in Quarterly Broker Review(Parent ) should be prefilled in the Activity Section(Related Item Section) in Account Name Field
    'Account Name' field is a Picklist Read Only field.
    Since it is a picklist read only field i couldn't write the expression in the 'Activity' Related section under 'Account Name' field
    you can also help me by reaching at '[email protected]'
    Thanks,
    Srinivas Merugu

    Hi Srinivas,
    As you know, you can refer to a field in a different object by using JoinFieldValue function. But this function is not available for all the object references. If you refer online help for JoinFieldValue function you would notice that from activity only CustomObjects 1,2 an 3 can be referenced using this function.
    If this is possible for the activity and CustomObject 10 then you go to the field named Account Id in Activity object and set a default value. I guess in the parent object "CustomObject10" Account Id will also be stored in "Account: Integration ID". So this field value can be copied into the Account Id field of Activity.
    Instead you could write a web service program to achieve this.
    Thanks
    Naren

  • Vivado 2015.1 Bug Report: Adding Required Port without Default Value in Custom Interface Definition

    When adding a port using the Custom Interface Definition window and not defining a Default Value, the attached error message appears.  Not only are the html tags visible, but this error should not be thrown in the first place if both Master/Slave Presense is set to "required".  As it is, a port can only be added if a Default Value is given, but can be removed later from the ports table.

    yes,I have successfully install petalinux2015.2,but,the issue still be the same as before,the axi 16550 is not working,when I run echo 123 > /dev/ttyS1,my ttyPS0 stop working and axi com keeping null output...
    then,I try petalinux2014.4+petalinux2014.4,the difference is the ttyPS0 still alive but axi-com still null...
    I found that pl.dtsi file is quite different between the three mode:
    M1,petalinux2014.4+vivado2015.1
    M2,petalinux2015.2+vivado2015.1
    M3,petalinux2014.4+vivado2014.4
    most confuse for me is the interrupt ID,
    in vivado I connect the axi intterrupt to ID 62 but I get different auto generate dts file
    M1:nothing about interrupt and i add manuually in system-top.file
    M2:vivado ID is 61 but dts "interrupts = <0 30 4>"
    M3:vivado ID is 62 but dts "interrupts = <0 31 4>"
    does petalinux auto detect the vivado interrupt connection and ID and write to dts file right or User have to verify and rewrite in ststem-top.dts?
    working hard for the issue and hope for a axi demo including petalinux + vivado ,help please

  • Default value in custom field in webdynpro screen

    Hi.
    We have added a custom field in the Item level for Shopping Cart (SRM 7.1).
    I however want a default value to show up or get populated in that custom field all the time. What is the best way to achieve this?
    Thanks.
    Anuradha.

    depends upon how you have added it.
    if its just though the structures and not added in the WD then you need to do it with doc-change badi.. and this is a preferred option.
    if you have done it though WD then you can default the values using the post exits in the INIT method.
    you can check if the value is blank then populate this default value (so that it does not overwrite the edited values).
    moreover, do you want it as a non editable field or just a default value which user can change on the screen as well?

  • Vendor Line Item Display-Default value for customer items

    Is it possible in selection screen of transaction FBL1N (Vendor line item display) the default value of field "customer items" to be checked?
    Thanks in advance.

    hi Tsiami
    it's not possible. if u want check customer line items go throw this TC:FBL5N
    plz assign points
    regards
    sivareddy.

  • Putting default values in an insert statement

    I am using Oracle 11g.
    I have a table called bonus -
    create table bonus (
    rid int ,
    cid int,
    bonus int,
    vdate date,
    amount int
    Earler, the bonus table did not have the vdate and amount columns, so I was able to use insertion syntax as follows -
    insert into bonus (cid,rid,bonus) <--- note this
    select cid, rid, count(*)
    from checkin
    group by cid,rid having
    count(*) > 2;
    However, since I now have two additional fields, I do not know how to do it. I tried something like
    insert into bonus (cid,rid,bonus, sysdate, 20) <--- note the change
    select cid, rid, count(*)
    from checkin
    group by cid,rid having
    count(*) > 2;
    but it failed. So you see that I would like to enter sysdate and 20 as default values into the vdate and amount fields. I am just not able to figure out a way to do it. Please help.
    Thank you.

    You can insert default values like this,
    INSERT INTO bonus (cid
                      ,rid
                      ,bonus
                      ,vdate
                      ,amount)
         SELECT cid, rid, COUNT (*), SYSDATE, 20
           FROM checkin
       GROUP BY cid, rid
         HAVING COUNT (*) > 2;g.

  • Default Value using Custom Library?

    In Custom Form A, in the global variables i have store the value , How to populate default value to Form B using in custom library.
    I tried using COPY, but its not working?
    COPY('GLOBAL.EXP_PRO',':IT_QF.PRO_NUM');
    Is their any other way to do it?
    Thanks!

    Zaafran Ahmed  Posted: Oct 26, 2010 2:05 PM
    COPY(:GLOBAL.EXP_PRO,'IT_QF.PROJECT_NUMBER');user12207320 Posted: Oct 26, 2010 2:40 PM
    I tried it throws a error,bad bind variable error >
    This will throw an error because the COPY built-in takes 2 Varchar2 parameters (Source and Destination). When you use the COPY built-in, you pass references to the objects not the objects themselves. Therefore, the reference to the global variable :GLOBAL.EXP_PRO would have to be passed as a string to COPY.
    Looking at your original post, you have a COLAN in the destination string. Try the following:
    COPY('GLOBAL.EXP_PRO',':IT_QF.PROJECT_NUMBER');
    /* Change this statement to: */
    COPY('GLOBAL.EXP_PRO','IT_QF.PROJECT_NUMBER');Craig...

  • How to do a Search help on SAP structure field listing custom table data?

    i have a SAP screen (Trans KE52) that they want to have a drop down (search help on).
    The drop down should list values from a custom table.
    How do you do this?
    The values to be displayed are NOT from a structure table but from a transparent table.  i believe I will need a search FM to do this but not sure how it is to be done.
    Any one have ideas?
    Thanks!
    Scott

    Hi Scott,
    You need to go to SE11 and look for a searh help that match your requirment or build one.
    In case you are going to develop one, in the definition tab of the search help look for the selection method and put in the input field the name of your transparent table.
    After that you must specify the fields that you need to appear at the list and the one that is going to be selected for your field. This step you have to do it on the search help parameter grid.
    Regards,
    Eric
    PD. Reward points if this was helpful

  • IW21 - Default values into Activities table on Creation of Notification

    Hi,
    Can anyone suggest a way to default values in to the first line of the Activities table (VIQMMA) on the Additional Information tab when creating a notification?
    Some fields would be dependant on the entry in the field VIQMFE-OTGRP on the Header tab, others such as Start date and times, would be copied directly from the header tab.
    I have been looking to use an Enhancement Point - but where to put it?
    I'm hoping someone may have tried this already?
    Thanks for your help,
    Jan

    Hi,
    Can anyone suggest a way to default values in to the first line of the Activities table (VIQMMA) on the Additional Information tab when creating a notification?
    Some fields would be dependant on the entry in the field VIQMFE-OTGRP on the Header tab, others such as Start date and times, would be copied directly from the header tab.
    I have been looking to use an Enhancement Point - but where to put it?
    I'm hoping someone may have tried this already?
    Thanks for your help,
    Jan

Maybe you are looking for

  • Problems with DVR, STB`s

    I had FIOS put in less than a week ago. The multi-room DVR recordings don`t show up on my STB`s. I have tried resetting them all at least 3 times. I tried resetting them through the internet, but it keeps saying login failed. In Home Agent freezes up

  • Logging into Oracle

    After installing RHEL4. I have created oracle user accounts and set the permissions..now while trying to login as oracle the system gives a error message in the session errors..its showing out of diskspace or installation problem

  • PAL 60hz on VOX USB ???? Help!

    Hi I've just bought a MSI VOX USB to play with my videogames consoles on the tft screen of my portable thinkpad, but I've a problem with the 60Hz mode. In fact, the VOX work good in NTSC 60Hz, but in PAL I can't play in 60Hz! It's work, but the games

  • Macbook screensaver photo subfolders do not show

    In the new operating system, my screensaver will no longer shows the photos in the folder I have designated.  All the photos are in subfolders to that folder.  How can I get it to show the photos in the subfolders as it did prior to my upgrade?

  • Red-eye!!!

    I am unable to reduce red-eye in my photos. I can't select the red-eye option because it is greyed out. In Preferences, I've changed to the Edit option 'when clicking on the photo twice' - but still can select the red-eye option. I have been able to