How to increment table key field automaticly?

Hallo Guys,
I need to increment ID-field in DB table. Another record in table means id = id+1.
Is there any FM how to do it dynamicly or automaticly? Or is there a special setting in
table(data element) so I don't have to do it in my program by inserting new record?
Thanks.

You should use a number range with internal numbering , and FM NUMBER_GET_NEXT (NUmber range: Assigns next free number).
Number ranges are managed by transaction SNRO.

Similar Messages

  • How to set a key field in a local provider for BW workspace

    Hi Experts,
    I've created a local provider through BOBJ analysis for excel / Workspace designer in a BW workspace. However, all the dimensions by default are not having the key field enabled and I'm not able to enable the key field through BW workspace. Also I see the Fact Index Without Key is enabled by default in technical settings, which is not allowing me to select "Fact Index with Key" either. When I go to edit mode, it says "Analytic Index XXX can only be changed in workspace designer". I even tried to go into workspace designer and by selecting the necessary local provider, I coudn't find an option under Local Provider->Reload Provider->Reload (With Changes)->Choose File->Edit Columns to enable the key field(s) for the dimensions.
    Can you please help to locate how to enable the key field for dimensions in local provider.
    Thank you in advance.
    Regards,
    Karthik

    There's nothing to solve. If Reader (XI only) is used only PDF files can be selected. This is how it's supposed to work (although I agree it's silly and should be changed).

  • How to make a key field manadatory, in a Z-Table (SE11)

    Hi,
    I've created a Z-table is se11 and one of the key fields is IWERK. Now the user does not want this field to be blank when they enter data into the table via SM30.
    Does anyone know how to make this field so that a blank entry is not acceptable.
    Many Thanks!

    Hi Robert!
    One way would be to adjust SM30 to a mandatory field (in SE11 of course), but this field sounds like you can assign T001W as a check table. In the foreign key definition, you can give a error message, which is called in case of wrong entries in screens -> there is no empty entry in T001W, you can only maintain valid values and got a value list.
    Regards,
    Christian
    P.S.: No, you need to change SE11->Table maintenance generator->Enviroment->Modification->Maintenance Screens->Element list->Tab Special attr. column Input. Set 'required'. Otherwise empty is still allowed
    Message was edited by: Christian Wohlfahrt

  • How to delete a key field in a Transparent table

    Hi,
    I have created a Transparent table Zemployee in which there are 4 fields ( id, name, job, hiredate). I intend to make primary key consists of 2 fields (id, name) but by mistake I have included job field as well.
    Now I want to change job field from a key field to non-key field, I use SE11 to display the maintainance of the Zemployee table, unmarked the key label column on job field then I save and activate the table but the system fail to activate the Zemployee table.
    So now, what shoul I do to solve this problem ?
    Thanks,

    Hi,
    I have tried again and it work well ( use SE14 as you talk). and now I make job field become key-field again and use se11 to change it to non-key field and it work well too. So I think the problem maybe at the network or somethings else.
    Thanks and regards,

  • Ztable with key field automatically updated..

    Hi guys,
    I have created a Ztable and assigned a t-code and table view.
    I want to know whether it is possible when I am filling new entries, the key field should be automatically populated to the next number(+1 to the last key field) and should be read only
    (example in am zemp table empno is key field and when filling the employee details, system should prompt me the next empno(read-only) and ask me to enter the other details).
    thanks in advance.
    Pavan.

    Hi,
    for each employee u must insert new row and increment the emploee_no.
    In fieldcatalog the field should be non editable mode.i.e ex:wa_fieldcata-edit = 'x'.
    pass this parameter for key field it will bw only in non editable mode.remainning fields r editable.
    try for this ..
    if u hav any suggestion.tommorow i will post the code.
    thanks.
    Balu

  • Table Key field Question

    Hi All,
              According to the requirement I have to make the CURR type field as the key field in one of the table. But dureing activation it's throwing the below warning :
    Key field <Field name> has num. type CURR: Buffering not possible, Transport restricted
    Message no. DT607
    Diagnosis
    A numeric type was used for a key field. A table of this sort cannot be buffered.
    When buffering, the table records for numeric values cannot be stored in plain text. Therefore, no entries are found when buffered numerical values are compared in the WHERE condition, although the table can contain entries satisfying the compare criterion.
    The contents of the table cannot be transported if you specify the full key. You can only tranport table contents specified with a character field, up to the first occurrence of a numeric key field.
    Procedure
    You can enter "no buffering" as an attribute of the technical settings and then repeat the activation process. The table is not buffered.
    If you want to buffer the table, you must replace the type in the key field by a character type, i.e. that you must modify the table.
    If you want to transport the contents of a table, you can only do so for records specified by a character key, up to the first occurrence of a numeric field.
    Is this will be a problem when we transport the entries of the table from DEV to QA ???
    If yes how we can solve this problem??
    Thanks for your help in advance.
    Thanks,
    Greetson

    you cannot transport entries with a transport request (TABU)
    but it should be no problem to fill table in another system with your own export-/import program per file-download/upload or per RFC.
    hope that helps
    Andreas

  • Table key fields

    Hello to all the Experts,
    In a report programming I am accessing a table which I don't know. I have to print the information about the table as an output, how can I know the key fields of the table?, I am already using RTTS but want to identify the key-fields of the table.

    Hi,
    Goto se11 transaction.Give the table name and choose display mode.
    You can see all the keyfields of the table.
    Reward points if useful.
    Thanks and Regards,
    Litta

  • How to Pass table-structure-fields data to BRF PLUS Application

    Dear Eperts,
    i have a question related to BRF Plus management through abap program.
    In brf plus application end, Field1,field2,field3 these 3 are importing parameters.
                                           Table1->structure1->field4,field5 this is the table,with in one structure is there and 2 fields.
    in my abap program, i am getting values of fields let us take field1,field2,field3,field4,field5.
    And my question is
    1) How to pass fields to BRF Plus application from abap program.
    2)How to pass Table data to BRF Plus application from abap program.
    3)How to pass Structure data to BRF Plus application from abap program.
    4)How to get the result data from BRF Plus application to my abap program.
    And finally , how to run FDT_TEMPLATE_FUNCTION_PROCESS.
    How do i get the code automatically when calling the function in brf plus application.
    Regards
    venkata.

    Hi Venkat,
            As said by Jocelyn Dart, you need to go through BRF+ tutorials.
    -->You can see a on of the tutorial from the below link
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/50879cee-f9b5-2e10-039e-b2d6c4b10e6b

  • Dynamics AX 2012 R3: How to populate Payment Reference field automatically?

    Hi guys
    I am trying to configure AX 2012 (R3) to populate the Payment Reference field automatically when processing payments through a payment journal. I have looked for a number sequence in the AR/AP parameters but so far with no luck.
    Please advice
    André

    Unfortunately your post is off topic here, in the TechNet Site Feedback forum, because it is not Feedback about the TechNet Website or Subscription.  This is only one forum among the many that are on the TechNet Discussion Forums, and given
    your post, you likely chose the wrong forum.  This is a standard response I’ve written up in advance to help many people (thousands, really.) who post their question in this forum in error, but please don’t ignore it.  The links I share below I’ve
    collected to help you get right where you need to go with your issue.
    For technical issues with Microsoft products that you would run into as an
    end user of those products, one great source of info and help is
    http://answers.microsoft.com, which has sections for Windows, Hotmail, Office, IE, and other products. Office related forums are also here:
    http://office.microsoft.com/en-us/support/contact-us-FX103894077.aspx
    For Technical issues with Microsoft products that you might have as an
    IT professional (like technical installation issues, or other IT issues), you should head to the TechNet Discussion forums at
    http://social.technet.microsoft.com/forums/en-us, and search for your product name.
    For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), you should head to the MSDN discussion forums at
    http://social.msdn.microsoft.com/forums/en-us, and search for your product or issue.
    If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here:
    http://community.dynamics.com/
    If you really think your issue is related to the subscription or the TechNet Website, and I screwed up, I apologize!  Please repost your question to the discussion forum and include much more detail about your problem, that could include screenshots
    of the issue (do not include subscription information or product keys in your screenshots!), and/or links to the problem you’re seeing. 
    If you really had no idea where to post this question but you still posted it here, you still shouldn’t have because we have a forum just for you!  It’s called the Where is the forum for…? forum and it’s here:
    http://social.msdn.microsoft.com/forums/en-us/whatforum/
    Moving to off topic. 
    Thanks, Mike
    MSDN and TechNet Subscriptions Support
    Did Microsoft call you out of the blue about your computer?
    No, they didn't.

  • How to assign tables to field-symbols

    how can i assign tables to field-symbols

    Hi Raj,
    Declare a fields symbol of type table, see below syntax:
    FIELD-SYMBOLS <FS> [<type>|STRUCTURE <s> DEFAULT <wa>].
    and then create an internal table and write the below code;
    ASSIGN itab to <fs>.
    Refer below eg:
    TYPES: BEGIN OF line,
             col1 TYPE c,
             col2 TYPE c,
           END OF line.
    DATA: wa TYPE line,
          itab TYPE HASHED TABLE OF line WITH UNIQUE KEY col1,
          key(4) TYPE c VALUE 'COL1'.
    FIELD-SYMBOLS <fs> TYPE ANY TABLE.
    ASSIGN itab TO <fs>.
    also see below link:
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb387a358411d1829f0000e829fbfe/content.htm
    Regards,
    Sunil

  • How to find tables and fields in the standard program.

    Hi to all,
                  I am very new to ABAP,
                i am willing to write Report ,that is  if i enter  the vendor number i have to get item,quantity , name...with dateetc....
    My approach was :  i went to ME2L and i gave vendor number and date in that then i got some data ,then i got the program of that list ( it was there in  bottom right) i.e, SAPMSSY0 .
               Then i entered in SE38,in that i go with Display Object LIst to find out the tables and fields,but i failed to found.
    My question is : I can write the reports if i know the fields and tables location....
                              Here i want to know the ,if i enter the Vendor No, i have to get the regarding information about that NO,_for that i have to know the fields and tables_ of item and cost ....every thing ...
           if my question was not clear please ask me i will explain you again...
          Can you help me how to find...
    Thanks in Advance
    Bhanu.

    Hi Bhanu,
       Goto transaction SE84 then follow the path
    SE84-->ABAP DICTIONARY--->FIELDS---->TABLE FIELDS-->ENTER THE TABLE OR FIED NAME you want to find
        and EXECUTE the programm you will get all the information regarding that field or table.
        Hope this solves your problem.
    Thank you,
    Pavan.
    Edited by: PAVAN CHANDRASEKHAR GANTI on Sep 1, 2009 12:57 PM
    Edited by: PAVAN CHANDRASEKHAR GANTI on Sep 1, 2009 12:58 PM

  • Table Key Field Selection

    Hi,
    I just want to ask if there is a way to get the key field/s of a specific SAP table.
    Thanks in advance!!!

    Hi ,
    Can you be more specific on your question.
    If it is Primary key of a table then in transaction SE11 type the Table name and click on display button.
    It will open a table, in that click on the Fields tab where you would be able to see Primary keys being checked under the column name 'key'.
    If it is foreign key, you can find that in the same table in the entry help/check tab under column name 'Foreign key'checked and giving the table where it exists as primary key.
    hope it helps.
    Regards,
    Vivek

  • How to read tables and fields transaction,how to find table from a strucre

    hi all,
      i am having problem in reading tables and fields for developing a customised report. can anybady help me how to extract tabele and fields from a transaction code and how to map table from a structure.
    It will me much help full, if u had any documentation. u should be appreciated.
    Thanking u
    kiran
    Message was edited by:
            kiran

    Hi Kiran,
    You can make use of the tables or Views available.
    Reward If Useful.
    Regards,
    Chitra

  • How to find Tables and Fields from R3 that some InfoSource use

    Hi people,
    I already know how to get the table or fields from R3 that some InfoSource use by "Portal SAP" that our friend here answered.
    Now, I would like to know if there is some way to get this but using some transaction in the ECC6 (R3) or BW.
    I ask by that because I will be some situation that I will have to  know tables and fields that some InfoSource use and maybe there isn't in the Portal SAP.
    Obs.: I don't know ABAP, so I would like some way that doesn't use Debug (ABAP), if it is possible.
    Thank you,
    Rosana.

    Hi Rosanna
    In many cases you will be able to get documentation from help.sap.com regarding the tables and fields used by standard datasources. For example for all the Sales and Distribution datasources you can refer the below link
    http://help.sap.com/saphelp_nw70/helpdata/en/17/cd5e407aa4c44ce10000000a1550b0/frameset.htm
    Here you can click on the different datasources and see both the table and field names. If you are looking for any specific datasource let me know...may be i can help.
    Thanks.

  • How to create Tables and Fields in Java DI API?

    I have the problem to get the handle for IUserTabledMD.
    userTablesMD = (IUserTablesMD) getCompany().getBusinessObject(SBOCOMConstants.BoObjectTypes_oUserTables);
    does not work as in VB (getCompany() gets the ICompany handle).
    and
    userTablesMD = SBOCOMUtil.getUserTablesMD(getCompany(),"");
    needs an additional String!?!?!?!?
    How to get the handle to create new user defined tables?
    I think Fields needs the same methods.
    Regards, Frank.

    could you send me code for creating table using java

