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: 

How to set intensifed values in dialog program

Former Member
0 Kudos

Hi expert,

I am doing quotation program , in that multiple pricing values are there so,

I want to set screen property intensifed for values in table control depends on conditions.

plz reply me with details procedure.

Regards,

Jyotsna

7 REPLIES 7

Former Member
0 Kudos

this is discussed so many times,


in pbo
 loop at itab with control tc using screen 9001.
 module screen_control.
endloop.

_______________________
Module screen_contol.
 loop at screen,
 if screen-name = ' Your field Name'.
    if condition.    "your condition
         screen-intensified = 1.
        modify screen.
   else.
          screen-intensified = 0.
         modify screen.
  endif.
endif. 
endloop.
end module. 

Regards,

Alpesh

venkat_o
Active Contributor
0 Kudos

Try this way.


CONTROLS flights TYPE TABLEVIEW USING SCREEN 100.
DATA: cols LIKE LINE OF flights-cols,

LOOP AT itab.
MODULE change_table_control.
ENDLOOP.

*----------------------------------------------------------------------*
*  MODULE read_table_control INPUT
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
MODULE read_table_control INPUT.
  LOOP AT flights-cols INTO cols.
    IF  cols-screen-input = '0'.
      cols-screen-intensified = '1'.
    ELSEIF  cols-screen-input = '1'.
      cols-screen-intensified = '0'.
    ENDIF.
    MODIFY flights-cols FROM cols INDEX sy-tabix.
  ENDLOOP.
ENDMODULE.                    "read_table_control INPUT

Thanks

Venkat.O

Former Member
0 Kudos

Hi alpesh ,

Thanks for ur reply but , total column is going to intensifed as per ur reply ,

i want to intensifed perticular cell of table control.

plz reply.

Regards,

Jyotsna

0 Kudos

Hi Jyotsna, Why don't you try this


  LOOP AT flights-cols INTO cols.
    IF  cols-screen-name = 'ITAB-COL1'.
      cols-screen-intensified = '1'.
    ELSEIF  cols-screen-input = '1'.
      cols-screen-intensified = '0'.
    ENDIF.
    MODIFY flights-cols FROM cols INDEX sy-tabix.
  ENDLOOP.
Thanks Venkat.O

0 Kudos

hi venkot ,

Plz tell me in brief about your reply .

actually still i am facing same prblem of not getting intensified perticular row or cell of table control.

wats cols in your thread b'coz i got syntax error at the time of working.

Regards,

Jyotsna

0 Kudos

hi,

In Venkat's code,

flights is a Table control.

when you debug see flights-cols, it would be an internal table holding column names.

Hope you are clear.

Regards

Sajid

0 Kudos

Hi Jyotsna,


CONTROLS flights TYPE TABLEVIEW USING SCREEN 100.
DATA: cols LIKE LINE OF flights-cols,
<li>flights is table control. <li>cols is an internal table which contains table control field names at runtime. Thanks Venkat.O