Copy standard program to Zprogram
I copied all code (Documentation, Variants, User interface , Screen) from standard program RM07MTRB to ZRM07MTRB but runthe ALV layout of ZRM07MTRB was not similar the ALV layout RM07MTRB .
The following step by step to produce that.
> enter RM07MTRB> Execute --> Click Icon DETAIL LIST( Ctr + Shift+ F7) --> ALV Grid control is showed.
> enter ZRM07MTRB> Execute --> Click Icon DETAIL LIST( Ctr + Shift+ F7) --> ALV control is not showed (only show List ALV )
I want ZRM07MTRB is the same layout with RM07MTRB after clicking on Icon Detail List (Ctr + Shift+ F7).
Please help me explain that and how to fix it.
Thank you so much all.
If you are unable to maintain your Z program in this configurtion, then do the following chnage in your ZRM07MTRB program.
1. Copy the include program RM07ALVI to "ZRM07ALVI".
2. Change the code at Line No :106 as mentioned below:
alv_print-no_print_selinfos = 'X'. alv_print-no_coverpage = ' '. alv_print-no_print_listinfos = 'X'. alv_detail_func = 'REUSE_ALV_LIST_DISPLAY'. TO alv_print-no_print_selinfos = 'X'. alv_print-no_coverpage = ' '. alv_print-no_print_listinfos = 'X'. alv_detail_func = 'REUSE_ALV_GRID_DISPLAY'. "Change LIST to GRID display.
3. Now inside program ZRM07MTRB at line 162, change the include name "INCLUDE rm07alvi." to "INCLUDE ZRM07ALVI.".
4. save and activate the report ZRM07MTRB and include ZRM07ALVI and execute.