Application Development and Automation 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: 
Read only

Module-pool edit mode to non edit mode

Former Member
0 Likes
2,556

Dear friends ,

I am working with module-pool, In that when i enters value that field should become Visible mode and should not allow user to edit amount Please guide me .

thanks & regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,402

LOOP AT SCREEN.

IF screen-group1 = 'SC1'.

screen-input = '1'.

screen-invisible='0'.

MODIFY SCREEN.

CONTINUE.

ENDIF.

ENDLOOP.

Use the above part of code to enable and disable the fields .

Dear friends ,

I am working with module-pool, In that when i enters value that field should become Visible mode and should not allow user to edit amount Please guide me .

thanks & regards

3 REPLIES 3
Read only

ajoy_saha2
Explorer
0 Likes
1,402

Hi Shanthi,

I am also facing similar problem. In my case there will be suppose 10 fields withing that first one is list box. If user select a particular value based on that value some fields will be non edit mode and some will stay in edit mode. Can please share how can I achieve this.

Thanks in advance.

Ajoy

Read only

Former Member
0 Likes
1,403

LOOP AT SCREEN.

IF screen-group1 = 'SC1'.

screen-input = '1'.

screen-invisible='0'.

MODIFY SCREEN.

CONTINUE.

ENDIF.

ENDLOOP.

Use the above part of code to enable and disable the fields .

Read only

Former Member
0 Likes
1,402

Hi try this way...


PROCESS BEFORE OUTPUT.
  MODULE status_<screen>.

* Table control for OUTPUT
  LOOP WITH CONTROL <TableControl>.
    MODULE Modify_screen.
  ENDLOOP.


MODULE Modify_screen OUTPUT.
* Table control reading values from input screen & displaying on screen
  READ TABLE <Internal table>    INDEX <Table control >-current_line.

* Logic for screen Display Mode when User enters data
  IF <ITAB>-FIELD is not Initial.       "This means User has enterd Data for the Particular Row
    LOOP AT SCREEN.
      IF screen-name = 'ITAB-FIELD'.       "Passs the table/WorkArea with Field name to make field Display mode
        screen-input = 0.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.
  ENDIF.

ENDMODULE.

Prabhudas