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

ALV problem

Former Member
0 Likes
436

Hi guys,

I am using two radio buttons in the report, which will display two outputs according to the selected radio button.

When i come back from the ALV screen, blank list is displaying insteading of coming to selection screen.

i am using OOPS alv.

Could you please let me know the reason for the same

Regards

Rajesh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
410

Hi!

This problem occurred, when you forget a SKIP, or WRITE command after the ALV function module call.

Check your coding.

F.e:

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = lv_repid

I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

i_callback_top_of_page = 'TOP_OF_PAGE'

i_structure_name = 'ZKISZALLITASOK_MEGYENKENT'

is_layout = gs_layout

it_fieldcat = gs_fieldcat_slis

i_save = 'A'

is_variant = gs_variant

TABLES

t_outtab = gt_alvout

  • EXCEPTIONS

  • PROGRAM_ERROR = 1

  • OTHERS = 2

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

SKIP. "<<< causes empty list after ALV display

Regards

Tamá

4 REPLIES 4
Read only

Former Member
0 Likes
410

Hello Rajesh,

Hello,

In the user command of the screen use like this:

<b>WHEN 'BACK'.

SET SCREEN 0.

LEAVE SCREN.</b>

Regards,

Vasanth

Read only

0 Likes
410

Hi Vasanth,

Thanks for your reply

I have already written the following code even then its coming.

WHEN 'BACK'.

Free: container.

SET SCREEN 0.

LEAVE SCREN.

Read only

Former Member
0 Likes
411

Hi!

This problem occurred, when you forget a SKIP, or WRITE command after the ALV function module call.

Check your coding.

F.e:

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = lv_repid

I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

i_callback_top_of_page = 'TOP_OF_PAGE'

i_structure_name = 'ZKISZALLITASOK_MEGYENKENT'

is_layout = gs_layout

it_fieldcat = gs_fieldcat_slis

i_save = 'A'

is_variant = gs_variant

TABLES

t_outtab = gt_alvout

  • EXCEPTIONS

  • PROGRAM_ERROR = 1

  • OTHERS = 2

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

SKIP. "<<< causes empty list after ALV display

Regards

Tamá

Read only

0 Likes
410

Hi Tamas,

Thanks for your answer.

I forgot to delete SKIP in the program.

Now its working fine.

I have awarded you full points.

Regards

Rajesh