2007 Jun 11 10:46 AM
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.
2007 Jun 11 10:51 AM
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
2007 Jun 11 10:51 AM
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
2007 Jun 11 11:16 AM
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.
2007 Jun 11 11:22 AM
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
2007 Jun 11 11:22 AM
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
2007 Jun 11 12:13 PM
Hi Gaurav,
go thruogh below links.
http://www.sapfans.com/forums/viewtopic.php?t=88376
http://www.sapfans.com/forums/viewtopic.php?t=40968
http://www.sapfans.com/forums/viewtopic.php?t=6919
Regards
Suresh.D