Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Modifyfng std prg

Former Member
0 Likes
416

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

2 REPLIES 2
Read only

Former Member
0 Likes
375

have you added your fields in fieldcatalog?

regards

shiba dutta

Read only

Former Member
0 Likes
375

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