Académique Documents
Professionnel Documents
Culture Documents
*&---------------------------------------------------------------------*
*& report ztej_intab1 *
*&
*
*&---------------------------------------------------------------------*
*&
*
*&
*
*&---------------------------------------------------------------------*
*tables declaration
*select options
*initialization
initialization.
cust_no-low = '01'.
cust_no-high = '5000'.
cust_no-sign = 'i'.
cust_no-option = 'bt'.
append cust_no.
at selection-screen on cust_no.
loop at screen.
if cust_no-low < 1 or cust_no-high > 5000.
message e001(ztj1).
endif.
endloop.
start-of-selection.
write:/1 sy-vline,
kna1-kunnr under 'customer no.' hotspot on,
16 sy-vline,
kna1-name1 under 'name',
61 sy-vline,
kna1-ort01 under 'city',
86 sy-vline,
kna1-land1 under 'country',
103 sy-vline.
hide: kna1-kunnr.
endselect.
uline.
at line-selection.
if sy-lsind = 1.
perform sales_ord.
endif.
if sy-lsind = 2.
perform item_det.
endif.
*top of page
top-of-page.
format color 1.
uline.
format color 3.
write : 1 sy-vline,
3 'customer no.',
16 sy-vline,
18 'name',
61 sy-vline,
63 'city',
86 sy-vline,
88 'country',
103 sy-vline.
uline.
if sy-lsind = 1.
uline.
format color 1.
format color 3.
write : 1 sy-vline,
3 'customer no.',
16 sy-vline,
18 'sales order no.',
40 sy-vline,
42 'date',
60 sy-vline,
62 'creator',
85 sy-vline,
87 'doc date',
103 sy-vline.
uline.
endif.
if sy-lsind = 2.
uline.
format color 1.
uline.
format color 3.
write : 1 sy-vline,
3 'sales order no.',
40 sy-vline,
42 'sales item no.',
60 sy-vline,
62 'order quantity',
103 sy-vline.
uline.
endif.
*end of page
end-of-page.
uline.
write :'user :',sy-uname,/,'date :', sy-datum, 85 'end of page:',
sy-pagno.
skip.
*&---------------------------------------------------------------------*
*& form sales_ord
*&
*& first secondary list form
*&---------------------------------------------------------------------*
form sales_ord .
write:/1 sy-vline,
vbak-kunnr under 'customer no.' hotspot on,
16 sy-vline,
vbak-vbeln under 'sales order no.' hotspot on,
40 sy-vline,
vbak-erdat under 'date',
60 sy-vline,
vbak-ernam under 'creator',
85 sy-vline,
vbak-audat under 'doc date',
103 sy-vline.
hide : vbak-vbeln.
endselect.
uline.
*&---------------------------------------------------------------------*
*& form item_det
*&
*& second secondary list form
*&---------------------------------------------------------------------*
form item_det .
endselect.
uline.
endform. " item_det