2007 Jan 04 8:32 AM
Dear Experts,
my requiremnt is I need to add some additional fields in the report for standard program 'RIMHIO00', So i copied into zprogram ,
The standard program is displaying data from object_tab internal table. I collected extra fields in i_final internal table ,now i want to know where to modify the program to display data from my internal table i_final.
i changed in "reuse_alv_grid_disply" it is not working, i think in some other places also i need to make changes .
can anyone send me the details where to modify the code.
thanks in advance
karthik
hi,
in ur new table add ur external fields with one of the key fields of the original table too in tht..
after tht do a loop at ur actual standard table like -
loop at itab_actual.
read table itab_new with key field1 = itab_actual-field1.
if sy-subrc = 0.
move-corresponding itab_actual to itab_final.
itab_final-field_a = itab_new-field_a.
itab_final-field_b = itab_new-field_b.
append itab_final.
endif.
endloop.
loop at itab_final.
write:/ itab_final-fied_a,
-
-
endloop
and add the fields to ur fieldcatalog and pass itab_final to Reuse_alv_grid function now.
amit
Message was edited by:
Amit Tyagi
2007 Jan 04 8:35 AM
2007 Jan 04 8:43 AM
hi,
in ur new table add ur external fields with one of the key fields of the original table too in tht..
after tht do a loop at ur actual standard table like -
loop at itab_actual.
read table itab_new with key field1 = itab_actual-field1.
if sy-subrc = 0.
move-corresponding itab_actual to itab_final.
itab_final-field_a = itab_new-field_a.
itab_final-field_b = itab_new-field_b.
append itab_final.
endif.
endloop.
loop at itab_final.
write:/ itab_final-fied_a,
-
-
endloop
and add the fields to ur fieldcatalog and pass itab_final to Reuse_alv_grid function now.
amit
Message was edited by:
Amit Tyagi
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |