07-07-2014 2:45 AM
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.
07-07-2014 7:51 AM
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
07-07-2014 7:51 AM
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
07-07-2014 7:58 AM
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.
07-07-2014 8:15 AM
Program Running Under Batch Input
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.
07-10-2014 10:15 AM
07-10-2014 10:16 AM
Hi Sam,
Thank you for quickly reponse, your answer below is right.
Regards,
Franklin