一般的Dynpro程序,Enter Key (回车) 不改变sy-ucomm! 这是标准Dynpro的要求。也是为什么在很多情况下按回车没有反应。要知道sy-ucomm的值,你必须读源程序,在screen PAI event module 中找OK_CODE 或sy-ucomm (常见的是 OK_CODE = sy-ucomm),放个break point, debug一下。
点击屏幕上的按钮时,SY-UCOMM这个系统字段会记录当前点击按钮的功能代码,BU一般作为系统的保存按钮的功能代码,SY-UCOMM='BU'就表示用户点击保存
subrc是系统标准表SYST的一个字段,记录上一条语句的执行的状态,sy-subrc=0表示上一条语句执行正确,sy-subrc为其他值表示上一条语句执行出错。callfunction'''引号里跟函数名,表示调用函数,可以是自定义的,也可以是系统的~~
SAP Managed Tags: ABAP Development Hi Suresh, SY-UCOMM is a System Field which gets all the user commands when it is pressed like ENTER, BACK, PAGEDOWN etc.. Regards Aneesh. Reply Former Member 2007 Jun 15 12:05 PM 0 Kudos 118 SAP Managed Tags: ABAP Development hi thanks...
SAP Managed Tags: ABAP Development Hi Ramu, I think you are doing a BDC program. Sy-ucomm for Enter = '/00'. Hope this helps. Manish Reply Former Member 2006 Oct 12 3:19 PM 0 Kudos 150 SAP Managed Tags: ABAP Development depends , basically it will be space Reply ...
SAP Managed Tags: ABAP Development Hi, I've an z program with two diferents screens, using a buttom i can change between screens however when I use pgdown key, screen change again to default window. I search in code where sy-ucomm = P+ are used but i didn't find it. can somebod...
SAP Managed Tags: ABAP Development, SAP Business Workflow Hi, When will OK_CODE or SY_UCOMM have the value 'ENTER' in module pool programs? Please reply. Thanks and regards, PramodKnow the answer? Help others by sharing your knowledge. Answer Need more details? Request clarification before...
SAP Managed Tags: ABAP Development Hi Josh, SAP recommends that in dialog program always use OK_Code instead of sy-ucomm. Here is what the help says In your ABAP programs, you should work with the OK_CODE field instead of SY-UCOMM. There are two reasons for this: Firstly, the ABA...
SAP Managed Tags: ABAP Development hi experts , regarding the difference between ok_code and sy-ucomm i searched and found this lines... answer::: In the same way that the OK_CODE field in the ABAP program and the system field SY-UCOMM <b>receive the contents of the corresponding...
SAP Managed Tags: ABAP Development try to do in: Enhancement PCSD0013 Customer-specific processing of an explosion for BOM browser PCSD0012 Customer - Mat. number/mat. number during material exchange Reply Former Member In response to former_member181995 2008 Aug 01 2:52 PM 0 Kudos ...