简体   繁体   English

SAP Dynpro:如何更改输入字段,同时仍然保留必填字段?

[英]SAP Dynpro: How to change input fields while still having mandatory fields empty?

I have a dynpro with several mandatory fields. 我有一个带有几个必填字段的dynpro。 Now, I want to implement a button that prefills those fields with suggested values. 现在,我想实现一个按钮,该按钮用建议的值预填充这些字段。 Further, another button should deactive certain input fields. 此外,另一个按钮应停用某些输入字段。

My problem is that the button actions are stopped by the empty mandatory fields. 我的问题是按钮操作被空的必填字段停止了。 Is there a way to skip those validations, if a certain button has been pressend and acces the PAI - PBO handling? 如果已按下某个按钮并访问了PAI-PBO处理,是否可以跳过那些验证?

You must execute your action before the mandatory checks bloc other changes. 您必须先执行您的操作,然后再强制检查其他更改。

Instead of 代替

MODULE ... INPUT

you can try 你可以试试

MODULE ... AT EXIT-COMMAND

Normally the AT EXIT-COMMAND allows you to leave the screen, even if the values are missing. 通常,即使缺少值, AT EXIT-COMMAND也会让您离开屏幕。 But you can use it also to fill mandatory fields. 但是您也可以使用它来填写必填字段。

After filling the mandatory field I would call again the screen to process PBO/PAI again. 填写必填字段后,我将再次调用该屏幕以再次处理PBO / PAI。 So the user can see the new changed values. 这样用户可以看到新的更改的值。


One question: Could you also fill the values during PBO? 一个问题:您是否可以在PBO期间填写这些值?

Something like: 就像是:

MODULE ... OUTPUT.
 IF field is initial.
   field = default_value.
 ENDIF.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM