Skip to Content
author's profile photo Former Member
Former Member

Table for enter record

Hi all.

How to create a table in abap for user to enter information? Let say the user gt 10 records to enter at one shot. Later these record is save in a database after click on the save button.

Any code for reference

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2007 at 03:47 AM

    use table maintenance generator to let the user input the data.

    Use tcode sm30 to achieve the same.

    regards,

    vijay.

    Add a comment
    10|10000 characters needed characters exceeded

    • Gary,

      GO TO SE11

      CREATE A DOMAIN,DATAELEMENT AND A ZTABLE CORRESPONDING TO THAT.

      As said in the previous thread you can create a table maintenance generator and give the user access to say enter the data through that.

      If you want to do it through program first create a Ztable as said above and use update statement in the prorgram to update this ztable.I mean to create a selection screen with all the necessary fields and fill the internal table first and then use this internal table to update the ztable.For more on this,use the keyword UPDATE in SDN search you will be able to get tons of info.

      K.Kiran.

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2007 at 04:07 AM

    hi ,

    first of all u create a table in data dictionary using se11 transactiocode.

    and then design a screen in screen painter using se51 transacation code. in that screen u can provide the table control and one push button.

    in table control u can enter 10 records or more tahn 10 records at on shot.

    in PAI write the logic for saving button

    when 'saving'.

    insert table name.

    i tihnk this is usefull to u

    if it is usefull to don't forgot reward points.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Can i bind a column of the table to a dropdown?

      Actually i intended to hav the similar function like the SE11, view, selection criteria tab.

      Below is the table of the selection criteria

      Table | Fieldname | Operator | Comparsion Value | And/Or

      U enter the table name, the fieldname column will hav all the field found in the table in a dropdown. User can just select a field from the dropdown.

      Can the table control do it?

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.