Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

OLE_FLUSH_CALL invalid param verb: textstream

matt
Active Contributor
0 Likes
1,624

I'm developing a program that uses a whole load of alv grids on different tabs. When I process one particularl okcode, I get a dump: <b>Exception condition "INVALID PARAM VERB: TEXTSTREAM" raised.</b><br>

<br>

<PRE>Trigger Location of Runtime Error

Program SAPLOLEA

Include LOLEAU10

Row 224

Module type (FUNCTION)

Module Name AC_FLUSH_CALL_INTERNAL</pre><br>

As far as I can tell, this is happening at the end of the PAI. After all my code has run.

The VERBS table contains<br>

<pre>1 1 TextStream G

2 3 TextStream G

3 4 CreateObject C

4 7 SetDataFromUrl C

5 7 GetDataAsFormat C

6 14 AssignProperty2 C

7 18 FreeObject C

8 19 FreeObject C</pre><br>

The PARAMS table contains<br>

<pre>1 1 12 _RESULT 2

2 2 12 _RESULT 2

3 3 12 #1 5

4 3 3 #2 6

5 3 12 _RESULT 7

6 4 12 #1 8

7 4 12 #2 9

8 4 12 #3 10

9 5 12 #1 11

10 5 12 #2 12

11 5 12 _RESULT 13

12 6 9 #1 13

13 6 12 #2 15

14 6 9 #3 16

15 6 12 #4 17

16 7 9 #1 13

17 8 9 #1 7</pre>

<br>The VARS table contains<br>

<pre>1 000000 000 O 11

2 _RESULT 000000 000

3 000000 000 O 11

4 000000 000 O 2-

5 000000 000 {799104C5-04C5-11D0-AC56-080009D23306}

6 000000 000 1033

7 _RESULT 000000 000 O 1-

8 000000 000 APPLICATION

9 000000 000 X-R3TABLE

10 000000 000 SAPR3://DE56416140B66CF1B07A0015177DB7B9

11 000000 000 APPLICATION

12 000000 000 X-R3TABLE

13 _RESULT 000000 000 O 53

14 000000 000 O 8

15 000000 000 r3TableAutoObj

16 000000 000 19

17 000000 000 ToolBarButtonsTable2

18 000000 000 O 2-

19 000000 000 O 2-</pre><br><br>

Note, I'm not doing any explicit OLE stuff. There's a couple of other threads I've seen with this issue, but no resolution. I'm on patch 13 of 7.10 sapgui.

<br><br>

thanks

<br><br>

matt

<br><br>

Edited by: Matt on Jun 11, 2009 4:51 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,390

This message was moderated.

I'm developing a program that uses a whole load of alv grids on different tabs. When I process one particularl okcode, I get a dump: <b>Exception condition "INVALID PARAM VERB: TEXTSTREAM" raised.</b><br>

<br>

<PRE>Trigger Location of Runtime Error

Program SAPLOLEA

Include LOLEAU10

Row 224

Module type (FUNCTION)

Module Name AC_FLUSH_CALL_INTERNAL</pre><br>

As far as I can tell, this is happening at the end of the PAI. After all my code has run.

The VERBS table contains<br>

<pre>1 1 TextStream G

2 3 TextStream G

3 4 CreateObject C

4 7 SetDataFromUrl C

5 7 GetDataAsFormat C

6 14 AssignProperty2 C

7 18 FreeObject C

8 19 FreeObject C</pre><br>

The PARAMS table contains<br>

<pre>1 1 12 _RESULT 2

2 2 12 _RESULT 2

3 3 12 #1 5

4 3 3 #2 6

5 3 12 _RESULT 7

6 4 12 #1 8

7 4 12 #2 9

8 4 12 #3 10

9 5 12 #1 11

10 5 12 #2 12

11 5 12 _RESULT 13

12 6 9 #1 13

13 6 12 #2 15

14 6 9 #3 16

15 6 12 #4 17

16 7 9 #1 13

17 8 9 #1 7</pre>

<br>The VARS table contains<br>

<pre>1 000000 000 O 11

2 _RESULT 000000 000

3 000000 000 O 11

4 000000 000 O 2-

5 000000 000 {799104C5-04C5-11D0-AC56-080009D23306}

6 000000 000 1033

7 _RESULT 000000 000 O 1-

8 000000 000 APPLICATION

9 000000 000 X-R3TABLE

10 000000 000 SAPR3://DE56416140B66CF1B07A0015177DB7B9

11 000000 000 APPLICATION

12 000000 000 X-R3TABLE

13 _RESULT 000000 000 O 53

14 000000 000 O 8

15 000000 000 r3TableAutoObj

16 000000 000 19

17 000000 000 ToolBarButtonsTable2

18 000000 000 O 2-

19 000000 000 O 2-</pre><br><br>

Note, I'm not doing any explicit OLE stuff. There's a couple of other threads I've seen with this issue, but no resolution. I'm on patch 13 of 7.10 sapgui.

<br><br>

thanks

<br><br>

matt

<br><br>

Edited by: Matt on Jun 11, 2009 4:51 PM

7 REPLIES 7
Read only

Former Member
0 Likes
1,391

This message was moderated.

Read only

matt
Active Contributor
0 Likes
1,390

I've already search for notes. Nothing. The only hits via google are on this forum, and they've not be resolved either!

But you've given me a hint, that my alv grid controls and text edit controls might be conflicting. Maybe I've got some names mixed up.

Read only

0 Likes
1,390

>

> u might have to search for a note on this..

>

> SAP is using CL_GUI_TEXTEDIT class and using GET_TEXT_AS_STREAM method to pull text from STXH table...

I guess even the reply is from there itself.

Read only

matt
Active Contributor
0 Likes
1,390

Very well spotted. Plagiarism isn't tolerated - even when it turns out to have been helpful. He should've posted the link.

Read only

matt
Active Contributor
0 Likes
1,390

It was very simple. I just needed a cl_gui_cfw=>flush( ) call after checking whether a textedit control contents had changed. It seems it was caused by the non-flushed commands to the textedit control getting sent to, in this case, a grid control, which naturally, didn't know what to do with it.

matt

Read only

0 Likes
1,390

Hi,

You get any solution for this issue.i am also facing same.

Read only

matt
Active Contributor
0 Likes
1,390

I'm glad you searched, but with a little more effort you'd have found the solution without resurrecting a six year old thread. Try reading to the end...

Also - don't answer old questions. If the solution wasn't posted here, I certainly wouldn't recall what the solution was after six years....