Application Development 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: 

FUBA: REUSE_ALV_GRID_DISPLAY with callback programm does not work

christoph_nagl
Participant
0 Kudos

Hi experts,

i use fuba REUSE_ALV_GRID_DISPLAY and when I add a callback report with callback_user_command nothing is shown in the alv.

If I remove the callback information again, it works.

What can be the reason for this?

Thanks.

BR,

Christoph

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Christoph Nagl,

Instead of hardcoding program name can you pass    i_callback_program =  SY-REPID.

Regards,

PrAvIn

15 REPLIES 15

Ashg1402
Contributor
0 Kudos

Hi,

Possible Cause - Wrong value

What value are you passing and what is the type of it.?

It should be of same type of callback_user_command.


Regards

Ashish

0 Kudos

Hi,

I have a form routine named the same value than I give to the parameter callback user command...

In an other example it works...

BR,

Christoph

0 Kudos

Hi,

If you are doing same as the given example then it should work. You must be missing something.

Can you share that part of form , from example and your code.

0 Kudos

Hi,

this is the call of the fuba:

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

            EXPORTING

              i_callback_program      = 'REPORT_PROGRAMM'

              i_callback_user_command = 'USER_COMMAND_ID_OVERVIEW'

              it_fieldcat             = lt_fieldcat[]

              i_save                  = 'A'

              i_structure_name        = 'ZTEST_STRUCTURE'

              i_screen_start_column   = 60

              i_screen_start_line     = lv_start_line

              i_screen_end_column     = 200

              i_screen_end_line       = lv_end_line

            TABLES

              t_outtab                = lt_overview.

And the programm REPORT_PROGRAMM has an include which defines the form routine USER_COMMAND_ID_OVERVIEW. When I set the break point this form routine is called !

Thanks.

Best regard,

Christoph

0 Kudos

Hi,

it seems for me that the callback programm is the reason... When I comment this line of the callback program it works.

Is there a special definition necessary in such a callback program?

Thanks for support.

BR,

Christoph

Former Member
0 Kudos

Hi Christoph Nagl,

Instead of hardcoding program name can you pass    i_callback_program =  SY-REPID.

Regards,

PrAvIn

0 Kudos

Hi,

I have changed to sy-repid, but nothing changed.

Does not work with the callback programm...

BR,

Christoph

0 Kudos

Hi Christoph Nagl,

Are you doing any action in user USER_COMMAND_ID_OVERVIEW?

Have you passed i_callback_program   = 'sy-repid'? like this or without single quotes? 

It should be without single quotes.


Regards,

Pravin

0 Kudos

Hi,

of course without single quotes.

I have commented the code in the USER_COMMAND_ID_OVERVIEW so I do nothing.

But does not work..
It seems for me that fuba did not find the call_back_programm...


BR;

Christoph

0 Kudos

oh.. It's strange. Actually it should work. What is version of your SAP?

0 Kudos

Hi,

In place of sy-repid. try sy-cprog

0 Kudos

Maybe the name for the report is too long?

0 Kudos

Yes, I have changed now to a shorter name and now it works - the name of the report was too long...

0 Kudos

is it more then 40 characters.??

0 Kudos

24 characters...

And this is too long.

I have example implemented before with 22 characters - with that length it works.