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

How to add text dynamically on selection-screen?

0 Likes
3,221

Hi, i have a quick question

For example, when i choose KUNNR via Serch Help or physically fill in the select-options,

i want to show the name of KUNNR right next to it.

How can i change the text dynamically?

i dont even know what to write on selection-screen..

HELP ME ABAPERS!!

1 ACCEPTED SOLUTION
Read only

venkateswaran_k
Active Contributor
3,148

Hi serenakimm

You can use example as below: After selecting the customer code, press enter, It will display it. ( After pressing enter key it will display )
DATA lv_name TYPE kna1-name1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (31) text-005.
PARAMETERS: p_kunnr TYPE kna1-kunnr.
SELECTION-SCREEN COMMENT 47(10) com_f.
SELECTION-SCREEN END OF LINE.

AT SELECTION-SCREEN.
SELECT SINGLE name1 FROM kna1 INTO lv_name WHERE kunnr = p_kunnr.

AT SELECTION-SCREEN OUTPUT.
WRITE lv_name TO com_f.
Regards,Venkat
3 REPLIES 3
Read only

venkateswaran_k
Active Contributor
3,149

Hi serenakimm

You can use example as below: After selecting the customer code, press enter, It will display it. ( After pressing enter key it will display )
DATA lv_name TYPE kna1-name1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (31) text-005.
PARAMETERS: p_kunnr TYPE kna1-kunnr.
SELECTION-SCREEN COMMENT 47(10) com_f.
SELECTION-SCREEN END OF LINE.

AT SELECTION-SCREEN.
SELECT SINGLE name1 FROM kna1 INTO lv_name WHERE kunnr = p_kunnr.

AT SELECTION-SCREEN OUTPUT.
WRITE lv_name TO com_f.
Regards,Venkat
Read only

0 Likes
3,148

Thank u so much! You are a genius ❤️

Read only

0 Likes
3,148

Hi serenakimm

Welcome, If the quetion is answered, please accept the answer as close this thread.