To simply the process of updating time variables dynamically, thus use for broadcasting reports.
An attempt is made to create a process unlike standard solution which was available in 3.5 for updating time variables using TVARVC table.
Entries in TVARVC table and update program scheduled daily. You can refer to OSS notes 557314 for creating entries in TVARVC table.
Current month 01.2014 :
Field | Data element | Data type | Length | Short Description |
PARAMNM | RSRVARI | CHAR | 30 | Variant |
VNAM | RSZVNAM | CHAR | 30 | Name (ID) of a Report Variable |
DATA_PROV | ZDATA_PROV | CHAR | 30 | Data Provider |
NAME | RVARI_VNAM | CHAR | 30 | ABAP: Name of Variant Variable |
OWNER | RSOWNER | CHAR | 12 | Owner (Person Responsible) |
TSTPNM | RSTSTPNM | CHAR | 12 | Last changed by |
TIMESTMP | RSTIMESTMP | DEC | 15 | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) |
SIGN | TVARV_SIGN | CHAR | 1 | ABAP: ID: I/E (include/exclude values) |
OPTI | TVARV_OPTI | CHAR | 2 | ABAP: Sel. option (EQ/BT/CP/...) |
LOW | TVARV_VAL | CHAR | 45 | ABAP/4: Sel. value (LOW or HIGH value, external format) |
HIGH | TVARV_VAL | CHAR | 45 | ABAP/4: Sel. value (LOW or HIGH value, external format) |
Above table is used to store the entries of Time variables of BEx variants required to updated.
The program reads from standard table RSRPARAMETRIZA and lists the variables of selected variant
The TVARVC variable can be mapped to time variable from the list
The above program should be scheduled daily so that it updates standard table RSRPARAMETRIZA table for the records available in custom Z table.
*The programs are attached to the document.
The variant is read from RSRPARAMETRIZA
Displayed in the ALV GRID
Select the time variable and assign variable from TVARVC table
Save the entry
The entry is saved in ZRSRPARAMETRIZA
Standard table is updated with values of picked variable from TVARVC table
The variant is read from RSRPARAMETRIZA
If the entry is available in ZPARAMETRIZA table then corresponding TVARVC table value is picked
Displayed in the ALV GRID (Highlighted)
Select the time variable and change variable from TVARVC table
Save the entry
The entry is updated in ZRSRPARAMETRIZA table
Standard table is updated with values of picked variable from TVARVC table
The variant is read from RSRPARAMETRIZA
If the entry is available in ZPARAMETRIZA table the corresponding TVARVC table value is picked
Displayed in the ALV GRID
Select the required record and delete
The record is deleted from ZPARAMETRIZA table
Here the variant is saved with month 2013 for Cal. Year/Month variable.
As you can observe from the screen shot, options to save variant as user specific.
Note : The user specific variants cannot be updated with this process, since no technical name would available.
Select the record of time variable to hook with variable from TVARVC using F4 function.
We have selected, single value (MMYYYY), actual month -0.
Here you can see tha variant have overwritten the value 12.2013 with new value 01.2014.
Below listed two programs must be executed to update the corresponding values in table.
Update program for TVARVC
Update program for RSRPARAMETRIZA - ZUPDRSRPARAMETRIZA
With above solution the udpated time variables can be used for broadcasting.
User | Count |
---|---|
11 | |
10 | |
7 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |