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

submit statement

Former Member
0 Likes
544

Hii All,

I am using SUBMIT stmt to run a different report R2. I need to submit this report in background and see the report list from memory. I am using the following:

SUBMIT REPORT2 using <specifications> list in memory and return.

But the list is getting displayed in the foreground only. I dont want this. I dont want to see the list in foreground. What needs to be done?

M A

5 REPLIES 5
Read only

Former Member
0 Likes
517

Hi mohammad,

1. we have to use

submit myreport

EXPORTING LIST TO MEMORY

and return.

regards,

amit m.

Read only

suresh_datti
Active Contributor
0 Likes
517

Use the SUBMIT statement with TO SAP-SPOOL option instead.

~Suresh

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
517

Hi,

Did you used

SUBMIT REPORT2 using <specifications> <b>exporting</b> list in memory and return.

Check here.

http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/submit.htm

Read only

Former Member
0 Likes
517

Use F1 on SUBMIT and you will see different options. Are you using SUBMIT....EXPORTING?

Read only

Former Member
0 Likes
517

Hi,

use below logic

DATA: PARAMS LIKE PRI_PARAMS,

DAYS(1) TYPE N VALUE 2,

COUNT(3) TYPE N VALUE 1,

VALID TYPE C.

CALL FUNCTION 'GET_PRINT_PARAMETERS'

EXPORTING DESTINATION = 'LT50'

COPIES = COUNT

LIST_NAME = 'TEST'

LIST_TEXT = 'SUBMIT ... TO SAP-SPOOL'

IMMEDIATELY = 'X'

RELEASE = 'X'

NEW_LIST_ID = 'X'

EXPIRATION = DAYS

LINE_SIZE = 79

LINE_COUNT = 23

LAYOUT = 'X_PAPER'

SAP_COVER_PAGE = 'X'

COVER_PAGE = 'X'

RECEIVER = 'SAP*'

DEPARTMENT = 'System'

NO_DIALOG = ' '

IMPORTING OUT_PARAMETERS = PARAMS

VALID = VALID.

IF VALID <> SPACE.

SUBMIT RSTEST00 TO SAP-SPOOL

SPOOL PARAMETERS PARAMS

WITHOUT SPOOL DYNPRO.

ENDIF.

Regards

amole