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: 

Regarding checkboxes in ALV Output

Former Member
0 Kudos
112

Hi:

I got an internal table as below:

name skill rating

Gaurav Workflow 8

abc script 4

def ALV 5

I want to generate an ALV output of the above internal table.I want to add 2 checkboxes like below in the ALV Output:

name skill rating handler reviewer

Gaurav Workflow 8 x

abc script 4 x

def ALV 5 x

above is a report output which shows:

Gaurav is a handler of the ticket related to workflow

abc is reviewer of the ticket related to script.

def is a handler of the ticket related to alv.

these checkboxes are not fixed.anyone can be made reviewer & handler.One person won't play both roles simultaneously.

Now this data will be saved in a z table.

I believe this can be handled through OOPS alv.This is an urgent requirement.Please help me out with the coding part.I don't know OOPs ALV. I'll reward the maximum points.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
91

Hello,

Add a field for check box in ur itab.

CHECK(1),

and it the field catalog for the field


  L_FIELDCAT-INPUT   = 'X'.
  L_FIELDCAT-EDIT   = 'X'.
  L_FIELDCAT-CHECKBOX = 'X'.

Vasanth

5 REPLIES 5

Former Member
0 Kudos
92

Hello,

Add a field for check box in ur itab.

CHECK(1),

and it the field catalog for the field


  L_FIELDCAT-INPUT   = 'X'.
  L_FIELDCAT-EDIT   = 'X'.
  L_FIELDCAT-CHECKBOX = 'X'.

Vasanth

0 Kudos
91

Hi Vasanth:

Thanks for the help.It solved my problem.I need one more help on this.

Now when the output list comes & user selects the buttons, after pressing the 'save ' button, I want this data to be saved in the ztable.Just wanted to ask that how to recognize that which checkbox is clicked at user command.

0 Kudos
91

Hello,

U can do like this.

In the user command routine.

Use

LOOP AT ITAB into wa_itab WHERE NOT CHECK IS INITIAL.
MODIFY ZTABLE FROM WA_ITAB.
ENDLOOP.

Hope this will solve ur issue.

Vasanth

0 Kudos
91

Hello,

U can do like this.

In the user command routine.

Use

LOOP AT ITAB into wa_itab WHERE NOT CHECK IS INITIAL.
MODIFY ZTABLE FROM WA_ITAB.
ENDLOOP.

Hope this will solve ur issue.

Vasanth