Maybe you are looking for

  • HT4557 how do i copy a shared itunes library (from a mac) to another mac

    I have activated home sharing on both macs.  I pick up itunes library from mac 1 on itunes of mac 2, but i can not  seem to compy the songs from mac one to mac 2's itunes.

  • Why does "remove attachments" in Mail now remove entire e-mail?

    This is just one of numerous problems with Lion after installing it on MacBook Pro.  Every time I choose "remove attachments" in Mail, it deletes the entire e-mail and I can't bring it back.  Additionally: 1.     I-Cal entries take forever (delayed e

  • How to inactivate the 'Complex Search' button when using Logical Database

    Hy experts I m using Logical Database for a select and you know that for an GET event by default in selection screen it appears some selection fields for every GET event..I manage to hide the ones that don't interest me but I have a little problem: I

  • Clustering only a subset of documents

    I am using unsupervised classification with CTX_CLS.CLUSTERING. Our document table has several million rows and the user might only want to cluster a few thousand. Because this method of clustering uses the text index on the documents table is it pos

  • Acrobat XI won't connect with Epson Scanner

    I have an Epson Perfection V33 scanner connected to a MacBook Pro. When I open Acrobat XI and choose File > Create > PDF from Scanner, I get this error message: "Error interacting with the scanner. The selected scanner was not found." The scanner is