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: 

call function 'REUSE_ALV_GRID_DISPLAY' display like list alv

Former Member
0 Kudos


Hi experts,

I checked a standard tcode-IDCP.

It will be displayed like grid alv if I run it directly. However, it will be displayed like list alv if I call the tcode using BDC in a z-report even it call function 'REUSE_ALV_GRID_DISPLAY'.

Does anyone know why?

Kindly help.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Franklin,

I think when alv grid is running in background, it will be switched to basic list.

Here I list a part of code in FM 'REUSE_ALV_GRID_DISPLAY' (From Line 106 in ECC6EHP5):

if ( is_layout-allow_switch_to_list ne space

   and boolean eq if_salv_c_bool_sap=>true )

   or ( sy-binpt eq abap_true ).

     perform globals_push.

     call function 'REUSE_ALV_LIST_DISPLAY'

....

....

....

endif.

Thanks,

Sam

5 REPLIES 5

Former Member
0 Kudos

Hi Franklin,

I think when alv grid is running in background, it will be switched to basic list.

Here I list a part of code in FM 'REUSE_ALV_GRID_DISPLAY' (From Line 106 in ECC6EHP5):

if ( is_layout-allow_switch_to_list ne space

   and boolean eq if_salv_c_bool_sap=>true )

   or ( sy-binpt eq abap_true ).

     perform globals_push.

     call function 'REUSE_ALV_LIST_DISPLAY'

....

....

....

endif.

Thanks,

Sam

0 Kudos

sy-binpt = abap_true means batch input mode. User is doing batch input in foreground.

EDIT: This can be avoided by passing CTUPARAMS NOBINPT parameter as 'X' when doing Call Transaction.

0 Kudos

DE SYBINPT

____________________________________________________

Short Text

Program Running Under Batch Input

Definition

During the processing of batch input folders and in ABAP programs called with CALL TRANSACTION USING, value "X", otherwise initial.

Sorry,it's a mistake. Sy-binpt is 'X' when he called the tcode.That's why the grid switched to basic list.

This is what I meant to express.

0 Kudos

Hi Manish,

Thank you.

Solved, you're right.

Regards,

Franklin

0 Kudos

Hi Sam,

Thank you for quickly reponse, your answer below is right.

Regards,

Franklin