06-11-2007 7:31 PM
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
06-11-2007 7:35 PM
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
06-11-2007 7:38 PM
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.