Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to find out row in delete buffer for dw?

I have a datawindow dw_1.  I use following script to move all data from Primary buffer to Delete buffer.

dw_1.RowsMove(1, dw_1.RowCount(), Primary!, dw_1,1, Delete!)

Then I want to find out a row in Delete buffer like dw_1.Find(...).

How can I do it? If all datawindow functions can be applied for Delete buffer?

Former Member
Former Member replied

Hi Kent;

  Unfortunately, the DW does not support a buffer option on the Find ( ) method and is thus limited to the Primary buffer.

  As an alternative, you can use the DOT notation or the RowsMove ( ) method to access the Delete buffer and copy those to a DataStore's primary buffer. Now you could use the Find ( ) method on the DS to locate your information. The row number in the DS should be the same as the row number in the DW control (unless you have sorting or filtering active). Thus, the DS becomes your index into the DC's Delete buffer.


Regards ... Chris

PS: What you are looking for would be a great feature enhancement - not only for the Find ( ) - but for all DC/DS methods that do not have the buffer option.

0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question