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

Fetching Data from Spool directly

Former Member
0 Likes
444

Hello Experts,

I need to do the following:-

There are certain list of transactions that gives ALV List as output and reading data directly from that list is not possible.

So we need to run transactions like IW58 in background and generate a spool job. Then we need to pick the spool via spool number and read the data in it.

How do we pick data from our spool and process that through XI and update the data base.

Regards

Saras Jain

2 REPLIES 2
Read only

andreas_mann3
Active Contributor
0 Likes
413

try fm RSPO_RETURN_ABAP_SPOOLJOB

A.

Read only

former_member404244
Active Contributor
0 Likes
413

Hi,

U can get the spool number from table TSP01..

Check the below sample code.

DATA:

lv_rq2name LIKE tsp01-rq2name.

CONCATENATE sy-repid+0(8)

sy-uname+0(3)

INTO lv_rq2name SEPARATED BY '_'.

  • Get the spool number.

SELECT * FROM tsp01 WHERE rq2name = lv_rq2name

ORDER BY rqcretime DESCENDING.

v_rqident = tsp01-rqident.

EXIT.

ENDSELECT.

IF sy-subrc NE 0.

CLEAR v_rqident.

ENDIF.

Reward if helpful.

Regards,

Nagaraj