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 report using selection-table to report 'RKAEP000'(Tcode ksb1)

Former Member
0 Likes
2,339

Hi,

I am calling report "RKAEP000'(This is the report for tcode KSB1) using submit statement in my program to import the ksb1 output in my program. For time being I am calling this report using selection-set 'variant'.

The selection screen of ksb1 is designed with modulepool program (screen 100).

The selection screen of my program is similar to ksb1 initial screen, except layout option and controlling area is on the screen itself instead of calling it through menu.

Please tell me how to post the selction criteria of my report to the calling program 'RKAEP000'.

Thanks,

suresh

Hi,

I am calling report "RKAEP000'(This is the report for tcode KSB1) using submit statement in my program to import the ksb1 output in my program. For time being I am calling this report using selection-set 'variant'.

The selection screen of ksb1 is designed with modulepool program (screen 100).

The selection screen of my program is similar to ksb1 initial screen, except layout option and controlling area is on the screen itself instead of calling it through menu.

Please tell me how to post the selction criteria of my report to the calling program 'RKAEP000'.

Thanks,

suresh

2 REPLIES 2
Read only

premal_mistry2
Active Participant
0 Likes
1,122

You can use WITH addition of SUBMIT statement.

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

Regards,

Premal

Read only

Former Member
0 Likes
1,122

Hi,

use this sample code to call it.

u must pass p_tcode as 'KSB1'.

tables : csks.

select-options : s_KOSTL for CSKS-kostl.

START-OF-SELECTION.

SUBMIT RKAEP000 WITH KOSTL IN s_KOSTL

WITH p_tcode EQ 'KSB1'.