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

Loop At screen

Hi experts,

Can I make certain fields in a table control as editable and others non editable, if so the how? Well I have noticed that the last record in the table control is the default that apperars for all records despite making the screen input/output for others as different.

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Dec 18, 2008 at 07:17 AM

    Hi Yee,

    In PBO.

    loop at itab with control tc.

    module modify_tabcontrol.

    endloop.

    in program

    module modify_tabcontrol.

    --suppose you want the first row and first column editable and second column disabled

    if tc-current_line = 1.

    loop at screen.

    if screen-name = 'ITAB-FIRST_COLUMN'.

    SCREEN-INPUT = 1.

    MODIFY SCREEN.

    ENDIF.

    if screen-name = 'ITAB-SECOND_COLUMN'.

    screen-input = 0.

    modify screen.

    endif.

    endloop.

    Best Regards

    Ramchander Rao.K

    endif.

    endmodule.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 08:06 AM

    Hi,

    Like I have said I have already done all that but the default is the last records input output that is getting reflected to all. e.g. as below.

    Field 1 Field2 Field3

    1 input=1 input=0 input=0

    output=1 output=0 output=0

    2 input=0 input=1 input=0

    output=0 output=1 output=0

    3 input=0 input=0 input=1

    output=0 output=0 output=1

    when it displays all the 3 records get the default record 3 status where Field3 in enabled.

    thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 08:16 AM

    Hi,

    loop at screen.

    if screen-name = 'it_mara-matnr'.

    screen-input = 1.

    modify screen.

    endif.

    endloop.

    Thanks,

    Krishna...

    Add a comment
    10|10000 characters needed characters exceeded

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.