Skip to Content
author's profile photo
Former Member

TABALE MAINTENANCE GENERATOR : EVENTS

I need to use table maintenance generator to maintain a custom table through a custom transaction.

I am using event BEFORE SAVE (01). It is working fine but small issues.

1)After entering new entries for some fields(KEY FIELDS), when I press save button, remaining fields values to be populated. Seletion statements have written in FORM of the EVENT 01 (BEFORE SAVE).

But the values for remaining fieldsare not populating immediately and but populating when I press BACK (F3). My requirement is with out presssing BACK or F3 , fields to be populated.

(note: SAP internal code..values are coming into TOTAL structure..then I manipulated this internal table)

PLEASE GUIDE ME, WHICH EVENT TO BE USED. importantly, which internal table/structure (like TOTAL we used for this requirement ) to be used for the proposed new EVENT? (Because lot of R&D to be done to find SAP structure)

2) second requirement is: even after entering new entries, if we press ENTER, then also it should behave like SAVE like in the previous requirement. Please help me to find the EVENT and Internal SAP generated structure (like TOTAL we used for this requirement ).

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 04:24 AM
    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 05:09 AM

    thanks. But I have already gone through this document. This document is useful for beginers for EVENTs in Table maintenance generator.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      write the code in 'AT CREATE' Event, so that when the user <b>clicks on ENTER key</b> after entering the key fields...the rest of the fields will get populated.

      05- Creating a new entry.

      pls let me know if u have any further issues.

      sample code:

      ----


      ***INCLUDE LZCOSTEP1F01 .

      ----


      ----


      • FORM AT_CREATE *

      ----


      form at_create.

      if zco001-zctry = 'AE'.

      zco001-zoloc20 = 'short text'.

      endif.

      endform. "at_create

      Regards,

      Anjali

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 12:24 PM

    Anjali,

    I have gone through the document(PDF) you have posted in SDN forum regarding Table maintenance generator.

    I think, you understood my requirement.

    we get the values into a structure/table TOTAL when we use EVENT 01:before create.

    similarly values into EXTRACT structure for event 02 AFTER SAVE.

    Then if we use 05: EVENT create new entries, what table to be used to fetch that we entered in SM30 screen?

    Please help me in this regard.

    Add comment
    10|10000 characters needed characters exceeded