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 SAP programm to Zprogram.

Former Member
0 Likes
610

Hi Expert,

I copied all Included , variants, documentation , screen and user interface from the standard SAP program to Zprogram via SE38 transaction , and then run Zprogram --> Choose SCOP OF LIST is BEST ALV but the program did not show ALV report.

How to show ALV ? Please help me ....

Any help will be greatly appreciated.

Thank you so much.

4 REPLIES 4
Read only

bbalci
Contributor
0 Likes
569

Hello

Is this program using REUSE_ALV_GRID_DISPLAY function?

This function has a parameters program name and include name,

maybe they were hardcoded in standard program,

convert them to your new program and include name.

Than make a global search in your program for that program name

it can be used in another steps.

Read only

Former Member
0 Likes
569

Hi Bulent Balci ,

This program is using the function"REUSE_ALV_GRID_DISPLAY" .

Below is code which I copied from ME2W standard transaction.

data: g_callback_program type sy-repid.

data: l_is_layout type slis_layout_alv.

data: lt_fieldcat type slis_t_fieldcat_alv.

data: eb_variant like disvariant.

data: gt_outtab type table of gt_outtab_type.

data: g_exit_caused_by_caller.

data: gs_exit_caused_by_user type slis_exit_by_user.

call function 'REUSE_ALV_GRID_DISPLAY'

exporting

i_buffer_active = ' '

i_callback_program = g_callback_program

i_callback_pf_status_set = 'SET_PF_STATUS'

i_callback_user_command = 'USER_COMMAND_ME2V'

i_structure_name = 'MERE_OUTTAB_ME2V'

i_background_id = 'ALV_BACKGROUND'

is_layout = l_is_layout

i_save = 'A'

is_variant = eb_variant

importing

e_exit_caused_by_caller = g_exit_caused_by_caller

es_exit_caused_by_user = gs_exit_caused_by_user

tables

t_outtab = gt_outtab

exceptions

program_error = 1

others = 2.

So I think they were not hardcodeed in standard program.

Do you have any solutions for that ? pls help ...

Thanks alot.

Karen

Read only

0 Likes
569

Than go to your copy program

and put a break-point on line call function 'REUSE_ALV_GRID_DISPLAY'

than display table gt_outtab in your debugger.

is this table empty or containing some entries?

Read only

Former Member
0 Likes
569

Hi ,

I got empty record.

Karen.