Created
December 22, 2017 09:00
-
-
Save gb20/538c8ecff5dc0233d3d31b009c05b848 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
form get_etext using iv_fieldname changing ev_text. | |
data: lt_fieldlist type table of d021s. | |
clear ev_text. | |
call function 'RS_SCRP_GET_SCREEN_INFOS' | |
exporting | |
dynnr = sy-dynnr | |
progname = sy-cprog | |
tables | |
fieldlist = lt_fieldlist | |
exceptions | |
dynpro_does_not_exist = 1 | |
no_field_list = 2 | |
cancelled = 3 | |
others = 4. | |
read table lt_fieldlist assigning field-symbol(<fs_fieldlist>) | |
with key fnam = iv_fieldname. | |
if sy-subrc = 0. | |
ev_text = <fs_fieldlist>-stxt. | |
endif. | |
endform. | |
perform get_etext using 'GS_SCR100-WERKS' changing lv_text. | |
message |Поле { lv_text } обязательно для заполнения| type 'S' display like 'E'. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment