2006 Aug 13 3:46 PM
*
************************************************************************
TYPES: BEGIN OF output,
ZDATEIN type Zemp-zdatein,
ZTIMEIN type Zemp-ztimein
amt type i,
END OF output.
TYPES: output1 TYPE STANDARD TABLE OF output.
DATA: i_output1 TYPE output1,
i_output2 TYPE output1 WITH HEADER LINE.
PERFORM get_data.
FORM get_data .
select ZDATIN ZTIMIN into
table output2
from Zemp.
loop at output2.
output2-amt = 123.
modify output2 from output2 transporting amt
endloop.
output1[] = output2[].
eNDFORM. " get_data
i should get output1-amt=123 in the ALV DISPLAY UNDER AMT COL ,can any one help me
*
************************************************************************
TYPES: BEGIN OF output,
ZDATEIN type Zemp-zdatein,
ZTIMEIN type Zemp-ztimein
amt type i,
END OF output.
TYPES: output1 TYPE STANDARD TABLE OF output.
DATA: i_output1 TYPE output1,
i_output2 TYPE output1 WITH HEADER LINE.
PERFORM get_data.
FORM get_data .
select ZDATIN ZTIMIN into
table output2
from Zemp.
loop at output2.
output2-amt = 123.
modify output2 from output2 transporting amt
endloop.
output1[] = output2[].
eNDFORM. " get_data
i should get output1-amt=123 in the ALV DISPLAY UNDER AMT COL ,can any one help me
2006 Aug 13 3:50 PM
did u check the data after the modify command? Place a breakpoint at MODIFY command and check what is the sy-subrc value. Check the data in the internal table before displaying in the ALV.
Cheers
VJ
2006 Aug 13 3:55 PM
Use sy-tabix in your modify statement
loop at output2.
output2-amt = 123.
modify output2 index sy-tabix.
endloop.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |