cancel
Showing results for 
Search instead for 
Did you mean: 

Concept/use of temporary tab

Former Member
0 Kudos

Hi,

I am a functional consultant and using temporary table concept on writing some enhancement.

I want the temporary table to store the data archived from the SAP Objects. I just want to confirm that is it possible to use that data in temporary table to display anytime during the transaction process. And the second question is that what is the period till which the data in temporary table exists in the system so that I can take the reference of same as a information while executing some functionality.

To explain my question in details. Here is my business scenario

My scenario is that during the notification save event, function module will get triggered and identify the parameters from notification and store it in a temporary table. Before, this process my function module will carry the checks defined and say that the notification seems to be repetitive and then only it can store that data in temporary table. Now when there are some entries in the table the this table alongwith some warning message should get pop us during the notification save process. Is it possible?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

peter_atkin
Active Contributor
0 Kudos

Raghunandan Iyer,

I'm assuming you mean a database table...

If all this processing is perfromed before the notification is saved, then why do you need to store data in a table at all?

Why not create some global variables, or push the data to memory using [import/export|http://help.sap.com/erp2005_ehp_03/helpdata/EN/fc/eb3bf8358411d1829f0000e829fbfe/frameset.htm].

PeteA

Former Member
0 Kudos

Hi,

This is a temporary table and will identify the number of notifications created on the objects for the defined period i.e. 5 days (This is the same object on which i am creating the notification).

Now when my function module will identify the notifications (Say 5 numbers created on same object in last 10 days), those notificatipons (Details like notification number, type, description, date & time when created)should be stored in the temporary table. This whole process will take place during the notification save instance.

Now when i have some entries in my temporary table then before saving the notification the above temporary table(Where the details of the 5 notifications are stored) and a warning message should get displayed.

Thanks

peter_atkin
Active Contributor
0 Kudos

Raghunandan Iyer,

Why don't you simply call IW28/29 with the appropriate parameters?

Here's some similar code for the order list-edit report. It runs TCode IW38 and you then import the data table:


  submit riaufk20 "via selection-screen
                      with aufnr in r_aufnr_g
                      with iwerk    = 'UK01'
                      with dy_ofn   = ' '
                      with dy_iar   = 'X'
                      with dy_mab   = ' '
                      with dy_his   = ' '
                      with dy_tcode = 'IW38'
                      with datuv    = '19000101'
                      with datub    = '99991231'
                      with dy_selm = 'D'          " <<--- this is the important bit
                      and return.

  import sel_tab from memory id 'RIAUFK20'.

  loop at sel_tab.
    " perform your customer-specific logic
  endloop.

PeteA

[www.pjas.com]

Answers (0)