Skip to Content
0
Former Member
Oct 07, 2009 at 11:53 AM

OLE - How understand find 'Text' ?

40 Views

Hello ,

I'm implementing a report using OLE technology. I would remplace the text = TEXT1 (if found) with the variable wa_tab-vvar.

If I check sys-subrc ( like below ), is = 0 if TEXT1 existe and is = 0 if TEXT1 is not exist.

GET PROPERTY OF selection 'find' = find.

SET PROPERTY OF find 'Text' = 'TEXT1'.

IF sy-subrc = 0.

ENDIF.

CALL METHOD OF find 'Execute'.

CALL METHOD OF selection 'TypeText'

EXPORTING

#1 = wa_tab-vvar.

There's a way to know if TEXT1 existi or not ??

Tks.