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

how to pass the internal table in submit program

Former Member
0 Likes
3,658

Hello Friends,

I have the requirement that I have to pass the internal table to another report program which will run in background. So, can you please tell me how to pass the internal table in submit report program.

I am using the following statement

===================================================

SUBMIT z9crs_delete_knvp_attnto_bg

VIA JOB 'Z9CRS_DELETE_KNVP_ATTNTO' NUMBER wv_jobcount

AND RETURN.

===================================================

Regards,

Kuldeep Verma

3 REPLIES 3
Read only

Former Member
0 Likes
904

REPORT report2. 

DATA: text       TYPE c LENGTH 10, 
      rspar_tab  TYPE TABLE OF rsparams, 
      rspar_line LIKE LINE OF rspar_tab, 
      range_tab  LIKE RANGE OF text, 
      range_line LIKE LINE OF range_tab. 

... 

rspar_line-selname = 'SELCRIT1'. 
rspar_line-kind    = 'S'. 
rspar_line-sign    = 'I'. 
rspar_line-option  = 'EQ'. 
rspar_line-low     = 'ABAP'. 
APPEND rspar_line TO rspar_tab. 

range_line-sign   = 'E'. 
range_line-option = 'EQ'. 
range_line-low    = 'H'. 
APPEND range_line TO range_tab. 

range_line-sign   = 'E'. 
range_line-option = 'EQ'. 
range_line-low    = 'K'. 
APPEND range_line TO range_tab. 

SUBMIT report1 USING SELECTION-SCREEN '1100' 
               WITH SELECTION-TABLE rspar_tab 
               WITH selcrit2 BETWEEN 'H' AND 'K' 
               WITH selcrit2 IN range_tab 
               AND RETURN. 
Read only

Former Member
0 Likes
904

Hello friends,

The problem is solved by using the statement

import imara from shared buffer indx(st) id 'YOURKEY'.

delete from shared buffer indx(st) id 'YOURKEY'.

Thanks for visit this forum

Kuldeep

Read only

0 Likes
904

I have to say that to use Import from / Export to memory is NOT a decent solution