Application Development 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: 

How to disable the field-input in xd01

Former Member
0 Kudos

Hi Abappers,

I have created subscreen in xd01 using BADI: CUSTOMER_ADD_DATA_CS. After giving input to field, it has to go disable mode how is it possible.How to disable that field.

Regards,

simba.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

after u add some data to that field. Now check the field, if it is not initial then make that field in disable mode.

for eg:

loop at screen.
             if itab-<fieldname> is not initial.
             screen-input = 0.
             modify screen.
             endif.
          endloop.

Regards,

Kasuladevi Srinivas

Edited by: Kasuladevi Srinivas on Sep 11, 2008 7:26 AM

3 REPLIES 3

Former Member
0 Kudos

Hi,

after u add some data to that field. Now check the field, if it is not initial then make that field in disable mode.

for eg:

loop at screen.
             if itab-<fieldname> is not initial.
             screen-input = 0.
             modify screen.
             endif.
          endloop.

Regards,

Kasuladevi Srinivas

Edited by: Kasuladevi Srinivas on Sep 11, 2008 7:26 AM

former_member181995
Active Contributor
0 Kudos

Lil Modification to above reply:

loop at screen.
             if screen-name ne initial..
             screen-input = 0.
             endif.
          endloop.

former_member188685
Active Contributor
0 Kudos

after entering the data , it again goes to PBO module, there you have to write the code

if it is normal input field then you can do this

loop at screen.
             if <fieldname> is not initial.
             screen-input = 0.
             modify screen .        "<----This is must 
             endif.
          endloop.