Skip to Content

Creating Multiple Entries using Table Maintenance Generator

Hello Gurus,

I have requirement to create custom table and TMG for the table. In the table there is a key field that should populate automatically, I have written a logic in event 05 as this is new entry and it is working fine. And the logic is, get the entries based on key fields which entered by user and get the highest value record. If record exists then add the 1 to highest value of key field and populate, if record didnt exist then pass 1 to the key field.

My logic is working if user enters only one entry. While testing I came to know that user may enter more than one new entries and click on enter in this situation my logic is failing.

I have searched that, We need to modify TOTAL and EXTRACT internal tables but am not able to modify. Please suggest me how to do.

Thanks and Regards,

Muralikrishna Peravali.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Aug 10, 2016 at 01:34 AM

    Hi Murali,

    your requirement is : you want to get all entries in table control, and modify some field, is it?

    i think you can using table event to achieve this, i will give you 1 example.

    1. i have already input 2 entries in table control, when i input the 3rd one.

    2 .in debug ,you can see the first 2 entries are already there, and third entry is in strcuture

    <table1>, you can do any change you want. then it will impact table total and extract,

    hope this will help you, if you still can't achieve your requirement, suggest you to change code in maintanance view screen PAI.


    Image 003.png (3.8 kB)
    Image 002.png (13.9 kB)
    Image 001.png (11.4 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 09, 2016 at 09:44 PM

    Hi Murali,

    Check this thread, i hope get your solution:

    Regards,

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 16, 2016 at 07:34 AM

    Hello All,

    Thank you for the suggestions. I have resolved it using field symbol. As 05 event will trigger multiple times if user enters multiple entries so the values will be stored in <TABLE1>. So, I have modified <TABLE1>.

    Thanks and Regards,

    Muralikrishna Peravali.

    Add a comment
    10|10000 characters needed characters exceeded

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.