开发者

Remove default values from ABAP form

I have a screen for creating new records in a table, it contains a form with all the database columns. Problem is, once the screen is called, it has the last database record in it. So to add a new record, you have to empty the开发者_开发技巧 current values first.

Any idea how to get rid of this?


The only way that this could happen is if you are selecting values into the fields in the first place. Presumably you have declared the a structure of the same type as the table (possibly with a TABLES statement) in your program and have named the fields the same on the screen, and you are selecting values into the structure. If this is the case, you can simply issue CLEAR and it will clear all the fields in the structure. (You could do this directly after the last update). It is difficult to tell, however, without a sample of your program and screen code.


I can't agree more with mydoghasworms's answer. One comment, when you find the table, make sure to CLEAR itab[], when the table with header.

I encountered the same issue yesterday, and it works when I cleared the table on the screen.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