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 programming - supressing display of some fields

Former Member
0 Likes
606

Moderator message: better to start a new thread.

Hi i have similar requirement to this.

suppose i am displying

BUKRS 0001

Sales org 0001

KUNNR 1000

i dont want todisplay if the field is blank.

suppose if sales org is blank

expected result is liek this

BUKRS 0001

KUNNR 1000

i tried through loop at screen by uisng that

i am getting output like below.

BUKRS 0001

KUNNR 1000

hello subbarao, could you tell if your problem solved.

3 REPLIES 3
Read only

Former Member
0 Likes
457

If you use SCREEN-ACTIVE = 0 to hide screen elements, the result should be

BUKRS 0001

KUNNR 1000

I suppose you forget hide some elements between BUKRS and KUUNR, like field label or something else.

Read only

Former Member
0 Likes
457

Hi Naidu,

In PBO put


DATA: FLAG TYPE I VALUE 0.
IF SALESORG = SPACE.
  FLAG = 1.
ENDIF.
LOOP AT SCREEN.
  IF FLAG = 1.
    IF SCREEN-NAME  = 'SALESORG'.
       SCREEN-INVISIBLE = 'X'.
       MODIFY SCREEN.
    ENDIF.
ENDIF.
ENDLOOP.

Thanks,

Chidanand

Read only

0 Likes
457

Yes, you can use SCREEN-INVISIBLE, but you need to set INPUT and OUTPUT with INVISIBLE.

Like


SCREEN-INVISIBLE = 1.
SCREEN-INPUT = 0.
SCREEN-OUTPUT = 0.

These three lines is same as SCREEN-ACTIVE = 0.