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

Selection screen

Former Member
0 Likes
600

Hi

I have defined a selection screen which contains Dropdown box and few input boxes using 'select-options'.

i need to make few input boxes into display mode, if a particular option is selected at Dropdown box..

How to code for this scenario..??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
578

HI Pavan,

Use the code womething similar

Cheers

VJ

Message was edited by: Vijayendra Rao

7 REPLIES 7
Read only

Former Member
0 Likes
579

HI Pavan,

Use the code womething similar

Cheers

VJ

Message was edited by: Vijayendra Rao

Read only

0 Likes
578

first of all you must group your fields like that.

select-options : a for b MODIF ID GRP.


at selection-screen output.
  if dropdownvalue eq X.
    loop at screen.
      if screen-group1 eq 'GRP'.
        screen-input = 0.
      else.
        screen-input = 1.
      endif.
      modify screen.
    endloop.
  endif.

ibrahim

Read only

0 Likes
578

Hi

In selection screen declare drop-down with user-command hide

and in at selection-screen output

loop at screen .

case screen-group1.

when <varable>

screen-required = 0.

screen-input = 0.

screen-invisible = 1.

endcase .

modify screen.

endloop.

Read only

dani_mn
Active Contributor
0 Likes
578

HI,

check this report.

<b>REPORT zwa_test2.

TYPE-POOLS : vrm.
tables: bkpf.

DATA : values TYPE vrm_values.
DATA : wa LIKE LINE OF values.

PARAMETERS : field(10) TYPE c AS LISTBOX VISIBLE LENGTH 10 MODIF id abc.

select-options: a for bkpf-bukrs MODIF ID buk.

select-options: b for bkpf-belnr MODIF ID SEL.


at selection-screen output.
  If field = 1.
    loop at screen.

      if screen-group1 = 'SEL'.
        screen-input = 0.
        modify screen.
      endif.

    endloop.

  endif.


INITIALIZATION.

  wa-key = '1'.
  wa-text = 'Orange'.
  APPEND wa TO values.

  wa-key = '2'.
  wa-text = 'Red'.
  APPEND wa TO values.

  wa-key = '3'.
  wa-text = 'Blue'.
  APPEND wa TO values.

  wa-key = '4'.
  wa-text = 'Gray'.
  APPEND wa TO values.


  CALL FUNCTION 'VRM_SET_VALUES'
       EXPORTING
            id              = 'FIELD'
            values          = values
       EXCEPTIONS
            id_illegal_name = 1
            OTHERS          = 2.</b>

Regards,

HRA

Read only

Former Member
0 Likes
578

Hai Pavan,

You can change to display mode in the event

AT SELECTION-SCREEN OUTPUT.

Check the app. condition here.

Read only

Former Member
0 Likes
578

Hello Pavan,

you can do like this as below:

Parameters p_matnr like mara-matnr as list-box visible length 18 user-command UC01.

select-options : so_werks for marc-werks.

At selection-screen output.

Loop at screen.

If screen-name CS 'SO_WERKS'.

if P_matnr eq <Condition>.

screen-input = 0.

Modify screen.

Endif.

Endif.

Reward points if helps.

Thanks,

Krishnakumar

Read only

Former Member
0 Likes
578

HI

GOOD

you check like this

if that particular field having value or it is checked you make that inupt box as

screen-boxname - 1

and

screen-boxname -0

thanks

mrutyun