Ansicht
Dokumentation

CL_RSDU_GENPART_COND_ORA - Partitionierungs Conditions

CL_RSDU_GENPART_COND_ORA - Partitionierungs Conditions

CL_GUI_FRONTEND_SERVICES - Frontend Services   General Material Data  
Diese Dokumentation steht unter dem Copyright der SAP AG.
SAP E-Book

Funktionalität

Wertebereich einer Partition.

Beziehungen

Funktionsbaustein RSDU_GENPART_INFO_GET

Beispiel

Das Partitionierungsschema von Oracle entspricht dem einer sortierten, ggf. mehrspaltigen Liste (z.B. Tabellenindex). Alle Merkmalsausprägungen, die in der sortierten Liste kleiner dem Partitionierungsschema der aktuellen Partition und größer gleich dem Partitionierungsschema der vorhergehenden Partition sind, werden in der aktuellen Partition abgelegt.

Im folgenden Beispiel ist eine Tabelle nach F1, F2 und F3 partitioniert (RANGE). Die Methode get_open_sql_cond liefert eine OPEN SQL Bedingung zurück, die den Wertebereich einer Partition mit den Grenzen (F1 = 4, F2 = 0, F3 = 0) hat. Die vorhergehende Partition hat die Grenzen (F1 = 2, F2 = 4, F3 = 2).

DATA:
l_r_cond TYPE REF TO cl_rsdu_genpart_cond_ora,
l_t_cond_low TYPE cl_rsdu_genpart_cond_ora=>_t_cond_val,
l_t_cond_high TYPE cl_rsdu_genpart_cond_ora=>_t_cond_val,
l_s_cond TYPE cl_rsdu_genpart_cond_ora=>_s_cond_val,
l_t_part_ranges TYPE cl_rsdu_genpart_cond_ora=>_t_part_ranges,
l_tx_part_ranges TYPE cl_rsdu_genpart_cond_ora=>_tx_part_ranges,
l_condition TYPE string.

*Set low values
l_s_cond-column_name = 'F1'.
l_s_cond-val = '2'.
APPEND l_s_cond TO l_t_cond_low.

l_s_cond-column_name = 'F2'.
l_s_cond-val = '4'.
APPEND l_s_cond TO l_t_cond_low.
l_s_cond-column_name = 'F3'.
l_s_cond-val = '2'.
APPEND l_s_cond TO l_t_cond_low.

*Set high values
l_s_cond-column_name = 'F1'.
l_s_cond-val = '4'.
APPEND l_s_cond TO l_t_cond_high.
l_s_cond-column_name = 'F2'.
l_s_cond-val = '0'.
APPEND l_s_cond TO l_t_cond_high.
l_s_cond-column_name = 'F3'.
l_s_cond-val = '0'.
APPEND l_s_cond TO l_t_cond_high.

CALL METHOD cl_rsdu_genpart_cond_ora=>factory
EXPORTING
i_t_cond_low = l_t_cond_low
i_t_cond_high = l_t_cond_high
i_branch = 'R'
IMPORTING
e_cond = l_r_cond.

l_r_cond->get_opensql_cond( CHANGING c_condition = l_condition ).

Ergebnis (l_condition):

( ( F1 > 2 ) AND ( F1 < 4 ) )

OR ( ( F1 = 2 ) AND ( F2 > 4 ) ) OR ( ( F1 = 2 ) AND ( F2 = 4 ) AND ( F3 >= 2 ) )

OR ( ( F1 = 4 ) AND ( F2 < 0 ) ) OR ( ( F1 = 4 ) AND ( F2 = 0 ) AND ( F3 < 0 ) )

Hinweise

Weiterführende Informationen






rdisp/max_wprun_time - Maximum work process run time   TXBHW - Original Tax Base Amount in Local Currency  
Diese Dokumentation steht unter dem Copyright der SAP AG.

Length: 2792 Date: 20240424 Time: 100344     sap01-206 ( 47 ms )