Code: Alles auswählen.
TYPES: BEGIN OF ty_jointab1,
matnr TYPE v_mara_makt-matnr,
matkl TYPE v_mara_makt-matkl,
mtart TYPE v_mara_makt-mtart,
maktx TYPE v_mara_makt-maktx,
meins TYPE v_mara_makt-meins,
END OF ty_jointab1.
DATA:
ls_jointab1 TYPE ty_jointab1,
lt_jointab1 TYPE TABLE OF ty_jointab1,
ls_v_mara_makt TYPE v_mara_makt,
lt_v_mara_makt TYPE TABLE OF v_mara_makt.
*Selection Screen
SELECTION-SCREEN BEGIN OF BLOCK material WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: pa_matnr FOR ls_v_mara_makt-matnr.
* pa_matkl FOR ls_v_mara_makt-matkl,
* pa_mtart FOR ls_v_mara_makt-mtart.
* PARAMETERS pa_werks TYPE marc-werks DEFAULT '2200' OBLIGATORY.
SELECTION-SCREEN END OF BLOCK material.
*Start of Selection
SELECT SINGLE matnr matkl mtart meins maktx
FROM v_mara_makt INTO ls_jointab1
WHERE matnr = pa_matnr.
APPEND ls_jointab1 TO lt_jointab1.
CALL METHOD cl_demo_output=>display_data
EXPORTING
value = lt_jointab1.
* name =
.
Folgende Benutzer bedankten sich beim Autor wreichelt für den Beitrag:
abap_frischling