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 screen - editable cell

Former Member
0 Likes
460

Hi guys,

I have a table in a module pool screen. I have 4 fields in the table.Based on the row which is selected,i need to make a cell of one field editable. how do i go about this??

Thanks.

Regards,

Girish.

3 REPLIES 3
Read only

Former Member
0 Likes
428

Hi

If you are using ther Table control you can't make a particular cell as editable

If you keep separate fields for the four rows without a table control you can make that particular field as editable

but for the table data we use table control.

see the table control related doc

chk the demo prog:

DEMO_DYNPRO_TABCONT_LOOP

Check the below links.

http://www.planetsap.com/howdo_a.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm

http://sap.niraj.tripod.com/id25.html

Also you can see the below examples...

Go to se38 and give demodynpro and press F4.

YOu will get a list of demo module pool programs.

One more T-Code is ABAPDOCU.

YOu can find more examples there.

See the prgrams:

DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement

DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB

http://www.geocities.com/ZSAPcHAT

http://www.allsaplinks.com/files/using_table_in_screen.pdf

<b>Reward points for useful Answers</b>

Regards

Anji

Read only

former_member194669
Active Contributor
0 Likes
428

Hi,

Check this code Girish or <b>Frank ? </b>


  loop at i_ysccitem with control tabcntl7 cursor
                                              tabcntl7-current_line.
      module disable_hts_fields.
  endloop.


  module disable_hts_fields output.

        loop at screen.
             if ysccitem-htser ne space.
              screen-input = c_off. "<< c_off = 0
              modify screen.
            else.
              screen-input = c_on. "<< c_on = 1
              modify screen.
            endif.
          endif.
        endloop.

aRs

Read only

marcelo_ramos1
SAP Mentor
SAP Mentor
0 Likes
428

Hi,

Try this way in runtime.


  MODULE <module name> OUTPUT.
 
        LOOP AT screen.
             IF screen-name <> <data name>.
              MOVE 1 TO screen-input. "Making a cell editable
              MODIFY screen.
            ELSE.
              MOVE 0 TO screen-input. "Making a cell non-editable
              MODIFY screen.
            ENDIF.
        ENDLOOP.
        ....
   ENDMODULE.

Or just mark the screen field as flag on "INPUT" in screen editor.

Regards.

Marcelo Ramos