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

Table Control

hI All,

I have developed one screen using Table Conrol. On The scrren I have one column which have employee no. I want to do that if i Click on Modify botton Then this column of employee no be active and if I press some other button like display or new or save it must be Inactive. Plz Tell Me how to do it............

Thanks .

Pradip Pawar.

ABAP

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2007 at 09:10 AM

    hi,

    first make that field only output field. and set groups property. give there 111.

    and when user press modify make in input enable like this.

    Make one module in PBO.

    &----


    *& Module init_screen OUTPUT

    &----


    • text

    ----


    MODULE init_screen OUTPUT.

    LOOP AT SCREEN.

    IF screen-group1 = 111 AND ok_code = 'MOD' .

    screen-input = 1.

    MODIFY SCREEN.

    ENDIF.

    ENDLOOP.

    ENDMODULE. " init_screen OUTPUT

    hope it will helpful

    Message was edited by:

    Dhwani shah

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2007 at 10:33 AM

    You can write the simple code in PBO

    Loop at screen.

    if sy-ucomm = 'MODI' . -> modify function code

    if screen-name = 'EMP Field name'.

    screen-input = 1.

    modify screen.

    endif.

    endif.

    if sy-ucomm = 'NEW' . -> New function code

    if screen-name = 'EMP Field name'.

    screen-input = 0.

    modify screen.

    endif.

    endif.

    endloop.

    It should work

    Thanks

    Seshu

    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.