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 Selection screen Events

Former Member
0 Likes
506

I have a select option with no-extension so its like parameter and a Check box.

During the Program Execution i will give some value to the Selection Option field.

Based on the value given to the Select option the Check box should have the value (i.e) it should be active or inactive based on the input in the selection screen.

I tried At selectioon screen on value request for also i tried it in Initialization also using MODIF id nothing is working.

Can anybody help me out ..

<REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>

Edited by: Alvaro Tejada Galindo on Aug 25, 2008 5:34 PM

1 ACCEPTED SOLUTION
Read only

b_deterd2
Active Contributor
0 Likes
480

Hi,

Use at selection screen output.


at selection-screen output.
  if gv_ucomm = 'RG1'.
    loop at screen.
      if pa_rgor = 'X'.
        if screen-name+7(1) = '2' or
           screen-name+7(1) = '1'.
          screen-input = 0.
        endif.
      endif.

      if pa_rgof = 'X'.
        if screen-name+7(1) = '1' or
           screen-name+7(1) = '3'.
          screen-input = 0.
        endif.
      endif.

      if pa_rgaa = 'X'.
        if screen-name+7(1) = '2' or
           screen-name+7(1) = '3'.
          screen-input = 0.
        endif.
      endif.
      modify screen.
    endloop.
  endif.

I have a select option with no-extension so its like parameter and a Check box.

During the Program Execution i will give some value to the Selection Option field.

Based on the value given to the Select option the Check box should have the value (i.e) it should be active or inactive based on the input in the selection screen.

I tried At selectioon screen on value request for also i tried it in Initialization also using MODIF id nothing is working.

Can anybody help me out ..

<REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>

Edited by: Alvaro Tejada Galindo on Aug 25, 2008 5:34 PM

3 REPLIES 3
Read only

b_deterd2
Active Contributor
0 Likes
481

Hi,

Use at selection screen output.


at selection-screen output.
  if gv_ucomm = 'RG1'.
    loop at screen.
      if pa_rgor = 'X'.
        if screen-name+7(1) = '2' or
           screen-name+7(1) = '1'.
          screen-input = 0.
        endif.
      endif.

      if pa_rgof = 'X'.
        if screen-name+7(1) = '1' or
           screen-name+7(1) = '3'.
          screen-input = 0.
        endif.
      endif.

      if pa_rgaa = 'X'.
        if screen-name+7(1) = '2' or
           screen-name+7(1) = '3'.
          screen-input = 0.
        endif.
      endif.
      modify screen.
    endloop.
  endif.

Read only

Former Member
0 Likes
480

Hi you can do it in AT SELECTION-SCREEN event.

Try the following code,


IF s_sopt IS INITIAL.

  w_cbox = 'X'.

ELSE.

  CLEAR w_cbox.

ENDIF.

s_sopt is the select option and w_cbox is the checkbox.

When the user inputs a value and hits enter the check box will be modified.

Read only

Former Member
0 Likes
480

I dont think so wether above solution would work.

cause AT SELECTION-SCREEN OUTPUT will work PBO but your requirement once you give input to selection screen than you need to do work.than i think one way you can do achieve this by using AT SELECTION-SCREEN on ON {para|selcrit} event cause it would trigger in PAI than again your need to come back on selection screen after getting refersh your previous selection screen.

Amit.