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

Problem with SUBMIT... EXPORTING LIST TO MEMORY

marcin_cholewczuk
Active Contributor
0 Likes
888

Hello all,

I have a need to read work process trace file from other SAP server (you can see them in ST11) and I want to use it with standard SAP FM (not with my own). I've found only FM STRCDISPLAY_WP_TRACE, but instead of returning a table it's showing results on screen. So my idea was to write a short report like this


REPORT Z_TMP
CALL FUNCTION '_STRC_DISPLAY_WP_TRACE' DESTINATION 'none'
.......

and with it I would write in my main report something like this.


SUBMIT z_tmp AND RETURN EXPORING LIST TO MEMORY.
CALL FUNCTION 'LIST_FROM_MEMORY'
.....
CALL FUNCTION 'LIST_TO_ASCI'

Problem is that when I execute my main report then trace is being shown (like when I would call STRCDISPLAY_WP_TRACE from SE37). After pressing BACK it's executed back where it stopped, but FM LIST_FROM_MEMORY is returning an error.

Problem is this DESTINATION part. When I delete it, then SUBMIT is executed without any problem (no trace file is being shown) and FM LIST_FROM_MEMORY is returning normal value, not an error.

Does anyone know what am I doing wrong here? I guess I'm missing something about RFC calls in SAP. When I think about it, I'm starting to wonder, how does it work, that when I call with RFC FM which use WRITE command I'm able to see it localy?

Or maybe there is another SAP FM which I could use to read WP trace file?

Best regards

Marcin Cholewczuk

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
813

Marcin,

I think you should call the process that is generating data (FM STRCDISPLAY_WP_TRACE in your case) in background, so trace information isn´t shown at all.

Have a look at [this thread|;, specially at Saba Sayed suggestion, that already worked in a similar situation for me.

Hope it helps!

Regards,

mr.

3 REPLIES 3
Read only

Former Member
0 Likes
814

Marcin,

I think you should call the process that is generating data (FM STRCDISPLAY_WP_TRACE in your case) in background, so trace information isn´t shown at all.

Have a look at [this thread|;, specially at Saba Sayed suggestion, that already worked in a similar situation for me.

Hope it helps!

Regards,

mr.

Read only

0 Likes
813

The destination name in the RFC call should be 'NONE' and not 'none'.

Read only

0 Likes
813

Hi Manuel,

It is not possible. When I do it I'm getting SYSTEM_FAILURE exception with message "Screen displayed without connection to user", so my guess is that when one is calling FM with use of RFC and this FM is using WRITE statement or CALL SCREEN, then on calling side SAP is internaly creating screen. I don't think that I can do much about it. So my only solution is to read that file with use of other FM. Any ideas?

Some more info here if anyone is interested http://www.sapnet.ru/abap_docu/ABENRFC_SYS_FAIL.htm

Best regards

Marcin Cholewczuk

EDIT:

I've found these two FM DB6_DIAG_READ_FILE, SALC_READ_PROFILE_PARAMETERS, but if anyone has something better (llike one FM) it would be great - FM GWY_READ_WP_FILE is using wrong filme (dev_wp0 instead of dev_w0) so it's not good.

Edited by: Marcin Cholewczuk on May 5, 2011 11:47 AM