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 Mark Problem

Former Member
0 Likes
420

Hi ı have problem with alv is_layout when ı set gs_layo-box_fieldname = 'MARK' its ok synt. correct and program run healthy but in alv ı want to batch input selected row it goes to dumb. When ı removed 'mark' it is working

here is the code

FORM alv.

gv_repid = sy-repid.

data: l_cat like line of ct_fieldcat.

define mac_alv.

l_cat-col_pos = &1.

l_cat-fieldname = &2.

l_cat-seltext_s = l_cat-seltext_m = l_cat-seltext_l = &3.

append l_cat to ct_fieldcat.

end-of-definition.

refresh ct_fieldcat.

mac_alv: 1 'MATNR' 'MATNR' ,

2 'MBRSH' 'MBRSH',

3 'MTART' 'MTART',

4 'MAKTX' 'MAKTX',

5 'MEINS' 'MEINS',

6 'MATKL' 'MATKL',

7 'WERKS' 'WERKS',

8 'MTPOS' 'MTPOS',

9 'EKGRP' 'EKGRP'.

gs_layo-zebra = 'X'.

gs_layo-colwidth_optimize = 'X'.

gs_layo-box_fieldname = 'MARK'.

call function 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_bypassing_buffer = 'X'

i_callback_program = sy-repid

is_layout = gs_layo

I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'

I_CALLBACK_USER_COMMAND = 'USER_COMMAND'(003)

it_fieldcat = ct_fieldcat

it_sort = gt_sort[]

i_grid_settings = gs_glay

i_save = 'A'

TABLES

t_outtab = gt_itab[]

EXCEPTIONS

program_error = 1

others = 2.

ENDFORM. " ALV

&----


*& Form standard_fullscreen

&----


form SET_PF_STATUS using rt_extab type slis_t_extab.

set pf-status 'GUI'.

endform. "standard_fullscreens

&----


*& Form USER_COMMAND

&----


FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM

RS_SELFIELD TYPE SLIS_SELFIELD.

CASE R_UCOMM.

WHEN 'BATCH'.

trigger = RS_SELFIELD-value.

IF RS_SELFIELD-SEL_TAB_FIELD eq '1-'.

perform batch_input.

ENDIF.

ENDCASE.

ENDFORM.

1 ACCEPTED SOLUTION
Read only

former_member15255
Active Participant
0 Likes
377

Hi,

Please add the 'MARK' field to the catlog as well. with an additional property of checkbox.

fieldcat-checkbox = ' X'.

Thanks & Regards

Suresh Nair

1 REPLY 1
Read only

former_member15255
Active Participant
0 Likes
378

Hi,

Please add the 'MARK' field to the catlog as well. with an additional property of checkbox.

fieldcat-checkbox = ' X'.

Thanks & Regards

Suresh Nair