Skip to Content
author's profile photo Former Member
Former Member

How to set intensifed values in dialog program

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2009 at 06:33 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2009 at 07:24 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2009 at 07:55 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.