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

SAP Query - how to retrieve data within another program / FM

Former Member
0 Likes
1,010

Hi,

I need to retrieve data from SAP Query, but when I used SUBMIT ..., the program results dump, because it is called within open custor loop.

Is there any another way, some FM or sth else?

thanks

Juraj

8 REPLIES 8
Read only

Former Member
0 Likes
914

Hi Juraj ,

Plesae explain "retrieve data from SAP Query" what does it mean.

Regards,

Uma Dave

Read only

0 Likes
914

Hi,

I think of getting data from SAP Query according to parameters for processing within program or FM.

I found FM IQAPI_QCALL_EXTR, but I'm not familiar with it

thanks

Juraj

Read only

0 Likes
914

Ohhh okeyy ,

You mean you want to execute a SAP Query within another program.

Why don't you try SUBMIT.

Regards,

Uma Dave

Read only

0 Likes
914

I already tried it, but I always get dump with CX_SY_OPEN_SQL_DB exception.

The problem is, that I tried to execute the query within open custor loop and this exception is caused by calling commit work somewhere in query report.

therefore I try to find another way

thanks

Juraj

Read only

0 Likes
914

are you able to run that query explicitly.

Regards,

Uma

Read only

0 Likes
914

what to you mean by runnig the query explicitly?

regards

Juraj

Read only

0 Likes
914

Hi ,

for that SAP Query you can have a report createde from SQ01 and run that report and see what happens.

Regards,

Uma Dave

Read only

0 Likes
914

Hi,

I already have seen it ... I get dump ... I found generated report for query and run it explicitly via SUBMIT ... AND RETURN statement