Skip to Content

Regarding Table Maintanence Generator

Through custom program ,how can i update TMG...

I am executing one program in se38 , output will be 5 records, those 5 records again i am saving  into new table

when new record going to be saved in TMG . Date and Time Should be auto filled..

an di dont want to hard code time and date in se 38 program.. it should be auto filled, when new record going to be saved in TMG through program.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

8 Answers

  • Oct 28, 2015 at 06:18 AM

    Hello Ajay,

    For TMG you an populate the Date and Time using the events. Since u are talking about new records, u can use event 05 to populate the date and time fields.

    If u are adding the records through report u have to populate the fields in the report. I think without populating the values in the report , its not possible .

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 28, 2015 at 09:41 AM

    Hi Ajay,

             It's not possible to autofill the date and time while you run the program from se38, to update the SM30 table...

    You want to write maually in report program for the same...or just try with recording and push the data from the sm30 t.code...

    Thanks,

    Vijay SR

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 28, 2015 at 06:04 AM

    Hi ajay,

    You can insert/modify records from se38 into your table(For which TMG is generated) with system variables (date = sy-datum and time = sy-uzuit).

    Regards,

    Shadab.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 28, 2015 at 06:15 AM

    Hi,

    If one needs to include the date & time in the new table,system variables like sy-datum, sy-uzeit have to be used.These give the current parameters as desired.

    Thanks,

    Aditya

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 28, 2015 at 06:17 AM

    Hello Ajay,

    Concatenate sy-datum and sy-uzuit into a variable and pass the same variable value to required field.

    Hope it will helps you.

    Regards,

    Naga

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 28, 2015 at 01:04 PM

    Hello Ajay,

    If I understand you correctly, you are saving the output of a SE38 program to a table.

    Now, you can save via two ways -

    1. By writing insert statement in the same SE38 program. If you are doing so then you can pick up the date and time values from syst structure(names mentioned by Nagendra).

    2. If you are saving via SM30 then you can code TMG Events as suggested by Revan.

    BR.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 28, 2015 at 03:25 PM

    You seem confused.


    TMG is a tool for automatically generating a table maintenance dialog you can access through SM30. It is not something you update from a program. The idea of saving data into a TMG also is nonsense.

    TMG means "Table maintenance generator".

    It's not clear, but you seem to want the date and time of when a record is created or perhaps modified to be automatically set in the table.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 28, 2015 at 03:42 PM

    Did you intend to use some call of VIEW_MAINTENANCE_LOW_LEVEL FM (BC Extended Applications Function Library : Extended table maintenance , Highest level entry / Middle level entry / Lowest level entry) or could you explain/elaborate on following text from your original post ?

    when new record going to be saved in TMG .

    Else there are events in TMG to fill some hidden fields in customer forms (e.g. time changed by kind of fields, BC - Generate Table Maintenance Dialog : Generate Table Maintenance Dialog , Create a Maintenance Dialog, Maintaining and changing an existing maintenance dialogExtended Table Maintenance Events : Event 01: Before Saving the Data in the Database)


    But in your case, you are calling the TMG associated FM so why do you need this ?


    Regards,

    Raymond

    Add comment
    10|10000 characters needed characters exceeded