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

Dynamically change the comments on selection screen

Former Member
0 Likes
3,388

I understand that, this can be done by 'loop at screen ' at 'At selection-screen output'.

But i have to toggle the status description as i change the status code which is a parameter on selection -screen.

I have some coding logic for input validation for the status field at the selection screen (AT SELECTION-SCREEN on p_stat, and if the input is valid then i have to pouulate its description on the screen.

Please suggest the approach.

Regards

Alok

4 REPLIES 4
Read only

vinod_gunaware2
Active Contributor
0 Likes
1,656

Hi

use AT SELECTION-SCREEN OUTPUT event

write code in this event. and also try to USER-Command

this may be helpful.

regards

vinod

Read only

Former Member
0 Likes
1,656

You can set up a text field like:


parameters:
  p_ccgrp like grpdynp-name_coall obligatory  "CCTR Group Name
          memory id hna.
selection-screen comment 53(40) comm01.

Then populate comm01 at selection-screen output.

Rob

Read only

Former Member
0 Likes
1,656

validate ur field AT SELECTION-SCREEN OUTPUT andchange ur status description (if valid)there using screen table.

Read only

Former Member
0 Likes
1,656

Hi alok,

Check this code.,..

(Copy+paste) first it will display Sales Order, after you choose the other radio button it will show material number.


REPORT  ZTEST_SEL_TEXT.
tables: vbak,mara.

selection-screen begin of block b1.
selection-screen begin of line.
SELECTION-SCREEN COMMENT 1(31) v_text.
select-options: matnr for mara-matnr.
selection-screen end of line.
parameters: r1 radiobutton group g1  default 'X' user-command ABC,
            r2 radiobutton group g1.
selection-screen end of block b1.

at selection-screen output.

  if r1 = 'X'.
    V_TEXT = 'Sales Order Number'.
  endif.
  if r2 = 'X'.
    V_TEXT = 'Material Number'.
  endif.

Regards

vijay