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

Copy standard program to Zprogram

Former Member
0 Likes
2,400

Hi expert,

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.

Se38> enter RM07MTRB> Execute --> Click Icon DETAIL LIST( Ctr + Shift+ F7) --> ALV Grid control is showed.

Se38> 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.

Abaper.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,458

Hi,

Maintain a new entry in table "mmim_rep_print" for your new report name with same entries as against report name "RM07MTRB".

Check the option "Grid Control" against your copied custom program.

SPRO -> Materials Management -> Inventory Management and Physical Inventory -> Reporting -> Set Up Print Functions for Reporting.

Regards,

Harish

7 REPLIES 7
Read only

Former Member
0 Likes
1,458

Hi,

I think you are not copied menu painter. Go to standard program and serach for pf-status, double click on that and copy the same.

Thanks and Regards,

Chandra

Read only

0 Likes
1,458

Hi ,

Thank you for your qiuck response. After double ckicking was not respond. I can not copy,

Read only

0 Likes
1,458

Hi,

You might be double clicking in your Z problem. You must do in standard program.

Thanks and regards,

Chandra

Read only

Former Member
0 Likes
1,459

Hi,

Maintain a new entry in table "mmim_rep_print" for your new report name with same entries as against report name "RM07MTRB".

Check the option "Grid Control" against your copied custom program.

SPRO -> Materials Management -> Inventory Management and Physical Inventory -> Reporting -> Set Up Print Functions for Reporting.

Regards,

Harish

Read only

0 Likes
1,458

Hi ,

Thank you for your point .

But I open "SPRO -> Materials Management -> Inventory Management and Physical Inventory -> Reporting -> Set Up Print Functions for Reporting." I saw some Zprogram of MM module here some Zprogram not here. So I did not see Z program "ZRM07MTRB". How to find it??

If I add manually new row in table MMIM_REP_PRINT and then I saw in it "SPRO -> Materials Management -> Inventory Management and Physical Inventory -> Reporting -> Set Up Print Functions for Reporting." But in PRODUCTION system I can not add new row manually as well. How to transport new row in table MMIM_REP_PRINT from Develop system to Production system.

Thank you so much.

Read only

0 Likes
1,458

Hi,

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.

Regards,

Harish

Read only

0 Likes
1,458

Hi all,

It's fixed. Thank you so much all expert.