07-26-2016 2:38 PM
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
07-27-2016 12:06 PM
Hi Christoph Nagl,
Instead of hardcoding program name can you pass i_callback_program = SY-REPID.
Regards,
PrAvIn
07-26-2016 2:40 PM
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
07-26-2016 2:54 PM
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
07-26-2016 3:00 PM
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.
07-27-2016 11:56 AM
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
07-27-2016 12:01 PM
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
07-27-2016 12:06 PM
Hi Christoph Nagl,
Instead of hardcoding program name can you pass i_callback_program = SY-REPID.
Regards,
PrAvIn
07-27-2016 12:09 PM
Hi,
I have changed to sy-repid, but nothing changed.
Does not work with the callback programm...
BR,
Christoph
07-27-2016 12:20 PM
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
07-27-2016 12:27 PM
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
07-27-2016 12:32 PM
oh.. It's strange. Actually it should work. What is version of your SAP?
07-27-2016 12:36 PM
07-27-2016 1:32 PM
07-27-2016 1:35 PM
Yes, I have changed now to a shorter name and now it works - the name of the report was too long...
07-27-2016 1:37 PM
07-27-2016 1:44 PM
24 characters...
And this is too long.
I have example implemented before with 22 characters - with that length it works.