Application Development 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: 

How to change the text of a screenfield?

adel_adel
Participant
0 Kudos

Hi,

I have a program based on pnp LDB. what is the best manier to change the text/label of a screen field ?

i tried with the loop at screen statement, but it doesnt work.

some one a suggestion ?

Thanks

2 REPLIES 2

Former Member
0 Kudos

If it is a custom Screen then Go to 'Screen Painter', click on the label and change the text.

For Select-options, Go to > Text Elements > Selection Texts

Former Member
0 Kudos

refer the following answer in the thread

TABLES: pernr.

data: i_tab type standard table of RSSELTEXTS with header line.

initialization.

i_tab-name = 'PNPPERNR'.

i_tab-kind = 'S'.

i_tab-text = 'Employee ID'.

append i_tab.

CALL FUNCTION 'SELECTION_TEXTS_MODIFY'

EXPORTING

program = 'ZESO_TEST'

tables

seltexts = i_tab

  • EXCEPTIONS

  • PROGRAM_NOT_FOUND = 1

  • PROGRAM_CANNOT_BE_GENERATED = 2

  • OTHERS = 3

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.