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 comments

Former Member
0 Likes
1,245

Hi ,

My requirement is to put the description ( in blue colour ) of the input field on the selection screen on the right handside of the field after the user enters a certain value.

How do i go abt it..Plz help .

Thanx nd regards,

Srestha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,081

Hi,

Check the demo

<b>demo_at_selection_screen_pbo

demo_sel_screen_select_comment</b>

Regards

vijay

10 REPLIES 10
Read only

Former Member
0 Likes
1,082

Hi,

Check the demo

<b>demo_at_selection_screen_pbo

demo_sel_screen_select_comment</b>

Regards

vijay

Read only

Former Member
0 Likes
1,081

Hi,

Check this sample code.

REPORT demo_at_selection_screen_pbo.

PARAMETERS: test1(10) TYPE c MODIF ID sc1,
            test2(10) TYPE c MODIF ID sc2,
            test3(10) TYPE c MODIF ID sc1,
            test4(10) TYPE c MODIF ID sc2.

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF screen-group1 = 'SC1'.
      screen-intensified = '1'.
      MODIFY SCREEN.
      CONTINUE.
    ENDIF.
    IF screen-group1 = 'SC2'.
      screen-intensified = '0'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

Regards

vijay

Read only

0 Likes
1,081

Hi Vijay ,

Thanx 4 da solutions..i m able 2 get da text in blue but still not able to display the description for the fields...cud u plz sggest some way..

Thanx nd regards,

srestha

Read only

0 Likes
1,081

can you show your code, easy to fix the problem.

Regards

vijay

Read only

0 Likes
1,081

Hi Sreshta,

i guess you are missing the <b>MODIF ID ABC</b> for the parameters. it is easy to identify if you can show the code.

Regards

vijay

Read only

0 Likes
1,081

Hi ,

i have included the modif id....the requirement is to display the description of the field the user has entered..on the right handside of the input box...initially there shud not b any value there....after the user has entered somethin the corresponding desc shud come...

thnx and regards,

Srestha

Read only

dani_mn
Active Contributor
0 Likes
1,081

HI,

check this example report it is doing the same.

<b>REPORT zwa_test1 line-size 132 line-count 60.
TABLES: fmfincode.

SELECTION-SCREEN BEGIN OF LINE.
selection-screen comment (11) text-004.
parameters : fcode type fmfincode-fincode .
parameters: fc_desc(50) MODIF ID FC  visible length 40 default 'abc'.
SELECTION-SCREEN END OF LINE.



AT selection-screen output.

LOOP at screen .

  IF screen-group1 = 'FC'.
    Screen-input = 0.
    SCREEN-INTENSIFIED = 1.
    Modify screen.
  endif.
ENDLOOP.



at selection-screen on fcode.
 SELECT SINGLE beschr FROM FMFINT INTO fc_desc
 WHERE FINCODE = fcode.</b>

REgards,

HRA

Message was edited by: HRA

Message was edited by: HRA

Read only

Former Member
0 Likes
1,081

Hi ,

the code was very helpful but only issue now is dat the input/output box outlines should not b present..is dere any way of doin dat?

Thanx nd regards,

srestha

Read only

Former Member
0 Likes
1,081

what outlines. can you little more clear on this.

Regards

vijay

Read only

Former Member
0 Likes
1,081

hi,

try this code.

the description of material gets displayed when you press enter after giving some input to material

report ztest.

data: v_maktx like makt-maktx.

selection-screen begin of line.

selection-screen comment 1(5) text-001.

parameters : matnr like mara-matnr.

selection-screen comment 30(10) v_maktx1 modif id sc1.

selection-screen end of line.

at selection-screen output.

select single maktx

from makt

into v_maktx

where matnr = matnr.

if sy-subrc = 0.

v_maktx1 = v_maktx.

endif.

loop at screen.

if screen-group1 = 'SC1'.

screen-intensified = '1'.

modify screen.

endif.

endloop.

Regards,

Sailaja.