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

Regarding disable fields in a module pool

Former Member
0 Likes
711

Hi

My requirement is i have to disable fields in a module pool according Order Type(VBAK-AUART),Sales Organization(VBAK-VKORG),Distribution Channel(VBAK-VTWEG),Division(VBAK-SPART).

This screen field option should work only for Sales Order Types

ZOL1

ZOL2

ZOL3

ZOL4

ZOL7

ZL08

ZL09

Sales Organization - 1000

Distribution Channel - 10

Division - 20.

so i write the code like this

IF ( VBAK-AUART NE 'ZOL1' or VBAK-AUART NE 'ZOL2 or VBAK-AUART NE 'ZOL3'

or VBAK-AUART NE 'ZOL4' or VBAK-AUART NE 'ZOL7' or VBAK-AUART NE 'ZL08'

or VBAK-AUART NE 'ZL09' ) and ( VBAK-VKORG NE '1000' and

VBAK-VTWEG NE '10' AND VBAK-SPART NE '20' ).

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'G1'.

SCREEN-INPUT = 0.

SCREEN-ACTIVE = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

but it is not working......

Waiting for u r reply..

Thanks

4 REPLIES 4
Read only

Former Member
0 Likes
642

Hi..

try SCREEN-INACTIVE = '1'.

Regards,

Chintan.

Read only

Former Member
0 Likes
642

Hi,

Screen-active = 0.

Hope it works.

Thanks,

Nithya.

Read only

Former Member
0 Likes
642

I think u havent used single quotes.

screen-input = '0'.

Read only

Former Member
0 Likes
642

This is probably what you're looking for: [Dynamic Setting of Field Attributes in Table Controls|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/11651] [original link is broken] [original link is broken] [original link is broken];

Rob