Posted: Thu Dec 27, 2007 2:33 pm Post subject: Использование DYNP_VALUES_UPDATE
У меня на Dynpro есть текстовое поле с именем OUT_STR.
Когда я нажимаю некоторую кнопку на Dynpro у меня после выполнения некоторого кода в этом поле должна появляться некоторая текстовая информация (ну, напр., "123456789").
В PAI-модуле я пишу:
Code:
MODULE user_command_0100 INPUT.
DATA: f_name TYPE fieldname,
f_value TYPE fieldvalue.
CLEAR g_ok_code.
CASE sy-ucomm.
WHEN 'BTN_1'.
................
f_name = 'OUT_STR'.
f_value = '123456789'.
PERFORM write_text
USING f_name
f_value.
..................
ENDMODULE. " USER_COMMAND_0100 INPUT
Затем пишу подпрограмму:
Code:
FORM write_text
USING p_f_name TYPE fieldname
p_f_value TYPE fieldvalue.
DATA: dynpro_fields LIKE dynpread OCCURS 1 WITH HEADER LINE.
DATA: progname TYPE sy-repid,
dynnum TYPE sy-dynnr.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.