Code: Alles auswählen.
If Tabelle-Feld Stelle 2 des Namens = '1' ......
Code: Alles auswählen.
If Feldname+1(1) = '1'
Code: Alles auswählen.
If odsobject+1(1) ='1'...
Code: Alles auswählen.
odsobject TYPE ty_rsdodso
Code: Alles auswählen.
odsobject = tabelle-odsobject.
Code: Alles auswählen.
IF odsobject+1(1) = 1.
Code: Alles auswählen.
DATA: odsobject TYPE RSDODSO-ODSOBJECT
Code: Alles auswählen.
DATA: odsobject TYPE rsdodsobject
Code: Alles auswählen.
READ TABLE lt_table01 INTO ls_table01 INDEX 1.
odsobject = ls_tabl01-odsobject.
IF odsobject+1(1) = 1.
...
ENDIF.
Code: Alles auswählen.
LOOP AT lt_table01 ASSIGNING <ls_line01> WHERE name+1(1) EQ '1'.
" Whatever
ENDLOOP.
Code: Alles auswählen.
IF odsobject+1(1) = 1.
Code: Alles auswählen.
IF odsobject+1(1) = '1'.
Code: Alles auswählen.
TYPE-POOLS: vrm.
TYPES:
BEGIN OF ty_rsdodso,
odsobject TYPE rsdodso-odsobject,
objvers TYPE rsdodso-objvers,
txtlg TYPE rsdodsot-txtlg,
END OF ty_rsdodso,
BEGIN OF ty_rsdodsot,
txtlg TYPE rsdodsot-txtlg,
END OF ty_rsdodsot.
DATA:
l_s_rsdodso TYPE ty_rsdodso,
l_t_rsdodso TYPE STANDARD TABLE OF ty_rsdodso,
l_s_rsdodsot TYPE ty_rsdodsot,
l_t_rsdodsot TYPE STANDARD TABLE OF ty_rsdodsot,
param TYPE vrm_id,
values TYPE vrm_values,
value LIKE LINE OF values,
odsobject TYPE rsdodso-odsobject.
FIELD-SYMBOLS:
<rsdodso_fields> TYPE ty_rsdodso,
<rsdodsot_fields> TYPE ty_rsdodsot.
SELECT-OPTIONS: so_odsob FOR <rsdodso_fields>-odsobject.
PARAMETERS: layer(30) AS LISTBOX VISIBLE LENGTH 30,
modul(30) AS LISTBOX VISIBLE LENGTH 30,
gruppe(30) AS LISTBOX VISIBLE LENGTH 30.
AT SELECTION-SCREEN OUTPUT.
param = 'layer'.
value-key = 'L01'.
value-text = 'Layer 1 Extraktion'.
APPEND value TO values.
value-key = 'L02'.
value-text = 'Layer 3 Harmonisierung'.
APPEND value TO values.
value-key = 'L03'.
value-text = 'Layer 5 Datamart'.
APPEND value TO values.
value-key = 'L04'.
value-text = 'Layer 7 Präsentation'.
APPEND value TO values.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = param
values = values.
Refresh values.
param = 'modul'.
value-key = 'M01'.
value-text = 'Modul CO'.
APPEND value TO values.
value-key = 'M02'.
value-text = 'Modul CP'.
APPEND value TO values.
value-key = 'M03'.
value-text = 'Modul CS'.
APPEND value TO values.
value-key = 'M04'.
value-text = 'Modul DP'.
APPEND value TO values.
value-key = 'M05'.
value-text = 'Modul FI'.
APPEND value TO values.
value-key = 'M06'.
value-text = 'Modul HR'.
APPEND value TO values.
value-key = 'M07'.
value-text = 'Modul LE'.
APPEND value TO values.
value-key = 'M07'.
value-text = 'Modul MD'.
APPEND value TO values.
value-key = 'M08'.
value-text = 'Modul MM'.
APPEND value TO values.
value-key = 'M09'.
value-text = 'Modul PM'.
APPEND value TO values.
value-key = 'M10'.
value-text = 'Modul PP'.
APPEND value TO values.
value-key = 'M11'.
value-text = 'Modul PS'.
APPEND value TO values.
value-key = 'M12'.
value-text = 'Modul QM'.
APPEND value TO values.
value-key = 'M13'.
value-text = 'Modul SD'.
APPEND value TO values.
value-key = 'M14'.
value-text = 'Modul SN'.
APPEND value TO values.
value-key = 'M15'.
value-text = 'Modul TD'.
APPEND value TO values.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = param
values = values.
Refresh values.
param = 'gruppe'.
value-key = 'G01'.
value-text = 'Gruppe SL'.
APPEND value TO values.
value-key = 'G02'.
value-text = 'Gruppe BI'.
APPEND value TO values.
value-key = 'G03'.
value-text = 'Gruppe SH'.
APPEND value TO values.
value-key = 'G04'.
value-text = 'Gruppe PU'.
APPEND value TO values.
value-key = 'G05'.
value-text = 'Gruppe IM'.
APPEND value TO values.
value-key = 'G06'.
value-text = 'Gruppe GL'.
APPEND value TO values.
value-key = 'G07'.
value-text = 'Gruppe AP'.
APPEND value TO values.
value-key = 'G08'.
value-text = 'Gruppe AR'.
APPEND value TO values.
value-key = 'G09'.
value-text = 'Gruppe OM'.
APPEND value TO values.
value-key = 'G09'.
value-text = 'Gruppe PC'.
APPEND value TO values.
value-key = 'G10'.
value-text = 'Gruppe 0G'.
APPEND value TO values.
value-key = 'G11'.
value-text = 'Gruppe PA'.
APPEND value TO values.
value-key = 'G12'.
value-text = 'Gruppe PT'.
APPEND value TO values.
value-key = 'G13'.
value-text = 'Gruppe PY'.
APPEND value TO values.
value-key = 'G14'.
value-text = 'Gruppe TA'.
APPEND value TO values.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = param
values = values.
START-OF-SELECTION.
PERFORM infos.
READ TABLE l_t_rsdodso INTO l_s_rsdodso INDEX 1.
odsobject = l_s_rsdodso-odsobject.
IF odsobject+3(1) = 1.
PERFORM ausgabe.
ENDIF.
*&---------------------------------------------------------------------*
*& Form infos
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM infos.
SELECT rsdodso~odsobject txtlg rsdodso~objvers
INTO CORRESPONDING FIELDS OF TABLE l_t_rsdodso
FROM rsdodso INNER JOIN rsdodsot ON rsdodsot~odsobject = rsdodso~odsobject
WHERE rsdodso~objvers = 'A' AND rsdodso~odsobject in so_odsob.
ENDFORM. "infos
*&---------------------------------------------------------------------*
*& Form ausgabe
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM ausgabe.
LOOP AT l_t_rsdodso ASSIGNING <rsdodso_fields> .
WRITE:/ <rsdodso_fields>-odsobject,
<rsdodso_fields>-txtlg,
<rsdodso_fields>-objvers.
ENDLOOP.
ENDFORM. "ausgabe
Code: Alles auswählen.
DELETE l_t_rsdodso WHERE odsobject+3(1) <> '1'.
PERFORM ausgabe.
Code: Alles auswählen.
LOOP AT l_t_rsdodso ASSIGNING <rsdodso_fields> WHERE odsobject+3(1) = '1'.
" Ausgabe.
endloop.
Folgende Benutzer bedankten sich beim Autor a-dead-trousers für den Beitrag:
patlau