Write a program which will print report of material details have selection screen as follows:
Material Number: SELECT-OPTIONS FOR MARA-MATNR(S1)
Material Type: SELECT-OPTIONS FOR MARA-MTART(S2)
Output as follows:
User Name: <d1>
Runtime: <d2>
Rundate: <d3>
Material No: <d4_1> to <d4_2> Material Type: <d5_1> to <d5_2>
Material No. Mat Type Mat Desc.Net Wt. UOM
<i1>
<i2>
<i3>
<i4>
<i5>
<i1>
<i2>
<i3>
<i4>
<i5>
|<i1> |<i2> |<i3> |<i4> |<i5>
D1 >> SY-UNAME
D2 >>SY-UZEIT
D3 >>SYDATUM
D4 >> 1. S1-LOW 2. S1-HIGH
D5 >> 1. S2-LOW 2. S2-HIGH
I1 >> MARA-MATNR
I2 >>MARA-MTART
I3 >>MAKT-MAKTX (SELECT MAKTX FOR ALL ENTRIES IN
IT_MARA AND SPRAS = SY-LANGU)
I4 >>MARA-NTGEW
I5 >>MARA-GEWEI