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

Logic needed pls...

Former Member
0 Likes
676

Hi,

In my ALV report i need to display some data on top of page depending on the selection criterian. everything is working fine, but there is one field which has four check boxes. I need to display these (checked) checkboxes description on top of page. for example, if first and second checked only those two shld be displayed. if first and last only those two and if all are checked, all check boxes description should be displayed on top of page. Any easy way to acheive this..pls helpme....

Thanks

Ram.

5 REPLIES 5
Read only

Former Member
0 Likes
657

Hi,

Don't try to display check box as it is in the top of page. Instead you can write the text of the check box along with value.

Check the below code....

IF p_check1 = 'X'.

then display the text of this check box along with 'X'.

ENDIF.

Rgds,

Bujji

Read only

0 Likes
657

Hi Bujji,

I am trying to display description of check boxes only. what u sggested is correct, but i have four check boxes here. instead of coding on different combinations is there any easy way to proceed..because i need to check all diff combinations to display those deatils.

Thanks.

Read only

0 Likes
657

Hi,

Any suggestion for my above question plss....

Read only

Former Member
0 Likes
657

Hi

Pls check the following code. it ll help u

form alv_comment_build using lt_top_of_page type
                                        slis_t_listheader.
  data: ls_line type slis_listheader.
*
  clear lv_title.
  lv_title = text-100.

  clear ls_line.
  ls_line-typ  = 'S'.
  ls_line-key  = text-108.
  ls_line-info = lv_z1log_lines.
  append ls_line to lt_top_of_page.

  clear ls_line.
  ls_line-typ  = 'S'.
  ls_line-key  = text-113.
    ls_line-info = text-101.
  append ls_line to lt_top_of_page.
endform.                    " ALV_COMMENT_BUILD

Read only

Former Member
0 Likes
657

Hi Santhosh,

Is that field (with 4 check boxes) belonging to selection screen or ALV?

If it is from selection screen then we have to follow Bujji's suggestion.

we need to check whether first check box is checked or not if it is yes display its description using event print_top_of_page of cl_gui_alv_grid..

same for remaining three check boxes.

here combination check is not necessary i think.U r saying that individual description of check boxes has to display.right.

Hope this will helpful.

Edited by: sushama Vivek on Jun 3, 2008 12:15 PM