Filling the MDX Cache - Reportaufrufe??

Filling the MDX Cache - Reportaufrufe??

Postby Leonhardt858 » Wed Oct 18, 2006 2:59 pm

Hallo, kann mir jemand die Frage beantworte, wie man mittels der "Filing the MDX-Cache Funktion" SAP und BW Reportaufrufe realisiert?

Des weiteren bräuchte ich dann Anregungen Tips für ein kleines ABAP Script , welches die so produzierten Ergebnisse der Reportaufrufe aus dem MDX Cache in eine CSV Datei exportiert..........

Fall meine Frage in anderer Rubrik besser aufgehoben ist bitte verschieben....

Vielen Dank im Voraus...
Grüße
Chris
Leonhardt858
.
.
 
Posts: 2
Joined: Wed Oct 18, 2006 2:59 pm

Postby Marianne2526 » Tue Oct 24, 2006 8:38 am

Hallo,

wird der MDX Cache nicht implizit bei einer Query gefüllt?

Einen Report, wie ich eine MDX Abfrage durchführe, habe ich - würde das helfen?

Bzw. wofür brauchste das?

Viele Grüße,

Alexander
Marianne2526
..
..
 
Posts: 28
Joined: Thu Apr 06, 2006 2:15 pm

Postby Marianne2526 » Tue Oct 24, 2006 8:44 am

So, gefunden:

Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
  1. DATA: datasetid LIKE bapi6111gen-obj_handle.
  2. DATA: command_text TYPE TABLE OF bapi6111mdx,
  3. wa_command_text LIKE LINE OF command_text,
  4. hs TYPE TABLE OF bapi6111fsd ,
  5. ds TYPE standard TABLE OF bapi6111fsd,
  6. ds2 TYPE sorted TABLE OF bapi6111fsd with unique key COLUMN, row.
  7. DATA: wa_ds LIKE LINE OF ds.
  8. DATA: wa_hs LIKE LINE OF hs,
  9.       dtag TYPE dats,
  10.       tagvon TYPE dats,
  11.       tagnach TYPE dats,
  12.       erlkz TYPE abap_bool,
  13.       charge TYPE charg_d,
  14.       zuadj TYPE dats,
  15.       anzbra TYPE i,
  16.       zaehler TYPE i,
  17.       zaehler2 TYPE i,
  18.       datensatz TYPE i.
  19.  
  20.  
  21.   refresh command_text.
  22.   wa_command_text-line = 'SELECT { [Measures].[BR_ANZBRA] '.
  23.   APPEND wa_command_text TO command_text.
  24.  
  25.   wa_command_text-line = ' } ON COLUMNS, '.
  26.   APPEND wa_command_text TO command_text.
  27.  
  28.   CONCATENATE '{ [BR_CHARGE].[' charge '] } ON ROWS FROM $EC3 ' ''
  29.         INTO wa_command_text-line.
  30.  
  31.   APPEND wa_command_text TO command_text.
  32.  
  33.   CONCATENATE 'WHERE ( [0CALDAY].[' dtag '], [BR_ERLKZ].[' erlkz '], '
  34.         INTO wa_command_text-line.
  35.   APPEND wa_command_text TO command_text.
  36.  
  37. *  wa_command_text-line = ' '.
  38. *  APPEND wa_command_text TO command_text.
  39.  
  40.   CONCATENATE '[BR_CHARGE].[' charge '] ) ' INTO wa_command_text-line.
  41.   APPEND wa_command_text TO command_text.
  42.  
  43.   wa_command_text-line = ' '.
  44.   APPEND wa_command_text TO command_text.
  45.  
  46.  
  47.   CALL FUNCTION 'BAPI_MDDATASET_CREATE_OBJECT'
  48.    IMPORTING
  49.      datasetid          = datasetid
  50.    TABLES
  51.      command_text       = command_text
  52.   .
  53.  
  54. *CALL FUNCTION 'BAPI_MDDATASET_DELETE_OBJECT'
  55. *  EXPORTING
  56. *    datasetid       =
  57. ** IMPORTING
  58. **   RETURN          =
  59.           .
  60.  
  61.  
  62.  
  63.   CALL FUNCTION 'BAPI_MDDATASET_GET_FLAT_DATA'
  64.     EXPORTING
  65.       datasetid       = datasetid
  66.    TABLES
  67.      header          = hs
  68.      data            = ds
  69.   .
GeSHi ©


Viele Grüße,

Alexander
Marianne2526
..
..
 
Posts: 28
Joined: Thu Apr 06, 2006 2:15 pm


Return to Sonstige Module BW, SRM, Berechtigung etc.

Who is online

Users browsing this forum: No registered users and 4 guests