How to Hide selection-screen comment in the selection-screen

Question: Hi All

can any one help i am using a commnet text in the selection-screen for a field if i hide the field comment also suppose to hide.

thanks
sudha

Answer:
The comment text is a separate element, so you need to hide it as well.

Answer:
Just get the screen logic to detect whether your field is hidden or not and then perform the same action on the comment.

There are plenty of examples of this kind of screen logic on this forum, and within SAP's help.

Dr Sidewalk
_________________
"In the middle of difficulty lies opportunity" - Albert Einstein
"Money isn't everything in life, unless you don't have it". David King
"Fail to plan, plan to fail"
"Success is a journey, not a destination."

Answer:
If you declare the comment FOR the parameter it should follow the attributes of the parameter (at least in 46).

  selection-screen begin of line.
  selection-screen comment (30) for field P1.
  selection-screen position pos_low.
  parameters P1 as checkbox.
  selection-screen end of line.

Or, declare the comment & the parameter wih the same modif id. this is often neater to implement.

  selection-screen begin of line.
  selection-screen comment (30) for field P1 modif id XXX.
  selection-screen position pos_low.
  parameters P1 as checkbox modif id XXX.
  selection-screen end of line.
_________________
First he pinches my sig, Now he's cribbing my posts too!

Answer:
I have not done this for some time, (I prefer to check the MODIF value). If in your loop at screen instead of using EQ your field name you use CP (Contains Pattern) you catch the text element as well.
_________________
MattG.
Search SAPfans
Copyright ?2007 - 2008 www.jt77.com